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.

2240 lines
73 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. // Code generated by protoc-gen-go.
  2. // source: types/types.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package types is a generated protocol buffer package.
  6. It is generated from these files:
  7. types/types.proto
  8. It has these top-level messages:
  9. Request
  10. RequestEcho
  11. RequestFlush
  12. RequestInfo
  13. RequestSetOption
  14. RequestDeliverTx
  15. RequestCheckTx
  16. RequestQuery
  17. RequestCommit
  18. RequestInitChain
  19. RequestBeginBlock
  20. RequestEndBlock
  21. Response
  22. ResponseException
  23. ResponseEcho
  24. ResponseFlush
  25. ResponseInfo
  26. ResponseSetOption
  27. ResponseDeliverTx
  28. ResponseCheckTx
  29. ResponseQuery
  30. ResponseCommit
  31. ResponseInitChain
  32. ResponseBeginBlock
  33. ResponseEndBlock
  34. Header
  35. BlockID
  36. PartSetHeader
  37. Validator
  38. */
  39. package types
  40. import proto "github.com/golang/protobuf/proto"
  41. import fmt "fmt"
  42. import math "math"
  43. import (
  44. context "golang.org/x/net/context"
  45. grpc "google.golang.org/grpc"
  46. )
  47. // Reference imports to suppress errors if they are not otherwise used.
  48. var _ = proto.Marshal
  49. var _ = fmt.Errorf
  50. var _ = math.Inf
  51. // This is a compile-time assertion to ensure that this generated file
  52. // is compatible with the proto package it is being compiled against.
  53. // A compilation error at this line likely means your copy of the
  54. // proto package needs to be updated.
  55. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  56. // Not being used
  57. // Could be added to request/response
  58. // so we don't have to type switch
  59. // (would be twice as fast, but we're talking about 15ns)
  60. type MessageType int32
  61. const (
  62. MessageType_NullMessage MessageType = 0
  63. MessageType_Echo MessageType = 1
  64. MessageType_Flush MessageType = 2
  65. MessageType_Info MessageType = 3
  66. MessageType_SetOption MessageType = 4
  67. MessageType_Exception MessageType = 5
  68. MessageType_DeliverTx MessageType = 17
  69. MessageType_CheckTx MessageType = 18
  70. MessageType_Commit MessageType = 19
  71. MessageType_Query MessageType = 20
  72. MessageType_InitChain MessageType = 21
  73. MessageType_BeginBlock MessageType = 22
  74. MessageType_EndBlock MessageType = 23
  75. )
  76. var MessageType_name = map[int32]string{
  77. 0: "NullMessage",
  78. 1: "Echo",
  79. 2: "Flush",
  80. 3: "Info",
  81. 4: "SetOption",
  82. 5: "Exception",
  83. 17: "DeliverTx",
  84. 18: "CheckTx",
  85. 19: "Commit",
  86. 20: "Query",
  87. 21: "InitChain",
  88. 22: "BeginBlock",
  89. 23: "EndBlock",
  90. }
  91. var MessageType_value = map[string]int32{
  92. "NullMessage": 0,
  93. "Echo": 1,
  94. "Flush": 2,
  95. "Info": 3,
  96. "SetOption": 4,
  97. "Exception": 5,
  98. "DeliverTx": 17,
  99. "CheckTx": 18,
  100. "Commit": 19,
  101. "Query": 20,
  102. "InitChain": 21,
  103. "BeginBlock": 22,
  104. "EndBlock": 23,
  105. }
  106. func (x MessageType) String() string {
  107. return proto.EnumName(MessageType_name, int32(x))
  108. }
  109. func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  110. type CodeType int32
  111. const (
  112. CodeType_OK CodeType = 0
  113. // General response codes, 0 ~ 99
  114. CodeType_InternalError CodeType = 1
  115. CodeType_EncodingError CodeType = 2
  116. CodeType_BadNonce CodeType = 3
  117. CodeType_Unauthorized CodeType = 4
  118. CodeType_InsufficientFunds CodeType = 5
  119. CodeType_UnknownRequest CodeType = 6
  120. // Reserved for basecoin, 100 ~ 199
  121. CodeType_BaseDuplicateAddress CodeType = 101
  122. CodeType_BaseEncodingError CodeType = 102
  123. CodeType_BaseInsufficientFees CodeType = 103
  124. CodeType_BaseInsufficientFunds CodeType = 104
  125. CodeType_BaseInsufficientGasPrice CodeType = 105
  126. CodeType_BaseInvalidInput CodeType = 106
  127. CodeType_BaseInvalidOutput CodeType = 107
  128. CodeType_BaseInvalidPubKey CodeType = 108
  129. CodeType_BaseInvalidSequence CodeType = 109
  130. CodeType_BaseInvalidSignature CodeType = 110
  131. CodeType_BaseUnknownAddress CodeType = 111
  132. CodeType_BaseUnknownPubKey CodeType = 112
  133. CodeType_BaseUnknownPlugin CodeType = 113
  134. // Reserved for governance, 200 ~ 299
  135. CodeType_GovUnknownEntity CodeType = 201
  136. CodeType_GovUnknownGroup CodeType = 202
  137. CodeType_GovUnknownProposal CodeType = 203
  138. CodeType_GovDuplicateGroup CodeType = 204
  139. CodeType_GovDuplicateMember CodeType = 205
  140. CodeType_GovDuplicateProposal CodeType = 206
  141. CodeType_GovDuplicateVote CodeType = 207
  142. CodeType_GovInvalidMember CodeType = 208
  143. CodeType_GovInvalidVote CodeType = 209
  144. CodeType_GovInvalidVotingPower CodeType = 210
  145. )
  146. var CodeType_name = map[int32]string{
  147. 0: "OK",
  148. 1: "InternalError",
  149. 2: "EncodingError",
  150. 3: "BadNonce",
  151. 4: "Unauthorized",
  152. 5: "InsufficientFunds",
  153. 6: "UnknownRequest",
  154. 101: "BaseDuplicateAddress",
  155. 102: "BaseEncodingError",
  156. 103: "BaseInsufficientFees",
  157. 104: "BaseInsufficientFunds",
  158. 105: "BaseInsufficientGasPrice",
  159. 106: "BaseInvalidInput",
  160. 107: "BaseInvalidOutput",
  161. 108: "BaseInvalidPubKey",
  162. 109: "BaseInvalidSequence",
  163. 110: "BaseInvalidSignature",
  164. 111: "BaseUnknownAddress",
  165. 112: "BaseUnknownPubKey",
  166. 113: "BaseUnknownPlugin",
  167. 201: "GovUnknownEntity",
  168. 202: "GovUnknownGroup",
  169. 203: "GovUnknownProposal",
  170. 204: "GovDuplicateGroup",
  171. 205: "GovDuplicateMember",
  172. 206: "GovDuplicateProposal",
  173. 207: "GovDuplicateVote",
  174. 208: "GovInvalidMember",
  175. 209: "GovInvalidVote",
  176. 210: "GovInvalidVotingPower",
  177. }
  178. var CodeType_value = map[string]int32{
  179. "OK": 0,
  180. "InternalError": 1,
  181. "EncodingError": 2,
  182. "BadNonce": 3,
  183. "Unauthorized": 4,
  184. "InsufficientFunds": 5,
  185. "UnknownRequest": 6,
  186. "BaseDuplicateAddress": 101,
  187. "BaseEncodingError": 102,
  188. "BaseInsufficientFees": 103,
  189. "BaseInsufficientFunds": 104,
  190. "BaseInsufficientGasPrice": 105,
  191. "BaseInvalidInput": 106,
  192. "BaseInvalidOutput": 107,
  193. "BaseInvalidPubKey": 108,
  194. "BaseInvalidSequence": 109,
  195. "BaseInvalidSignature": 110,
  196. "BaseUnknownAddress": 111,
  197. "BaseUnknownPubKey": 112,
  198. "BaseUnknownPlugin": 113,
  199. "GovUnknownEntity": 201,
  200. "GovUnknownGroup": 202,
  201. "GovUnknownProposal": 203,
  202. "GovDuplicateGroup": 204,
  203. "GovDuplicateMember": 205,
  204. "GovDuplicateProposal": 206,
  205. "GovDuplicateVote": 207,
  206. "GovInvalidMember": 208,
  207. "GovInvalidVote": 209,
  208. "GovInvalidVotingPower": 210,
  209. }
  210. func (x CodeType) String() string {
  211. return proto.EnumName(CodeType_name, int32(x))
  212. }
  213. func (CodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  214. type Request struct {
  215. // Types that are valid to be assigned to Value:
  216. // *Request_Echo
  217. // *Request_Flush
  218. // *Request_Info
  219. // *Request_SetOption
  220. // *Request_DeliverTx
  221. // *Request_CheckTx
  222. // *Request_Commit
  223. // *Request_Query
  224. // *Request_InitChain
  225. // *Request_BeginBlock
  226. // *Request_EndBlock
  227. Value isRequest_Value `protobuf_oneof:"value"`
  228. }
  229. func (m *Request) Reset() { *m = Request{} }
  230. func (m *Request) String() string { return proto.CompactTextString(m) }
  231. func (*Request) ProtoMessage() {}
  232. func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  233. type isRequest_Value interface {
  234. isRequest_Value()
  235. }
  236. type Request_Echo struct {
  237. Echo *RequestEcho `protobuf:"bytes,1,opt,name=echo,oneof"`
  238. }
  239. type Request_Flush struct {
  240. Flush *RequestFlush `protobuf:"bytes,2,opt,name=flush,oneof"`
  241. }
  242. type Request_Info struct {
  243. Info *RequestInfo `protobuf:"bytes,3,opt,name=info,oneof"`
  244. }
  245. type Request_SetOption struct {
  246. SetOption *RequestSetOption `protobuf:"bytes,4,opt,name=set_option,json=setOption,oneof"`
  247. }
  248. type Request_DeliverTx struct {
  249. DeliverTx *RequestDeliverTx `protobuf:"bytes,5,opt,name=deliver_tx,json=deliverTx,oneof"`
  250. }
  251. type Request_CheckTx struct {
  252. CheckTx *RequestCheckTx `protobuf:"bytes,6,opt,name=check_tx,json=checkTx,oneof"`
  253. }
  254. type Request_Commit struct {
  255. Commit *RequestCommit `protobuf:"bytes,7,opt,name=commit,oneof"`
  256. }
  257. type Request_Query struct {
  258. Query *RequestQuery `protobuf:"bytes,8,opt,name=query,oneof"`
  259. }
  260. type Request_InitChain struct {
  261. InitChain *RequestInitChain `protobuf:"bytes,9,opt,name=init_chain,json=initChain,oneof"`
  262. }
  263. type Request_BeginBlock struct {
  264. BeginBlock *RequestBeginBlock `protobuf:"bytes,10,opt,name=begin_block,json=beginBlock,oneof"`
  265. }
  266. type Request_EndBlock struct {
  267. EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
  268. }
  269. func (*Request_Echo) isRequest_Value() {}
  270. func (*Request_Flush) isRequest_Value() {}
  271. func (*Request_Info) isRequest_Value() {}
  272. func (*Request_SetOption) isRequest_Value() {}
  273. func (*Request_DeliverTx) isRequest_Value() {}
  274. func (*Request_CheckTx) isRequest_Value() {}
  275. func (*Request_Commit) isRequest_Value() {}
  276. func (*Request_Query) isRequest_Value() {}
  277. func (*Request_InitChain) isRequest_Value() {}
  278. func (*Request_BeginBlock) isRequest_Value() {}
  279. func (*Request_EndBlock) isRequest_Value() {}
  280. func (m *Request) GetValue() isRequest_Value {
  281. if m != nil {
  282. return m.Value
  283. }
  284. return nil
  285. }
  286. func (m *Request) GetEcho() *RequestEcho {
  287. if x, ok := m.GetValue().(*Request_Echo); ok {
  288. return x.Echo
  289. }
  290. return nil
  291. }
  292. func (m *Request) GetFlush() *RequestFlush {
  293. if x, ok := m.GetValue().(*Request_Flush); ok {
  294. return x.Flush
  295. }
  296. return nil
  297. }
  298. func (m *Request) GetInfo() *RequestInfo {
  299. if x, ok := m.GetValue().(*Request_Info); ok {
  300. return x.Info
  301. }
  302. return nil
  303. }
  304. func (m *Request) GetSetOption() *RequestSetOption {
  305. if x, ok := m.GetValue().(*Request_SetOption); ok {
  306. return x.SetOption
  307. }
  308. return nil
  309. }
  310. func (m *Request) GetDeliverTx() *RequestDeliverTx {
  311. if x, ok := m.GetValue().(*Request_DeliverTx); ok {
  312. return x.DeliverTx
  313. }
  314. return nil
  315. }
  316. func (m *Request) GetCheckTx() *RequestCheckTx {
  317. if x, ok := m.GetValue().(*Request_CheckTx); ok {
  318. return x.CheckTx
  319. }
  320. return nil
  321. }
  322. func (m *Request) GetCommit() *RequestCommit {
  323. if x, ok := m.GetValue().(*Request_Commit); ok {
  324. return x.Commit
  325. }
  326. return nil
  327. }
  328. func (m *Request) GetQuery() *RequestQuery {
  329. if x, ok := m.GetValue().(*Request_Query); ok {
  330. return x.Query
  331. }
  332. return nil
  333. }
  334. func (m *Request) GetInitChain() *RequestInitChain {
  335. if x, ok := m.GetValue().(*Request_InitChain); ok {
  336. return x.InitChain
  337. }
  338. return nil
  339. }
  340. func (m *Request) GetBeginBlock() *RequestBeginBlock {
  341. if x, ok := m.GetValue().(*Request_BeginBlock); ok {
  342. return x.BeginBlock
  343. }
  344. return nil
  345. }
  346. func (m *Request) GetEndBlock() *RequestEndBlock {
  347. if x, ok := m.GetValue().(*Request_EndBlock); ok {
  348. return x.EndBlock
  349. }
  350. return nil
  351. }
  352. // XXX_OneofFuncs is for the internal use of the proto package.
  353. func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  354. return _Request_OneofMarshaler, _Request_OneofUnmarshaler, _Request_OneofSizer, []interface{}{
  355. (*Request_Echo)(nil),
  356. (*Request_Flush)(nil),
  357. (*Request_Info)(nil),
  358. (*Request_SetOption)(nil),
  359. (*Request_DeliverTx)(nil),
  360. (*Request_CheckTx)(nil),
  361. (*Request_Commit)(nil),
  362. (*Request_Query)(nil),
  363. (*Request_InitChain)(nil),
  364. (*Request_BeginBlock)(nil),
  365. (*Request_EndBlock)(nil),
  366. }
  367. }
  368. func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  369. m := msg.(*Request)
  370. // value
  371. switch x := m.Value.(type) {
  372. case *Request_Echo:
  373. b.EncodeVarint(1<<3 | proto.WireBytes)
  374. if err := b.EncodeMessage(x.Echo); err != nil {
  375. return err
  376. }
  377. case *Request_Flush:
  378. b.EncodeVarint(2<<3 | proto.WireBytes)
  379. if err := b.EncodeMessage(x.Flush); err != nil {
  380. return err
  381. }
  382. case *Request_Info:
  383. b.EncodeVarint(3<<3 | proto.WireBytes)
  384. if err := b.EncodeMessage(x.Info); err != nil {
  385. return err
  386. }
  387. case *Request_SetOption:
  388. b.EncodeVarint(4<<3 | proto.WireBytes)
  389. if err := b.EncodeMessage(x.SetOption); err != nil {
  390. return err
  391. }
  392. case *Request_DeliverTx:
  393. b.EncodeVarint(5<<3 | proto.WireBytes)
  394. if err := b.EncodeMessage(x.DeliverTx); err != nil {
  395. return err
  396. }
  397. case *Request_CheckTx:
  398. b.EncodeVarint(6<<3 | proto.WireBytes)
  399. if err := b.EncodeMessage(x.CheckTx); err != nil {
  400. return err
  401. }
  402. case *Request_Commit:
  403. b.EncodeVarint(7<<3 | proto.WireBytes)
  404. if err := b.EncodeMessage(x.Commit); err != nil {
  405. return err
  406. }
  407. case *Request_Query:
  408. b.EncodeVarint(8<<3 | proto.WireBytes)
  409. if err := b.EncodeMessage(x.Query); err != nil {
  410. return err
  411. }
  412. case *Request_InitChain:
  413. b.EncodeVarint(9<<3 | proto.WireBytes)
  414. if err := b.EncodeMessage(x.InitChain); err != nil {
  415. return err
  416. }
  417. case *Request_BeginBlock:
  418. b.EncodeVarint(10<<3 | proto.WireBytes)
  419. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  420. return err
  421. }
  422. case *Request_EndBlock:
  423. b.EncodeVarint(11<<3 | proto.WireBytes)
  424. if err := b.EncodeMessage(x.EndBlock); err != nil {
  425. return err
  426. }
  427. case nil:
  428. default:
  429. return fmt.Errorf("Request.Value has unexpected type %T", x)
  430. }
  431. return nil
  432. }
  433. func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  434. m := msg.(*Request)
  435. switch tag {
  436. case 1: // value.echo
  437. if wire != proto.WireBytes {
  438. return true, proto.ErrInternalBadWireType
  439. }
  440. msg := new(RequestEcho)
  441. err := b.DecodeMessage(msg)
  442. m.Value = &Request_Echo{msg}
  443. return true, err
  444. case 2: // value.flush
  445. if wire != proto.WireBytes {
  446. return true, proto.ErrInternalBadWireType
  447. }
  448. msg := new(RequestFlush)
  449. err := b.DecodeMessage(msg)
  450. m.Value = &Request_Flush{msg}
  451. return true, err
  452. case 3: // value.info
  453. if wire != proto.WireBytes {
  454. return true, proto.ErrInternalBadWireType
  455. }
  456. msg := new(RequestInfo)
  457. err := b.DecodeMessage(msg)
  458. m.Value = &Request_Info{msg}
  459. return true, err
  460. case 4: // value.set_option
  461. if wire != proto.WireBytes {
  462. return true, proto.ErrInternalBadWireType
  463. }
  464. msg := new(RequestSetOption)
  465. err := b.DecodeMessage(msg)
  466. m.Value = &Request_SetOption{msg}
  467. return true, err
  468. case 5: // value.deliver_tx
  469. if wire != proto.WireBytes {
  470. return true, proto.ErrInternalBadWireType
  471. }
  472. msg := new(RequestDeliverTx)
  473. err := b.DecodeMessage(msg)
  474. m.Value = &Request_DeliverTx{msg}
  475. return true, err
  476. case 6: // value.check_tx
  477. if wire != proto.WireBytes {
  478. return true, proto.ErrInternalBadWireType
  479. }
  480. msg := new(RequestCheckTx)
  481. err := b.DecodeMessage(msg)
  482. m.Value = &Request_CheckTx{msg}
  483. return true, err
  484. case 7: // value.commit
  485. if wire != proto.WireBytes {
  486. return true, proto.ErrInternalBadWireType
  487. }
  488. msg := new(RequestCommit)
  489. err := b.DecodeMessage(msg)
  490. m.Value = &Request_Commit{msg}
  491. return true, err
  492. case 8: // value.query
  493. if wire != proto.WireBytes {
  494. return true, proto.ErrInternalBadWireType
  495. }
  496. msg := new(RequestQuery)
  497. err := b.DecodeMessage(msg)
  498. m.Value = &Request_Query{msg}
  499. return true, err
  500. case 9: // value.init_chain
  501. if wire != proto.WireBytes {
  502. return true, proto.ErrInternalBadWireType
  503. }
  504. msg := new(RequestInitChain)
  505. err := b.DecodeMessage(msg)
  506. m.Value = &Request_InitChain{msg}
  507. return true, err
  508. case 10: // value.begin_block
  509. if wire != proto.WireBytes {
  510. return true, proto.ErrInternalBadWireType
  511. }
  512. msg := new(RequestBeginBlock)
  513. err := b.DecodeMessage(msg)
  514. m.Value = &Request_BeginBlock{msg}
  515. return true, err
  516. case 11: // value.end_block
  517. if wire != proto.WireBytes {
  518. return true, proto.ErrInternalBadWireType
  519. }
  520. msg := new(RequestEndBlock)
  521. err := b.DecodeMessage(msg)
  522. m.Value = &Request_EndBlock{msg}
  523. return true, err
  524. default:
  525. return false, nil
  526. }
  527. }
  528. func _Request_OneofSizer(msg proto.Message) (n int) {
  529. m := msg.(*Request)
  530. // value
  531. switch x := m.Value.(type) {
  532. case *Request_Echo:
  533. s := proto.Size(x.Echo)
  534. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  535. n += proto.SizeVarint(uint64(s))
  536. n += s
  537. case *Request_Flush:
  538. s := proto.Size(x.Flush)
  539. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  540. n += proto.SizeVarint(uint64(s))
  541. n += s
  542. case *Request_Info:
  543. s := proto.Size(x.Info)
  544. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  545. n += proto.SizeVarint(uint64(s))
  546. n += s
  547. case *Request_SetOption:
  548. s := proto.Size(x.SetOption)
  549. n += proto.SizeVarint(4<<3 | proto.WireBytes)
  550. n += proto.SizeVarint(uint64(s))
  551. n += s
  552. case *Request_DeliverTx:
  553. s := proto.Size(x.DeliverTx)
  554. n += proto.SizeVarint(5<<3 | proto.WireBytes)
  555. n += proto.SizeVarint(uint64(s))
  556. n += s
  557. case *Request_CheckTx:
  558. s := proto.Size(x.CheckTx)
  559. n += proto.SizeVarint(6<<3 | proto.WireBytes)
  560. n += proto.SizeVarint(uint64(s))
  561. n += s
  562. case *Request_Commit:
  563. s := proto.Size(x.Commit)
  564. n += proto.SizeVarint(7<<3 | proto.WireBytes)
  565. n += proto.SizeVarint(uint64(s))
  566. n += s
  567. case *Request_Query:
  568. s := proto.Size(x.Query)
  569. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  570. n += proto.SizeVarint(uint64(s))
  571. n += s
  572. case *Request_InitChain:
  573. s := proto.Size(x.InitChain)
  574. n += proto.SizeVarint(9<<3 | proto.WireBytes)
  575. n += proto.SizeVarint(uint64(s))
  576. n += s
  577. case *Request_BeginBlock:
  578. s := proto.Size(x.BeginBlock)
  579. n += proto.SizeVarint(10<<3 | proto.WireBytes)
  580. n += proto.SizeVarint(uint64(s))
  581. n += s
  582. case *Request_EndBlock:
  583. s := proto.Size(x.EndBlock)
  584. n += proto.SizeVarint(11<<3 | proto.WireBytes)
  585. n += proto.SizeVarint(uint64(s))
  586. n += s
  587. case nil:
  588. default:
  589. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  590. }
  591. return n
  592. }
  593. type RequestEcho struct {
  594. Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
  595. }
  596. func (m *RequestEcho) Reset() { *m = RequestEcho{} }
  597. func (m *RequestEcho) String() string { return proto.CompactTextString(m) }
  598. func (*RequestEcho) ProtoMessage() {}
  599. func (*RequestEcho) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  600. func (m *RequestEcho) GetMessage() string {
  601. if m != nil {
  602. return m.Message
  603. }
  604. return ""
  605. }
  606. type RequestFlush struct {
  607. }
  608. func (m *RequestFlush) Reset() { *m = RequestFlush{} }
  609. func (m *RequestFlush) String() string { return proto.CompactTextString(m) }
  610. func (*RequestFlush) ProtoMessage() {}
  611. func (*RequestFlush) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  612. type RequestInfo struct {
  613. }
  614. func (m *RequestInfo) Reset() { *m = RequestInfo{} }
  615. func (m *RequestInfo) String() string { return proto.CompactTextString(m) }
  616. func (*RequestInfo) ProtoMessage() {}
  617. func (*RequestInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  618. type RequestSetOption struct {
  619. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
  620. Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  621. }
  622. func (m *RequestSetOption) Reset() { *m = RequestSetOption{} }
  623. func (m *RequestSetOption) String() string { return proto.CompactTextString(m) }
  624. func (*RequestSetOption) ProtoMessage() {}
  625. func (*RequestSetOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  626. func (m *RequestSetOption) GetKey() string {
  627. if m != nil {
  628. return m.Key
  629. }
  630. return ""
  631. }
  632. func (m *RequestSetOption) GetValue() string {
  633. if m != nil {
  634. return m.Value
  635. }
  636. return ""
  637. }
  638. type RequestDeliverTx struct {
  639. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  640. }
  641. func (m *RequestDeliverTx) Reset() { *m = RequestDeliverTx{} }
  642. func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) }
  643. func (*RequestDeliverTx) ProtoMessage() {}
  644. func (*RequestDeliverTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  645. func (m *RequestDeliverTx) GetTx() []byte {
  646. if m != nil {
  647. return m.Tx
  648. }
  649. return nil
  650. }
  651. type RequestCheckTx struct {
  652. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  653. }
  654. func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} }
  655. func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) }
  656. func (*RequestCheckTx) ProtoMessage() {}
  657. func (*RequestCheckTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  658. func (m *RequestCheckTx) GetTx() []byte {
  659. if m != nil {
  660. return m.Tx
  661. }
  662. return nil
  663. }
  664. type RequestQuery struct {
  665. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  666. Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
  667. Height uint64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
  668. Prove bool `protobuf:"varint,4,opt,name=prove" json:"prove,omitempty"`
  669. }
  670. func (m *RequestQuery) Reset() { *m = RequestQuery{} }
  671. func (m *RequestQuery) String() string { return proto.CompactTextString(m) }
  672. func (*RequestQuery) ProtoMessage() {}
  673. func (*RequestQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  674. func (m *RequestQuery) GetData() []byte {
  675. if m != nil {
  676. return m.Data
  677. }
  678. return nil
  679. }
  680. func (m *RequestQuery) GetPath() string {
  681. if m != nil {
  682. return m.Path
  683. }
  684. return ""
  685. }
  686. func (m *RequestQuery) GetHeight() uint64 {
  687. if m != nil {
  688. return m.Height
  689. }
  690. return 0
  691. }
  692. func (m *RequestQuery) GetProve() bool {
  693. if m != nil {
  694. return m.Prove
  695. }
  696. return false
  697. }
  698. type RequestCommit struct {
  699. }
  700. func (m *RequestCommit) Reset() { *m = RequestCommit{} }
  701. func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
  702. func (*RequestCommit) ProtoMessage() {}
  703. func (*RequestCommit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  704. type RequestInitChain struct {
  705. Validators []*Validator `protobuf:"bytes,1,rep,name=validators" json:"validators,omitempty"`
  706. }
  707. func (m *RequestInitChain) Reset() { *m = RequestInitChain{} }
  708. func (m *RequestInitChain) String() string { return proto.CompactTextString(m) }
  709. func (*RequestInitChain) ProtoMessage() {}
  710. func (*RequestInitChain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  711. func (m *RequestInitChain) GetValidators() []*Validator {
  712. if m != nil {
  713. return m.Validators
  714. }
  715. return nil
  716. }
  717. type RequestBeginBlock struct {
  718. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
  719. Header *Header `protobuf:"bytes,2,opt,name=header" json:"header,omitempty"`
  720. }
  721. func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} }
  722. func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) }
  723. func (*RequestBeginBlock) ProtoMessage() {}
  724. func (*RequestBeginBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  725. func (m *RequestBeginBlock) GetHash() []byte {
  726. if m != nil {
  727. return m.Hash
  728. }
  729. return nil
  730. }
  731. func (m *RequestBeginBlock) GetHeader() *Header {
  732. if m != nil {
  733. return m.Header
  734. }
  735. return nil
  736. }
  737. type RequestEndBlock struct {
  738. Height uint64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
  739. }
  740. func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} }
  741. func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) }
  742. func (*RequestEndBlock) ProtoMessage() {}
  743. func (*RequestEndBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  744. func (m *RequestEndBlock) GetHeight() uint64 {
  745. if m != nil {
  746. return m.Height
  747. }
  748. return 0
  749. }
  750. type Response struct {
  751. // Types that are valid to be assigned to Value:
  752. // *Response_Exception
  753. // *Response_Echo
  754. // *Response_Flush
  755. // *Response_Info
  756. // *Response_SetOption
  757. // *Response_DeliverTx
  758. // *Response_CheckTx
  759. // *Response_Commit
  760. // *Response_Query
  761. // *Response_InitChain
  762. // *Response_BeginBlock
  763. // *Response_EndBlock
  764. Value isResponse_Value `protobuf_oneof:"value"`
  765. }
  766. func (m *Response) Reset() { *m = Response{} }
  767. func (m *Response) String() string { return proto.CompactTextString(m) }
  768. func (*Response) ProtoMessage() {}
  769. func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  770. type isResponse_Value interface {
  771. isResponse_Value()
  772. }
  773. type Response_Exception struct {
  774. Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,oneof"`
  775. }
  776. type Response_Echo struct {
  777. Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
  778. }
  779. type Response_Flush struct {
  780. Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
  781. }
  782. type Response_Info struct {
  783. Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,oneof"`
  784. }
  785. type Response_SetOption struct {
  786. SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
  787. }
  788. type Response_DeliverTx struct {
  789. DeliverTx *ResponseDeliverTx `protobuf:"bytes,6,opt,name=deliver_tx,json=deliverTx,oneof"`
  790. }
  791. type Response_CheckTx struct {
  792. CheckTx *ResponseCheckTx `protobuf:"bytes,7,opt,name=check_tx,json=checkTx,oneof"`
  793. }
  794. type Response_Commit struct {
  795. Commit *ResponseCommit `protobuf:"bytes,8,opt,name=commit,oneof"`
  796. }
  797. type Response_Query struct {
  798. Query *ResponseQuery `protobuf:"bytes,9,opt,name=query,oneof"`
  799. }
  800. type Response_InitChain struct {
  801. InitChain *ResponseInitChain `protobuf:"bytes,10,opt,name=init_chain,json=initChain,oneof"`
  802. }
  803. type Response_BeginBlock struct {
  804. BeginBlock *ResponseBeginBlock `protobuf:"bytes,11,opt,name=begin_block,json=beginBlock,oneof"`
  805. }
  806. type Response_EndBlock struct {
  807. EndBlock *ResponseEndBlock `protobuf:"bytes,12,opt,name=end_block,json=endBlock,oneof"`
  808. }
  809. func (*Response_Exception) isResponse_Value() {}
  810. func (*Response_Echo) isResponse_Value() {}
  811. func (*Response_Flush) isResponse_Value() {}
  812. func (*Response_Info) isResponse_Value() {}
  813. func (*Response_SetOption) isResponse_Value() {}
  814. func (*Response_DeliverTx) isResponse_Value() {}
  815. func (*Response_CheckTx) isResponse_Value() {}
  816. func (*Response_Commit) isResponse_Value() {}
  817. func (*Response_Query) isResponse_Value() {}
  818. func (*Response_InitChain) isResponse_Value() {}
  819. func (*Response_BeginBlock) isResponse_Value() {}
  820. func (*Response_EndBlock) isResponse_Value() {}
  821. func (m *Response) GetValue() isResponse_Value {
  822. if m != nil {
  823. return m.Value
  824. }
  825. return nil
  826. }
  827. func (m *Response) GetException() *ResponseException {
  828. if x, ok := m.GetValue().(*Response_Exception); ok {
  829. return x.Exception
  830. }
  831. return nil
  832. }
  833. func (m *Response) GetEcho() *ResponseEcho {
  834. if x, ok := m.GetValue().(*Response_Echo); ok {
  835. return x.Echo
  836. }
  837. return nil
  838. }
  839. func (m *Response) GetFlush() *ResponseFlush {
  840. if x, ok := m.GetValue().(*Response_Flush); ok {
  841. return x.Flush
  842. }
  843. return nil
  844. }
  845. func (m *Response) GetInfo() *ResponseInfo {
  846. if x, ok := m.GetValue().(*Response_Info); ok {
  847. return x.Info
  848. }
  849. return nil
  850. }
  851. func (m *Response) GetSetOption() *ResponseSetOption {
  852. if x, ok := m.GetValue().(*Response_SetOption); ok {
  853. return x.SetOption
  854. }
  855. return nil
  856. }
  857. func (m *Response) GetDeliverTx() *ResponseDeliverTx {
  858. if x, ok := m.GetValue().(*Response_DeliverTx); ok {
  859. return x.DeliverTx
  860. }
  861. return nil
  862. }
  863. func (m *Response) GetCheckTx() *ResponseCheckTx {
  864. if x, ok := m.GetValue().(*Response_CheckTx); ok {
  865. return x.CheckTx
  866. }
  867. return nil
  868. }
  869. func (m *Response) GetCommit() *ResponseCommit {
  870. if x, ok := m.GetValue().(*Response_Commit); ok {
  871. return x.Commit
  872. }
  873. return nil
  874. }
  875. func (m *Response) GetQuery() *ResponseQuery {
  876. if x, ok := m.GetValue().(*Response_Query); ok {
  877. return x.Query
  878. }
  879. return nil
  880. }
  881. func (m *Response) GetInitChain() *ResponseInitChain {
  882. if x, ok := m.GetValue().(*Response_InitChain); ok {
  883. return x.InitChain
  884. }
  885. return nil
  886. }
  887. func (m *Response) GetBeginBlock() *ResponseBeginBlock {
  888. if x, ok := m.GetValue().(*Response_BeginBlock); ok {
  889. return x.BeginBlock
  890. }
  891. return nil
  892. }
  893. func (m *Response) GetEndBlock() *ResponseEndBlock {
  894. if x, ok := m.GetValue().(*Response_EndBlock); ok {
  895. return x.EndBlock
  896. }
  897. return nil
  898. }
  899. // XXX_OneofFuncs is for the internal use of the proto package.
  900. func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  901. return _Response_OneofMarshaler, _Response_OneofUnmarshaler, _Response_OneofSizer, []interface{}{
  902. (*Response_Exception)(nil),
  903. (*Response_Echo)(nil),
  904. (*Response_Flush)(nil),
  905. (*Response_Info)(nil),
  906. (*Response_SetOption)(nil),
  907. (*Response_DeliverTx)(nil),
  908. (*Response_CheckTx)(nil),
  909. (*Response_Commit)(nil),
  910. (*Response_Query)(nil),
  911. (*Response_InitChain)(nil),
  912. (*Response_BeginBlock)(nil),
  913. (*Response_EndBlock)(nil),
  914. }
  915. }
  916. func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  917. m := msg.(*Response)
  918. // value
  919. switch x := m.Value.(type) {
  920. case *Response_Exception:
  921. b.EncodeVarint(1<<3 | proto.WireBytes)
  922. if err := b.EncodeMessage(x.Exception); err != nil {
  923. return err
  924. }
  925. case *Response_Echo:
  926. b.EncodeVarint(2<<3 | proto.WireBytes)
  927. if err := b.EncodeMessage(x.Echo); err != nil {
  928. return err
  929. }
  930. case *Response_Flush:
  931. b.EncodeVarint(3<<3 | proto.WireBytes)
  932. if err := b.EncodeMessage(x.Flush); err != nil {
  933. return err
  934. }
  935. case *Response_Info:
  936. b.EncodeVarint(4<<3 | proto.WireBytes)
  937. if err := b.EncodeMessage(x.Info); err != nil {
  938. return err
  939. }
  940. case *Response_SetOption:
  941. b.EncodeVarint(5<<3 | proto.WireBytes)
  942. if err := b.EncodeMessage(x.SetOption); err != nil {
  943. return err
  944. }
  945. case *Response_DeliverTx:
  946. b.EncodeVarint(6<<3 | proto.WireBytes)
  947. if err := b.EncodeMessage(x.DeliverTx); err != nil {
  948. return err
  949. }
  950. case *Response_CheckTx:
  951. b.EncodeVarint(7<<3 | proto.WireBytes)
  952. if err := b.EncodeMessage(x.CheckTx); err != nil {
  953. return err
  954. }
  955. case *Response_Commit:
  956. b.EncodeVarint(8<<3 | proto.WireBytes)
  957. if err := b.EncodeMessage(x.Commit); err != nil {
  958. return err
  959. }
  960. case *Response_Query:
  961. b.EncodeVarint(9<<3 | proto.WireBytes)
  962. if err := b.EncodeMessage(x.Query); err != nil {
  963. return err
  964. }
  965. case *Response_InitChain:
  966. b.EncodeVarint(10<<3 | proto.WireBytes)
  967. if err := b.EncodeMessage(x.InitChain); err != nil {
  968. return err
  969. }
  970. case *Response_BeginBlock:
  971. b.EncodeVarint(11<<3 | proto.WireBytes)
  972. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  973. return err
  974. }
  975. case *Response_EndBlock:
  976. b.EncodeVarint(12<<3 | proto.WireBytes)
  977. if err := b.EncodeMessage(x.EndBlock); err != nil {
  978. return err
  979. }
  980. case nil:
  981. default:
  982. return fmt.Errorf("Response.Value has unexpected type %T", x)
  983. }
  984. return nil
  985. }
  986. func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  987. m := msg.(*Response)
  988. switch tag {
  989. case 1: // value.exception
  990. if wire != proto.WireBytes {
  991. return true, proto.ErrInternalBadWireType
  992. }
  993. msg := new(ResponseException)
  994. err := b.DecodeMessage(msg)
  995. m.Value = &Response_Exception{msg}
  996. return true, err
  997. case 2: // value.echo
  998. if wire != proto.WireBytes {
  999. return true, proto.ErrInternalBadWireType
  1000. }
  1001. msg := new(ResponseEcho)
  1002. err := b.DecodeMessage(msg)
  1003. m.Value = &Response_Echo{msg}
  1004. return true, err
  1005. case 3: // value.flush
  1006. if wire != proto.WireBytes {
  1007. return true, proto.ErrInternalBadWireType
  1008. }
  1009. msg := new(ResponseFlush)
  1010. err := b.DecodeMessage(msg)
  1011. m.Value = &Response_Flush{msg}
  1012. return true, err
  1013. case 4: // value.info
  1014. if wire != proto.WireBytes {
  1015. return true, proto.ErrInternalBadWireType
  1016. }
  1017. msg := new(ResponseInfo)
  1018. err := b.DecodeMessage(msg)
  1019. m.Value = &Response_Info{msg}
  1020. return true, err
  1021. case 5: // value.set_option
  1022. if wire != proto.WireBytes {
  1023. return true, proto.ErrInternalBadWireType
  1024. }
  1025. msg := new(ResponseSetOption)
  1026. err := b.DecodeMessage(msg)
  1027. m.Value = &Response_SetOption{msg}
  1028. return true, err
  1029. case 6: // value.deliver_tx
  1030. if wire != proto.WireBytes {
  1031. return true, proto.ErrInternalBadWireType
  1032. }
  1033. msg := new(ResponseDeliverTx)
  1034. err := b.DecodeMessage(msg)
  1035. m.Value = &Response_DeliverTx{msg}
  1036. return true, err
  1037. case 7: // value.check_tx
  1038. if wire != proto.WireBytes {
  1039. return true, proto.ErrInternalBadWireType
  1040. }
  1041. msg := new(ResponseCheckTx)
  1042. err := b.DecodeMessage(msg)
  1043. m.Value = &Response_CheckTx{msg}
  1044. return true, err
  1045. case 8: // value.commit
  1046. if wire != proto.WireBytes {
  1047. return true, proto.ErrInternalBadWireType
  1048. }
  1049. msg := new(ResponseCommit)
  1050. err := b.DecodeMessage(msg)
  1051. m.Value = &Response_Commit{msg}
  1052. return true, err
  1053. case 9: // value.query
  1054. if wire != proto.WireBytes {
  1055. return true, proto.ErrInternalBadWireType
  1056. }
  1057. msg := new(ResponseQuery)
  1058. err := b.DecodeMessage(msg)
  1059. m.Value = &Response_Query{msg}
  1060. return true, err
  1061. case 10: // value.init_chain
  1062. if wire != proto.WireBytes {
  1063. return true, proto.ErrInternalBadWireType
  1064. }
  1065. msg := new(ResponseInitChain)
  1066. err := b.DecodeMessage(msg)
  1067. m.Value = &Response_InitChain{msg}
  1068. return true, err
  1069. case 11: // value.begin_block
  1070. if wire != proto.WireBytes {
  1071. return true, proto.ErrInternalBadWireType
  1072. }
  1073. msg := new(ResponseBeginBlock)
  1074. err := b.DecodeMessage(msg)
  1075. m.Value = &Response_BeginBlock{msg}
  1076. return true, err
  1077. case 12: // value.end_block
  1078. if wire != proto.WireBytes {
  1079. return true, proto.ErrInternalBadWireType
  1080. }
  1081. msg := new(ResponseEndBlock)
  1082. err := b.DecodeMessage(msg)
  1083. m.Value = &Response_EndBlock{msg}
  1084. return true, err
  1085. default:
  1086. return false, nil
  1087. }
  1088. }
  1089. func _Response_OneofSizer(msg proto.Message) (n int) {
  1090. m := msg.(*Response)
  1091. // value
  1092. switch x := m.Value.(type) {
  1093. case *Response_Exception:
  1094. s := proto.Size(x.Exception)
  1095. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  1096. n += proto.SizeVarint(uint64(s))
  1097. n += s
  1098. case *Response_Echo:
  1099. s := proto.Size(x.Echo)
  1100. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  1101. n += proto.SizeVarint(uint64(s))
  1102. n += s
  1103. case *Response_Flush:
  1104. s := proto.Size(x.Flush)
  1105. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  1106. n += proto.SizeVarint(uint64(s))
  1107. n += s
  1108. case *Response_Info:
  1109. s := proto.Size(x.Info)
  1110. n += proto.SizeVarint(4<<3 | proto.WireBytes)
  1111. n += proto.SizeVarint(uint64(s))
  1112. n += s
  1113. case *Response_SetOption:
  1114. s := proto.Size(x.SetOption)
  1115. n += proto.SizeVarint(5<<3 | proto.WireBytes)
  1116. n += proto.SizeVarint(uint64(s))
  1117. n += s
  1118. case *Response_DeliverTx:
  1119. s := proto.Size(x.DeliverTx)
  1120. n += proto.SizeVarint(6<<3 | proto.WireBytes)
  1121. n += proto.SizeVarint(uint64(s))
  1122. n += s
  1123. case *Response_CheckTx:
  1124. s := proto.Size(x.CheckTx)
  1125. n += proto.SizeVarint(7<<3 | proto.WireBytes)
  1126. n += proto.SizeVarint(uint64(s))
  1127. n += s
  1128. case *Response_Commit:
  1129. s := proto.Size(x.Commit)
  1130. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  1131. n += proto.SizeVarint(uint64(s))
  1132. n += s
  1133. case *Response_Query:
  1134. s := proto.Size(x.Query)
  1135. n += proto.SizeVarint(9<<3 | proto.WireBytes)
  1136. n += proto.SizeVarint(uint64(s))
  1137. n += s
  1138. case *Response_InitChain:
  1139. s := proto.Size(x.InitChain)
  1140. n += proto.SizeVarint(10<<3 | proto.WireBytes)
  1141. n += proto.SizeVarint(uint64(s))
  1142. n += s
  1143. case *Response_BeginBlock:
  1144. s := proto.Size(x.BeginBlock)
  1145. n += proto.SizeVarint(11<<3 | proto.WireBytes)
  1146. n += proto.SizeVarint(uint64(s))
  1147. n += s
  1148. case *Response_EndBlock:
  1149. s := proto.Size(x.EndBlock)
  1150. n += proto.SizeVarint(12<<3 | proto.WireBytes)
  1151. n += proto.SizeVarint(uint64(s))
  1152. n += s
  1153. case nil:
  1154. default:
  1155. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1156. }
  1157. return n
  1158. }
  1159. type ResponseException struct {
  1160. Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  1161. }
  1162. func (m *ResponseException) Reset() { *m = ResponseException{} }
  1163. func (m *ResponseException) String() string { return proto.CompactTextString(m) }
  1164. func (*ResponseException) ProtoMessage() {}
  1165. func (*ResponseException) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  1166. func (m *ResponseException) GetError() string {
  1167. if m != nil {
  1168. return m.Error
  1169. }
  1170. return ""
  1171. }
  1172. type ResponseEcho struct {
  1173. Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
  1174. }
  1175. func (m *ResponseEcho) Reset() { *m = ResponseEcho{} }
  1176. func (m *ResponseEcho) String() string { return proto.CompactTextString(m) }
  1177. func (*ResponseEcho) ProtoMessage() {}
  1178. func (*ResponseEcho) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  1179. func (m *ResponseEcho) GetMessage() string {
  1180. if m != nil {
  1181. return m.Message
  1182. }
  1183. return ""
  1184. }
  1185. type ResponseFlush struct {
  1186. }
  1187. func (m *ResponseFlush) Reset() { *m = ResponseFlush{} }
  1188. func (m *ResponseFlush) String() string { return proto.CompactTextString(m) }
  1189. func (*ResponseFlush) ProtoMessage() {}
  1190. func (*ResponseFlush) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  1191. type ResponseInfo struct {
  1192. Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
  1193. Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
  1194. LastBlockHeight uint64 `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight" json:"last_block_height,omitempty"`
  1195. LastBlockAppHash []byte `protobuf:"bytes,4,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"`
  1196. }
  1197. func (m *ResponseInfo) Reset() { *m = ResponseInfo{} }
  1198. func (m *ResponseInfo) String() string { return proto.CompactTextString(m) }
  1199. func (*ResponseInfo) ProtoMessage() {}
  1200. func (*ResponseInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  1201. func (m *ResponseInfo) GetData() string {
  1202. if m != nil {
  1203. return m.Data
  1204. }
  1205. return ""
  1206. }
  1207. func (m *ResponseInfo) GetVersion() string {
  1208. if m != nil {
  1209. return m.Version
  1210. }
  1211. return ""
  1212. }
  1213. func (m *ResponseInfo) GetLastBlockHeight() uint64 {
  1214. if m != nil {
  1215. return m.LastBlockHeight
  1216. }
  1217. return 0
  1218. }
  1219. func (m *ResponseInfo) GetLastBlockAppHash() []byte {
  1220. if m != nil {
  1221. return m.LastBlockAppHash
  1222. }
  1223. return nil
  1224. }
  1225. type ResponseSetOption struct {
  1226. Log string `protobuf:"bytes,1,opt,name=log" json:"log,omitempty"`
  1227. }
  1228. func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} }
  1229. func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) }
  1230. func (*ResponseSetOption) ProtoMessage() {}
  1231. func (*ResponseSetOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  1232. func (m *ResponseSetOption) GetLog() string {
  1233. if m != nil {
  1234. return m.Log
  1235. }
  1236. return ""
  1237. }
  1238. type ResponseDeliverTx struct {
  1239. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1240. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1241. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1242. }
  1243. func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} }
  1244. func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) }
  1245. func (*ResponseDeliverTx) ProtoMessage() {}
  1246. func (*ResponseDeliverTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  1247. func (m *ResponseDeliverTx) GetCode() CodeType {
  1248. if m != nil {
  1249. return m.Code
  1250. }
  1251. return CodeType_OK
  1252. }
  1253. func (m *ResponseDeliverTx) GetData() []byte {
  1254. if m != nil {
  1255. return m.Data
  1256. }
  1257. return nil
  1258. }
  1259. func (m *ResponseDeliverTx) GetLog() string {
  1260. if m != nil {
  1261. return m.Log
  1262. }
  1263. return ""
  1264. }
  1265. type ResponseCheckTx struct {
  1266. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1267. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1268. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1269. }
  1270. func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} }
  1271. func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) }
  1272. func (*ResponseCheckTx) ProtoMessage() {}
  1273. func (*ResponseCheckTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  1274. func (m *ResponseCheckTx) GetCode() CodeType {
  1275. if m != nil {
  1276. return m.Code
  1277. }
  1278. return CodeType_OK
  1279. }
  1280. func (m *ResponseCheckTx) GetData() []byte {
  1281. if m != nil {
  1282. return m.Data
  1283. }
  1284. return nil
  1285. }
  1286. func (m *ResponseCheckTx) GetLog() string {
  1287. if m != nil {
  1288. return m.Log
  1289. }
  1290. return ""
  1291. }
  1292. type ResponseQuery struct {
  1293. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1294. Index int64 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
  1295. Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
  1296. Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
  1297. Proof []byte `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"`
  1298. Height uint64 `protobuf:"varint,6,opt,name=height" json:"height,omitempty"`
  1299. Log string `protobuf:"bytes,7,opt,name=log" json:"log,omitempty"`
  1300. }
  1301. func (m *ResponseQuery) Reset() { *m = ResponseQuery{} }
  1302. func (m *ResponseQuery) String() string { return proto.CompactTextString(m) }
  1303. func (*ResponseQuery) ProtoMessage() {}
  1304. func (*ResponseQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
  1305. func (m *ResponseQuery) GetCode() CodeType {
  1306. if m != nil {
  1307. return m.Code
  1308. }
  1309. return CodeType_OK
  1310. }
  1311. func (m *ResponseQuery) GetIndex() int64 {
  1312. if m != nil {
  1313. return m.Index
  1314. }
  1315. return 0
  1316. }
  1317. func (m *ResponseQuery) GetKey() []byte {
  1318. if m != nil {
  1319. return m.Key
  1320. }
  1321. return nil
  1322. }
  1323. func (m *ResponseQuery) GetValue() []byte {
  1324. if m != nil {
  1325. return m.Value
  1326. }
  1327. return nil
  1328. }
  1329. func (m *ResponseQuery) GetProof() []byte {
  1330. if m != nil {
  1331. return m.Proof
  1332. }
  1333. return nil
  1334. }
  1335. func (m *ResponseQuery) GetHeight() uint64 {
  1336. if m != nil {
  1337. return m.Height
  1338. }
  1339. return 0
  1340. }
  1341. func (m *ResponseQuery) GetLog() string {
  1342. if m != nil {
  1343. return m.Log
  1344. }
  1345. return ""
  1346. }
  1347. type ResponseCommit struct {
  1348. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1349. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1350. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1351. }
  1352. func (m *ResponseCommit) Reset() { *m = ResponseCommit{} }
  1353. func (m *ResponseCommit) String() string { return proto.CompactTextString(m) }
  1354. func (*ResponseCommit) ProtoMessage() {}
  1355. func (*ResponseCommit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
  1356. func (m *ResponseCommit) GetCode() CodeType {
  1357. if m != nil {
  1358. return m.Code
  1359. }
  1360. return CodeType_OK
  1361. }
  1362. func (m *ResponseCommit) GetData() []byte {
  1363. if m != nil {
  1364. return m.Data
  1365. }
  1366. return nil
  1367. }
  1368. func (m *ResponseCommit) GetLog() string {
  1369. if m != nil {
  1370. return m.Log
  1371. }
  1372. return ""
  1373. }
  1374. type ResponseInitChain struct {
  1375. }
  1376. func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} }
  1377. func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) }
  1378. func (*ResponseInitChain) ProtoMessage() {}
  1379. func (*ResponseInitChain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
  1380. type ResponseBeginBlock struct {
  1381. }
  1382. func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} }
  1383. func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) }
  1384. func (*ResponseBeginBlock) ProtoMessage() {}
  1385. func (*ResponseBeginBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
  1386. type ResponseEndBlock struct {
  1387. Diffs []*Validator `protobuf:"bytes,4,rep,name=diffs" json:"diffs,omitempty"`
  1388. }
  1389. func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} }
  1390. func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) }
  1391. func (*ResponseEndBlock) ProtoMessage() {}
  1392. func (*ResponseEndBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
  1393. func (m *ResponseEndBlock) GetDiffs() []*Validator {
  1394. if m != nil {
  1395. return m.Diffs
  1396. }
  1397. return nil
  1398. }
  1399. type Header struct {
  1400. ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"`
  1401. Height uint64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
  1402. Time uint64 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"`
  1403. NumTxs uint64 `protobuf:"varint,4,opt,name=num_txs,json=numTxs" json:"num_txs,omitempty"`
  1404. LastBlockId *BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId" json:"last_block_id,omitempty"`
  1405. LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
  1406. DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
  1407. ValidatorsHash []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`
  1408. AppHash []byte `protobuf:"bytes,9,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
  1409. }
  1410. func (m *Header) Reset() { *m = Header{} }
  1411. func (m *Header) String() string { return proto.CompactTextString(m) }
  1412. func (*Header) ProtoMessage() {}
  1413. func (*Header) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
  1414. func (m *Header) GetChainId() string {
  1415. if m != nil {
  1416. return m.ChainId
  1417. }
  1418. return ""
  1419. }
  1420. func (m *Header) GetHeight() uint64 {
  1421. if m != nil {
  1422. return m.Height
  1423. }
  1424. return 0
  1425. }
  1426. func (m *Header) GetTime() uint64 {
  1427. if m != nil {
  1428. return m.Time
  1429. }
  1430. return 0
  1431. }
  1432. func (m *Header) GetNumTxs() uint64 {
  1433. if m != nil {
  1434. return m.NumTxs
  1435. }
  1436. return 0
  1437. }
  1438. func (m *Header) GetLastBlockId() *BlockID {
  1439. if m != nil {
  1440. return m.LastBlockId
  1441. }
  1442. return nil
  1443. }
  1444. func (m *Header) GetLastCommitHash() []byte {
  1445. if m != nil {
  1446. return m.LastCommitHash
  1447. }
  1448. return nil
  1449. }
  1450. func (m *Header) GetDataHash() []byte {
  1451. if m != nil {
  1452. return m.DataHash
  1453. }
  1454. return nil
  1455. }
  1456. func (m *Header) GetValidatorsHash() []byte {
  1457. if m != nil {
  1458. return m.ValidatorsHash
  1459. }
  1460. return nil
  1461. }
  1462. func (m *Header) GetAppHash() []byte {
  1463. if m != nil {
  1464. return m.AppHash
  1465. }
  1466. return nil
  1467. }
  1468. type BlockID struct {
  1469. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
  1470. Parts *PartSetHeader `protobuf:"bytes,2,opt,name=parts" json:"parts,omitempty"`
  1471. }
  1472. func (m *BlockID) Reset() { *m = BlockID{} }
  1473. func (m *BlockID) String() string { return proto.CompactTextString(m) }
  1474. func (*BlockID) ProtoMessage() {}
  1475. func (*BlockID) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
  1476. func (m *BlockID) GetHash() []byte {
  1477. if m != nil {
  1478. return m.Hash
  1479. }
  1480. return nil
  1481. }
  1482. func (m *BlockID) GetParts() *PartSetHeader {
  1483. if m != nil {
  1484. return m.Parts
  1485. }
  1486. return nil
  1487. }
  1488. type PartSetHeader struct {
  1489. Total uint64 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"`
  1490. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
  1491. }
  1492. func (m *PartSetHeader) Reset() { *m = PartSetHeader{} }
  1493. func (m *PartSetHeader) String() string { return proto.CompactTextString(m) }
  1494. func (*PartSetHeader) ProtoMessage() {}
  1495. func (*PartSetHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
  1496. func (m *PartSetHeader) GetTotal() uint64 {
  1497. if m != nil {
  1498. return m.Total
  1499. }
  1500. return 0
  1501. }
  1502. func (m *PartSetHeader) GetHash() []byte {
  1503. if m != nil {
  1504. return m.Hash
  1505. }
  1506. return nil
  1507. }
  1508. type Validator struct {
  1509. PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
  1510. Power uint64 `protobuf:"varint,2,opt,name=power" json:"power,omitempty"`
  1511. }
  1512. func (m *Validator) Reset() { *m = Validator{} }
  1513. func (m *Validator) String() string { return proto.CompactTextString(m) }
  1514. func (*Validator) ProtoMessage() {}
  1515. func (*Validator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
  1516. func (m *Validator) GetPubKey() []byte {
  1517. if m != nil {
  1518. return m.PubKey
  1519. }
  1520. return nil
  1521. }
  1522. func (m *Validator) GetPower() uint64 {
  1523. if m != nil {
  1524. return m.Power
  1525. }
  1526. return 0
  1527. }
  1528. func init() {
  1529. proto.RegisterType((*Request)(nil), "types.Request")
  1530. proto.RegisterType((*RequestEcho)(nil), "types.RequestEcho")
  1531. proto.RegisterType((*RequestFlush)(nil), "types.RequestFlush")
  1532. proto.RegisterType((*RequestInfo)(nil), "types.RequestInfo")
  1533. proto.RegisterType((*RequestSetOption)(nil), "types.RequestSetOption")
  1534. proto.RegisterType((*RequestDeliverTx)(nil), "types.RequestDeliverTx")
  1535. proto.RegisterType((*RequestCheckTx)(nil), "types.RequestCheckTx")
  1536. proto.RegisterType((*RequestQuery)(nil), "types.RequestQuery")
  1537. proto.RegisterType((*RequestCommit)(nil), "types.RequestCommit")
  1538. proto.RegisterType((*RequestInitChain)(nil), "types.RequestInitChain")
  1539. proto.RegisterType((*RequestBeginBlock)(nil), "types.RequestBeginBlock")
  1540. proto.RegisterType((*RequestEndBlock)(nil), "types.RequestEndBlock")
  1541. proto.RegisterType((*Response)(nil), "types.Response")
  1542. proto.RegisterType((*ResponseException)(nil), "types.ResponseException")
  1543. proto.RegisterType((*ResponseEcho)(nil), "types.ResponseEcho")
  1544. proto.RegisterType((*ResponseFlush)(nil), "types.ResponseFlush")
  1545. proto.RegisterType((*ResponseInfo)(nil), "types.ResponseInfo")
  1546. proto.RegisterType((*ResponseSetOption)(nil), "types.ResponseSetOption")
  1547. proto.RegisterType((*ResponseDeliverTx)(nil), "types.ResponseDeliverTx")
  1548. proto.RegisterType((*ResponseCheckTx)(nil), "types.ResponseCheckTx")
  1549. proto.RegisterType((*ResponseQuery)(nil), "types.ResponseQuery")
  1550. proto.RegisterType((*ResponseCommit)(nil), "types.ResponseCommit")
  1551. proto.RegisterType((*ResponseInitChain)(nil), "types.ResponseInitChain")
  1552. proto.RegisterType((*ResponseBeginBlock)(nil), "types.ResponseBeginBlock")
  1553. proto.RegisterType((*ResponseEndBlock)(nil), "types.ResponseEndBlock")
  1554. proto.RegisterType((*Header)(nil), "types.Header")
  1555. proto.RegisterType((*BlockID)(nil), "types.BlockID")
  1556. proto.RegisterType((*PartSetHeader)(nil), "types.PartSetHeader")
  1557. proto.RegisterType((*Validator)(nil), "types.Validator")
  1558. proto.RegisterEnum("types.MessageType", MessageType_name, MessageType_value)
  1559. proto.RegisterEnum("types.CodeType", CodeType_name, CodeType_value)
  1560. }
  1561. // Reference imports to suppress errors if they are not otherwise used.
  1562. var _ context.Context
  1563. var _ grpc.ClientConn
  1564. // This is a compile-time assertion to ensure that this generated file
  1565. // is compatible with the grpc package it is being compiled against.
  1566. const _ = grpc.SupportPackageIsVersion4
  1567. // Client API for ABCIApplication service
  1568. type ABCIApplicationClient interface {
  1569. Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error)
  1570. Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error)
  1571. Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error)
  1572. SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error)
  1573. DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error)
  1574. CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error)
  1575. Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error)
  1576. Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error)
  1577. InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error)
  1578. BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error)
  1579. EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error)
  1580. }
  1581. type aBCIApplicationClient struct {
  1582. cc *grpc.ClientConn
  1583. }
  1584. func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient {
  1585. return &aBCIApplicationClient{cc}
  1586. }
  1587. func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) {
  1588. out := new(ResponseEcho)
  1589. err := grpc.Invoke(ctx, "/types.ABCIApplication/Echo", in, out, c.cc, opts...)
  1590. if err != nil {
  1591. return nil, err
  1592. }
  1593. return out, nil
  1594. }
  1595. func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) {
  1596. out := new(ResponseFlush)
  1597. err := grpc.Invoke(ctx, "/types.ABCIApplication/Flush", in, out, c.cc, opts...)
  1598. if err != nil {
  1599. return nil, err
  1600. }
  1601. return out, nil
  1602. }
  1603. func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) {
  1604. out := new(ResponseInfo)
  1605. err := grpc.Invoke(ctx, "/types.ABCIApplication/Info", in, out, c.cc, opts...)
  1606. if err != nil {
  1607. return nil, err
  1608. }
  1609. return out, nil
  1610. }
  1611. func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) {
  1612. out := new(ResponseSetOption)
  1613. err := grpc.Invoke(ctx, "/types.ABCIApplication/SetOption", in, out, c.cc, opts...)
  1614. if err != nil {
  1615. return nil, err
  1616. }
  1617. return out, nil
  1618. }
  1619. func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) {
  1620. out := new(ResponseDeliverTx)
  1621. err := grpc.Invoke(ctx, "/types.ABCIApplication/DeliverTx", in, out, c.cc, opts...)
  1622. if err != nil {
  1623. return nil, err
  1624. }
  1625. return out, nil
  1626. }
  1627. func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) {
  1628. out := new(ResponseCheckTx)
  1629. err := grpc.Invoke(ctx, "/types.ABCIApplication/CheckTx", in, out, c.cc, opts...)
  1630. if err != nil {
  1631. return nil, err
  1632. }
  1633. return out, nil
  1634. }
  1635. func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) {
  1636. out := new(ResponseQuery)
  1637. err := grpc.Invoke(ctx, "/types.ABCIApplication/Query", in, out, c.cc, opts...)
  1638. if err != nil {
  1639. return nil, err
  1640. }
  1641. return out, nil
  1642. }
  1643. func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) {
  1644. out := new(ResponseCommit)
  1645. err := grpc.Invoke(ctx, "/types.ABCIApplication/Commit", in, out, c.cc, opts...)
  1646. if err != nil {
  1647. return nil, err
  1648. }
  1649. return out, nil
  1650. }
  1651. func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) {
  1652. out := new(ResponseInitChain)
  1653. err := grpc.Invoke(ctx, "/types.ABCIApplication/InitChain", in, out, c.cc, opts...)
  1654. if err != nil {
  1655. return nil, err
  1656. }
  1657. return out, nil
  1658. }
  1659. func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) {
  1660. out := new(ResponseBeginBlock)
  1661. err := grpc.Invoke(ctx, "/types.ABCIApplication/BeginBlock", in, out, c.cc, opts...)
  1662. if err != nil {
  1663. return nil, err
  1664. }
  1665. return out, nil
  1666. }
  1667. func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) {
  1668. out := new(ResponseEndBlock)
  1669. err := grpc.Invoke(ctx, "/types.ABCIApplication/EndBlock", in, out, c.cc, opts...)
  1670. if err != nil {
  1671. return nil, err
  1672. }
  1673. return out, nil
  1674. }
  1675. // Server API for ABCIApplication service
  1676. type ABCIApplicationServer interface {
  1677. Echo(context.Context, *RequestEcho) (*ResponseEcho, error)
  1678. Flush(context.Context, *RequestFlush) (*ResponseFlush, error)
  1679. Info(context.Context, *RequestInfo) (*ResponseInfo, error)
  1680. SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error)
  1681. DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error)
  1682. CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error)
  1683. Query(context.Context, *RequestQuery) (*ResponseQuery, error)
  1684. Commit(context.Context, *RequestCommit) (*ResponseCommit, error)
  1685. InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error)
  1686. BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error)
  1687. EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error)
  1688. }
  1689. func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) {
  1690. s.RegisterService(&_ABCIApplication_serviceDesc, srv)
  1691. }
  1692. func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1693. in := new(RequestEcho)
  1694. if err := dec(in); err != nil {
  1695. return nil, err
  1696. }
  1697. if interceptor == nil {
  1698. return srv.(ABCIApplicationServer).Echo(ctx, in)
  1699. }
  1700. info := &grpc.UnaryServerInfo{
  1701. Server: srv,
  1702. FullMethod: "/types.ABCIApplication/Echo",
  1703. }
  1704. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1705. return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho))
  1706. }
  1707. return interceptor(ctx, in, info, handler)
  1708. }
  1709. func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1710. in := new(RequestFlush)
  1711. if err := dec(in); err != nil {
  1712. return nil, err
  1713. }
  1714. if interceptor == nil {
  1715. return srv.(ABCIApplicationServer).Flush(ctx, in)
  1716. }
  1717. info := &grpc.UnaryServerInfo{
  1718. Server: srv,
  1719. FullMethod: "/types.ABCIApplication/Flush",
  1720. }
  1721. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1722. return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush))
  1723. }
  1724. return interceptor(ctx, in, info, handler)
  1725. }
  1726. func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1727. in := new(RequestInfo)
  1728. if err := dec(in); err != nil {
  1729. return nil, err
  1730. }
  1731. if interceptor == nil {
  1732. return srv.(ABCIApplicationServer).Info(ctx, in)
  1733. }
  1734. info := &grpc.UnaryServerInfo{
  1735. Server: srv,
  1736. FullMethod: "/types.ABCIApplication/Info",
  1737. }
  1738. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1739. return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo))
  1740. }
  1741. return interceptor(ctx, in, info, handler)
  1742. }
  1743. func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1744. in := new(RequestSetOption)
  1745. if err := dec(in); err != nil {
  1746. return nil, err
  1747. }
  1748. if interceptor == nil {
  1749. return srv.(ABCIApplicationServer).SetOption(ctx, in)
  1750. }
  1751. info := &grpc.UnaryServerInfo{
  1752. Server: srv,
  1753. FullMethod: "/types.ABCIApplication/SetOption",
  1754. }
  1755. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1756. return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption))
  1757. }
  1758. return interceptor(ctx, in, info, handler)
  1759. }
  1760. func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1761. in := new(RequestDeliverTx)
  1762. if err := dec(in); err != nil {
  1763. return nil, err
  1764. }
  1765. if interceptor == nil {
  1766. return srv.(ABCIApplicationServer).DeliverTx(ctx, in)
  1767. }
  1768. info := &grpc.UnaryServerInfo{
  1769. Server: srv,
  1770. FullMethod: "/types.ABCIApplication/DeliverTx",
  1771. }
  1772. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1773. return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx))
  1774. }
  1775. return interceptor(ctx, in, info, handler)
  1776. }
  1777. func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1778. in := new(RequestCheckTx)
  1779. if err := dec(in); err != nil {
  1780. return nil, err
  1781. }
  1782. if interceptor == nil {
  1783. return srv.(ABCIApplicationServer).CheckTx(ctx, in)
  1784. }
  1785. info := &grpc.UnaryServerInfo{
  1786. Server: srv,
  1787. FullMethod: "/types.ABCIApplication/CheckTx",
  1788. }
  1789. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1790. return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx))
  1791. }
  1792. return interceptor(ctx, in, info, handler)
  1793. }
  1794. func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1795. in := new(RequestQuery)
  1796. if err := dec(in); err != nil {
  1797. return nil, err
  1798. }
  1799. if interceptor == nil {
  1800. return srv.(ABCIApplicationServer).Query(ctx, in)
  1801. }
  1802. info := &grpc.UnaryServerInfo{
  1803. Server: srv,
  1804. FullMethod: "/types.ABCIApplication/Query",
  1805. }
  1806. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1807. return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery))
  1808. }
  1809. return interceptor(ctx, in, info, handler)
  1810. }
  1811. func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1812. in := new(RequestCommit)
  1813. if err := dec(in); err != nil {
  1814. return nil, err
  1815. }
  1816. if interceptor == nil {
  1817. return srv.(ABCIApplicationServer).Commit(ctx, in)
  1818. }
  1819. info := &grpc.UnaryServerInfo{
  1820. Server: srv,
  1821. FullMethod: "/types.ABCIApplication/Commit",
  1822. }
  1823. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1824. return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit))
  1825. }
  1826. return interceptor(ctx, in, info, handler)
  1827. }
  1828. func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1829. in := new(RequestInitChain)
  1830. if err := dec(in); err != nil {
  1831. return nil, err
  1832. }
  1833. if interceptor == nil {
  1834. return srv.(ABCIApplicationServer).InitChain(ctx, in)
  1835. }
  1836. info := &grpc.UnaryServerInfo{
  1837. Server: srv,
  1838. FullMethod: "/types.ABCIApplication/InitChain",
  1839. }
  1840. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1841. return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain))
  1842. }
  1843. return interceptor(ctx, in, info, handler)
  1844. }
  1845. func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1846. in := new(RequestBeginBlock)
  1847. if err := dec(in); err != nil {
  1848. return nil, err
  1849. }
  1850. if interceptor == nil {
  1851. return srv.(ABCIApplicationServer).BeginBlock(ctx, in)
  1852. }
  1853. info := &grpc.UnaryServerInfo{
  1854. Server: srv,
  1855. FullMethod: "/types.ABCIApplication/BeginBlock",
  1856. }
  1857. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1858. return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock))
  1859. }
  1860. return interceptor(ctx, in, info, handler)
  1861. }
  1862. func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1863. in := new(RequestEndBlock)
  1864. if err := dec(in); err != nil {
  1865. return nil, err
  1866. }
  1867. if interceptor == nil {
  1868. return srv.(ABCIApplicationServer).EndBlock(ctx, in)
  1869. }
  1870. info := &grpc.UnaryServerInfo{
  1871. Server: srv,
  1872. FullMethod: "/types.ABCIApplication/EndBlock",
  1873. }
  1874. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1875. return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock))
  1876. }
  1877. return interceptor(ctx, in, info, handler)
  1878. }
  1879. var _ABCIApplication_serviceDesc = grpc.ServiceDesc{
  1880. ServiceName: "types.ABCIApplication",
  1881. HandlerType: (*ABCIApplicationServer)(nil),
  1882. Methods: []grpc.MethodDesc{
  1883. {
  1884. MethodName: "Echo",
  1885. Handler: _ABCIApplication_Echo_Handler,
  1886. },
  1887. {
  1888. MethodName: "Flush",
  1889. Handler: _ABCIApplication_Flush_Handler,
  1890. },
  1891. {
  1892. MethodName: "Info",
  1893. Handler: _ABCIApplication_Info_Handler,
  1894. },
  1895. {
  1896. MethodName: "SetOption",
  1897. Handler: _ABCIApplication_SetOption_Handler,
  1898. },
  1899. {
  1900. MethodName: "DeliverTx",
  1901. Handler: _ABCIApplication_DeliverTx_Handler,
  1902. },
  1903. {
  1904. MethodName: "CheckTx",
  1905. Handler: _ABCIApplication_CheckTx_Handler,
  1906. },
  1907. {
  1908. MethodName: "Query",
  1909. Handler: _ABCIApplication_Query_Handler,
  1910. },
  1911. {
  1912. MethodName: "Commit",
  1913. Handler: _ABCIApplication_Commit_Handler,
  1914. },
  1915. {
  1916. MethodName: "InitChain",
  1917. Handler: _ABCIApplication_InitChain_Handler,
  1918. },
  1919. {
  1920. MethodName: "BeginBlock",
  1921. Handler: _ABCIApplication_BeginBlock_Handler,
  1922. },
  1923. {
  1924. MethodName: "EndBlock",
  1925. Handler: _ABCIApplication_EndBlock_Handler,
  1926. },
  1927. },
  1928. Streams: []grpc.StreamDesc{},
  1929. Metadata: "types/types.proto",
  1930. }
  1931. func init() { proto.RegisterFile("types/types.proto", fileDescriptor0) }
  1932. var fileDescriptor0 = []byte{
  1933. // 1697 bytes of a gzipped FileDescriptorProto
  1934. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x58, 0x4b, 0x6f, 0x1b, 0x47,
  1935. 0x12, 0xf6, 0xf0, 0xcd, 0xa6, 0x44, 0xb6, 0x5a, 0x92, 0x4d, 0x73, 0xf7, 0x60, 0xcc, 0xc2, 0x6b,
  1936. 0x49, 0xeb, 0xb5, 0x17, 0x32, 0x76, 0xb1, 0x5a, 0x2f, 0x02, 0x48, 0xb2, 0x6c, 0x13, 0x86, 0x6d,
  1937. 0x65, 0xfc, 0xb8, 0x24, 0x08, 0x31, 0xe2, 0x34, 0xc5, 0x89, 0xa8, 0x99, 0xf1, 0x3c, 0x64, 0x29,
  1938. 0xbf, 0x21, 0xf7, 0xfc, 0x84, 0xdc, 0x03, 0xe4, 0x94, 0x7b, 0x80, 0xbc, 0x1f, 0xbf, 0x28, 0x55,
  1939. 0xdd, 0x3d, 0x4f, 0xcd, 0x18, 0x39, 0xf8, 0x42, 0x4c, 0x3d, 0xbb, 0xab, 0xab, 0xea, 0xeb, 0x6a,
  1940. 0x92, 0x95, 0xf0, 0xc2, 0xe3, 0xc1, 0x5d, 0xf1, 0x7b, 0xc7, 0xf3, 0xdd, 0xd0, 0x65, 0x4d, 0x41,
  1941. 0xe8, 0xdf, 0x36, 0x48, 0xdb, 0xe0, 0x6f, 0x22, 0x1e, 0x84, 0x6c, 0x83, 0x34, 0xf8, 0x74, 0xee,
  1942. 0x0e, 0xb5, 0x1b, 0xda, 0x46, 0x6f, 0x9b, 0xdd, 0x91, 0xea, 0x4a, 0x7a, 0x00, 0x92, 0xc7, 0x57,
  1943. 0x0c, 0xa1, 0xc1, 0xfe, 0x41, 0x9a, 0xb3, 0x45, 0x14, 0xcc, 0x87, 0x35, 0xa1, 0xba, 0x9a, 0x57,
  1944. 0x7d, 0x88, 0x22, 0xd0, 0x95, 0x3a, 0xe8, 0xd6, 0x76, 0x66, 0xee, 0xb0, 0x5e, 0xe6, 0x76, 0x0c,
  1945. 0x12, 0x74, 0x8b, 0x1a, 0xec, 0xbf, 0x84, 0x04, 0x3c, 0x9c, 0xb8, 0x5e, 0x68, 0xbb, 0xce, 0xb0,
  1946. 0x21, 0xf4, 0xaf, 0xe5, 0xf5, 0x5f, 0xf0, 0xf0, 0xb9, 0x10, 0x83, 0x51, 0x37, 0x88, 0x09, 0xb4,
  1947. 0xb4, 0xf8, 0xc2, 0x3e, 0xe3, 0xfe, 0x24, 0x3c, 0x1f, 0x36, 0xcb, 0x2c, 0x1f, 0x48, 0xf9, 0xcb,
  1948. 0x73, 0xb4, 0xb4, 0x62, 0x82, 0x6d, 0x93, 0xce, 0x74, 0xce, 0xa7, 0x27, 0x68, 0xd7, 0x12, 0x76,
  1949. 0xeb, 0x79, 0xbb, 0x7d, 0x94, 0x0a, 0xab, 0xf6, 0x54, 0x7e, 0xb2, 0x3b, 0xa4, 0x35, 0x75, 0x4f,
  1950. 0x4f, 0xed, 0x70, 0xd8, 0x16, 0x16, 0x6b, 0x05, 0x0b, 0x21, 0x03, 0x03, 0xa5, 0x85, 0xc7, 0x05,
  1951. 0x02, 0xff, 0x62, 0xd8, 0x29, 0x3b, 0xae, 0x0f, 0x51, 0x84, 0xc7, 0x25, 0x74, 0x30, 0x14, 0xdb,
  1952. 0xb1, 0xc3, 0xc9, 0x74, 0x6e, 0xda, 0xce, 0xb0, 0x5b, 0x16, 0xca, 0x18, 0xe4, 0xfb, 0x28, 0xc6,
  1953. 0x50, 0xec, 0x98, 0x60, 0xf7, 0x49, 0xef, 0x88, 0x1f, 0xdb, 0xce, 0xe4, 0x68, 0xe1, 0x4e, 0x4f,
  1954. 0x86, 0x44, 0x98, 0x0e, 0xf3, 0xa6, 0x7b, 0xa8, 0xb0, 0x87, 0x72, 0xb0, 0x25, 0x47, 0x09, 0xc5,
  1955. 0xfe, 0x4d, 0xba, 0xdc, 0xb1, 0x94, 0x69, 0x4f, 0x98, 0x5e, 0x2d, 0x54, 0x80, 0x63, 0xc5, 0x86,
  1956. 0x1d, 0xae, 0xbe, 0xf7, 0xda, 0xa4, 0x79, 0x66, 0x2e, 0x22, 0xae, 0xdf, 0x22, 0xbd, 0x4c, 0xa5,
  1957. 0xb0, 0x21, 0x69, 0x9f, 0xf2, 0x20, 0x30, 0x8f, 0xb9, 0x28, 0xa7, 0xae, 0x11, 0x93, 0x7a, 0x9f,
  1958. 0x2c, 0x65, 0xeb, 0x44, 0x5f, 0x4e, 0x0c, 0xb1, 0x16, 0xf4, 0xff, 0x11, 0x5a, 0x4c, 0x35, 0xa3,
  1959. 0xa4, 0x7e, 0xc2, 0x2f, 0x94, 0x23, 0xfc, 0x64, 0x6b, 0x6a, 0x59, 0x51, 0x80, 0x5d, 0x43, 0xed,
  1960. 0x41, 0x4f, 0x6c, 0x93, 0x64, 0xb3, 0x3e, 0xa9, 0x41, 0x66, 0xd1, 0x74, 0xc9, 0x80, 0x2f, 0xfd,
  1961. 0x06, 0xe9, 0xe7, 0x13, 0x7b, 0x49, 0xc3, 0x4a, 0x36, 0x28, 0x32, 0xc3, 0x18, 0x69, 0x58, 0x66,
  1962. 0x68, 0x2a, 0x0d, 0xf1, 0x8d, 0x3c, 0xcf, 0x0c, 0xe7, 0x6a, 0x79, 0xf1, 0xcd, 0xae, 0x92, 0xd6,
  1963. 0x9c, 0xdb, 0xc7, 0xf3, 0x50, 0x54, 0x7a, 0xc3, 0x50, 0x14, 0xee, 0x15, 0x5a, 0xee, 0x8c, 0x8b,
  1964. 0x82, 0xee, 0x18, 0x92, 0xd0, 0x07, 0x64, 0x39, 0x57, 0x2e, 0xfa, 0x83, 0x64, 0xf3, 0x49, 0x7a,
  1965. 0xd9, 0xbf, 0x08, 0x81, 0xc8, 0x6c, 0x58, 0xd2, 0xf5, 0x03, 0xd8, 0x40, 0x1d, 0xb2, 0x42, 0x55,
  1966. 0x56, 0x5e, 0xc7, 0x02, 0x23, 0xa3, 0xa3, 0x3f, 0x23, 0x2b, 0x97, 0x32, 0x8d, 0xbb, 0x9d, 0x9b,
  1967. 0xd0, 0xad, 0x2a, 0x02, 0xfc, 0x66, 0x37, 0x71, 0xb7, 0xa6, 0xc5, 0x7d, 0xd5, 0xc3, 0xcb, 0xca,
  1968. 0xed, 0x63, 0xc1, 0x34, 0x94, 0x50, 0xdf, 0x24, 0x83, 0x42, 0xfa, 0x33, 0x71, 0x6a, 0xd9, 0x38,
  1969. 0xf5, 0xcf, 0x9b, 0xa4, 0x63, 0xf0, 0xc0, 0x73, 0x9d, 0x80, 0x43, 0x15, 0x77, 0xf9, 0xf9, 0x94,
  1970. 0xcb, 0x4e, 0xd6, 0x0a, 0x95, 0x28, 0x75, 0x0e, 0x62, 0x39, 0x56, 0x71, 0xa2, 0xcc, 0x36, 0x15,
  1971. 0x0a, 0x15, 0xa1, 0x45, 0x19, 0x65, 0x61, 0xe8, 0x76, 0x0c, 0x43, 0xf5, 0x42, 0x1b, 0x4a, 0xdd,
  1972. 0x02, 0x0e, 0x6d, 0x2a, 0x1c, 0x6a, 0x94, 0x3a, 0xce, 0x01, 0xd1, 0x4e, 0x0e, 0x88, 0x9a, 0xa5,
  1973. 0xdb, 0xaf, 0x40, 0xa2, 0x9d, 0x1c, 0x12, 0xb5, 0x4a, 0x4d, 0x2b, 0xa0, 0xe8, 0x5e, 0x06, 0x8a,
  1974. 0xda, 0x85, 0x0e, 0x94, 0x86, 0x25, 0x58, 0x74, 0x37, 0xc1, 0xa2, 0x4e, 0x01, 0xbd, 0x94, 0x49,
  1975. 0x11, 0x8c, 0x6e, 0xc7, 0x60, 0xd4, 0x2d, 0x3d, 0xb4, 0x02, 0x1a, 0xed, 0xe4, 0xd0, 0x88, 0x94,
  1976. 0x86, 0x53, 0x01, 0x47, 0xff, 0xcf, 0xc3, 0x91, 0xc4, 0x94, 0xeb, 0x05, 0xdb, 0x4a, 0x3c, 0xfa,
  1977. 0x4f, 0x16, 0x8f, 0x96, 0x0a, 0x28, 0xa8, 0x6a, 0xe1, 0x9d, 0x80, 0xb4, 0x89, 0x9d, 0x50, 0xa8,
  1978. 0x34, 0xec, 0x45, 0xee, 0xfb, 0xae, 0xaf, 0xb0, 0x44, 0x12, 0xfa, 0x06, 0x76, 0x7c, 0x5a, 0x5f,
  1979. 0xef, 0x00, 0x2f, 0xd1, 0xb5, 0x99, 0xea, 0xd2, 0xbf, 0xd0, 0x52, 0x5b, 0x2c, 0xa1, 0x1c, 0x5a,
  1980. 0x74, 0x15, 0x5a, 0x80, 0x3f, 0xc8, 0x70, 0x80, 0xb5, 0x24, 0x01, 0x23, 0x26, 0xd9, 0x16, 0x59,
  1981. 0x59, 0x98, 0x41, 0x28, 0xc3, 0x9c, 0xe4, 0xe0, 0x63, 0x80, 0x02, 0x19, 0x9f, 0xc4, 0x91, 0x7f,
  1982. 0x92, 0xd5, 0x8c, 0xae, 0xe9, 0x79, 0x13, 0xd1, 0xd4, 0x0d, 0xd1, 0xd4, 0x34, 0xd1, 0xde, 0xf5,
  1983. 0xbc, 0xc7, 0xc0, 0xd7, 0x6f, 0xa6, 0xf1, 0xe7, 0x90, 0x74, 0xe1, 0x1e, 0xc7, 0x48, 0x0a, 0x9f,
  1984. 0xfa, 0x27, 0xa9, 0x5a, 0x0a, 0x9a, 0x7f, 0x23, 0x8d, 0xa9, 0x6b, 0xc9, 0xe8, 0xfb, 0xdb, 0x03,
  1985. 0x75, 0xee, 0xfb, 0xc0, 0x7a, 0x09, 0x5f, 0x86, 0x10, 0x26, 0x91, 0xd6, 0x32, 0xb8, 0xa8, 0xfc,
  1986. 0xd7, 0x53, 0xff, 0x1f, 0x23, 0x80, 0xe4, 0xaa, 0xf7, 0x7d, 0x7a, 0xff, 0x4a, 0x4b, 0x13, 0x22,
  1987. 0xd1, 0xfa, 0x4f, 0x39, 0x87, 0x32, 0xb0, 0x1d, 0x8b, 0x9f, 0x0b, 0xef, 0x75, 0x43, 0x12, 0xf1,
  1988. 0x35, 0x53, 0x17, 0x2b, 0xe6, 0xaf, 0x19, 0x79, 0xc8, 0x92, 0x50, 0x80, 0xee, 0xce, 0x04, 0x30,
  1989. 0x2c, 0x19, 0x92, 0xc8, 0xc0, 0x62, 0x2b, 0x07, 0xff, 0x6a, 0xd3, 0xed, 0x74, 0xd3, 0x1f, 0xe1,
  1990. 0x15, 0x94, 0xed, 0xce, 0xf7, 0x79, 0x22, 0xab, 0x69, 0x3e, 0x93, 0xbe, 0xd4, 0xd7, 0x08, 0xbb,
  1991. 0xdc, 0x70, 0xf2, 0xaa, 0xcd, 0xb7, 0x12, 0xfb, 0x3b, 0x69, 0x5a, 0xf6, 0x6c, 0x16, 0x40, 0xc4,
  1992. 0xe5, 0x97, 0x8d, 0x14, 0xeb, 0x5f, 0xd6, 0x48, 0x4b, 0x5e, 0x15, 0xec, 0x3a, 0xc2, 0x16, 0xac,
  1993. 0x32, 0xb1, 0xad, 0xb8, 0x5d, 0x04, 0x3d, 0xb6, 0x32, 0x67, 0x52, 0xcb, 0x9d, 0x09, 0x84, 0x12,
  1994. 0xda, 0xa7, 0x5c, 0x55, 0xba, 0xf8, 0x66, 0xd7, 0x48, 0xdb, 0x89, 0x4e, 0x01, 0xfb, 0x02, 0x71,
  1995. 0xda, 0xa0, 0x0c, 0xe4, 0xcb, 0xf3, 0x00, 0x26, 0xb4, 0xe5, 0x4c, 0xdd, 0xc3, 0x22, 0x12, 0x8f,
  1996. 0xfb, 0x6a, 0x6b, 0x62, 0xdf, 0xe3, 0x07, 0x46, 0x2f, 0xe9, 0x00, 0x58, 0x78, 0x83, 0x88, 0x86,
  1997. 0x98, 0x48, 0xcc, 0x93, 0x8d, 0xd2, 0x12, 0xe7, 0xd6, 0x47, 0xbe, 0x02, 0x45, 0xbc, 0x07, 0xff,
  1998. 0x42, 0xba, 0x78, 0x92, 0x52, 0xa5, 0x2d, 0x54, 0x3a, 0xc8, 0x10, 0xc2, 0x5b, 0x64, 0x90, 0xde,
  1999. 0xad, 0x52, 0xa5, 0x23, 0xbd, 0xa4, 0x6c, 0xa1, 0x08, 0x67, 0x90, 0x34, 0x64, 0x57, 0x68, 0xb4,
  2000. 0x4d, 0xd5, 0x87, 0x63, 0xd2, 0x56, 0x5b, 0x2c, 0xbd, 0x87, 0xb7, 0xa0, 0x98, 0x4c, 0x3f, 0x0c,
  2001. 0xd4, 0x7d, 0x17, 0xc3, 0xf1, 0x21, 0xf0, 0xa0, 0x6d, 0xd5, 0x6d, 0x2c, 0x55, 0xf4, 0x1d, 0xb2,
  2002. 0x9c, 0xe3, 0x63, 0x25, 0x86, 0x6e, 0x68, 0x2e, 0xd4, 0x4d, 0x2c, 0x89, 0x64, 0x99, 0x5a, 0xba,
  2003. 0x0c, 0x98, 0x76, 0x93, 0x1c, 0x62, 0x5a, 0xbc, 0xe8, 0xe8, 0x89, 0x1a, 0xa9, 0x96, 0x0c, 0x45,
  2004. 0x89, 0xc2, 0x76, 0xdf, 0xaa, 0x91, 0x00, 0xdc, 0x09, 0x62, 0xeb, 0x1b, 0x8d, 0xf4, 0x9e, 0x4a,
  2005. 0xfc, 0xc3, 0x6a, 0x64, 0x03, 0xd2, 0x7b, 0x16, 0x2d, 0x16, 0x8a, 0x45, 0xaf, 0xb0, 0x0e, 0x69,
  2006. 0x20, 0x6c, 0x52, 0x8d, 0x75, 0x49, 0x53, 0xc0, 0x22, 0xad, 0x21, 0x13, 0xf1, 0x90, 0xd6, 0xd9,
  2007. 0x32, 0xe9, 0x26, 0x00, 0x44, 0x1b, 0x48, 0x26, 0x78, 0x4c, 0x9b, 0x48, 0x26, 0xb8, 0x43, 0x57,
  2008. 0x58, 0x8f, 0xb4, 0x15, 0x4c, 0x50, 0x88, 0x83, 0xb4, 0x64, 0xa6, 0xe8, 0x2a, 0xba, 0x16, 0x0d,
  2009. 0x4e, 0xd7, 0xd0, 0x24, 0x29, 0x6d, 0xba, 0x0e, 0xf3, 0x1b, 0x49, 0x8b, 0x9a, 0x5e, 0x65, 0x4b,
  2010. 0xa4, 0x13, 0x97, 0x33, 0xbd, 0xb6, 0xf5, 0x35, 0x4c, 0x25, 0x71, 0x23, 0xb1, 0x16, 0xa9, 0x3d,
  2011. 0x7f, 0x02, 0x3b, 0x5e, 0x21, 0xcb, 0x63, 0x27, 0xe4, 0xbe, 0x63, 0x2e, 0x0e, 0xf0, 0x06, 0x80,
  2012. 0xad, 0x03, 0xeb, 0xc0, 0x81, 0x3e, 0xb3, 0x9d, 0x63, 0xc9, 0xaa, 0xa1, 0xa3, 0x3d, 0xd3, 0x7a,
  2013. 0xe6, 0x3a, 0x53, 0x0e, 0x61, 0x50, 0xb2, 0xf4, 0xca, 0x31, 0xa3, 0x70, 0xee, 0xfa, 0xf6, 0x67,
  2014. 0xdc, 0x82, 0x48, 0xd6, 0xc9, 0xca, 0xd8, 0x09, 0xa2, 0xd9, 0xcc, 0x9e, 0xda, 0xdc, 0x09, 0x1f,
  2015. 0x46, 0x8e, 0x15, 0x40, 0x44, 0x8c, 0xf4, 0x5f, 0x39, 0x27, 0x8e, 0xfb, 0xd6, 0x51, 0x93, 0x13,
  2016. 0x6d, 0xc1, 0x0d, 0xb0, 0xb6, 0x67, 0x02, 0xc2, 0x46, 0xde, 0xc2, 0x9e, 0x9a, 0x21, 0xdf, 0xb5,
  2017. 0x2c, 0x1f, 0xce, 0x8f, 0x72, 0x74, 0x82, 0x92, 0xfc, 0xda, 0xb3, 0xd8, 0x20, 0xe7, 0x9f, 0xf3,
  2018. 0x80, 0x1e, 0x43, 0xa9, 0xad, 0x5f, 0x92, 0x88, 0x95, 0xe7, 0xec, 0xaf, 0x64, 0x58, 0x14, 0x3d,
  2019. 0x32, 0x83, 0x43, 0xdf, 0x86, 0x00, 0x6c, 0xc8, 0x2e, 0x95, 0x52, 0x51, 0xbb, 0x63, 0xc7, 0x8b,
  2020. 0x42, 0xfa, 0x69, 0xbc, 0xbe, 0xe2, 0x3e, 0x8f, 0x42, 0x64, 0x9f, 0x14, 0xd8, 0x87, 0xa2, 0x3e,
  2021. 0xe8, 0x02, 0x9a, 0x74, 0x35, 0xc3, 0x7e, 0x81, 0xf1, 0xe1, 0xe9, 0x9c, 0xa6, 0xfb, 0x95, 0x02,
  2022. 0xfb, 0xd8, 0x31, 0xc3, 0xc8, 0xe7, 0xd4, 0x81, 0x62, 0x63, 0x28, 0x51, 0x47, 0x12, 0x07, 0xee,
  2023. 0xc6, 0x2b, 0x28, 0xbe, 0x5a, 0xc1, 0x2b, 0xb2, 0x17, 0x11, 0x64, 0x96, 0xbe, 0x01, 0x36, 0x7d,
  2024. 0xe4, 0x9e, 0x29, 0xee, 0x81, 0x13, 0xda, 0xe1, 0x05, 0xfd, 0x4e, 0x83, 0x98, 0x06, 0x29, 0xfb,
  2025. 0x91, 0xef, 0x46, 0x1e, 0xfd, 0x5e, 0x83, 0x5d, 0xb2, 0x94, 0x7b, 0xe8, 0xbb, 0x9e, 0x1b, 0x98,
  2026. 0x0b, 0xfa, 0x83, 0x06, 0x7b, 0x59, 0x01, 0x41, 0x92, 0x05, 0x69, 0xf0, 0x63, 0x6c, 0x90, 0xf0,
  2027. 0x9f, 0xf2, 0xd3, 0x23, 0xee, 0xd3, 0x9f, 0x34, 0x38, 0xec, 0xb5, 0xac, 0x20, 0xf1, 0xf5, 0xb3,
  2028. 0xa6, 0x76, 0x94, 0x88, 0x5e, 0xbb, 0x21, 0xa7, 0xbf, 0xc4, 0x6c, 0x75, 0x0e, 0xca, 0xd1, 0xaf,
  2029. 0x1a, 0x5b, 0x25, 0xfd, 0x94, 0x2d, 0x74, 0x7f, 0xd3, 0xd8, 0x88, 0xac, 0xe7, 0x98, 0x90, 0xff,
  2030. 0x43, 0x6c, 0x39, 0xfa, 0xbb, 0xb6, 0x0d, 0xd3, 0xf4, 0x60, 0x77, 0x6f, 0x7f, 0x0c, 0xd7, 0xb9,
  2031. 0x58, 0x00, 0x6f, 0xef, 0xbb, 0xb2, 0xd1, 0x58, 0xc9, 0xd3, 0x7c, 0x54, 0x36, 0x28, 0x03, 0x74,
  2032. 0xca, 0x7e, 0x64, 0x65, 0x2f, 0xf4, 0x51, 0xe9, 0xbc, 0x8c, 0x8b, 0xc8, 0x41, 0xe6, 0xf2, 0x43,
  2033. 0x7d, 0x54, 0x36, 0x34, 0xb3, 0x0f, 0x32, 0xfd, 0xcd, 0xaa, 0x9e, 0xeb, 0xa3, 0xca, 0xf1, 0x19,
  2034. 0xed, 0xd3, 0xc9, 0xa3, 0xea, 0xd1, 0x3e, 0xaa, 0x9c, 0xa1, 0xe1, 0xa9, 0x11, 0x43, 0x06, 0x2b,
  2035. 0x7f, 0xba, 0x8f, 0x2a, 0xc6, 0x68, 0x3c, 0x1e, 0x39, 0x34, 0x94, 0xbd, 0xc8, 0x47, 0xa5, 0x93,
  2036. 0x31, 0xbc, 0x93, 0x15, 0x26, 0xb1, 0xd2, 0x57, 0xff, 0xa8, 0x7c, 0xfe, 0xc6, 0x20, 0xd3, 0x67,
  2037. 0x5d, 0xd5, 0x73, 0x7e, 0x54, 0x39, 0x59, 0xb3, 0xdd, 0x2c, 0xc8, 0xb1, 0xca, 0x47, 0xfd, 0xa8,
  2038. 0x7a, 0xbe, 0x66, 0xf7, 0x53, 0x5c, 0x64, 0x15, 0x4f, 0xfb, 0x51, 0xd5, 0x88, 0x7d, 0xd4, 0x12,
  2039. 0xff, 0x1a, 0xdd, 0xfb, 0x23, 0x00, 0x00, 0xff, 0xff, 0x73, 0x34, 0x90, 0x2d, 0x4a, 0x12, 0x00,
  2040. 0x00,
  2041. }