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.

15320 lines
357 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 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-gogo. DO NOT EDIT.
  2. // source: abci/types/types.proto
  3. package types
  4. import proto "github.com/gogo/protobuf/proto"
  5. import golang_proto "github.com/golang/protobuf/proto"
  6. import fmt "fmt"
  7. import math "math"
  8. import _ "github.com/gogo/protobuf/gogoproto"
  9. import _ "github.com/golang/protobuf/ptypes/timestamp"
  10. import merkle "github.com/tendermint/tendermint/crypto/merkle"
  11. import common "github.com/tendermint/tendermint/libs/common"
  12. import time "time"
  13. import bytes "bytes"
  14. import (
  15. context "golang.org/x/net/context"
  16. grpc "google.golang.org/grpc"
  17. )
  18. import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  19. import io "io"
  20. // Reference imports to suppress errors if they are not otherwise used.
  21. var _ = proto.Marshal
  22. var _ = golang_proto.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. var _ = time.Kitchen
  26. // This is a compile-time assertion to ensure that this generated file
  27. // is compatible with the proto package it is being compiled against.
  28. // A compilation error at this line likely means your copy of the
  29. // proto package needs to be updated.
  30. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  31. type Request struct {
  32. // Types that are valid to be assigned to Value:
  33. // *Request_Echo
  34. // *Request_Flush
  35. // *Request_Info
  36. // *Request_SetOption
  37. // *Request_InitChain
  38. // *Request_Query
  39. // *Request_BeginBlock
  40. // *Request_CheckTx
  41. // *Request_DeliverTx
  42. // *Request_EndBlock
  43. // *Request_Commit
  44. Value isRequest_Value `protobuf_oneof:"value"`
  45. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  46. XXX_unrecognized []byte `json:"-"`
  47. XXX_sizecache int32 `json:"-"`
  48. }
  49. func (m *Request) Reset() { *m = Request{} }
  50. func (m *Request) String() string { return proto.CompactTextString(m) }
  51. func (*Request) ProtoMessage() {}
  52. func (*Request) Descriptor() ([]byte, []int) {
  53. return fileDescriptor_types_5b877df1938afe10, []int{0}
  54. }
  55. func (m *Request) XXX_Unmarshal(b []byte) error {
  56. return m.Unmarshal(b)
  57. }
  58. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  59. if deterministic {
  60. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  61. } else {
  62. b = b[:cap(b)]
  63. n, err := m.MarshalTo(b)
  64. if err != nil {
  65. return nil, err
  66. }
  67. return b[:n], nil
  68. }
  69. }
  70. func (dst *Request) XXX_Merge(src proto.Message) {
  71. xxx_messageInfo_Request.Merge(dst, src)
  72. }
  73. func (m *Request) XXX_Size() int {
  74. return m.Size()
  75. }
  76. func (m *Request) XXX_DiscardUnknown() {
  77. xxx_messageInfo_Request.DiscardUnknown(m)
  78. }
  79. var xxx_messageInfo_Request proto.InternalMessageInfo
  80. type isRequest_Value interface {
  81. isRequest_Value()
  82. Equal(interface{}) bool
  83. MarshalTo([]byte) (int, error)
  84. Size() int
  85. }
  86. type Request_Echo struct {
  87. Echo *RequestEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
  88. }
  89. type Request_Flush struct {
  90. Flush *RequestFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
  91. }
  92. type Request_Info struct {
  93. Info *RequestInfo `protobuf:"bytes,4,opt,name=info,oneof"`
  94. }
  95. type Request_SetOption struct {
  96. SetOption *RequestSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
  97. }
  98. type Request_InitChain struct {
  99. InitChain *RequestInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,oneof"`
  100. }
  101. type Request_Query struct {
  102. Query *RequestQuery `protobuf:"bytes,7,opt,name=query,oneof"`
  103. }
  104. type Request_BeginBlock struct {
  105. BeginBlock *RequestBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,oneof"`
  106. }
  107. type Request_CheckTx struct {
  108. CheckTx *RequestCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,oneof"`
  109. }
  110. type Request_DeliverTx struct {
  111. DeliverTx *RequestDeliverTx `protobuf:"bytes,19,opt,name=deliver_tx,json=deliverTx,oneof"`
  112. }
  113. type Request_EndBlock struct {
  114. EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
  115. }
  116. type Request_Commit struct {
  117. Commit *RequestCommit `protobuf:"bytes,12,opt,name=commit,oneof"`
  118. }
  119. func (*Request_Echo) isRequest_Value() {}
  120. func (*Request_Flush) isRequest_Value() {}
  121. func (*Request_Info) isRequest_Value() {}
  122. func (*Request_SetOption) isRequest_Value() {}
  123. func (*Request_InitChain) isRequest_Value() {}
  124. func (*Request_Query) isRequest_Value() {}
  125. func (*Request_BeginBlock) isRequest_Value() {}
  126. func (*Request_CheckTx) isRequest_Value() {}
  127. func (*Request_DeliverTx) isRequest_Value() {}
  128. func (*Request_EndBlock) isRequest_Value() {}
  129. func (*Request_Commit) isRequest_Value() {}
  130. func (m *Request) GetValue() isRequest_Value {
  131. if m != nil {
  132. return m.Value
  133. }
  134. return nil
  135. }
  136. func (m *Request) GetEcho() *RequestEcho {
  137. if x, ok := m.GetValue().(*Request_Echo); ok {
  138. return x.Echo
  139. }
  140. return nil
  141. }
  142. func (m *Request) GetFlush() *RequestFlush {
  143. if x, ok := m.GetValue().(*Request_Flush); ok {
  144. return x.Flush
  145. }
  146. return nil
  147. }
  148. func (m *Request) GetInfo() *RequestInfo {
  149. if x, ok := m.GetValue().(*Request_Info); ok {
  150. return x.Info
  151. }
  152. return nil
  153. }
  154. func (m *Request) GetSetOption() *RequestSetOption {
  155. if x, ok := m.GetValue().(*Request_SetOption); ok {
  156. return x.SetOption
  157. }
  158. return nil
  159. }
  160. func (m *Request) GetInitChain() *RequestInitChain {
  161. if x, ok := m.GetValue().(*Request_InitChain); ok {
  162. return x.InitChain
  163. }
  164. return nil
  165. }
  166. func (m *Request) GetQuery() *RequestQuery {
  167. if x, ok := m.GetValue().(*Request_Query); ok {
  168. return x.Query
  169. }
  170. return nil
  171. }
  172. func (m *Request) GetBeginBlock() *RequestBeginBlock {
  173. if x, ok := m.GetValue().(*Request_BeginBlock); ok {
  174. return x.BeginBlock
  175. }
  176. return nil
  177. }
  178. func (m *Request) GetCheckTx() *RequestCheckTx {
  179. if x, ok := m.GetValue().(*Request_CheckTx); ok {
  180. return x.CheckTx
  181. }
  182. return nil
  183. }
  184. func (m *Request) GetDeliverTx() *RequestDeliverTx {
  185. if x, ok := m.GetValue().(*Request_DeliverTx); ok {
  186. return x.DeliverTx
  187. }
  188. return nil
  189. }
  190. func (m *Request) GetEndBlock() *RequestEndBlock {
  191. if x, ok := m.GetValue().(*Request_EndBlock); ok {
  192. return x.EndBlock
  193. }
  194. return nil
  195. }
  196. func (m *Request) GetCommit() *RequestCommit {
  197. if x, ok := m.GetValue().(*Request_Commit); ok {
  198. return x.Commit
  199. }
  200. return nil
  201. }
  202. // XXX_OneofFuncs is for the internal use of the proto package.
  203. 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{}) {
  204. return _Request_OneofMarshaler, _Request_OneofUnmarshaler, _Request_OneofSizer, []interface{}{
  205. (*Request_Echo)(nil),
  206. (*Request_Flush)(nil),
  207. (*Request_Info)(nil),
  208. (*Request_SetOption)(nil),
  209. (*Request_InitChain)(nil),
  210. (*Request_Query)(nil),
  211. (*Request_BeginBlock)(nil),
  212. (*Request_CheckTx)(nil),
  213. (*Request_DeliverTx)(nil),
  214. (*Request_EndBlock)(nil),
  215. (*Request_Commit)(nil),
  216. }
  217. }
  218. func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  219. m := msg.(*Request)
  220. // value
  221. switch x := m.Value.(type) {
  222. case *Request_Echo:
  223. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  224. if err := b.EncodeMessage(x.Echo); err != nil {
  225. return err
  226. }
  227. case *Request_Flush:
  228. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  229. if err := b.EncodeMessage(x.Flush); err != nil {
  230. return err
  231. }
  232. case *Request_Info:
  233. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  234. if err := b.EncodeMessage(x.Info); err != nil {
  235. return err
  236. }
  237. case *Request_SetOption:
  238. _ = b.EncodeVarint(5<<3 | proto.WireBytes)
  239. if err := b.EncodeMessage(x.SetOption); err != nil {
  240. return err
  241. }
  242. case *Request_InitChain:
  243. _ = b.EncodeVarint(6<<3 | proto.WireBytes)
  244. if err := b.EncodeMessage(x.InitChain); err != nil {
  245. return err
  246. }
  247. case *Request_Query:
  248. _ = b.EncodeVarint(7<<3 | proto.WireBytes)
  249. if err := b.EncodeMessage(x.Query); err != nil {
  250. return err
  251. }
  252. case *Request_BeginBlock:
  253. _ = b.EncodeVarint(8<<3 | proto.WireBytes)
  254. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  255. return err
  256. }
  257. case *Request_CheckTx:
  258. _ = b.EncodeVarint(9<<3 | proto.WireBytes)
  259. if err := b.EncodeMessage(x.CheckTx); err != nil {
  260. return err
  261. }
  262. case *Request_DeliverTx:
  263. _ = b.EncodeVarint(19<<3 | proto.WireBytes)
  264. if err := b.EncodeMessage(x.DeliverTx); err != nil {
  265. return err
  266. }
  267. case *Request_EndBlock:
  268. _ = b.EncodeVarint(11<<3 | proto.WireBytes)
  269. if err := b.EncodeMessage(x.EndBlock); err != nil {
  270. return err
  271. }
  272. case *Request_Commit:
  273. _ = b.EncodeVarint(12<<3 | proto.WireBytes)
  274. if err := b.EncodeMessage(x.Commit); err != nil {
  275. return err
  276. }
  277. case nil:
  278. default:
  279. return fmt.Errorf("Request.Value has unexpected type %T", x)
  280. }
  281. return nil
  282. }
  283. func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  284. m := msg.(*Request)
  285. switch tag {
  286. case 2: // value.echo
  287. if wire != proto.WireBytes {
  288. return true, proto.ErrInternalBadWireType
  289. }
  290. msg := new(RequestEcho)
  291. err := b.DecodeMessage(msg)
  292. m.Value = &Request_Echo{msg}
  293. return true, err
  294. case 3: // value.flush
  295. if wire != proto.WireBytes {
  296. return true, proto.ErrInternalBadWireType
  297. }
  298. msg := new(RequestFlush)
  299. err := b.DecodeMessage(msg)
  300. m.Value = &Request_Flush{msg}
  301. return true, err
  302. case 4: // value.info
  303. if wire != proto.WireBytes {
  304. return true, proto.ErrInternalBadWireType
  305. }
  306. msg := new(RequestInfo)
  307. err := b.DecodeMessage(msg)
  308. m.Value = &Request_Info{msg}
  309. return true, err
  310. case 5: // value.set_option
  311. if wire != proto.WireBytes {
  312. return true, proto.ErrInternalBadWireType
  313. }
  314. msg := new(RequestSetOption)
  315. err := b.DecodeMessage(msg)
  316. m.Value = &Request_SetOption{msg}
  317. return true, err
  318. case 6: // value.init_chain
  319. if wire != proto.WireBytes {
  320. return true, proto.ErrInternalBadWireType
  321. }
  322. msg := new(RequestInitChain)
  323. err := b.DecodeMessage(msg)
  324. m.Value = &Request_InitChain{msg}
  325. return true, err
  326. case 7: // value.query
  327. if wire != proto.WireBytes {
  328. return true, proto.ErrInternalBadWireType
  329. }
  330. msg := new(RequestQuery)
  331. err := b.DecodeMessage(msg)
  332. m.Value = &Request_Query{msg}
  333. return true, err
  334. case 8: // value.begin_block
  335. if wire != proto.WireBytes {
  336. return true, proto.ErrInternalBadWireType
  337. }
  338. msg := new(RequestBeginBlock)
  339. err := b.DecodeMessage(msg)
  340. m.Value = &Request_BeginBlock{msg}
  341. return true, err
  342. case 9: // value.check_tx
  343. if wire != proto.WireBytes {
  344. return true, proto.ErrInternalBadWireType
  345. }
  346. msg := new(RequestCheckTx)
  347. err := b.DecodeMessage(msg)
  348. m.Value = &Request_CheckTx{msg}
  349. return true, err
  350. case 19: // value.deliver_tx
  351. if wire != proto.WireBytes {
  352. return true, proto.ErrInternalBadWireType
  353. }
  354. msg := new(RequestDeliverTx)
  355. err := b.DecodeMessage(msg)
  356. m.Value = &Request_DeliverTx{msg}
  357. return true, err
  358. case 11: // value.end_block
  359. if wire != proto.WireBytes {
  360. return true, proto.ErrInternalBadWireType
  361. }
  362. msg := new(RequestEndBlock)
  363. err := b.DecodeMessage(msg)
  364. m.Value = &Request_EndBlock{msg}
  365. return true, err
  366. case 12: // value.commit
  367. if wire != proto.WireBytes {
  368. return true, proto.ErrInternalBadWireType
  369. }
  370. msg := new(RequestCommit)
  371. err := b.DecodeMessage(msg)
  372. m.Value = &Request_Commit{msg}
  373. return true, err
  374. default:
  375. return false, nil
  376. }
  377. }
  378. func _Request_OneofSizer(msg proto.Message) (n int) {
  379. m := msg.(*Request)
  380. // value
  381. switch x := m.Value.(type) {
  382. case *Request_Echo:
  383. s := proto.Size(x.Echo)
  384. n += 1 // tag and wire
  385. n += proto.SizeVarint(uint64(s))
  386. n += s
  387. case *Request_Flush:
  388. s := proto.Size(x.Flush)
  389. n += 1 // tag and wire
  390. n += proto.SizeVarint(uint64(s))
  391. n += s
  392. case *Request_Info:
  393. s := proto.Size(x.Info)
  394. n += 1 // tag and wire
  395. n += proto.SizeVarint(uint64(s))
  396. n += s
  397. case *Request_SetOption:
  398. s := proto.Size(x.SetOption)
  399. n += 1 // tag and wire
  400. n += proto.SizeVarint(uint64(s))
  401. n += s
  402. case *Request_InitChain:
  403. s := proto.Size(x.InitChain)
  404. n += 1 // tag and wire
  405. n += proto.SizeVarint(uint64(s))
  406. n += s
  407. case *Request_Query:
  408. s := proto.Size(x.Query)
  409. n += 1 // tag and wire
  410. n += proto.SizeVarint(uint64(s))
  411. n += s
  412. case *Request_BeginBlock:
  413. s := proto.Size(x.BeginBlock)
  414. n += 1 // tag and wire
  415. n += proto.SizeVarint(uint64(s))
  416. n += s
  417. case *Request_CheckTx:
  418. s := proto.Size(x.CheckTx)
  419. n += 1 // tag and wire
  420. n += proto.SizeVarint(uint64(s))
  421. n += s
  422. case *Request_DeliverTx:
  423. s := proto.Size(x.DeliverTx)
  424. n += 2 // tag and wire
  425. n += proto.SizeVarint(uint64(s))
  426. n += s
  427. case *Request_EndBlock:
  428. s := proto.Size(x.EndBlock)
  429. n += 1 // tag and wire
  430. n += proto.SizeVarint(uint64(s))
  431. n += s
  432. case *Request_Commit:
  433. s := proto.Size(x.Commit)
  434. n += 1 // tag and wire
  435. n += proto.SizeVarint(uint64(s))
  436. n += s
  437. case nil:
  438. default:
  439. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  440. }
  441. return n
  442. }
  443. type RequestEcho struct {
  444. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  445. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  446. XXX_unrecognized []byte `json:"-"`
  447. XXX_sizecache int32 `json:"-"`
  448. }
  449. func (m *RequestEcho) Reset() { *m = RequestEcho{} }
  450. func (m *RequestEcho) String() string { return proto.CompactTextString(m) }
  451. func (*RequestEcho) ProtoMessage() {}
  452. func (*RequestEcho) Descriptor() ([]byte, []int) {
  453. return fileDescriptor_types_5b877df1938afe10, []int{1}
  454. }
  455. func (m *RequestEcho) XXX_Unmarshal(b []byte) error {
  456. return m.Unmarshal(b)
  457. }
  458. func (m *RequestEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  459. if deterministic {
  460. return xxx_messageInfo_RequestEcho.Marshal(b, m, deterministic)
  461. } else {
  462. b = b[:cap(b)]
  463. n, err := m.MarshalTo(b)
  464. if err != nil {
  465. return nil, err
  466. }
  467. return b[:n], nil
  468. }
  469. }
  470. func (dst *RequestEcho) XXX_Merge(src proto.Message) {
  471. xxx_messageInfo_RequestEcho.Merge(dst, src)
  472. }
  473. func (m *RequestEcho) XXX_Size() int {
  474. return m.Size()
  475. }
  476. func (m *RequestEcho) XXX_DiscardUnknown() {
  477. xxx_messageInfo_RequestEcho.DiscardUnknown(m)
  478. }
  479. var xxx_messageInfo_RequestEcho proto.InternalMessageInfo
  480. func (m *RequestEcho) GetMessage() string {
  481. if m != nil {
  482. return m.Message
  483. }
  484. return ""
  485. }
  486. type RequestFlush struct {
  487. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  488. XXX_unrecognized []byte `json:"-"`
  489. XXX_sizecache int32 `json:"-"`
  490. }
  491. func (m *RequestFlush) Reset() { *m = RequestFlush{} }
  492. func (m *RequestFlush) String() string { return proto.CompactTextString(m) }
  493. func (*RequestFlush) ProtoMessage() {}
  494. func (*RequestFlush) Descriptor() ([]byte, []int) {
  495. return fileDescriptor_types_5b877df1938afe10, []int{2}
  496. }
  497. func (m *RequestFlush) XXX_Unmarshal(b []byte) error {
  498. return m.Unmarshal(b)
  499. }
  500. func (m *RequestFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  501. if deterministic {
  502. return xxx_messageInfo_RequestFlush.Marshal(b, m, deterministic)
  503. } else {
  504. b = b[:cap(b)]
  505. n, err := m.MarshalTo(b)
  506. if err != nil {
  507. return nil, err
  508. }
  509. return b[:n], nil
  510. }
  511. }
  512. func (dst *RequestFlush) XXX_Merge(src proto.Message) {
  513. xxx_messageInfo_RequestFlush.Merge(dst, src)
  514. }
  515. func (m *RequestFlush) XXX_Size() int {
  516. return m.Size()
  517. }
  518. func (m *RequestFlush) XXX_DiscardUnknown() {
  519. xxx_messageInfo_RequestFlush.DiscardUnknown(m)
  520. }
  521. var xxx_messageInfo_RequestFlush proto.InternalMessageInfo
  522. type RequestInfo struct {
  523. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  524. BlockVersion uint64 `protobuf:"varint,2,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"`
  525. P2PVersion uint64 `protobuf:"varint,3,opt,name=p2p_version,json=p2pVersion,proto3" json:"p2p_version,omitempty"`
  526. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  527. XXX_unrecognized []byte `json:"-"`
  528. XXX_sizecache int32 `json:"-"`
  529. }
  530. func (m *RequestInfo) Reset() { *m = RequestInfo{} }
  531. func (m *RequestInfo) String() string { return proto.CompactTextString(m) }
  532. func (*RequestInfo) ProtoMessage() {}
  533. func (*RequestInfo) Descriptor() ([]byte, []int) {
  534. return fileDescriptor_types_5b877df1938afe10, []int{3}
  535. }
  536. func (m *RequestInfo) XXX_Unmarshal(b []byte) error {
  537. return m.Unmarshal(b)
  538. }
  539. func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  540. if deterministic {
  541. return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic)
  542. } else {
  543. b = b[:cap(b)]
  544. n, err := m.MarshalTo(b)
  545. if err != nil {
  546. return nil, err
  547. }
  548. return b[:n], nil
  549. }
  550. }
  551. func (dst *RequestInfo) XXX_Merge(src proto.Message) {
  552. xxx_messageInfo_RequestInfo.Merge(dst, src)
  553. }
  554. func (m *RequestInfo) XXX_Size() int {
  555. return m.Size()
  556. }
  557. func (m *RequestInfo) XXX_DiscardUnknown() {
  558. xxx_messageInfo_RequestInfo.DiscardUnknown(m)
  559. }
  560. var xxx_messageInfo_RequestInfo proto.InternalMessageInfo
  561. func (m *RequestInfo) GetVersion() string {
  562. if m != nil {
  563. return m.Version
  564. }
  565. return ""
  566. }
  567. func (m *RequestInfo) GetBlockVersion() uint64 {
  568. if m != nil {
  569. return m.BlockVersion
  570. }
  571. return 0
  572. }
  573. func (m *RequestInfo) GetP2PVersion() uint64 {
  574. if m != nil {
  575. return m.P2PVersion
  576. }
  577. return 0
  578. }
  579. // nondeterministic
  580. type RequestSetOption struct {
  581. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  582. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  583. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  584. XXX_unrecognized []byte `json:"-"`
  585. XXX_sizecache int32 `json:"-"`
  586. }
  587. func (m *RequestSetOption) Reset() { *m = RequestSetOption{} }
  588. func (m *RequestSetOption) String() string { return proto.CompactTextString(m) }
  589. func (*RequestSetOption) ProtoMessage() {}
  590. func (*RequestSetOption) Descriptor() ([]byte, []int) {
  591. return fileDescriptor_types_5b877df1938afe10, []int{4}
  592. }
  593. func (m *RequestSetOption) XXX_Unmarshal(b []byte) error {
  594. return m.Unmarshal(b)
  595. }
  596. func (m *RequestSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  597. if deterministic {
  598. return xxx_messageInfo_RequestSetOption.Marshal(b, m, deterministic)
  599. } else {
  600. b = b[:cap(b)]
  601. n, err := m.MarshalTo(b)
  602. if err != nil {
  603. return nil, err
  604. }
  605. return b[:n], nil
  606. }
  607. }
  608. func (dst *RequestSetOption) XXX_Merge(src proto.Message) {
  609. xxx_messageInfo_RequestSetOption.Merge(dst, src)
  610. }
  611. func (m *RequestSetOption) XXX_Size() int {
  612. return m.Size()
  613. }
  614. func (m *RequestSetOption) XXX_DiscardUnknown() {
  615. xxx_messageInfo_RequestSetOption.DiscardUnknown(m)
  616. }
  617. var xxx_messageInfo_RequestSetOption proto.InternalMessageInfo
  618. func (m *RequestSetOption) GetKey() string {
  619. if m != nil {
  620. return m.Key
  621. }
  622. return ""
  623. }
  624. func (m *RequestSetOption) GetValue() string {
  625. if m != nil {
  626. return m.Value
  627. }
  628. return ""
  629. }
  630. type RequestInitChain struct {
  631. Time time.Time `protobuf:"bytes,1,opt,name=time,stdtime" json:"time"`
  632. ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
  633. ConsensusParams *ConsensusParams `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams" json:"consensus_params,omitempty"`
  634. Validators []ValidatorUpdate `protobuf:"bytes,4,rep,name=validators" json:"validators"`
  635. AppStateBytes []byte `protobuf:"bytes,5,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"`
  636. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  637. XXX_unrecognized []byte `json:"-"`
  638. XXX_sizecache int32 `json:"-"`
  639. }
  640. func (m *RequestInitChain) Reset() { *m = RequestInitChain{} }
  641. func (m *RequestInitChain) String() string { return proto.CompactTextString(m) }
  642. func (*RequestInitChain) ProtoMessage() {}
  643. func (*RequestInitChain) Descriptor() ([]byte, []int) {
  644. return fileDescriptor_types_5b877df1938afe10, []int{5}
  645. }
  646. func (m *RequestInitChain) XXX_Unmarshal(b []byte) error {
  647. return m.Unmarshal(b)
  648. }
  649. func (m *RequestInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  650. if deterministic {
  651. return xxx_messageInfo_RequestInitChain.Marshal(b, m, deterministic)
  652. } else {
  653. b = b[:cap(b)]
  654. n, err := m.MarshalTo(b)
  655. if err != nil {
  656. return nil, err
  657. }
  658. return b[:n], nil
  659. }
  660. }
  661. func (dst *RequestInitChain) XXX_Merge(src proto.Message) {
  662. xxx_messageInfo_RequestInitChain.Merge(dst, src)
  663. }
  664. func (m *RequestInitChain) XXX_Size() int {
  665. return m.Size()
  666. }
  667. func (m *RequestInitChain) XXX_DiscardUnknown() {
  668. xxx_messageInfo_RequestInitChain.DiscardUnknown(m)
  669. }
  670. var xxx_messageInfo_RequestInitChain proto.InternalMessageInfo
  671. func (m *RequestInitChain) GetTime() time.Time {
  672. if m != nil {
  673. return m.Time
  674. }
  675. return time.Time{}
  676. }
  677. func (m *RequestInitChain) GetChainId() string {
  678. if m != nil {
  679. return m.ChainId
  680. }
  681. return ""
  682. }
  683. func (m *RequestInitChain) GetConsensusParams() *ConsensusParams {
  684. if m != nil {
  685. return m.ConsensusParams
  686. }
  687. return nil
  688. }
  689. func (m *RequestInitChain) GetValidators() []ValidatorUpdate {
  690. if m != nil {
  691. return m.Validators
  692. }
  693. return nil
  694. }
  695. func (m *RequestInitChain) GetAppStateBytes() []byte {
  696. if m != nil {
  697. return m.AppStateBytes
  698. }
  699. return nil
  700. }
  701. type RequestQuery struct {
  702. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  703. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  704. Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
  705. Prove bool `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"`
  706. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  707. XXX_unrecognized []byte `json:"-"`
  708. XXX_sizecache int32 `json:"-"`
  709. }
  710. func (m *RequestQuery) Reset() { *m = RequestQuery{} }
  711. func (m *RequestQuery) String() string { return proto.CompactTextString(m) }
  712. func (*RequestQuery) ProtoMessage() {}
  713. func (*RequestQuery) Descriptor() ([]byte, []int) {
  714. return fileDescriptor_types_5b877df1938afe10, []int{6}
  715. }
  716. func (m *RequestQuery) XXX_Unmarshal(b []byte) error {
  717. return m.Unmarshal(b)
  718. }
  719. func (m *RequestQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  720. if deterministic {
  721. return xxx_messageInfo_RequestQuery.Marshal(b, m, deterministic)
  722. } else {
  723. b = b[:cap(b)]
  724. n, err := m.MarshalTo(b)
  725. if err != nil {
  726. return nil, err
  727. }
  728. return b[:n], nil
  729. }
  730. }
  731. func (dst *RequestQuery) XXX_Merge(src proto.Message) {
  732. xxx_messageInfo_RequestQuery.Merge(dst, src)
  733. }
  734. func (m *RequestQuery) XXX_Size() int {
  735. return m.Size()
  736. }
  737. func (m *RequestQuery) XXX_DiscardUnknown() {
  738. xxx_messageInfo_RequestQuery.DiscardUnknown(m)
  739. }
  740. var xxx_messageInfo_RequestQuery proto.InternalMessageInfo
  741. func (m *RequestQuery) GetData() []byte {
  742. if m != nil {
  743. return m.Data
  744. }
  745. return nil
  746. }
  747. func (m *RequestQuery) GetPath() string {
  748. if m != nil {
  749. return m.Path
  750. }
  751. return ""
  752. }
  753. func (m *RequestQuery) GetHeight() int64 {
  754. if m != nil {
  755. return m.Height
  756. }
  757. return 0
  758. }
  759. func (m *RequestQuery) GetProve() bool {
  760. if m != nil {
  761. return m.Prove
  762. }
  763. return false
  764. }
  765. type RequestBeginBlock struct {
  766. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
  767. Header Header `protobuf:"bytes,2,opt,name=header" json:"header"`
  768. LastCommitInfo LastCommitInfo `protobuf:"bytes,3,opt,name=last_commit_info,json=lastCommitInfo" json:"last_commit_info"`
  769. ByzantineValidators []Evidence `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators" json:"byzantine_validators"`
  770. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  771. XXX_unrecognized []byte `json:"-"`
  772. XXX_sizecache int32 `json:"-"`
  773. }
  774. func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} }
  775. func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) }
  776. func (*RequestBeginBlock) ProtoMessage() {}
  777. func (*RequestBeginBlock) Descriptor() ([]byte, []int) {
  778. return fileDescriptor_types_5b877df1938afe10, []int{7}
  779. }
  780. func (m *RequestBeginBlock) XXX_Unmarshal(b []byte) error {
  781. return m.Unmarshal(b)
  782. }
  783. func (m *RequestBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  784. if deterministic {
  785. return xxx_messageInfo_RequestBeginBlock.Marshal(b, m, deterministic)
  786. } else {
  787. b = b[:cap(b)]
  788. n, err := m.MarshalTo(b)
  789. if err != nil {
  790. return nil, err
  791. }
  792. return b[:n], nil
  793. }
  794. }
  795. func (dst *RequestBeginBlock) XXX_Merge(src proto.Message) {
  796. xxx_messageInfo_RequestBeginBlock.Merge(dst, src)
  797. }
  798. func (m *RequestBeginBlock) XXX_Size() int {
  799. return m.Size()
  800. }
  801. func (m *RequestBeginBlock) XXX_DiscardUnknown() {
  802. xxx_messageInfo_RequestBeginBlock.DiscardUnknown(m)
  803. }
  804. var xxx_messageInfo_RequestBeginBlock proto.InternalMessageInfo
  805. func (m *RequestBeginBlock) GetHash() []byte {
  806. if m != nil {
  807. return m.Hash
  808. }
  809. return nil
  810. }
  811. func (m *RequestBeginBlock) GetHeader() Header {
  812. if m != nil {
  813. return m.Header
  814. }
  815. return Header{}
  816. }
  817. func (m *RequestBeginBlock) GetLastCommitInfo() LastCommitInfo {
  818. if m != nil {
  819. return m.LastCommitInfo
  820. }
  821. return LastCommitInfo{}
  822. }
  823. func (m *RequestBeginBlock) GetByzantineValidators() []Evidence {
  824. if m != nil {
  825. return m.ByzantineValidators
  826. }
  827. return nil
  828. }
  829. type RequestCheckTx struct {
  830. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  831. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  832. XXX_unrecognized []byte `json:"-"`
  833. XXX_sizecache int32 `json:"-"`
  834. }
  835. func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} }
  836. func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) }
  837. func (*RequestCheckTx) ProtoMessage() {}
  838. func (*RequestCheckTx) Descriptor() ([]byte, []int) {
  839. return fileDescriptor_types_5b877df1938afe10, []int{8}
  840. }
  841. func (m *RequestCheckTx) XXX_Unmarshal(b []byte) error {
  842. return m.Unmarshal(b)
  843. }
  844. func (m *RequestCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  845. if deterministic {
  846. return xxx_messageInfo_RequestCheckTx.Marshal(b, m, deterministic)
  847. } else {
  848. b = b[:cap(b)]
  849. n, err := m.MarshalTo(b)
  850. if err != nil {
  851. return nil, err
  852. }
  853. return b[:n], nil
  854. }
  855. }
  856. func (dst *RequestCheckTx) XXX_Merge(src proto.Message) {
  857. xxx_messageInfo_RequestCheckTx.Merge(dst, src)
  858. }
  859. func (m *RequestCheckTx) XXX_Size() int {
  860. return m.Size()
  861. }
  862. func (m *RequestCheckTx) XXX_DiscardUnknown() {
  863. xxx_messageInfo_RequestCheckTx.DiscardUnknown(m)
  864. }
  865. var xxx_messageInfo_RequestCheckTx proto.InternalMessageInfo
  866. func (m *RequestCheckTx) GetTx() []byte {
  867. if m != nil {
  868. return m.Tx
  869. }
  870. return nil
  871. }
  872. type RequestDeliverTx struct {
  873. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  874. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  875. XXX_unrecognized []byte `json:"-"`
  876. XXX_sizecache int32 `json:"-"`
  877. }
  878. func (m *RequestDeliverTx) Reset() { *m = RequestDeliverTx{} }
  879. func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) }
  880. func (*RequestDeliverTx) ProtoMessage() {}
  881. func (*RequestDeliverTx) Descriptor() ([]byte, []int) {
  882. return fileDescriptor_types_5b877df1938afe10, []int{9}
  883. }
  884. func (m *RequestDeliverTx) XXX_Unmarshal(b []byte) error {
  885. return m.Unmarshal(b)
  886. }
  887. func (m *RequestDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  888. if deterministic {
  889. return xxx_messageInfo_RequestDeliverTx.Marshal(b, m, deterministic)
  890. } else {
  891. b = b[:cap(b)]
  892. n, err := m.MarshalTo(b)
  893. if err != nil {
  894. return nil, err
  895. }
  896. return b[:n], nil
  897. }
  898. }
  899. func (dst *RequestDeliverTx) XXX_Merge(src proto.Message) {
  900. xxx_messageInfo_RequestDeliverTx.Merge(dst, src)
  901. }
  902. func (m *RequestDeliverTx) XXX_Size() int {
  903. return m.Size()
  904. }
  905. func (m *RequestDeliverTx) XXX_DiscardUnknown() {
  906. xxx_messageInfo_RequestDeliverTx.DiscardUnknown(m)
  907. }
  908. var xxx_messageInfo_RequestDeliverTx proto.InternalMessageInfo
  909. func (m *RequestDeliverTx) GetTx() []byte {
  910. if m != nil {
  911. return m.Tx
  912. }
  913. return nil
  914. }
  915. type RequestEndBlock struct {
  916. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  917. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  918. XXX_unrecognized []byte `json:"-"`
  919. XXX_sizecache int32 `json:"-"`
  920. }
  921. func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} }
  922. func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) }
  923. func (*RequestEndBlock) ProtoMessage() {}
  924. func (*RequestEndBlock) Descriptor() ([]byte, []int) {
  925. return fileDescriptor_types_5b877df1938afe10, []int{10}
  926. }
  927. func (m *RequestEndBlock) XXX_Unmarshal(b []byte) error {
  928. return m.Unmarshal(b)
  929. }
  930. func (m *RequestEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  931. if deterministic {
  932. return xxx_messageInfo_RequestEndBlock.Marshal(b, m, deterministic)
  933. } else {
  934. b = b[:cap(b)]
  935. n, err := m.MarshalTo(b)
  936. if err != nil {
  937. return nil, err
  938. }
  939. return b[:n], nil
  940. }
  941. }
  942. func (dst *RequestEndBlock) XXX_Merge(src proto.Message) {
  943. xxx_messageInfo_RequestEndBlock.Merge(dst, src)
  944. }
  945. func (m *RequestEndBlock) XXX_Size() int {
  946. return m.Size()
  947. }
  948. func (m *RequestEndBlock) XXX_DiscardUnknown() {
  949. xxx_messageInfo_RequestEndBlock.DiscardUnknown(m)
  950. }
  951. var xxx_messageInfo_RequestEndBlock proto.InternalMessageInfo
  952. func (m *RequestEndBlock) GetHeight() int64 {
  953. if m != nil {
  954. return m.Height
  955. }
  956. return 0
  957. }
  958. type RequestCommit struct {
  959. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  960. XXX_unrecognized []byte `json:"-"`
  961. XXX_sizecache int32 `json:"-"`
  962. }
  963. func (m *RequestCommit) Reset() { *m = RequestCommit{} }
  964. func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
  965. func (*RequestCommit) ProtoMessage() {}
  966. func (*RequestCommit) Descriptor() ([]byte, []int) {
  967. return fileDescriptor_types_5b877df1938afe10, []int{11}
  968. }
  969. func (m *RequestCommit) XXX_Unmarshal(b []byte) error {
  970. return m.Unmarshal(b)
  971. }
  972. func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  973. if deterministic {
  974. return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic)
  975. } else {
  976. b = b[:cap(b)]
  977. n, err := m.MarshalTo(b)
  978. if err != nil {
  979. return nil, err
  980. }
  981. return b[:n], nil
  982. }
  983. }
  984. func (dst *RequestCommit) XXX_Merge(src proto.Message) {
  985. xxx_messageInfo_RequestCommit.Merge(dst, src)
  986. }
  987. func (m *RequestCommit) XXX_Size() int {
  988. return m.Size()
  989. }
  990. func (m *RequestCommit) XXX_DiscardUnknown() {
  991. xxx_messageInfo_RequestCommit.DiscardUnknown(m)
  992. }
  993. var xxx_messageInfo_RequestCommit proto.InternalMessageInfo
  994. type Response struct {
  995. // Types that are valid to be assigned to Value:
  996. // *Response_Exception
  997. // *Response_Echo
  998. // *Response_Flush
  999. // *Response_Info
  1000. // *Response_SetOption
  1001. // *Response_InitChain
  1002. // *Response_Query
  1003. // *Response_BeginBlock
  1004. // *Response_CheckTx
  1005. // *Response_DeliverTx
  1006. // *Response_EndBlock
  1007. // *Response_Commit
  1008. Value isResponse_Value `protobuf_oneof:"value"`
  1009. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1010. XXX_unrecognized []byte `json:"-"`
  1011. XXX_sizecache int32 `json:"-"`
  1012. }
  1013. func (m *Response) Reset() { *m = Response{} }
  1014. func (m *Response) String() string { return proto.CompactTextString(m) }
  1015. func (*Response) ProtoMessage() {}
  1016. func (*Response) Descriptor() ([]byte, []int) {
  1017. return fileDescriptor_types_5b877df1938afe10, []int{12}
  1018. }
  1019. func (m *Response) XXX_Unmarshal(b []byte) error {
  1020. return m.Unmarshal(b)
  1021. }
  1022. func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1023. if deterministic {
  1024. return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  1025. } else {
  1026. b = b[:cap(b)]
  1027. n, err := m.MarshalTo(b)
  1028. if err != nil {
  1029. return nil, err
  1030. }
  1031. return b[:n], nil
  1032. }
  1033. }
  1034. func (dst *Response) XXX_Merge(src proto.Message) {
  1035. xxx_messageInfo_Response.Merge(dst, src)
  1036. }
  1037. func (m *Response) XXX_Size() int {
  1038. return m.Size()
  1039. }
  1040. func (m *Response) XXX_DiscardUnknown() {
  1041. xxx_messageInfo_Response.DiscardUnknown(m)
  1042. }
  1043. var xxx_messageInfo_Response proto.InternalMessageInfo
  1044. type isResponse_Value interface {
  1045. isResponse_Value()
  1046. Equal(interface{}) bool
  1047. MarshalTo([]byte) (int, error)
  1048. Size() int
  1049. }
  1050. type Response_Exception struct {
  1051. Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,oneof"`
  1052. }
  1053. type Response_Echo struct {
  1054. Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
  1055. }
  1056. type Response_Flush struct {
  1057. Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
  1058. }
  1059. type Response_Info struct {
  1060. Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,oneof"`
  1061. }
  1062. type Response_SetOption struct {
  1063. SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
  1064. }
  1065. type Response_InitChain struct {
  1066. InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,oneof"`
  1067. }
  1068. type Response_Query struct {
  1069. Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,oneof"`
  1070. }
  1071. type Response_BeginBlock struct {
  1072. BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,oneof"`
  1073. }
  1074. type Response_CheckTx struct {
  1075. CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,oneof"`
  1076. }
  1077. type Response_DeliverTx struct {
  1078. DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,oneof"`
  1079. }
  1080. type Response_EndBlock struct {
  1081. EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
  1082. }
  1083. type Response_Commit struct {
  1084. Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,oneof"`
  1085. }
  1086. func (*Response_Exception) isResponse_Value() {}
  1087. func (*Response_Echo) isResponse_Value() {}
  1088. func (*Response_Flush) isResponse_Value() {}
  1089. func (*Response_Info) isResponse_Value() {}
  1090. func (*Response_SetOption) isResponse_Value() {}
  1091. func (*Response_InitChain) isResponse_Value() {}
  1092. func (*Response_Query) isResponse_Value() {}
  1093. func (*Response_BeginBlock) isResponse_Value() {}
  1094. func (*Response_CheckTx) isResponse_Value() {}
  1095. func (*Response_DeliverTx) isResponse_Value() {}
  1096. func (*Response_EndBlock) isResponse_Value() {}
  1097. func (*Response_Commit) isResponse_Value() {}
  1098. func (m *Response) GetValue() isResponse_Value {
  1099. if m != nil {
  1100. return m.Value
  1101. }
  1102. return nil
  1103. }
  1104. func (m *Response) GetException() *ResponseException {
  1105. if x, ok := m.GetValue().(*Response_Exception); ok {
  1106. return x.Exception
  1107. }
  1108. return nil
  1109. }
  1110. func (m *Response) GetEcho() *ResponseEcho {
  1111. if x, ok := m.GetValue().(*Response_Echo); ok {
  1112. return x.Echo
  1113. }
  1114. return nil
  1115. }
  1116. func (m *Response) GetFlush() *ResponseFlush {
  1117. if x, ok := m.GetValue().(*Response_Flush); ok {
  1118. return x.Flush
  1119. }
  1120. return nil
  1121. }
  1122. func (m *Response) GetInfo() *ResponseInfo {
  1123. if x, ok := m.GetValue().(*Response_Info); ok {
  1124. return x.Info
  1125. }
  1126. return nil
  1127. }
  1128. func (m *Response) GetSetOption() *ResponseSetOption {
  1129. if x, ok := m.GetValue().(*Response_SetOption); ok {
  1130. return x.SetOption
  1131. }
  1132. return nil
  1133. }
  1134. func (m *Response) GetInitChain() *ResponseInitChain {
  1135. if x, ok := m.GetValue().(*Response_InitChain); ok {
  1136. return x.InitChain
  1137. }
  1138. return nil
  1139. }
  1140. func (m *Response) GetQuery() *ResponseQuery {
  1141. if x, ok := m.GetValue().(*Response_Query); ok {
  1142. return x.Query
  1143. }
  1144. return nil
  1145. }
  1146. func (m *Response) GetBeginBlock() *ResponseBeginBlock {
  1147. if x, ok := m.GetValue().(*Response_BeginBlock); ok {
  1148. return x.BeginBlock
  1149. }
  1150. return nil
  1151. }
  1152. func (m *Response) GetCheckTx() *ResponseCheckTx {
  1153. if x, ok := m.GetValue().(*Response_CheckTx); ok {
  1154. return x.CheckTx
  1155. }
  1156. return nil
  1157. }
  1158. func (m *Response) GetDeliverTx() *ResponseDeliverTx {
  1159. if x, ok := m.GetValue().(*Response_DeliverTx); ok {
  1160. return x.DeliverTx
  1161. }
  1162. return nil
  1163. }
  1164. func (m *Response) GetEndBlock() *ResponseEndBlock {
  1165. if x, ok := m.GetValue().(*Response_EndBlock); ok {
  1166. return x.EndBlock
  1167. }
  1168. return nil
  1169. }
  1170. func (m *Response) GetCommit() *ResponseCommit {
  1171. if x, ok := m.GetValue().(*Response_Commit); ok {
  1172. return x.Commit
  1173. }
  1174. return nil
  1175. }
  1176. // XXX_OneofFuncs is for the internal use of the proto package.
  1177. 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{}) {
  1178. return _Response_OneofMarshaler, _Response_OneofUnmarshaler, _Response_OneofSizer, []interface{}{
  1179. (*Response_Exception)(nil),
  1180. (*Response_Echo)(nil),
  1181. (*Response_Flush)(nil),
  1182. (*Response_Info)(nil),
  1183. (*Response_SetOption)(nil),
  1184. (*Response_InitChain)(nil),
  1185. (*Response_Query)(nil),
  1186. (*Response_BeginBlock)(nil),
  1187. (*Response_CheckTx)(nil),
  1188. (*Response_DeliverTx)(nil),
  1189. (*Response_EndBlock)(nil),
  1190. (*Response_Commit)(nil),
  1191. }
  1192. }
  1193. func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1194. m := msg.(*Response)
  1195. // value
  1196. switch x := m.Value.(type) {
  1197. case *Response_Exception:
  1198. _ = b.EncodeVarint(1<<3 | proto.WireBytes)
  1199. if err := b.EncodeMessage(x.Exception); err != nil {
  1200. return err
  1201. }
  1202. case *Response_Echo:
  1203. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  1204. if err := b.EncodeMessage(x.Echo); err != nil {
  1205. return err
  1206. }
  1207. case *Response_Flush:
  1208. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  1209. if err := b.EncodeMessage(x.Flush); err != nil {
  1210. return err
  1211. }
  1212. case *Response_Info:
  1213. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  1214. if err := b.EncodeMessage(x.Info); err != nil {
  1215. return err
  1216. }
  1217. case *Response_SetOption:
  1218. _ = b.EncodeVarint(5<<3 | proto.WireBytes)
  1219. if err := b.EncodeMessage(x.SetOption); err != nil {
  1220. return err
  1221. }
  1222. case *Response_InitChain:
  1223. _ = b.EncodeVarint(6<<3 | proto.WireBytes)
  1224. if err := b.EncodeMessage(x.InitChain); err != nil {
  1225. return err
  1226. }
  1227. case *Response_Query:
  1228. _ = b.EncodeVarint(7<<3 | proto.WireBytes)
  1229. if err := b.EncodeMessage(x.Query); err != nil {
  1230. return err
  1231. }
  1232. case *Response_BeginBlock:
  1233. _ = b.EncodeVarint(8<<3 | proto.WireBytes)
  1234. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  1235. return err
  1236. }
  1237. case *Response_CheckTx:
  1238. _ = b.EncodeVarint(9<<3 | proto.WireBytes)
  1239. if err := b.EncodeMessage(x.CheckTx); err != nil {
  1240. return err
  1241. }
  1242. case *Response_DeliverTx:
  1243. _ = b.EncodeVarint(10<<3 | proto.WireBytes)
  1244. if err := b.EncodeMessage(x.DeliverTx); err != nil {
  1245. return err
  1246. }
  1247. case *Response_EndBlock:
  1248. _ = b.EncodeVarint(11<<3 | proto.WireBytes)
  1249. if err := b.EncodeMessage(x.EndBlock); err != nil {
  1250. return err
  1251. }
  1252. case *Response_Commit:
  1253. _ = b.EncodeVarint(12<<3 | proto.WireBytes)
  1254. if err := b.EncodeMessage(x.Commit); err != nil {
  1255. return err
  1256. }
  1257. case nil:
  1258. default:
  1259. return fmt.Errorf("Response.Value has unexpected type %T", x)
  1260. }
  1261. return nil
  1262. }
  1263. func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1264. m := msg.(*Response)
  1265. switch tag {
  1266. case 1: // value.exception
  1267. if wire != proto.WireBytes {
  1268. return true, proto.ErrInternalBadWireType
  1269. }
  1270. msg := new(ResponseException)
  1271. err := b.DecodeMessage(msg)
  1272. m.Value = &Response_Exception{msg}
  1273. return true, err
  1274. case 2: // value.echo
  1275. if wire != proto.WireBytes {
  1276. return true, proto.ErrInternalBadWireType
  1277. }
  1278. msg := new(ResponseEcho)
  1279. err := b.DecodeMessage(msg)
  1280. m.Value = &Response_Echo{msg}
  1281. return true, err
  1282. case 3: // value.flush
  1283. if wire != proto.WireBytes {
  1284. return true, proto.ErrInternalBadWireType
  1285. }
  1286. msg := new(ResponseFlush)
  1287. err := b.DecodeMessage(msg)
  1288. m.Value = &Response_Flush{msg}
  1289. return true, err
  1290. case 4: // value.info
  1291. if wire != proto.WireBytes {
  1292. return true, proto.ErrInternalBadWireType
  1293. }
  1294. msg := new(ResponseInfo)
  1295. err := b.DecodeMessage(msg)
  1296. m.Value = &Response_Info{msg}
  1297. return true, err
  1298. case 5: // value.set_option
  1299. if wire != proto.WireBytes {
  1300. return true, proto.ErrInternalBadWireType
  1301. }
  1302. msg := new(ResponseSetOption)
  1303. err := b.DecodeMessage(msg)
  1304. m.Value = &Response_SetOption{msg}
  1305. return true, err
  1306. case 6: // value.init_chain
  1307. if wire != proto.WireBytes {
  1308. return true, proto.ErrInternalBadWireType
  1309. }
  1310. msg := new(ResponseInitChain)
  1311. err := b.DecodeMessage(msg)
  1312. m.Value = &Response_InitChain{msg}
  1313. return true, err
  1314. case 7: // value.query
  1315. if wire != proto.WireBytes {
  1316. return true, proto.ErrInternalBadWireType
  1317. }
  1318. msg := new(ResponseQuery)
  1319. err := b.DecodeMessage(msg)
  1320. m.Value = &Response_Query{msg}
  1321. return true, err
  1322. case 8: // value.begin_block
  1323. if wire != proto.WireBytes {
  1324. return true, proto.ErrInternalBadWireType
  1325. }
  1326. msg := new(ResponseBeginBlock)
  1327. err := b.DecodeMessage(msg)
  1328. m.Value = &Response_BeginBlock{msg}
  1329. return true, err
  1330. case 9: // value.check_tx
  1331. if wire != proto.WireBytes {
  1332. return true, proto.ErrInternalBadWireType
  1333. }
  1334. msg := new(ResponseCheckTx)
  1335. err := b.DecodeMessage(msg)
  1336. m.Value = &Response_CheckTx{msg}
  1337. return true, err
  1338. case 10: // value.deliver_tx
  1339. if wire != proto.WireBytes {
  1340. return true, proto.ErrInternalBadWireType
  1341. }
  1342. msg := new(ResponseDeliverTx)
  1343. err := b.DecodeMessage(msg)
  1344. m.Value = &Response_DeliverTx{msg}
  1345. return true, err
  1346. case 11: // value.end_block
  1347. if wire != proto.WireBytes {
  1348. return true, proto.ErrInternalBadWireType
  1349. }
  1350. msg := new(ResponseEndBlock)
  1351. err := b.DecodeMessage(msg)
  1352. m.Value = &Response_EndBlock{msg}
  1353. return true, err
  1354. case 12: // value.commit
  1355. if wire != proto.WireBytes {
  1356. return true, proto.ErrInternalBadWireType
  1357. }
  1358. msg := new(ResponseCommit)
  1359. err := b.DecodeMessage(msg)
  1360. m.Value = &Response_Commit{msg}
  1361. return true, err
  1362. default:
  1363. return false, nil
  1364. }
  1365. }
  1366. func _Response_OneofSizer(msg proto.Message) (n int) {
  1367. m := msg.(*Response)
  1368. // value
  1369. switch x := m.Value.(type) {
  1370. case *Response_Exception:
  1371. s := proto.Size(x.Exception)
  1372. n += 1 // tag and wire
  1373. n += proto.SizeVarint(uint64(s))
  1374. n += s
  1375. case *Response_Echo:
  1376. s := proto.Size(x.Echo)
  1377. n += 1 // tag and wire
  1378. n += proto.SizeVarint(uint64(s))
  1379. n += s
  1380. case *Response_Flush:
  1381. s := proto.Size(x.Flush)
  1382. n += 1 // tag and wire
  1383. n += proto.SizeVarint(uint64(s))
  1384. n += s
  1385. case *Response_Info:
  1386. s := proto.Size(x.Info)
  1387. n += 1 // tag and wire
  1388. n += proto.SizeVarint(uint64(s))
  1389. n += s
  1390. case *Response_SetOption:
  1391. s := proto.Size(x.SetOption)
  1392. n += 1 // tag and wire
  1393. n += proto.SizeVarint(uint64(s))
  1394. n += s
  1395. case *Response_InitChain:
  1396. s := proto.Size(x.InitChain)
  1397. n += 1 // tag and wire
  1398. n += proto.SizeVarint(uint64(s))
  1399. n += s
  1400. case *Response_Query:
  1401. s := proto.Size(x.Query)
  1402. n += 1 // tag and wire
  1403. n += proto.SizeVarint(uint64(s))
  1404. n += s
  1405. case *Response_BeginBlock:
  1406. s := proto.Size(x.BeginBlock)
  1407. n += 1 // tag and wire
  1408. n += proto.SizeVarint(uint64(s))
  1409. n += s
  1410. case *Response_CheckTx:
  1411. s := proto.Size(x.CheckTx)
  1412. n += 1 // tag and wire
  1413. n += proto.SizeVarint(uint64(s))
  1414. n += s
  1415. case *Response_DeliverTx:
  1416. s := proto.Size(x.DeliverTx)
  1417. n += 1 // tag and wire
  1418. n += proto.SizeVarint(uint64(s))
  1419. n += s
  1420. case *Response_EndBlock:
  1421. s := proto.Size(x.EndBlock)
  1422. n += 1 // tag and wire
  1423. n += proto.SizeVarint(uint64(s))
  1424. n += s
  1425. case *Response_Commit:
  1426. s := proto.Size(x.Commit)
  1427. n += 1 // tag and wire
  1428. n += proto.SizeVarint(uint64(s))
  1429. n += s
  1430. case nil:
  1431. default:
  1432. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1433. }
  1434. return n
  1435. }
  1436. // nondeterministic
  1437. type ResponseException struct {
  1438. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  1439. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1440. XXX_unrecognized []byte `json:"-"`
  1441. XXX_sizecache int32 `json:"-"`
  1442. }
  1443. func (m *ResponseException) Reset() { *m = ResponseException{} }
  1444. func (m *ResponseException) String() string { return proto.CompactTextString(m) }
  1445. func (*ResponseException) ProtoMessage() {}
  1446. func (*ResponseException) Descriptor() ([]byte, []int) {
  1447. return fileDescriptor_types_5b877df1938afe10, []int{13}
  1448. }
  1449. func (m *ResponseException) XXX_Unmarshal(b []byte) error {
  1450. return m.Unmarshal(b)
  1451. }
  1452. func (m *ResponseException) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1453. if deterministic {
  1454. return xxx_messageInfo_ResponseException.Marshal(b, m, deterministic)
  1455. } else {
  1456. b = b[:cap(b)]
  1457. n, err := m.MarshalTo(b)
  1458. if err != nil {
  1459. return nil, err
  1460. }
  1461. return b[:n], nil
  1462. }
  1463. }
  1464. func (dst *ResponseException) XXX_Merge(src proto.Message) {
  1465. xxx_messageInfo_ResponseException.Merge(dst, src)
  1466. }
  1467. func (m *ResponseException) XXX_Size() int {
  1468. return m.Size()
  1469. }
  1470. func (m *ResponseException) XXX_DiscardUnknown() {
  1471. xxx_messageInfo_ResponseException.DiscardUnknown(m)
  1472. }
  1473. var xxx_messageInfo_ResponseException proto.InternalMessageInfo
  1474. func (m *ResponseException) GetError() string {
  1475. if m != nil {
  1476. return m.Error
  1477. }
  1478. return ""
  1479. }
  1480. type ResponseEcho struct {
  1481. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  1482. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1483. XXX_unrecognized []byte `json:"-"`
  1484. XXX_sizecache int32 `json:"-"`
  1485. }
  1486. func (m *ResponseEcho) Reset() { *m = ResponseEcho{} }
  1487. func (m *ResponseEcho) String() string { return proto.CompactTextString(m) }
  1488. func (*ResponseEcho) ProtoMessage() {}
  1489. func (*ResponseEcho) Descriptor() ([]byte, []int) {
  1490. return fileDescriptor_types_5b877df1938afe10, []int{14}
  1491. }
  1492. func (m *ResponseEcho) XXX_Unmarshal(b []byte) error {
  1493. return m.Unmarshal(b)
  1494. }
  1495. func (m *ResponseEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1496. if deterministic {
  1497. return xxx_messageInfo_ResponseEcho.Marshal(b, m, deterministic)
  1498. } else {
  1499. b = b[:cap(b)]
  1500. n, err := m.MarshalTo(b)
  1501. if err != nil {
  1502. return nil, err
  1503. }
  1504. return b[:n], nil
  1505. }
  1506. }
  1507. func (dst *ResponseEcho) XXX_Merge(src proto.Message) {
  1508. xxx_messageInfo_ResponseEcho.Merge(dst, src)
  1509. }
  1510. func (m *ResponseEcho) XXX_Size() int {
  1511. return m.Size()
  1512. }
  1513. func (m *ResponseEcho) XXX_DiscardUnknown() {
  1514. xxx_messageInfo_ResponseEcho.DiscardUnknown(m)
  1515. }
  1516. var xxx_messageInfo_ResponseEcho proto.InternalMessageInfo
  1517. func (m *ResponseEcho) GetMessage() string {
  1518. if m != nil {
  1519. return m.Message
  1520. }
  1521. return ""
  1522. }
  1523. type ResponseFlush struct {
  1524. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1525. XXX_unrecognized []byte `json:"-"`
  1526. XXX_sizecache int32 `json:"-"`
  1527. }
  1528. func (m *ResponseFlush) Reset() { *m = ResponseFlush{} }
  1529. func (m *ResponseFlush) String() string { return proto.CompactTextString(m) }
  1530. func (*ResponseFlush) ProtoMessage() {}
  1531. func (*ResponseFlush) Descriptor() ([]byte, []int) {
  1532. return fileDescriptor_types_5b877df1938afe10, []int{15}
  1533. }
  1534. func (m *ResponseFlush) XXX_Unmarshal(b []byte) error {
  1535. return m.Unmarshal(b)
  1536. }
  1537. func (m *ResponseFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1538. if deterministic {
  1539. return xxx_messageInfo_ResponseFlush.Marshal(b, m, deterministic)
  1540. } else {
  1541. b = b[:cap(b)]
  1542. n, err := m.MarshalTo(b)
  1543. if err != nil {
  1544. return nil, err
  1545. }
  1546. return b[:n], nil
  1547. }
  1548. }
  1549. func (dst *ResponseFlush) XXX_Merge(src proto.Message) {
  1550. xxx_messageInfo_ResponseFlush.Merge(dst, src)
  1551. }
  1552. func (m *ResponseFlush) XXX_Size() int {
  1553. return m.Size()
  1554. }
  1555. func (m *ResponseFlush) XXX_DiscardUnknown() {
  1556. xxx_messageInfo_ResponseFlush.DiscardUnknown(m)
  1557. }
  1558. var xxx_messageInfo_ResponseFlush proto.InternalMessageInfo
  1559. type ResponseInfo struct {
  1560. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  1561. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  1562. AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
  1563. LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
  1564. LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"`
  1565. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1566. XXX_unrecognized []byte `json:"-"`
  1567. XXX_sizecache int32 `json:"-"`
  1568. }
  1569. func (m *ResponseInfo) Reset() { *m = ResponseInfo{} }
  1570. func (m *ResponseInfo) String() string { return proto.CompactTextString(m) }
  1571. func (*ResponseInfo) ProtoMessage() {}
  1572. func (*ResponseInfo) Descriptor() ([]byte, []int) {
  1573. return fileDescriptor_types_5b877df1938afe10, []int{16}
  1574. }
  1575. func (m *ResponseInfo) XXX_Unmarshal(b []byte) error {
  1576. return m.Unmarshal(b)
  1577. }
  1578. func (m *ResponseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1579. if deterministic {
  1580. return xxx_messageInfo_ResponseInfo.Marshal(b, m, deterministic)
  1581. } else {
  1582. b = b[:cap(b)]
  1583. n, err := m.MarshalTo(b)
  1584. if err != nil {
  1585. return nil, err
  1586. }
  1587. return b[:n], nil
  1588. }
  1589. }
  1590. func (dst *ResponseInfo) XXX_Merge(src proto.Message) {
  1591. xxx_messageInfo_ResponseInfo.Merge(dst, src)
  1592. }
  1593. func (m *ResponseInfo) XXX_Size() int {
  1594. return m.Size()
  1595. }
  1596. func (m *ResponseInfo) XXX_DiscardUnknown() {
  1597. xxx_messageInfo_ResponseInfo.DiscardUnknown(m)
  1598. }
  1599. var xxx_messageInfo_ResponseInfo proto.InternalMessageInfo
  1600. func (m *ResponseInfo) GetData() string {
  1601. if m != nil {
  1602. return m.Data
  1603. }
  1604. return ""
  1605. }
  1606. func (m *ResponseInfo) GetVersion() string {
  1607. if m != nil {
  1608. return m.Version
  1609. }
  1610. return ""
  1611. }
  1612. func (m *ResponseInfo) GetAppVersion() uint64 {
  1613. if m != nil {
  1614. return m.AppVersion
  1615. }
  1616. return 0
  1617. }
  1618. func (m *ResponseInfo) GetLastBlockHeight() int64 {
  1619. if m != nil {
  1620. return m.LastBlockHeight
  1621. }
  1622. return 0
  1623. }
  1624. func (m *ResponseInfo) GetLastBlockAppHash() []byte {
  1625. if m != nil {
  1626. return m.LastBlockAppHash
  1627. }
  1628. return nil
  1629. }
  1630. // nondeterministic
  1631. type ResponseSetOption struct {
  1632. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1633. // bytes data = 2;
  1634. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1635. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1636. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1637. XXX_unrecognized []byte `json:"-"`
  1638. XXX_sizecache int32 `json:"-"`
  1639. }
  1640. func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} }
  1641. func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) }
  1642. func (*ResponseSetOption) ProtoMessage() {}
  1643. func (*ResponseSetOption) Descriptor() ([]byte, []int) {
  1644. return fileDescriptor_types_5b877df1938afe10, []int{17}
  1645. }
  1646. func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error {
  1647. return m.Unmarshal(b)
  1648. }
  1649. func (m *ResponseSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1650. if deterministic {
  1651. return xxx_messageInfo_ResponseSetOption.Marshal(b, m, deterministic)
  1652. } else {
  1653. b = b[:cap(b)]
  1654. n, err := m.MarshalTo(b)
  1655. if err != nil {
  1656. return nil, err
  1657. }
  1658. return b[:n], nil
  1659. }
  1660. }
  1661. func (dst *ResponseSetOption) XXX_Merge(src proto.Message) {
  1662. xxx_messageInfo_ResponseSetOption.Merge(dst, src)
  1663. }
  1664. func (m *ResponseSetOption) XXX_Size() int {
  1665. return m.Size()
  1666. }
  1667. func (m *ResponseSetOption) XXX_DiscardUnknown() {
  1668. xxx_messageInfo_ResponseSetOption.DiscardUnknown(m)
  1669. }
  1670. var xxx_messageInfo_ResponseSetOption proto.InternalMessageInfo
  1671. func (m *ResponseSetOption) GetCode() uint32 {
  1672. if m != nil {
  1673. return m.Code
  1674. }
  1675. return 0
  1676. }
  1677. func (m *ResponseSetOption) GetLog() string {
  1678. if m != nil {
  1679. return m.Log
  1680. }
  1681. return ""
  1682. }
  1683. func (m *ResponseSetOption) GetInfo() string {
  1684. if m != nil {
  1685. return m.Info
  1686. }
  1687. return ""
  1688. }
  1689. type ResponseInitChain struct {
  1690. ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams" json:"consensus_params,omitempty"`
  1691. Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators" json:"validators"`
  1692. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1693. XXX_unrecognized []byte `json:"-"`
  1694. XXX_sizecache int32 `json:"-"`
  1695. }
  1696. func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} }
  1697. func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) }
  1698. func (*ResponseInitChain) ProtoMessage() {}
  1699. func (*ResponseInitChain) Descriptor() ([]byte, []int) {
  1700. return fileDescriptor_types_5b877df1938afe10, []int{18}
  1701. }
  1702. func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error {
  1703. return m.Unmarshal(b)
  1704. }
  1705. func (m *ResponseInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1706. if deterministic {
  1707. return xxx_messageInfo_ResponseInitChain.Marshal(b, m, deterministic)
  1708. } else {
  1709. b = b[:cap(b)]
  1710. n, err := m.MarshalTo(b)
  1711. if err != nil {
  1712. return nil, err
  1713. }
  1714. return b[:n], nil
  1715. }
  1716. }
  1717. func (dst *ResponseInitChain) XXX_Merge(src proto.Message) {
  1718. xxx_messageInfo_ResponseInitChain.Merge(dst, src)
  1719. }
  1720. func (m *ResponseInitChain) XXX_Size() int {
  1721. return m.Size()
  1722. }
  1723. func (m *ResponseInitChain) XXX_DiscardUnknown() {
  1724. xxx_messageInfo_ResponseInitChain.DiscardUnknown(m)
  1725. }
  1726. var xxx_messageInfo_ResponseInitChain proto.InternalMessageInfo
  1727. func (m *ResponseInitChain) GetConsensusParams() *ConsensusParams {
  1728. if m != nil {
  1729. return m.ConsensusParams
  1730. }
  1731. return nil
  1732. }
  1733. func (m *ResponseInitChain) GetValidators() []ValidatorUpdate {
  1734. if m != nil {
  1735. return m.Validators
  1736. }
  1737. return nil
  1738. }
  1739. type ResponseQuery struct {
  1740. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1741. // bytes data = 2; // use "value" instead.
  1742. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1743. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1744. Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
  1745. Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
  1746. Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
  1747. Proof *merkle.Proof `protobuf:"bytes,8,opt,name=proof" json:"proof,omitempty"`
  1748. Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
  1749. Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"`
  1750. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1751. XXX_unrecognized []byte `json:"-"`
  1752. XXX_sizecache int32 `json:"-"`
  1753. }
  1754. func (m *ResponseQuery) Reset() { *m = ResponseQuery{} }
  1755. func (m *ResponseQuery) String() string { return proto.CompactTextString(m) }
  1756. func (*ResponseQuery) ProtoMessage() {}
  1757. func (*ResponseQuery) Descriptor() ([]byte, []int) {
  1758. return fileDescriptor_types_5b877df1938afe10, []int{19}
  1759. }
  1760. func (m *ResponseQuery) XXX_Unmarshal(b []byte) error {
  1761. return m.Unmarshal(b)
  1762. }
  1763. func (m *ResponseQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1764. if deterministic {
  1765. return xxx_messageInfo_ResponseQuery.Marshal(b, m, deterministic)
  1766. } else {
  1767. b = b[:cap(b)]
  1768. n, err := m.MarshalTo(b)
  1769. if err != nil {
  1770. return nil, err
  1771. }
  1772. return b[:n], nil
  1773. }
  1774. }
  1775. func (dst *ResponseQuery) XXX_Merge(src proto.Message) {
  1776. xxx_messageInfo_ResponseQuery.Merge(dst, src)
  1777. }
  1778. func (m *ResponseQuery) XXX_Size() int {
  1779. return m.Size()
  1780. }
  1781. func (m *ResponseQuery) XXX_DiscardUnknown() {
  1782. xxx_messageInfo_ResponseQuery.DiscardUnknown(m)
  1783. }
  1784. var xxx_messageInfo_ResponseQuery proto.InternalMessageInfo
  1785. func (m *ResponseQuery) GetCode() uint32 {
  1786. if m != nil {
  1787. return m.Code
  1788. }
  1789. return 0
  1790. }
  1791. func (m *ResponseQuery) GetLog() string {
  1792. if m != nil {
  1793. return m.Log
  1794. }
  1795. return ""
  1796. }
  1797. func (m *ResponseQuery) GetInfo() string {
  1798. if m != nil {
  1799. return m.Info
  1800. }
  1801. return ""
  1802. }
  1803. func (m *ResponseQuery) GetIndex() int64 {
  1804. if m != nil {
  1805. return m.Index
  1806. }
  1807. return 0
  1808. }
  1809. func (m *ResponseQuery) GetKey() []byte {
  1810. if m != nil {
  1811. return m.Key
  1812. }
  1813. return nil
  1814. }
  1815. func (m *ResponseQuery) GetValue() []byte {
  1816. if m != nil {
  1817. return m.Value
  1818. }
  1819. return nil
  1820. }
  1821. func (m *ResponseQuery) GetProof() *merkle.Proof {
  1822. if m != nil {
  1823. return m.Proof
  1824. }
  1825. return nil
  1826. }
  1827. func (m *ResponseQuery) GetHeight() int64 {
  1828. if m != nil {
  1829. return m.Height
  1830. }
  1831. return 0
  1832. }
  1833. func (m *ResponseQuery) GetCodespace() string {
  1834. if m != nil {
  1835. return m.Codespace
  1836. }
  1837. return ""
  1838. }
  1839. type ResponseBeginBlock struct {
  1840. Tags []common.KVPair `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
  1841. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1842. XXX_unrecognized []byte `json:"-"`
  1843. XXX_sizecache int32 `json:"-"`
  1844. }
  1845. func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} }
  1846. func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) }
  1847. func (*ResponseBeginBlock) ProtoMessage() {}
  1848. func (*ResponseBeginBlock) Descriptor() ([]byte, []int) {
  1849. return fileDescriptor_types_5b877df1938afe10, []int{20}
  1850. }
  1851. func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error {
  1852. return m.Unmarshal(b)
  1853. }
  1854. func (m *ResponseBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1855. if deterministic {
  1856. return xxx_messageInfo_ResponseBeginBlock.Marshal(b, m, deterministic)
  1857. } else {
  1858. b = b[:cap(b)]
  1859. n, err := m.MarshalTo(b)
  1860. if err != nil {
  1861. return nil, err
  1862. }
  1863. return b[:n], nil
  1864. }
  1865. }
  1866. func (dst *ResponseBeginBlock) XXX_Merge(src proto.Message) {
  1867. xxx_messageInfo_ResponseBeginBlock.Merge(dst, src)
  1868. }
  1869. func (m *ResponseBeginBlock) XXX_Size() int {
  1870. return m.Size()
  1871. }
  1872. func (m *ResponseBeginBlock) XXX_DiscardUnknown() {
  1873. xxx_messageInfo_ResponseBeginBlock.DiscardUnknown(m)
  1874. }
  1875. var xxx_messageInfo_ResponseBeginBlock proto.InternalMessageInfo
  1876. func (m *ResponseBeginBlock) GetTags() []common.KVPair {
  1877. if m != nil {
  1878. return m.Tags
  1879. }
  1880. return nil
  1881. }
  1882. type ResponseCheckTx struct {
  1883. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1884. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1885. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1886. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1887. GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
  1888. GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
  1889. Tags []common.KVPair `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
  1890. Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"`
  1891. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1892. XXX_unrecognized []byte `json:"-"`
  1893. XXX_sizecache int32 `json:"-"`
  1894. }
  1895. func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} }
  1896. func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) }
  1897. func (*ResponseCheckTx) ProtoMessage() {}
  1898. func (*ResponseCheckTx) Descriptor() ([]byte, []int) {
  1899. return fileDescriptor_types_5b877df1938afe10, []int{21}
  1900. }
  1901. func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error {
  1902. return m.Unmarshal(b)
  1903. }
  1904. func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1905. if deterministic {
  1906. return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic)
  1907. } else {
  1908. b = b[:cap(b)]
  1909. n, err := m.MarshalTo(b)
  1910. if err != nil {
  1911. return nil, err
  1912. }
  1913. return b[:n], nil
  1914. }
  1915. }
  1916. func (dst *ResponseCheckTx) XXX_Merge(src proto.Message) {
  1917. xxx_messageInfo_ResponseCheckTx.Merge(dst, src)
  1918. }
  1919. func (m *ResponseCheckTx) XXX_Size() int {
  1920. return m.Size()
  1921. }
  1922. func (m *ResponseCheckTx) XXX_DiscardUnknown() {
  1923. xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m)
  1924. }
  1925. var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo
  1926. func (m *ResponseCheckTx) GetCode() uint32 {
  1927. if m != nil {
  1928. return m.Code
  1929. }
  1930. return 0
  1931. }
  1932. func (m *ResponseCheckTx) GetData() []byte {
  1933. if m != nil {
  1934. return m.Data
  1935. }
  1936. return nil
  1937. }
  1938. func (m *ResponseCheckTx) GetLog() string {
  1939. if m != nil {
  1940. return m.Log
  1941. }
  1942. return ""
  1943. }
  1944. func (m *ResponseCheckTx) GetInfo() string {
  1945. if m != nil {
  1946. return m.Info
  1947. }
  1948. return ""
  1949. }
  1950. func (m *ResponseCheckTx) GetGasWanted() int64 {
  1951. if m != nil {
  1952. return m.GasWanted
  1953. }
  1954. return 0
  1955. }
  1956. func (m *ResponseCheckTx) GetGasUsed() int64 {
  1957. if m != nil {
  1958. return m.GasUsed
  1959. }
  1960. return 0
  1961. }
  1962. func (m *ResponseCheckTx) GetTags() []common.KVPair {
  1963. if m != nil {
  1964. return m.Tags
  1965. }
  1966. return nil
  1967. }
  1968. func (m *ResponseCheckTx) GetCodespace() string {
  1969. if m != nil {
  1970. return m.Codespace
  1971. }
  1972. return ""
  1973. }
  1974. type ResponseDeliverTx struct {
  1975. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1976. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1977. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1978. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1979. GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
  1980. GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
  1981. Tags []common.KVPair `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
  1982. Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"`
  1983. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1984. XXX_unrecognized []byte `json:"-"`
  1985. XXX_sizecache int32 `json:"-"`
  1986. }
  1987. func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} }
  1988. func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) }
  1989. func (*ResponseDeliverTx) ProtoMessage() {}
  1990. func (*ResponseDeliverTx) Descriptor() ([]byte, []int) {
  1991. return fileDescriptor_types_5b877df1938afe10, []int{22}
  1992. }
  1993. func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error {
  1994. return m.Unmarshal(b)
  1995. }
  1996. func (m *ResponseDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1997. if deterministic {
  1998. return xxx_messageInfo_ResponseDeliverTx.Marshal(b, m, deterministic)
  1999. } else {
  2000. b = b[:cap(b)]
  2001. n, err := m.MarshalTo(b)
  2002. if err != nil {
  2003. return nil, err
  2004. }
  2005. return b[:n], nil
  2006. }
  2007. }
  2008. func (dst *ResponseDeliverTx) XXX_Merge(src proto.Message) {
  2009. xxx_messageInfo_ResponseDeliverTx.Merge(dst, src)
  2010. }
  2011. func (m *ResponseDeliverTx) XXX_Size() int {
  2012. return m.Size()
  2013. }
  2014. func (m *ResponseDeliverTx) XXX_DiscardUnknown() {
  2015. xxx_messageInfo_ResponseDeliverTx.DiscardUnknown(m)
  2016. }
  2017. var xxx_messageInfo_ResponseDeliverTx proto.InternalMessageInfo
  2018. func (m *ResponseDeliverTx) GetCode() uint32 {
  2019. if m != nil {
  2020. return m.Code
  2021. }
  2022. return 0
  2023. }
  2024. func (m *ResponseDeliverTx) GetData() []byte {
  2025. if m != nil {
  2026. return m.Data
  2027. }
  2028. return nil
  2029. }
  2030. func (m *ResponseDeliverTx) GetLog() string {
  2031. if m != nil {
  2032. return m.Log
  2033. }
  2034. return ""
  2035. }
  2036. func (m *ResponseDeliverTx) GetInfo() string {
  2037. if m != nil {
  2038. return m.Info
  2039. }
  2040. return ""
  2041. }
  2042. func (m *ResponseDeliverTx) GetGasWanted() int64 {
  2043. if m != nil {
  2044. return m.GasWanted
  2045. }
  2046. return 0
  2047. }
  2048. func (m *ResponseDeliverTx) GetGasUsed() int64 {
  2049. if m != nil {
  2050. return m.GasUsed
  2051. }
  2052. return 0
  2053. }
  2054. func (m *ResponseDeliverTx) GetTags() []common.KVPair {
  2055. if m != nil {
  2056. return m.Tags
  2057. }
  2058. return nil
  2059. }
  2060. func (m *ResponseDeliverTx) GetCodespace() string {
  2061. if m != nil {
  2062. return m.Codespace
  2063. }
  2064. return ""
  2065. }
  2066. type ResponseEndBlock struct {
  2067. ValidatorUpdates []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates" json:"validator_updates"`
  2068. ConsensusParamUpdates *ConsensusParams `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates" json:"consensus_param_updates,omitempty"`
  2069. Tags []common.KVPair `protobuf:"bytes,3,rep,name=tags" json:"tags,omitempty"`
  2070. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2071. XXX_unrecognized []byte `json:"-"`
  2072. XXX_sizecache int32 `json:"-"`
  2073. }
  2074. func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} }
  2075. func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) }
  2076. func (*ResponseEndBlock) ProtoMessage() {}
  2077. func (*ResponseEndBlock) Descriptor() ([]byte, []int) {
  2078. return fileDescriptor_types_5b877df1938afe10, []int{23}
  2079. }
  2080. func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error {
  2081. return m.Unmarshal(b)
  2082. }
  2083. func (m *ResponseEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2084. if deterministic {
  2085. return xxx_messageInfo_ResponseEndBlock.Marshal(b, m, deterministic)
  2086. } else {
  2087. b = b[:cap(b)]
  2088. n, err := m.MarshalTo(b)
  2089. if err != nil {
  2090. return nil, err
  2091. }
  2092. return b[:n], nil
  2093. }
  2094. }
  2095. func (dst *ResponseEndBlock) XXX_Merge(src proto.Message) {
  2096. xxx_messageInfo_ResponseEndBlock.Merge(dst, src)
  2097. }
  2098. func (m *ResponseEndBlock) XXX_Size() int {
  2099. return m.Size()
  2100. }
  2101. func (m *ResponseEndBlock) XXX_DiscardUnknown() {
  2102. xxx_messageInfo_ResponseEndBlock.DiscardUnknown(m)
  2103. }
  2104. var xxx_messageInfo_ResponseEndBlock proto.InternalMessageInfo
  2105. func (m *ResponseEndBlock) GetValidatorUpdates() []ValidatorUpdate {
  2106. if m != nil {
  2107. return m.ValidatorUpdates
  2108. }
  2109. return nil
  2110. }
  2111. func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams {
  2112. if m != nil {
  2113. return m.ConsensusParamUpdates
  2114. }
  2115. return nil
  2116. }
  2117. func (m *ResponseEndBlock) GetTags() []common.KVPair {
  2118. if m != nil {
  2119. return m.Tags
  2120. }
  2121. return nil
  2122. }
  2123. type ResponseCommit struct {
  2124. // reserve 1
  2125. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  2126. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2127. XXX_unrecognized []byte `json:"-"`
  2128. XXX_sizecache int32 `json:"-"`
  2129. }
  2130. func (m *ResponseCommit) Reset() { *m = ResponseCommit{} }
  2131. func (m *ResponseCommit) String() string { return proto.CompactTextString(m) }
  2132. func (*ResponseCommit) ProtoMessage() {}
  2133. func (*ResponseCommit) Descriptor() ([]byte, []int) {
  2134. return fileDescriptor_types_5b877df1938afe10, []int{24}
  2135. }
  2136. func (m *ResponseCommit) XXX_Unmarshal(b []byte) error {
  2137. return m.Unmarshal(b)
  2138. }
  2139. func (m *ResponseCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2140. if deterministic {
  2141. return xxx_messageInfo_ResponseCommit.Marshal(b, m, deterministic)
  2142. } else {
  2143. b = b[:cap(b)]
  2144. n, err := m.MarshalTo(b)
  2145. if err != nil {
  2146. return nil, err
  2147. }
  2148. return b[:n], nil
  2149. }
  2150. }
  2151. func (dst *ResponseCommit) XXX_Merge(src proto.Message) {
  2152. xxx_messageInfo_ResponseCommit.Merge(dst, src)
  2153. }
  2154. func (m *ResponseCommit) XXX_Size() int {
  2155. return m.Size()
  2156. }
  2157. func (m *ResponseCommit) XXX_DiscardUnknown() {
  2158. xxx_messageInfo_ResponseCommit.DiscardUnknown(m)
  2159. }
  2160. var xxx_messageInfo_ResponseCommit proto.InternalMessageInfo
  2161. func (m *ResponseCommit) GetData() []byte {
  2162. if m != nil {
  2163. return m.Data
  2164. }
  2165. return nil
  2166. }
  2167. // ConsensusParams contains all consensus-relevant parameters
  2168. // that can be adjusted by the abci app
  2169. type ConsensusParams struct {
  2170. BlockSize *BlockSizeParams `protobuf:"bytes,1,opt,name=block_size,json=blockSize" json:"block_size,omitempty"`
  2171. Evidence *EvidenceParams `protobuf:"bytes,2,opt,name=evidence" json:"evidence,omitempty"`
  2172. Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator" json:"validator,omitempty"`
  2173. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2174. XXX_unrecognized []byte `json:"-"`
  2175. XXX_sizecache int32 `json:"-"`
  2176. }
  2177. func (m *ConsensusParams) Reset() { *m = ConsensusParams{} }
  2178. func (m *ConsensusParams) String() string { return proto.CompactTextString(m) }
  2179. func (*ConsensusParams) ProtoMessage() {}
  2180. func (*ConsensusParams) Descriptor() ([]byte, []int) {
  2181. return fileDescriptor_types_5b877df1938afe10, []int{25}
  2182. }
  2183. func (m *ConsensusParams) XXX_Unmarshal(b []byte) error {
  2184. return m.Unmarshal(b)
  2185. }
  2186. func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2187. if deterministic {
  2188. return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic)
  2189. } else {
  2190. b = b[:cap(b)]
  2191. n, err := m.MarshalTo(b)
  2192. if err != nil {
  2193. return nil, err
  2194. }
  2195. return b[:n], nil
  2196. }
  2197. }
  2198. func (dst *ConsensusParams) XXX_Merge(src proto.Message) {
  2199. xxx_messageInfo_ConsensusParams.Merge(dst, src)
  2200. }
  2201. func (m *ConsensusParams) XXX_Size() int {
  2202. return m.Size()
  2203. }
  2204. func (m *ConsensusParams) XXX_DiscardUnknown() {
  2205. xxx_messageInfo_ConsensusParams.DiscardUnknown(m)
  2206. }
  2207. var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo
  2208. func (m *ConsensusParams) GetBlockSize() *BlockSizeParams {
  2209. if m != nil {
  2210. return m.BlockSize
  2211. }
  2212. return nil
  2213. }
  2214. func (m *ConsensusParams) GetEvidence() *EvidenceParams {
  2215. if m != nil {
  2216. return m.Evidence
  2217. }
  2218. return nil
  2219. }
  2220. func (m *ConsensusParams) GetValidator() *ValidatorParams {
  2221. if m != nil {
  2222. return m.Validator
  2223. }
  2224. return nil
  2225. }
  2226. // BlockSize contains limits on the block size.
  2227. type BlockSizeParams struct {
  2228. // Note: must be greater than 0
  2229. MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
  2230. // Note: must be greater or equal to -1
  2231. MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
  2232. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2233. XXX_unrecognized []byte `json:"-"`
  2234. XXX_sizecache int32 `json:"-"`
  2235. }
  2236. func (m *BlockSizeParams) Reset() { *m = BlockSizeParams{} }
  2237. func (m *BlockSizeParams) String() string { return proto.CompactTextString(m) }
  2238. func (*BlockSizeParams) ProtoMessage() {}
  2239. func (*BlockSizeParams) Descriptor() ([]byte, []int) {
  2240. return fileDescriptor_types_5b877df1938afe10, []int{26}
  2241. }
  2242. func (m *BlockSizeParams) XXX_Unmarshal(b []byte) error {
  2243. return m.Unmarshal(b)
  2244. }
  2245. func (m *BlockSizeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2246. if deterministic {
  2247. return xxx_messageInfo_BlockSizeParams.Marshal(b, m, deterministic)
  2248. } else {
  2249. b = b[:cap(b)]
  2250. n, err := m.MarshalTo(b)
  2251. if err != nil {
  2252. return nil, err
  2253. }
  2254. return b[:n], nil
  2255. }
  2256. }
  2257. func (dst *BlockSizeParams) XXX_Merge(src proto.Message) {
  2258. xxx_messageInfo_BlockSizeParams.Merge(dst, src)
  2259. }
  2260. func (m *BlockSizeParams) XXX_Size() int {
  2261. return m.Size()
  2262. }
  2263. func (m *BlockSizeParams) XXX_DiscardUnknown() {
  2264. xxx_messageInfo_BlockSizeParams.DiscardUnknown(m)
  2265. }
  2266. var xxx_messageInfo_BlockSizeParams proto.InternalMessageInfo
  2267. func (m *BlockSizeParams) GetMaxBytes() int64 {
  2268. if m != nil {
  2269. return m.MaxBytes
  2270. }
  2271. return 0
  2272. }
  2273. func (m *BlockSizeParams) GetMaxGas() int64 {
  2274. if m != nil {
  2275. return m.MaxGas
  2276. }
  2277. return 0
  2278. }
  2279. // EvidenceParams contains limits on the evidence.
  2280. type EvidenceParams struct {
  2281. // Note: must be greater than 0
  2282. MaxAge int64 `protobuf:"varint,1,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
  2283. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2284. XXX_unrecognized []byte `json:"-"`
  2285. XXX_sizecache int32 `json:"-"`
  2286. }
  2287. func (m *EvidenceParams) Reset() { *m = EvidenceParams{} }
  2288. func (m *EvidenceParams) String() string { return proto.CompactTextString(m) }
  2289. func (*EvidenceParams) ProtoMessage() {}
  2290. func (*EvidenceParams) Descriptor() ([]byte, []int) {
  2291. return fileDescriptor_types_5b877df1938afe10, []int{27}
  2292. }
  2293. func (m *EvidenceParams) XXX_Unmarshal(b []byte) error {
  2294. return m.Unmarshal(b)
  2295. }
  2296. func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2297. if deterministic {
  2298. return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic)
  2299. } else {
  2300. b = b[:cap(b)]
  2301. n, err := m.MarshalTo(b)
  2302. if err != nil {
  2303. return nil, err
  2304. }
  2305. return b[:n], nil
  2306. }
  2307. }
  2308. func (dst *EvidenceParams) XXX_Merge(src proto.Message) {
  2309. xxx_messageInfo_EvidenceParams.Merge(dst, src)
  2310. }
  2311. func (m *EvidenceParams) XXX_Size() int {
  2312. return m.Size()
  2313. }
  2314. func (m *EvidenceParams) XXX_DiscardUnknown() {
  2315. xxx_messageInfo_EvidenceParams.DiscardUnknown(m)
  2316. }
  2317. var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo
  2318. func (m *EvidenceParams) GetMaxAge() int64 {
  2319. if m != nil {
  2320. return m.MaxAge
  2321. }
  2322. return 0
  2323. }
  2324. // ValidatorParams contains limits on validators.
  2325. type ValidatorParams struct {
  2326. PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes" json:"pub_key_types,omitempty"`
  2327. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2328. XXX_unrecognized []byte `json:"-"`
  2329. XXX_sizecache int32 `json:"-"`
  2330. }
  2331. func (m *ValidatorParams) Reset() { *m = ValidatorParams{} }
  2332. func (m *ValidatorParams) String() string { return proto.CompactTextString(m) }
  2333. func (*ValidatorParams) ProtoMessage() {}
  2334. func (*ValidatorParams) Descriptor() ([]byte, []int) {
  2335. return fileDescriptor_types_5b877df1938afe10, []int{28}
  2336. }
  2337. func (m *ValidatorParams) XXX_Unmarshal(b []byte) error {
  2338. return m.Unmarshal(b)
  2339. }
  2340. func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2341. if deterministic {
  2342. return xxx_messageInfo_ValidatorParams.Marshal(b, m, deterministic)
  2343. } else {
  2344. b = b[:cap(b)]
  2345. n, err := m.MarshalTo(b)
  2346. if err != nil {
  2347. return nil, err
  2348. }
  2349. return b[:n], nil
  2350. }
  2351. }
  2352. func (dst *ValidatorParams) XXX_Merge(src proto.Message) {
  2353. xxx_messageInfo_ValidatorParams.Merge(dst, src)
  2354. }
  2355. func (m *ValidatorParams) XXX_Size() int {
  2356. return m.Size()
  2357. }
  2358. func (m *ValidatorParams) XXX_DiscardUnknown() {
  2359. xxx_messageInfo_ValidatorParams.DiscardUnknown(m)
  2360. }
  2361. var xxx_messageInfo_ValidatorParams proto.InternalMessageInfo
  2362. func (m *ValidatorParams) GetPubKeyTypes() []string {
  2363. if m != nil {
  2364. return m.PubKeyTypes
  2365. }
  2366. return nil
  2367. }
  2368. type LastCommitInfo struct {
  2369. Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
  2370. Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes" json:"votes"`
  2371. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2372. XXX_unrecognized []byte `json:"-"`
  2373. XXX_sizecache int32 `json:"-"`
  2374. }
  2375. func (m *LastCommitInfo) Reset() { *m = LastCommitInfo{} }
  2376. func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) }
  2377. func (*LastCommitInfo) ProtoMessage() {}
  2378. func (*LastCommitInfo) Descriptor() ([]byte, []int) {
  2379. return fileDescriptor_types_5b877df1938afe10, []int{29}
  2380. }
  2381. func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error {
  2382. return m.Unmarshal(b)
  2383. }
  2384. func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2385. if deterministic {
  2386. return xxx_messageInfo_LastCommitInfo.Marshal(b, m, deterministic)
  2387. } else {
  2388. b = b[:cap(b)]
  2389. n, err := m.MarshalTo(b)
  2390. if err != nil {
  2391. return nil, err
  2392. }
  2393. return b[:n], nil
  2394. }
  2395. }
  2396. func (dst *LastCommitInfo) XXX_Merge(src proto.Message) {
  2397. xxx_messageInfo_LastCommitInfo.Merge(dst, src)
  2398. }
  2399. func (m *LastCommitInfo) XXX_Size() int {
  2400. return m.Size()
  2401. }
  2402. func (m *LastCommitInfo) XXX_DiscardUnknown() {
  2403. xxx_messageInfo_LastCommitInfo.DiscardUnknown(m)
  2404. }
  2405. var xxx_messageInfo_LastCommitInfo proto.InternalMessageInfo
  2406. func (m *LastCommitInfo) GetRound() int32 {
  2407. if m != nil {
  2408. return m.Round
  2409. }
  2410. return 0
  2411. }
  2412. func (m *LastCommitInfo) GetVotes() []VoteInfo {
  2413. if m != nil {
  2414. return m.Votes
  2415. }
  2416. return nil
  2417. }
  2418. type Header struct {
  2419. // basic block info
  2420. Version Version `protobuf:"bytes,1,opt,name=version" json:"version"`
  2421. ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
  2422. Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
  2423. Time time.Time `protobuf:"bytes,4,opt,name=time,stdtime" json:"time"`
  2424. NumTxs int64 `protobuf:"varint,5,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"`
  2425. TotalTxs int64 `protobuf:"varint,6,opt,name=total_txs,json=totalTxs,proto3" json:"total_txs,omitempty"`
  2426. // prev block info
  2427. LastBlockId BlockID `protobuf:"bytes,7,opt,name=last_block_id,json=lastBlockId" json:"last_block_id"`
  2428. // hashes of block data
  2429. LastCommitHash []byte `protobuf:"bytes,8,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
  2430. DataHash []byte `protobuf:"bytes,9,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
  2431. // hashes from the app output from the prev block
  2432. ValidatorsHash []byte `protobuf:"bytes,10,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`
  2433. NextValidatorsHash []byte `protobuf:"bytes,11,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"`
  2434. ConsensusHash []byte `protobuf:"bytes,12,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
  2435. AppHash []byte `protobuf:"bytes,13,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
  2436. LastResultsHash []byte `protobuf:"bytes,14,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
  2437. // consensus info
  2438. EvidenceHash []byte `protobuf:"bytes,15,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`
  2439. ProposerAddress []byte `protobuf:"bytes,16,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
  2440. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2441. XXX_unrecognized []byte `json:"-"`
  2442. XXX_sizecache int32 `json:"-"`
  2443. }
  2444. func (m *Header) Reset() { *m = Header{} }
  2445. func (m *Header) String() string { return proto.CompactTextString(m) }
  2446. func (*Header) ProtoMessage() {}
  2447. func (*Header) Descriptor() ([]byte, []int) {
  2448. return fileDescriptor_types_5b877df1938afe10, []int{30}
  2449. }
  2450. func (m *Header) XXX_Unmarshal(b []byte) error {
  2451. return m.Unmarshal(b)
  2452. }
  2453. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2454. if deterministic {
  2455. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  2456. } else {
  2457. b = b[:cap(b)]
  2458. n, err := m.MarshalTo(b)
  2459. if err != nil {
  2460. return nil, err
  2461. }
  2462. return b[:n], nil
  2463. }
  2464. }
  2465. func (dst *Header) XXX_Merge(src proto.Message) {
  2466. xxx_messageInfo_Header.Merge(dst, src)
  2467. }
  2468. func (m *Header) XXX_Size() int {
  2469. return m.Size()
  2470. }
  2471. func (m *Header) XXX_DiscardUnknown() {
  2472. xxx_messageInfo_Header.DiscardUnknown(m)
  2473. }
  2474. var xxx_messageInfo_Header proto.InternalMessageInfo
  2475. func (m *Header) GetVersion() Version {
  2476. if m != nil {
  2477. return m.Version
  2478. }
  2479. return Version{}
  2480. }
  2481. func (m *Header) GetChainID() string {
  2482. if m != nil {
  2483. return m.ChainID
  2484. }
  2485. return ""
  2486. }
  2487. func (m *Header) GetHeight() int64 {
  2488. if m != nil {
  2489. return m.Height
  2490. }
  2491. return 0
  2492. }
  2493. func (m *Header) GetTime() time.Time {
  2494. if m != nil {
  2495. return m.Time
  2496. }
  2497. return time.Time{}
  2498. }
  2499. func (m *Header) GetNumTxs() int64 {
  2500. if m != nil {
  2501. return m.NumTxs
  2502. }
  2503. return 0
  2504. }
  2505. func (m *Header) GetTotalTxs() int64 {
  2506. if m != nil {
  2507. return m.TotalTxs
  2508. }
  2509. return 0
  2510. }
  2511. func (m *Header) GetLastBlockId() BlockID {
  2512. if m != nil {
  2513. return m.LastBlockId
  2514. }
  2515. return BlockID{}
  2516. }
  2517. func (m *Header) GetLastCommitHash() []byte {
  2518. if m != nil {
  2519. return m.LastCommitHash
  2520. }
  2521. return nil
  2522. }
  2523. func (m *Header) GetDataHash() []byte {
  2524. if m != nil {
  2525. return m.DataHash
  2526. }
  2527. return nil
  2528. }
  2529. func (m *Header) GetValidatorsHash() []byte {
  2530. if m != nil {
  2531. return m.ValidatorsHash
  2532. }
  2533. return nil
  2534. }
  2535. func (m *Header) GetNextValidatorsHash() []byte {
  2536. if m != nil {
  2537. return m.NextValidatorsHash
  2538. }
  2539. return nil
  2540. }
  2541. func (m *Header) GetConsensusHash() []byte {
  2542. if m != nil {
  2543. return m.ConsensusHash
  2544. }
  2545. return nil
  2546. }
  2547. func (m *Header) GetAppHash() []byte {
  2548. if m != nil {
  2549. return m.AppHash
  2550. }
  2551. return nil
  2552. }
  2553. func (m *Header) GetLastResultsHash() []byte {
  2554. if m != nil {
  2555. return m.LastResultsHash
  2556. }
  2557. return nil
  2558. }
  2559. func (m *Header) GetEvidenceHash() []byte {
  2560. if m != nil {
  2561. return m.EvidenceHash
  2562. }
  2563. return nil
  2564. }
  2565. func (m *Header) GetProposerAddress() []byte {
  2566. if m != nil {
  2567. return m.ProposerAddress
  2568. }
  2569. return nil
  2570. }
  2571. type Version struct {
  2572. Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"`
  2573. App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"`
  2574. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2575. XXX_unrecognized []byte `json:"-"`
  2576. XXX_sizecache int32 `json:"-"`
  2577. }
  2578. func (m *Version) Reset() { *m = Version{} }
  2579. func (m *Version) String() string { return proto.CompactTextString(m) }
  2580. func (*Version) ProtoMessage() {}
  2581. func (*Version) Descriptor() ([]byte, []int) {
  2582. return fileDescriptor_types_5b877df1938afe10, []int{31}
  2583. }
  2584. func (m *Version) XXX_Unmarshal(b []byte) error {
  2585. return m.Unmarshal(b)
  2586. }
  2587. func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2588. if deterministic {
  2589. return xxx_messageInfo_Version.Marshal(b, m, deterministic)
  2590. } else {
  2591. b = b[:cap(b)]
  2592. n, err := m.MarshalTo(b)
  2593. if err != nil {
  2594. return nil, err
  2595. }
  2596. return b[:n], nil
  2597. }
  2598. }
  2599. func (dst *Version) XXX_Merge(src proto.Message) {
  2600. xxx_messageInfo_Version.Merge(dst, src)
  2601. }
  2602. func (m *Version) XXX_Size() int {
  2603. return m.Size()
  2604. }
  2605. func (m *Version) XXX_DiscardUnknown() {
  2606. xxx_messageInfo_Version.DiscardUnknown(m)
  2607. }
  2608. var xxx_messageInfo_Version proto.InternalMessageInfo
  2609. func (m *Version) GetBlock() uint64 {
  2610. if m != nil {
  2611. return m.Block
  2612. }
  2613. return 0
  2614. }
  2615. func (m *Version) GetApp() uint64 {
  2616. if m != nil {
  2617. return m.App
  2618. }
  2619. return 0
  2620. }
  2621. type BlockID struct {
  2622. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
  2623. PartsHeader PartSetHeader `protobuf:"bytes,2,opt,name=parts_header,json=partsHeader" json:"parts_header"`
  2624. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2625. XXX_unrecognized []byte `json:"-"`
  2626. XXX_sizecache int32 `json:"-"`
  2627. }
  2628. func (m *BlockID) Reset() { *m = BlockID{} }
  2629. func (m *BlockID) String() string { return proto.CompactTextString(m) }
  2630. func (*BlockID) ProtoMessage() {}
  2631. func (*BlockID) Descriptor() ([]byte, []int) {
  2632. return fileDescriptor_types_5b877df1938afe10, []int{32}
  2633. }
  2634. func (m *BlockID) XXX_Unmarshal(b []byte) error {
  2635. return m.Unmarshal(b)
  2636. }
  2637. func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2638. if deterministic {
  2639. return xxx_messageInfo_BlockID.Marshal(b, m, deterministic)
  2640. } else {
  2641. b = b[:cap(b)]
  2642. n, err := m.MarshalTo(b)
  2643. if err != nil {
  2644. return nil, err
  2645. }
  2646. return b[:n], nil
  2647. }
  2648. }
  2649. func (dst *BlockID) XXX_Merge(src proto.Message) {
  2650. xxx_messageInfo_BlockID.Merge(dst, src)
  2651. }
  2652. func (m *BlockID) XXX_Size() int {
  2653. return m.Size()
  2654. }
  2655. func (m *BlockID) XXX_DiscardUnknown() {
  2656. xxx_messageInfo_BlockID.DiscardUnknown(m)
  2657. }
  2658. var xxx_messageInfo_BlockID proto.InternalMessageInfo
  2659. func (m *BlockID) GetHash() []byte {
  2660. if m != nil {
  2661. return m.Hash
  2662. }
  2663. return nil
  2664. }
  2665. func (m *BlockID) GetPartsHeader() PartSetHeader {
  2666. if m != nil {
  2667. return m.PartsHeader
  2668. }
  2669. return PartSetHeader{}
  2670. }
  2671. type PartSetHeader struct {
  2672. Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
  2673. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
  2674. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2675. XXX_unrecognized []byte `json:"-"`
  2676. XXX_sizecache int32 `json:"-"`
  2677. }
  2678. func (m *PartSetHeader) Reset() { *m = PartSetHeader{} }
  2679. func (m *PartSetHeader) String() string { return proto.CompactTextString(m) }
  2680. func (*PartSetHeader) ProtoMessage() {}
  2681. func (*PartSetHeader) Descriptor() ([]byte, []int) {
  2682. return fileDescriptor_types_5b877df1938afe10, []int{33}
  2683. }
  2684. func (m *PartSetHeader) XXX_Unmarshal(b []byte) error {
  2685. return m.Unmarshal(b)
  2686. }
  2687. func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2688. if deterministic {
  2689. return xxx_messageInfo_PartSetHeader.Marshal(b, m, deterministic)
  2690. } else {
  2691. b = b[:cap(b)]
  2692. n, err := m.MarshalTo(b)
  2693. if err != nil {
  2694. return nil, err
  2695. }
  2696. return b[:n], nil
  2697. }
  2698. }
  2699. func (dst *PartSetHeader) XXX_Merge(src proto.Message) {
  2700. xxx_messageInfo_PartSetHeader.Merge(dst, src)
  2701. }
  2702. func (m *PartSetHeader) XXX_Size() int {
  2703. return m.Size()
  2704. }
  2705. func (m *PartSetHeader) XXX_DiscardUnknown() {
  2706. xxx_messageInfo_PartSetHeader.DiscardUnknown(m)
  2707. }
  2708. var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo
  2709. func (m *PartSetHeader) GetTotal() int32 {
  2710. if m != nil {
  2711. return m.Total
  2712. }
  2713. return 0
  2714. }
  2715. func (m *PartSetHeader) GetHash() []byte {
  2716. if m != nil {
  2717. return m.Hash
  2718. }
  2719. return nil
  2720. }
  2721. // Validator
  2722. type Validator struct {
  2723. Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  2724. // PubKey pub_key = 2 [(gogoproto.nullable)=false];
  2725. Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
  2726. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2727. XXX_unrecognized []byte `json:"-"`
  2728. XXX_sizecache int32 `json:"-"`
  2729. }
  2730. func (m *Validator) Reset() { *m = Validator{} }
  2731. func (m *Validator) String() string { return proto.CompactTextString(m) }
  2732. func (*Validator) ProtoMessage() {}
  2733. func (*Validator) Descriptor() ([]byte, []int) {
  2734. return fileDescriptor_types_5b877df1938afe10, []int{34}
  2735. }
  2736. func (m *Validator) XXX_Unmarshal(b []byte) error {
  2737. return m.Unmarshal(b)
  2738. }
  2739. func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2740. if deterministic {
  2741. return xxx_messageInfo_Validator.Marshal(b, m, deterministic)
  2742. } else {
  2743. b = b[:cap(b)]
  2744. n, err := m.MarshalTo(b)
  2745. if err != nil {
  2746. return nil, err
  2747. }
  2748. return b[:n], nil
  2749. }
  2750. }
  2751. func (dst *Validator) XXX_Merge(src proto.Message) {
  2752. xxx_messageInfo_Validator.Merge(dst, src)
  2753. }
  2754. func (m *Validator) XXX_Size() int {
  2755. return m.Size()
  2756. }
  2757. func (m *Validator) XXX_DiscardUnknown() {
  2758. xxx_messageInfo_Validator.DiscardUnknown(m)
  2759. }
  2760. var xxx_messageInfo_Validator proto.InternalMessageInfo
  2761. func (m *Validator) GetAddress() []byte {
  2762. if m != nil {
  2763. return m.Address
  2764. }
  2765. return nil
  2766. }
  2767. func (m *Validator) GetPower() int64 {
  2768. if m != nil {
  2769. return m.Power
  2770. }
  2771. return 0
  2772. }
  2773. // ValidatorUpdate
  2774. type ValidatorUpdate struct {
  2775. PubKey PubKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey" json:"pub_key"`
  2776. Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
  2777. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2778. XXX_unrecognized []byte `json:"-"`
  2779. XXX_sizecache int32 `json:"-"`
  2780. }
  2781. func (m *ValidatorUpdate) Reset() { *m = ValidatorUpdate{} }
  2782. func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) }
  2783. func (*ValidatorUpdate) ProtoMessage() {}
  2784. func (*ValidatorUpdate) Descriptor() ([]byte, []int) {
  2785. return fileDescriptor_types_5b877df1938afe10, []int{35}
  2786. }
  2787. func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error {
  2788. return m.Unmarshal(b)
  2789. }
  2790. func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2791. if deterministic {
  2792. return xxx_messageInfo_ValidatorUpdate.Marshal(b, m, deterministic)
  2793. } else {
  2794. b = b[:cap(b)]
  2795. n, err := m.MarshalTo(b)
  2796. if err != nil {
  2797. return nil, err
  2798. }
  2799. return b[:n], nil
  2800. }
  2801. }
  2802. func (dst *ValidatorUpdate) XXX_Merge(src proto.Message) {
  2803. xxx_messageInfo_ValidatorUpdate.Merge(dst, src)
  2804. }
  2805. func (m *ValidatorUpdate) XXX_Size() int {
  2806. return m.Size()
  2807. }
  2808. func (m *ValidatorUpdate) XXX_DiscardUnknown() {
  2809. xxx_messageInfo_ValidatorUpdate.DiscardUnknown(m)
  2810. }
  2811. var xxx_messageInfo_ValidatorUpdate proto.InternalMessageInfo
  2812. func (m *ValidatorUpdate) GetPubKey() PubKey {
  2813. if m != nil {
  2814. return m.PubKey
  2815. }
  2816. return PubKey{}
  2817. }
  2818. func (m *ValidatorUpdate) GetPower() int64 {
  2819. if m != nil {
  2820. return m.Power
  2821. }
  2822. return 0
  2823. }
  2824. // VoteInfo
  2825. type VoteInfo struct {
  2826. Validator Validator `protobuf:"bytes,1,opt,name=validator" json:"validator"`
  2827. SignedLastBlock bool `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"`
  2828. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2829. XXX_unrecognized []byte `json:"-"`
  2830. XXX_sizecache int32 `json:"-"`
  2831. }
  2832. func (m *VoteInfo) Reset() { *m = VoteInfo{} }
  2833. func (m *VoteInfo) String() string { return proto.CompactTextString(m) }
  2834. func (*VoteInfo) ProtoMessage() {}
  2835. func (*VoteInfo) Descriptor() ([]byte, []int) {
  2836. return fileDescriptor_types_5b877df1938afe10, []int{36}
  2837. }
  2838. func (m *VoteInfo) XXX_Unmarshal(b []byte) error {
  2839. return m.Unmarshal(b)
  2840. }
  2841. func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2842. if deterministic {
  2843. return xxx_messageInfo_VoteInfo.Marshal(b, m, deterministic)
  2844. } else {
  2845. b = b[:cap(b)]
  2846. n, err := m.MarshalTo(b)
  2847. if err != nil {
  2848. return nil, err
  2849. }
  2850. return b[:n], nil
  2851. }
  2852. }
  2853. func (dst *VoteInfo) XXX_Merge(src proto.Message) {
  2854. xxx_messageInfo_VoteInfo.Merge(dst, src)
  2855. }
  2856. func (m *VoteInfo) XXX_Size() int {
  2857. return m.Size()
  2858. }
  2859. func (m *VoteInfo) XXX_DiscardUnknown() {
  2860. xxx_messageInfo_VoteInfo.DiscardUnknown(m)
  2861. }
  2862. var xxx_messageInfo_VoteInfo proto.InternalMessageInfo
  2863. func (m *VoteInfo) GetValidator() Validator {
  2864. if m != nil {
  2865. return m.Validator
  2866. }
  2867. return Validator{}
  2868. }
  2869. func (m *VoteInfo) GetSignedLastBlock() bool {
  2870. if m != nil {
  2871. return m.SignedLastBlock
  2872. }
  2873. return false
  2874. }
  2875. type PubKey struct {
  2876. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  2877. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  2878. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2879. XXX_unrecognized []byte `json:"-"`
  2880. XXX_sizecache int32 `json:"-"`
  2881. }
  2882. func (m *PubKey) Reset() { *m = PubKey{} }
  2883. func (m *PubKey) String() string { return proto.CompactTextString(m) }
  2884. func (*PubKey) ProtoMessage() {}
  2885. func (*PubKey) Descriptor() ([]byte, []int) {
  2886. return fileDescriptor_types_5b877df1938afe10, []int{37}
  2887. }
  2888. func (m *PubKey) XXX_Unmarshal(b []byte) error {
  2889. return m.Unmarshal(b)
  2890. }
  2891. func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2892. if deterministic {
  2893. return xxx_messageInfo_PubKey.Marshal(b, m, deterministic)
  2894. } else {
  2895. b = b[:cap(b)]
  2896. n, err := m.MarshalTo(b)
  2897. if err != nil {
  2898. return nil, err
  2899. }
  2900. return b[:n], nil
  2901. }
  2902. }
  2903. func (dst *PubKey) XXX_Merge(src proto.Message) {
  2904. xxx_messageInfo_PubKey.Merge(dst, src)
  2905. }
  2906. func (m *PubKey) XXX_Size() int {
  2907. return m.Size()
  2908. }
  2909. func (m *PubKey) XXX_DiscardUnknown() {
  2910. xxx_messageInfo_PubKey.DiscardUnknown(m)
  2911. }
  2912. var xxx_messageInfo_PubKey proto.InternalMessageInfo
  2913. func (m *PubKey) GetType() string {
  2914. if m != nil {
  2915. return m.Type
  2916. }
  2917. return ""
  2918. }
  2919. func (m *PubKey) GetData() []byte {
  2920. if m != nil {
  2921. return m.Data
  2922. }
  2923. return nil
  2924. }
  2925. type Evidence struct {
  2926. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  2927. Validator Validator `protobuf:"bytes,2,opt,name=validator" json:"validator"`
  2928. Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
  2929. Time time.Time `protobuf:"bytes,4,opt,name=time,stdtime" json:"time"`
  2930. TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
  2931. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2932. XXX_unrecognized []byte `json:"-"`
  2933. XXX_sizecache int32 `json:"-"`
  2934. }
  2935. func (m *Evidence) Reset() { *m = Evidence{} }
  2936. func (m *Evidence) String() string { return proto.CompactTextString(m) }
  2937. func (*Evidence) ProtoMessage() {}
  2938. func (*Evidence) Descriptor() ([]byte, []int) {
  2939. return fileDescriptor_types_5b877df1938afe10, []int{38}
  2940. }
  2941. func (m *Evidence) XXX_Unmarshal(b []byte) error {
  2942. return m.Unmarshal(b)
  2943. }
  2944. func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2945. if deterministic {
  2946. return xxx_messageInfo_Evidence.Marshal(b, m, deterministic)
  2947. } else {
  2948. b = b[:cap(b)]
  2949. n, err := m.MarshalTo(b)
  2950. if err != nil {
  2951. return nil, err
  2952. }
  2953. return b[:n], nil
  2954. }
  2955. }
  2956. func (dst *Evidence) XXX_Merge(src proto.Message) {
  2957. xxx_messageInfo_Evidence.Merge(dst, src)
  2958. }
  2959. func (m *Evidence) XXX_Size() int {
  2960. return m.Size()
  2961. }
  2962. func (m *Evidence) XXX_DiscardUnknown() {
  2963. xxx_messageInfo_Evidence.DiscardUnknown(m)
  2964. }
  2965. var xxx_messageInfo_Evidence proto.InternalMessageInfo
  2966. func (m *Evidence) GetType() string {
  2967. if m != nil {
  2968. return m.Type
  2969. }
  2970. return ""
  2971. }
  2972. func (m *Evidence) GetValidator() Validator {
  2973. if m != nil {
  2974. return m.Validator
  2975. }
  2976. return Validator{}
  2977. }
  2978. func (m *Evidence) GetHeight() int64 {
  2979. if m != nil {
  2980. return m.Height
  2981. }
  2982. return 0
  2983. }
  2984. func (m *Evidence) GetTime() time.Time {
  2985. if m != nil {
  2986. return m.Time
  2987. }
  2988. return time.Time{}
  2989. }
  2990. func (m *Evidence) GetTotalVotingPower() int64 {
  2991. if m != nil {
  2992. return m.TotalVotingPower
  2993. }
  2994. return 0
  2995. }
  2996. func init() {
  2997. proto.RegisterType((*Request)(nil), "types.Request")
  2998. golang_proto.RegisterType((*Request)(nil), "types.Request")
  2999. proto.RegisterType((*RequestEcho)(nil), "types.RequestEcho")
  3000. golang_proto.RegisterType((*RequestEcho)(nil), "types.RequestEcho")
  3001. proto.RegisterType((*RequestFlush)(nil), "types.RequestFlush")
  3002. golang_proto.RegisterType((*RequestFlush)(nil), "types.RequestFlush")
  3003. proto.RegisterType((*RequestInfo)(nil), "types.RequestInfo")
  3004. golang_proto.RegisterType((*RequestInfo)(nil), "types.RequestInfo")
  3005. proto.RegisterType((*RequestSetOption)(nil), "types.RequestSetOption")
  3006. golang_proto.RegisterType((*RequestSetOption)(nil), "types.RequestSetOption")
  3007. proto.RegisterType((*RequestInitChain)(nil), "types.RequestInitChain")
  3008. golang_proto.RegisterType((*RequestInitChain)(nil), "types.RequestInitChain")
  3009. proto.RegisterType((*RequestQuery)(nil), "types.RequestQuery")
  3010. golang_proto.RegisterType((*RequestQuery)(nil), "types.RequestQuery")
  3011. proto.RegisterType((*RequestBeginBlock)(nil), "types.RequestBeginBlock")
  3012. golang_proto.RegisterType((*RequestBeginBlock)(nil), "types.RequestBeginBlock")
  3013. proto.RegisterType((*RequestCheckTx)(nil), "types.RequestCheckTx")
  3014. golang_proto.RegisterType((*RequestCheckTx)(nil), "types.RequestCheckTx")
  3015. proto.RegisterType((*RequestDeliverTx)(nil), "types.RequestDeliverTx")
  3016. golang_proto.RegisterType((*RequestDeliverTx)(nil), "types.RequestDeliverTx")
  3017. proto.RegisterType((*RequestEndBlock)(nil), "types.RequestEndBlock")
  3018. golang_proto.RegisterType((*RequestEndBlock)(nil), "types.RequestEndBlock")
  3019. proto.RegisterType((*RequestCommit)(nil), "types.RequestCommit")
  3020. golang_proto.RegisterType((*RequestCommit)(nil), "types.RequestCommit")
  3021. proto.RegisterType((*Response)(nil), "types.Response")
  3022. golang_proto.RegisterType((*Response)(nil), "types.Response")
  3023. proto.RegisterType((*ResponseException)(nil), "types.ResponseException")
  3024. golang_proto.RegisterType((*ResponseException)(nil), "types.ResponseException")
  3025. proto.RegisterType((*ResponseEcho)(nil), "types.ResponseEcho")
  3026. golang_proto.RegisterType((*ResponseEcho)(nil), "types.ResponseEcho")
  3027. proto.RegisterType((*ResponseFlush)(nil), "types.ResponseFlush")
  3028. golang_proto.RegisterType((*ResponseFlush)(nil), "types.ResponseFlush")
  3029. proto.RegisterType((*ResponseInfo)(nil), "types.ResponseInfo")
  3030. golang_proto.RegisterType((*ResponseInfo)(nil), "types.ResponseInfo")
  3031. proto.RegisterType((*ResponseSetOption)(nil), "types.ResponseSetOption")
  3032. golang_proto.RegisterType((*ResponseSetOption)(nil), "types.ResponseSetOption")
  3033. proto.RegisterType((*ResponseInitChain)(nil), "types.ResponseInitChain")
  3034. golang_proto.RegisterType((*ResponseInitChain)(nil), "types.ResponseInitChain")
  3035. proto.RegisterType((*ResponseQuery)(nil), "types.ResponseQuery")
  3036. golang_proto.RegisterType((*ResponseQuery)(nil), "types.ResponseQuery")
  3037. proto.RegisterType((*ResponseBeginBlock)(nil), "types.ResponseBeginBlock")
  3038. golang_proto.RegisterType((*ResponseBeginBlock)(nil), "types.ResponseBeginBlock")
  3039. proto.RegisterType((*ResponseCheckTx)(nil), "types.ResponseCheckTx")
  3040. golang_proto.RegisterType((*ResponseCheckTx)(nil), "types.ResponseCheckTx")
  3041. proto.RegisterType((*ResponseDeliverTx)(nil), "types.ResponseDeliverTx")
  3042. golang_proto.RegisterType((*ResponseDeliverTx)(nil), "types.ResponseDeliverTx")
  3043. proto.RegisterType((*ResponseEndBlock)(nil), "types.ResponseEndBlock")
  3044. golang_proto.RegisterType((*ResponseEndBlock)(nil), "types.ResponseEndBlock")
  3045. proto.RegisterType((*ResponseCommit)(nil), "types.ResponseCommit")
  3046. golang_proto.RegisterType((*ResponseCommit)(nil), "types.ResponseCommit")
  3047. proto.RegisterType((*ConsensusParams)(nil), "types.ConsensusParams")
  3048. golang_proto.RegisterType((*ConsensusParams)(nil), "types.ConsensusParams")
  3049. proto.RegisterType((*BlockSizeParams)(nil), "types.BlockSizeParams")
  3050. golang_proto.RegisterType((*BlockSizeParams)(nil), "types.BlockSizeParams")
  3051. proto.RegisterType((*EvidenceParams)(nil), "types.EvidenceParams")
  3052. golang_proto.RegisterType((*EvidenceParams)(nil), "types.EvidenceParams")
  3053. proto.RegisterType((*ValidatorParams)(nil), "types.ValidatorParams")
  3054. golang_proto.RegisterType((*ValidatorParams)(nil), "types.ValidatorParams")
  3055. proto.RegisterType((*LastCommitInfo)(nil), "types.LastCommitInfo")
  3056. golang_proto.RegisterType((*LastCommitInfo)(nil), "types.LastCommitInfo")
  3057. proto.RegisterType((*Header)(nil), "types.Header")
  3058. golang_proto.RegisterType((*Header)(nil), "types.Header")
  3059. proto.RegisterType((*Version)(nil), "types.Version")
  3060. golang_proto.RegisterType((*Version)(nil), "types.Version")
  3061. proto.RegisterType((*BlockID)(nil), "types.BlockID")
  3062. golang_proto.RegisterType((*BlockID)(nil), "types.BlockID")
  3063. proto.RegisterType((*PartSetHeader)(nil), "types.PartSetHeader")
  3064. golang_proto.RegisterType((*PartSetHeader)(nil), "types.PartSetHeader")
  3065. proto.RegisterType((*Validator)(nil), "types.Validator")
  3066. golang_proto.RegisterType((*Validator)(nil), "types.Validator")
  3067. proto.RegisterType((*ValidatorUpdate)(nil), "types.ValidatorUpdate")
  3068. golang_proto.RegisterType((*ValidatorUpdate)(nil), "types.ValidatorUpdate")
  3069. proto.RegisterType((*VoteInfo)(nil), "types.VoteInfo")
  3070. golang_proto.RegisterType((*VoteInfo)(nil), "types.VoteInfo")
  3071. proto.RegisterType((*PubKey)(nil), "types.PubKey")
  3072. golang_proto.RegisterType((*PubKey)(nil), "types.PubKey")
  3073. proto.RegisterType((*Evidence)(nil), "types.Evidence")
  3074. golang_proto.RegisterType((*Evidence)(nil), "types.Evidence")
  3075. }
  3076. func (this *Request) Equal(that interface{}) bool {
  3077. if that == nil {
  3078. return this == nil
  3079. }
  3080. that1, ok := that.(*Request)
  3081. if !ok {
  3082. that2, ok := that.(Request)
  3083. if ok {
  3084. that1 = &that2
  3085. } else {
  3086. return false
  3087. }
  3088. }
  3089. if that1 == nil {
  3090. return this == nil
  3091. } else if this == nil {
  3092. return false
  3093. }
  3094. if that1.Value == nil {
  3095. if this.Value != nil {
  3096. return false
  3097. }
  3098. } else if this.Value == nil {
  3099. return false
  3100. } else if !this.Value.Equal(that1.Value) {
  3101. return false
  3102. }
  3103. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3104. return false
  3105. }
  3106. return true
  3107. }
  3108. func (this *Request_Echo) Equal(that interface{}) bool {
  3109. if that == nil {
  3110. return this == nil
  3111. }
  3112. that1, ok := that.(*Request_Echo)
  3113. if !ok {
  3114. that2, ok := that.(Request_Echo)
  3115. if ok {
  3116. that1 = &that2
  3117. } else {
  3118. return false
  3119. }
  3120. }
  3121. if that1 == nil {
  3122. return this == nil
  3123. } else if this == nil {
  3124. return false
  3125. }
  3126. if !this.Echo.Equal(that1.Echo) {
  3127. return false
  3128. }
  3129. return true
  3130. }
  3131. func (this *Request_Flush) Equal(that interface{}) bool {
  3132. if that == nil {
  3133. return this == nil
  3134. }
  3135. that1, ok := that.(*Request_Flush)
  3136. if !ok {
  3137. that2, ok := that.(Request_Flush)
  3138. if ok {
  3139. that1 = &that2
  3140. } else {
  3141. return false
  3142. }
  3143. }
  3144. if that1 == nil {
  3145. return this == nil
  3146. } else if this == nil {
  3147. return false
  3148. }
  3149. if !this.Flush.Equal(that1.Flush) {
  3150. return false
  3151. }
  3152. return true
  3153. }
  3154. func (this *Request_Info) Equal(that interface{}) bool {
  3155. if that == nil {
  3156. return this == nil
  3157. }
  3158. that1, ok := that.(*Request_Info)
  3159. if !ok {
  3160. that2, ok := that.(Request_Info)
  3161. if ok {
  3162. that1 = &that2
  3163. } else {
  3164. return false
  3165. }
  3166. }
  3167. if that1 == nil {
  3168. return this == nil
  3169. } else if this == nil {
  3170. return false
  3171. }
  3172. if !this.Info.Equal(that1.Info) {
  3173. return false
  3174. }
  3175. return true
  3176. }
  3177. func (this *Request_SetOption) Equal(that interface{}) bool {
  3178. if that == nil {
  3179. return this == nil
  3180. }
  3181. that1, ok := that.(*Request_SetOption)
  3182. if !ok {
  3183. that2, ok := that.(Request_SetOption)
  3184. if ok {
  3185. that1 = &that2
  3186. } else {
  3187. return false
  3188. }
  3189. }
  3190. if that1 == nil {
  3191. return this == nil
  3192. } else if this == nil {
  3193. return false
  3194. }
  3195. if !this.SetOption.Equal(that1.SetOption) {
  3196. return false
  3197. }
  3198. return true
  3199. }
  3200. func (this *Request_InitChain) Equal(that interface{}) bool {
  3201. if that == nil {
  3202. return this == nil
  3203. }
  3204. that1, ok := that.(*Request_InitChain)
  3205. if !ok {
  3206. that2, ok := that.(Request_InitChain)
  3207. if ok {
  3208. that1 = &that2
  3209. } else {
  3210. return false
  3211. }
  3212. }
  3213. if that1 == nil {
  3214. return this == nil
  3215. } else if this == nil {
  3216. return false
  3217. }
  3218. if !this.InitChain.Equal(that1.InitChain) {
  3219. return false
  3220. }
  3221. return true
  3222. }
  3223. func (this *Request_Query) Equal(that interface{}) bool {
  3224. if that == nil {
  3225. return this == nil
  3226. }
  3227. that1, ok := that.(*Request_Query)
  3228. if !ok {
  3229. that2, ok := that.(Request_Query)
  3230. if ok {
  3231. that1 = &that2
  3232. } else {
  3233. return false
  3234. }
  3235. }
  3236. if that1 == nil {
  3237. return this == nil
  3238. } else if this == nil {
  3239. return false
  3240. }
  3241. if !this.Query.Equal(that1.Query) {
  3242. return false
  3243. }
  3244. return true
  3245. }
  3246. func (this *Request_BeginBlock) Equal(that interface{}) bool {
  3247. if that == nil {
  3248. return this == nil
  3249. }
  3250. that1, ok := that.(*Request_BeginBlock)
  3251. if !ok {
  3252. that2, ok := that.(Request_BeginBlock)
  3253. if ok {
  3254. that1 = &that2
  3255. } else {
  3256. return false
  3257. }
  3258. }
  3259. if that1 == nil {
  3260. return this == nil
  3261. } else if this == nil {
  3262. return false
  3263. }
  3264. if !this.BeginBlock.Equal(that1.BeginBlock) {
  3265. return false
  3266. }
  3267. return true
  3268. }
  3269. func (this *Request_CheckTx) Equal(that interface{}) bool {
  3270. if that == nil {
  3271. return this == nil
  3272. }
  3273. that1, ok := that.(*Request_CheckTx)
  3274. if !ok {
  3275. that2, ok := that.(Request_CheckTx)
  3276. if ok {
  3277. that1 = &that2
  3278. } else {
  3279. return false
  3280. }
  3281. }
  3282. if that1 == nil {
  3283. return this == nil
  3284. } else if this == nil {
  3285. return false
  3286. }
  3287. if !this.CheckTx.Equal(that1.CheckTx) {
  3288. return false
  3289. }
  3290. return true
  3291. }
  3292. func (this *Request_DeliverTx) Equal(that interface{}) bool {
  3293. if that == nil {
  3294. return this == nil
  3295. }
  3296. that1, ok := that.(*Request_DeliverTx)
  3297. if !ok {
  3298. that2, ok := that.(Request_DeliverTx)
  3299. if ok {
  3300. that1 = &that2
  3301. } else {
  3302. return false
  3303. }
  3304. }
  3305. if that1 == nil {
  3306. return this == nil
  3307. } else if this == nil {
  3308. return false
  3309. }
  3310. if !this.DeliverTx.Equal(that1.DeliverTx) {
  3311. return false
  3312. }
  3313. return true
  3314. }
  3315. func (this *Request_EndBlock) Equal(that interface{}) bool {
  3316. if that == nil {
  3317. return this == nil
  3318. }
  3319. that1, ok := that.(*Request_EndBlock)
  3320. if !ok {
  3321. that2, ok := that.(Request_EndBlock)
  3322. if ok {
  3323. that1 = &that2
  3324. } else {
  3325. return false
  3326. }
  3327. }
  3328. if that1 == nil {
  3329. return this == nil
  3330. } else if this == nil {
  3331. return false
  3332. }
  3333. if !this.EndBlock.Equal(that1.EndBlock) {
  3334. return false
  3335. }
  3336. return true
  3337. }
  3338. func (this *Request_Commit) Equal(that interface{}) bool {
  3339. if that == nil {
  3340. return this == nil
  3341. }
  3342. that1, ok := that.(*Request_Commit)
  3343. if !ok {
  3344. that2, ok := that.(Request_Commit)
  3345. if ok {
  3346. that1 = &that2
  3347. } else {
  3348. return false
  3349. }
  3350. }
  3351. if that1 == nil {
  3352. return this == nil
  3353. } else if this == nil {
  3354. return false
  3355. }
  3356. if !this.Commit.Equal(that1.Commit) {
  3357. return false
  3358. }
  3359. return true
  3360. }
  3361. func (this *RequestEcho) Equal(that interface{}) bool {
  3362. if that == nil {
  3363. return this == nil
  3364. }
  3365. that1, ok := that.(*RequestEcho)
  3366. if !ok {
  3367. that2, ok := that.(RequestEcho)
  3368. if ok {
  3369. that1 = &that2
  3370. } else {
  3371. return false
  3372. }
  3373. }
  3374. if that1 == nil {
  3375. return this == nil
  3376. } else if this == nil {
  3377. return false
  3378. }
  3379. if this.Message != that1.Message {
  3380. return false
  3381. }
  3382. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3383. return false
  3384. }
  3385. return true
  3386. }
  3387. func (this *RequestFlush) Equal(that interface{}) bool {
  3388. if that == nil {
  3389. return this == nil
  3390. }
  3391. that1, ok := that.(*RequestFlush)
  3392. if !ok {
  3393. that2, ok := that.(RequestFlush)
  3394. if ok {
  3395. that1 = &that2
  3396. } else {
  3397. return false
  3398. }
  3399. }
  3400. if that1 == nil {
  3401. return this == nil
  3402. } else if this == nil {
  3403. return false
  3404. }
  3405. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3406. return false
  3407. }
  3408. return true
  3409. }
  3410. func (this *RequestInfo) Equal(that interface{}) bool {
  3411. if that == nil {
  3412. return this == nil
  3413. }
  3414. that1, ok := that.(*RequestInfo)
  3415. if !ok {
  3416. that2, ok := that.(RequestInfo)
  3417. if ok {
  3418. that1 = &that2
  3419. } else {
  3420. return false
  3421. }
  3422. }
  3423. if that1 == nil {
  3424. return this == nil
  3425. } else if this == nil {
  3426. return false
  3427. }
  3428. if this.Version != that1.Version {
  3429. return false
  3430. }
  3431. if this.BlockVersion != that1.BlockVersion {
  3432. return false
  3433. }
  3434. if this.P2PVersion != that1.P2PVersion {
  3435. return false
  3436. }
  3437. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3438. return false
  3439. }
  3440. return true
  3441. }
  3442. func (this *RequestSetOption) Equal(that interface{}) bool {
  3443. if that == nil {
  3444. return this == nil
  3445. }
  3446. that1, ok := that.(*RequestSetOption)
  3447. if !ok {
  3448. that2, ok := that.(RequestSetOption)
  3449. if ok {
  3450. that1 = &that2
  3451. } else {
  3452. return false
  3453. }
  3454. }
  3455. if that1 == nil {
  3456. return this == nil
  3457. } else if this == nil {
  3458. return false
  3459. }
  3460. if this.Key != that1.Key {
  3461. return false
  3462. }
  3463. if this.Value != that1.Value {
  3464. return false
  3465. }
  3466. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3467. return false
  3468. }
  3469. return true
  3470. }
  3471. func (this *RequestInitChain) Equal(that interface{}) bool {
  3472. if that == nil {
  3473. return this == nil
  3474. }
  3475. that1, ok := that.(*RequestInitChain)
  3476. if !ok {
  3477. that2, ok := that.(RequestInitChain)
  3478. if ok {
  3479. that1 = &that2
  3480. } else {
  3481. return false
  3482. }
  3483. }
  3484. if that1 == nil {
  3485. return this == nil
  3486. } else if this == nil {
  3487. return false
  3488. }
  3489. if !this.Time.Equal(that1.Time) {
  3490. return false
  3491. }
  3492. if this.ChainId != that1.ChainId {
  3493. return false
  3494. }
  3495. if !this.ConsensusParams.Equal(that1.ConsensusParams) {
  3496. return false
  3497. }
  3498. if len(this.Validators) != len(that1.Validators) {
  3499. return false
  3500. }
  3501. for i := range this.Validators {
  3502. if !this.Validators[i].Equal(&that1.Validators[i]) {
  3503. return false
  3504. }
  3505. }
  3506. if !bytes.Equal(this.AppStateBytes, that1.AppStateBytes) {
  3507. return false
  3508. }
  3509. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3510. return false
  3511. }
  3512. return true
  3513. }
  3514. func (this *RequestQuery) Equal(that interface{}) bool {
  3515. if that == nil {
  3516. return this == nil
  3517. }
  3518. that1, ok := that.(*RequestQuery)
  3519. if !ok {
  3520. that2, ok := that.(RequestQuery)
  3521. if ok {
  3522. that1 = &that2
  3523. } else {
  3524. return false
  3525. }
  3526. }
  3527. if that1 == nil {
  3528. return this == nil
  3529. } else if this == nil {
  3530. return false
  3531. }
  3532. if !bytes.Equal(this.Data, that1.Data) {
  3533. return false
  3534. }
  3535. if this.Path != that1.Path {
  3536. return false
  3537. }
  3538. if this.Height != that1.Height {
  3539. return false
  3540. }
  3541. if this.Prove != that1.Prove {
  3542. return false
  3543. }
  3544. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3545. return false
  3546. }
  3547. return true
  3548. }
  3549. func (this *RequestBeginBlock) Equal(that interface{}) bool {
  3550. if that == nil {
  3551. return this == nil
  3552. }
  3553. that1, ok := that.(*RequestBeginBlock)
  3554. if !ok {
  3555. that2, ok := that.(RequestBeginBlock)
  3556. if ok {
  3557. that1 = &that2
  3558. } else {
  3559. return false
  3560. }
  3561. }
  3562. if that1 == nil {
  3563. return this == nil
  3564. } else if this == nil {
  3565. return false
  3566. }
  3567. if !bytes.Equal(this.Hash, that1.Hash) {
  3568. return false
  3569. }
  3570. if !this.Header.Equal(&that1.Header) {
  3571. return false
  3572. }
  3573. if !this.LastCommitInfo.Equal(&that1.LastCommitInfo) {
  3574. return false
  3575. }
  3576. if len(this.ByzantineValidators) != len(that1.ByzantineValidators) {
  3577. return false
  3578. }
  3579. for i := range this.ByzantineValidators {
  3580. if !this.ByzantineValidators[i].Equal(&that1.ByzantineValidators[i]) {
  3581. return false
  3582. }
  3583. }
  3584. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3585. return false
  3586. }
  3587. return true
  3588. }
  3589. func (this *RequestCheckTx) Equal(that interface{}) bool {
  3590. if that == nil {
  3591. return this == nil
  3592. }
  3593. that1, ok := that.(*RequestCheckTx)
  3594. if !ok {
  3595. that2, ok := that.(RequestCheckTx)
  3596. if ok {
  3597. that1 = &that2
  3598. } else {
  3599. return false
  3600. }
  3601. }
  3602. if that1 == nil {
  3603. return this == nil
  3604. } else if this == nil {
  3605. return false
  3606. }
  3607. if !bytes.Equal(this.Tx, that1.Tx) {
  3608. return false
  3609. }
  3610. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3611. return false
  3612. }
  3613. return true
  3614. }
  3615. func (this *RequestDeliverTx) Equal(that interface{}) bool {
  3616. if that == nil {
  3617. return this == nil
  3618. }
  3619. that1, ok := that.(*RequestDeliverTx)
  3620. if !ok {
  3621. that2, ok := that.(RequestDeliverTx)
  3622. if ok {
  3623. that1 = &that2
  3624. } else {
  3625. return false
  3626. }
  3627. }
  3628. if that1 == nil {
  3629. return this == nil
  3630. } else if this == nil {
  3631. return false
  3632. }
  3633. if !bytes.Equal(this.Tx, that1.Tx) {
  3634. return false
  3635. }
  3636. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3637. return false
  3638. }
  3639. return true
  3640. }
  3641. func (this *RequestEndBlock) Equal(that interface{}) bool {
  3642. if that == nil {
  3643. return this == nil
  3644. }
  3645. that1, ok := that.(*RequestEndBlock)
  3646. if !ok {
  3647. that2, ok := that.(RequestEndBlock)
  3648. if ok {
  3649. that1 = &that2
  3650. } else {
  3651. return false
  3652. }
  3653. }
  3654. if that1 == nil {
  3655. return this == nil
  3656. } else if this == nil {
  3657. return false
  3658. }
  3659. if this.Height != that1.Height {
  3660. return false
  3661. }
  3662. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3663. return false
  3664. }
  3665. return true
  3666. }
  3667. func (this *RequestCommit) Equal(that interface{}) bool {
  3668. if that == nil {
  3669. return this == nil
  3670. }
  3671. that1, ok := that.(*RequestCommit)
  3672. if !ok {
  3673. that2, ok := that.(RequestCommit)
  3674. if ok {
  3675. that1 = &that2
  3676. } else {
  3677. return false
  3678. }
  3679. }
  3680. if that1 == nil {
  3681. return this == nil
  3682. } else if this == nil {
  3683. return false
  3684. }
  3685. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3686. return false
  3687. }
  3688. return true
  3689. }
  3690. func (this *Response) Equal(that interface{}) bool {
  3691. if that == nil {
  3692. return this == nil
  3693. }
  3694. that1, ok := that.(*Response)
  3695. if !ok {
  3696. that2, ok := that.(Response)
  3697. if ok {
  3698. that1 = &that2
  3699. } else {
  3700. return false
  3701. }
  3702. }
  3703. if that1 == nil {
  3704. return this == nil
  3705. } else if this == nil {
  3706. return false
  3707. }
  3708. if that1.Value == nil {
  3709. if this.Value != nil {
  3710. return false
  3711. }
  3712. } else if this.Value == nil {
  3713. return false
  3714. } else if !this.Value.Equal(that1.Value) {
  3715. return false
  3716. }
  3717. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3718. return false
  3719. }
  3720. return true
  3721. }
  3722. func (this *Response_Exception) Equal(that interface{}) bool {
  3723. if that == nil {
  3724. return this == nil
  3725. }
  3726. that1, ok := that.(*Response_Exception)
  3727. if !ok {
  3728. that2, ok := that.(Response_Exception)
  3729. if ok {
  3730. that1 = &that2
  3731. } else {
  3732. return false
  3733. }
  3734. }
  3735. if that1 == nil {
  3736. return this == nil
  3737. } else if this == nil {
  3738. return false
  3739. }
  3740. if !this.Exception.Equal(that1.Exception) {
  3741. return false
  3742. }
  3743. return true
  3744. }
  3745. func (this *Response_Echo) Equal(that interface{}) bool {
  3746. if that == nil {
  3747. return this == nil
  3748. }
  3749. that1, ok := that.(*Response_Echo)
  3750. if !ok {
  3751. that2, ok := that.(Response_Echo)
  3752. if ok {
  3753. that1 = &that2
  3754. } else {
  3755. return false
  3756. }
  3757. }
  3758. if that1 == nil {
  3759. return this == nil
  3760. } else if this == nil {
  3761. return false
  3762. }
  3763. if !this.Echo.Equal(that1.Echo) {
  3764. return false
  3765. }
  3766. return true
  3767. }
  3768. func (this *Response_Flush) Equal(that interface{}) bool {
  3769. if that == nil {
  3770. return this == nil
  3771. }
  3772. that1, ok := that.(*Response_Flush)
  3773. if !ok {
  3774. that2, ok := that.(Response_Flush)
  3775. if ok {
  3776. that1 = &that2
  3777. } else {
  3778. return false
  3779. }
  3780. }
  3781. if that1 == nil {
  3782. return this == nil
  3783. } else if this == nil {
  3784. return false
  3785. }
  3786. if !this.Flush.Equal(that1.Flush) {
  3787. return false
  3788. }
  3789. return true
  3790. }
  3791. func (this *Response_Info) Equal(that interface{}) bool {
  3792. if that == nil {
  3793. return this == nil
  3794. }
  3795. that1, ok := that.(*Response_Info)
  3796. if !ok {
  3797. that2, ok := that.(Response_Info)
  3798. if ok {
  3799. that1 = &that2
  3800. } else {
  3801. return false
  3802. }
  3803. }
  3804. if that1 == nil {
  3805. return this == nil
  3806. } else if this == nil {
  3807. return false
  3808. }
  3809. if !this.Info.Equal(that1.Info) {
  3810. return false
  3811. }
  3812. return true
  3813. }
  3814. func (this *Response_SetOption) Equal(that interface{}) bool {
  3815. if that == nil {
  3816. return this == nil
  3817. }
  3818. that1, ok := that.(*Response_SetOption)
  3819. if !ok {
  3820. that2, ok := that.(Response_SetOption)
  3821. if ok {
  3822. that1 = &that2
  3823. } else {
  3824. return false
  3825. }
  3826. }
  3827. if that1 == nil {
  3828. return this == nil
  3829. } else if this == nil {
  3830. return false
  3831. }
  3832. if !this.SetOption.Equal(that1.SetOption) {
  3833. return false
  3834. }
  3835. return true
  3836. }
  3837. func (this *Response_InitChain) Equal(that interface{}) bool {
  3838. if that == nil {
  3839. return this == nil
  3840. }
  3841. that1, ok := that.(*Response_InitChain)
  3842. if !ok {
  3843. that2, ok := that.(Response_InitChain)
  3844. if ok {
  3845. that1 = &that2
  3846. } else {
  3847. return false
  3848. }
  3849. }
  3850. if that1 == nil {
  3851. return this == nil
  3852. } else if this == nil {
  3853. return false
  3854. }
  3855. if !this.InitChain.Equal(that1.InitChain) {
  3856. return false
  3857. }
  3858. return true
  3859. }
  3860. func (this *Response_Query) Equal(that interface{}) bool {
  3861. if that == nil {
  3862. return this == nil
  3863. }
  3864. that1, ok := that.(*Response_Query)
  3865. if !ok {
  3866. that2, ok := that.(Response_Query)
  3867. if ok {
  3868. that1 = &that2
  3869. } else {
  3870. return false
  3871. }
  3872. }
  3873. if that1 == nil {
  3874. return this == nil
  3875. } else if this == nil {
  3876. return false
  3877. }
  3878. if !this.Query.Equal(that1.Query) {
  3879. return false
  3880. }
  3881. return true
  3882. }
  3883. func (this *Response_BeginBlock) Equal(that interface{}) bool {
  3884. if that == nil {
  3885. return this == nil
  3886. }
  3887. that1, ok := that.(*Response_BeginBlock)
  3888. if !ok {
  3889. that2, ok := that.(Response_BeginBlock)
  3890. if ok {
  3891. that1 = &that2
  3892. } else {
  3893. return false
  3894. }
  3895. }
  3896. if that1 == nil {
  3897. return this == nil
  3898. } else if this == nil {
  3899. return false
  3900. }
  3901. if !this.BeginBlock.Equal(that1.BeginBlock) {
  3902. return false
  3903. }
  3904. return true
  3905. }
  3906. func (this *Response_CheckTx) Equal(that interface{}) bool {
  3907. if that == nil {
  3908. return this == nil
  3909. }
  3910. that1, ok := that.(*Response_CheckTx)
  3911. if !ok {
  3912. that2, ok := that.(Response_CheckTx)
  3913. if ok {
  3914. that1 = &that2
  3915. } else {
  3916. return false
  3917. }
  3918. }
  3919. if that1 == nil {
  3920. return this == nil
  3921. } else if this == nil {
  3922. return false
  3923. }
  3924. if !this.CheckTx.Equal(that1.CheckTx) {
  3925. return false
  3926. }
  3927. return true
  3928. }
  3929. func (this *Response_DeliverTx) Equal(that interface{}) bool {
  3930. if that == nil {
  3931. return this == nil
  3932. }
  3933. that1, ok := that.(*Response_DeliverTx)
  3934. if !ok {
  3935. that2, ok := that.(Response_DeliverTx)
  3936. if ok {
  3937. that1 = &that2
  3938. } else {
  3939. return false
  3940. }
  3941. }
  3942. if that1 == nil {
  3943. return this == nil
  3944. } else if this == nil {
  3945. return false
  3946. }
  3947. if !this.DeliverTx.Equal(that1.DeliverTx) {
  3948. return false
  3949. }
  3950. return true
  3951. }
  3952. func (this *Response_EndBlock) Equal(that interface{}) bool {
  3953. if that == nil {
  3954. return this == nil
  3955. }
  3956. that1, ok := that.(*Response_EndBlock)
  3957. if !ok {
  3958. that2, ok := that.(Response_EndBlock)
  3959. if ok {
  3960. that1 = &that2
  3961. } else {
  3962. return false
  3963. }
  3964. }
  3965. if that1 == nil {
  3966. return this == nil
  3967. } else if this == nil {
  3968. return false
  3969. }
  3970. if !this.EndBlock.Equal(that1.EndBlock) {
  3971. return false
  3972. }
  3973. return true
  3974. }
  3975. func (this *Response_Commit) Equal(that interface{}) bool {
  3976. if that == nil {
  3977. return this == nil
  3978. }
  3979. that1, ok := that.(*Response_Commit)
  3980. if !ok {
  3981. that2, ok := that.(Response_Commit)
  3982. if ok {
  3983. that1 = &that2
  3984. } else {
  3985. return false
  3986. }
  3987. }
  3988. if that1 == nil {
  3989. return this == nil
  3990. } else if this == nil {
  3991. return false
  3992. }
  3993. if !this.Commit.Equal(that1.Commit) {
  3994. return false
  3995. }
  3996. return true
  3997. }
  3998. func (this *ResponseException) Equal(that interface{}) bool {
  3999. if that == nil {
  4000. return this == nil
  4001. }
  4002. that1, ok := that.(*ResponseException)
  4003. if !ok {
  4004. that2, ok := that.(ResponseException)
  4005. if ok {
  4006. that1 = &that2
  4007. } else {
  4008. return false
  4009. }
  4010. }
  4011. if that1 == nil {
  4012. return this == nil
  4013. } else if this == nil {
  4014. return false
  4015. }
  4016. if this.Error != that1.Error {
  4017. return false
  4018. }
  4019. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4020. return false
  4021. }
  4022. return true
  4023. }
  4024. func (this *ResponseEcho) Equal(that interface{}) bool {
  4025. if that == nil {
  4026. return this == nil
  4027. }
  4028. that1, ok := that.(*ResponseEcho)
  4029. if !ok {
  4030. that2, ok := that.(ResponseEcho)
  4031. if ok {
  4032. that1 = &that2
  4033. } else {
  4034. return false
  4035. }
  4036. }
  4037. if that1 == nil {
  4038. return this == nil
  4039. } else if this == nil {
  4040. return false
  4041. }
  4042. if this.Message != that1.Message {
  4043. return false
  4044. }
  4045. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4046. return false
  4047. }
  4048. return true
  4049. }
  4050. func (this *ResponseFlush) Equal(that interface{}) bool {
  4051. if that == nil {
  4052. return this == nil
  4053. }
  4054. that1, ok := that.(*ResponseFlush)
  4055. if !ok {
  4056. that2, ok := that.(ResponseFlush)
  4057. if ok {
  4058. that1 = &that2
  4059. } else {
  4060. return false
  4061. }
  4062. }
  4063. if that1 == nil {
  4064. return this == nil
  4065. } else if this == nil {
  4066. return false
  4067. }
  4068. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4069. return false
  4070. }
  4071. return true
  4072. }
  4073. func (this *ResponseInfo) Equal(that interface{}) bool {
  4074. if that == nil {
  4075. return this == nil
  4076. }
  4077. that1, ok := that.(*ResponseInfo)
  4078. if !ok {
  4079. that2, ok := that.(ResponseInfo)
  4080. if ok {
  4081. that1 = &that2
  4082. } else {
  4083. return false
  4084. }
  4085. }
  4086. if that1 == nil {
  4087. return this == nil
  4088. } else if this == nil {
  4089. return false
  4090. }
  4091. if this.Data != that1.Data {
  4092. return false
  4093. }
  4094. if this.Version != that1.Version {
  4095. return false
  4096. }
  4097. if this.AppVersion != that1.AppVersion {
  4098. return false
  4099. }
  4100. if this.LastBlockHeight != that1.LastBlockHeight {
  4101. return false
  4102. }
  4103. if !bytes.Equal(this.LastBlockAppHash, that1.LastBlockAppHash) {
  4104. return false
  4105. }
  4106. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4107. return false
  4108. }
  4109. return true
  4110. }
  4111. func (this *ResponseSetOption) Equal(that interface{}) bool {
  4112. if that == nil {
  4113. return this == nil
  4114. }
  4115. that1, ok := that.(*ResponseSetOption)
  4116. if !ok {
  4117. that2, ok := that.(ResponseSetOption)
  4118. if ok {
  4119. that1 = &that2
  4120. } else {
  4121. return false
  4122. }
  4123. }
  4124. if that1 == nil {
  4125. return this == nil
  4126. } else if this == nil {
  4127. return false
  4128. }
  4129. if this.Code != that1.Code {
  4130. return false
  4131. }
  4132. if this.Log != that1.Log {
  4133. return false
  4134. }
  4135. if this.Info != that1.Info {
  4136. return false
  4137. }
  4138. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4139. return false
  4140. }
  4141. return true
  4142. }
  4143. func (this *ResponseInitChain) Equal(that interface{}) bool {
  4144. if that == nil {
  4145. return this == nil
  4146. }
  4147. that1, ok := that.(*ResponseInitChain)
  4148. if !ok {
  4149. that2, ok := that.(ResponseInitChain)
  4150. if ok {
  4151. that1 = &that2
  4152. } else {
  4153. return false
  4154. }
  4155. }
  4156. if that1 == nil {
  4157. return this == nil
  4158. } else if this == nil {
  4159. return false
  4160. }
  4161. if !this.ConsensusParams.Equal(that1.ConsensusParams) {
  4162. return false
  4163. }
  4164. if len(this.Validators) != len(that1.Validators) {
  4165. return false
  4166. }
  4167. for i := range this.Validators {
  4168. if !this.Validators[i].Equal(&that1.Validators[i]) {
  4169. return false
  4170. }
  4171. }
  4172. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4173. return false
  4174. }
  4175. return true
  4176. }
  4177. func (this *ResponseQuery) Equal(that interface{}) bool {
  4178. if that == nil {
  4179. return this == nil
  4180. }
  4181. that1, ok := that.(*ResponseQuery)
  4182. if !ok {
  4183. that2, ok := that.(ResponseQuery)
  4184. if ok {
  4185. that1 = &that2
  4186. } else {
  4187. return false
  4188. }
  4189. }
  4190. if that1 == nil {
  4191. return this == nil
  4192. } else if this == nil {
  4193. return false
  4194. }
  4195. if this.Code != that1.Code {
  4196. return false
  4197. }
  4198. if this.Log != that1.Log {
  4199. return false
  4200. }
  4201. if this.Info != that1.Info {
  4202. return false
  4203. }
  4204. if this.Index != that1.Index {
  4205. return false
  4206. }
  4207. if !bytes.Equal(this.Key, that1.Key) {
  4208. return false
  4209. }
  4210. if !bytes.Equal(this.Value, that1.Value) {
  4211. return false
  4212. }
  4213. if !this.Proof.Equal(that1.Proof) {
  4214. return false
  4215. }
  4216. if this.Height != that1.Height {
  4217. return false
  4218. }
  4219. if this.Codespace != that1.Codespace {
  4220. return false
  4221. }
  4222. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4223. return false
  4224. }
  4225. return true
  4226. }
  4227. func (this *ResponseBeginBlock) Equal(that interface{}) bool {
  4228. if that == nil {
  4229. return this == nil
  4230. }
  4231. that1, ok := that.(*ResponseBeginBlock)
  4232. if !ok {
  4233. that2, ok := that.(ResponseBeginBlock)
  4234. if ok {
  4235. that1 = &that2
  4236. } else {
  4237. return false
  4238. }
  4239. }
  4240. if that1 == nil {
  4241. return this == nil
  4242. } else if this == nil {
  4243. return false
  4244. }
  4245. if len(this.Tags) != len(that1.Tags) {
  4246. return false
  4247. }
  4248. for i := range this.Tags {
  4249. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4250. return false
  4251. }
  4252. }
  4253. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4254. return false
  4255. }
  4256. return true
  4257. }
  4258. func (this *ResponseCheckTx) Equal(that interface{}) bool {
  4259. if that == nil {
  4260. return this == nil
  4261. }
  4262. that1, ok := that.(*ResponseCheckTx)
  4263. if !ok {
  4264. that2, ok := that.(ResponseCheckTx)
  4265. if ok {
  4266. that1 = &that2
  4267. } else {
  4268. return false
  4269. }
  4270. }
  4271. if that1 == nil {
  4272. return this == nil
  4273. } else if this == nil {
  4274. return false
  4275. }
  4276. if this.Code != that1.Code {
  4277. return false
  4278. }
  4279. if !bytes.Equal(this.Data, that1.Data) {
  4280. return false
  4281. }
  4282. if this.Log != that1.Log {
  4283. return false
  4284. }
  4285. if this.Info != that1.Info {
  4286. return false
  4287. }
  4288. if this.GasWanted != that1.GasWanted {
  4289. return false
  4290. }
  4291. if this.GasUsed != that1.GasUsed {
  4292. return false
  4293. }
  4294. if len(this.Tags) != len(that1.Tags) {
  4295. return false
  4296. }
  4297. for i := range this.Tags {
  4298. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4299. return false
  4300. }
  4301. }
  4302. if this.Codespace != that1.Codespace {
  4303. return false
  4304. }
  4305. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4306. return false
  4307. }
  4308. return true
  4309. }
  4310. func (this *ResponseDeliverTx) Equal(that interface{}) bool {
  4311. if that == nil {
  4312. return this == nil
  4313. }
  4314. that1, ok := that.(*ResponseDeliverTx)
  4315. if !ok {
  4316. that2, ok := that.(ResponseDeliverTx)
  4317. if ok {
  4318. that1 = &that2
  4319. } else {
  4320. return false
  4321. }
  4322. }
  4323. if that1 == nil {
  4324. return this == nil
  4325. } else if this == nil {
  4326. return false
  4327. }
  4328. if this.Code != that1.Code {
  4329. return false
  4330. }
  4331. if !bytes.Equal(this.Data, that1.Data) {
  4332. return false
  4333. }
  4334. if this.Log != that1.Log {
  4335. return false
  4336. }
  4337. if this.Info != that1.Info {
  4338. return false
  4339. }
  4340. if this.GasWanted != that1.GasWanted {
  4341. return false
  4342. }
  4343. if this.GasUsed != that1.GasUsed {
  4344. return false
  4345. }
  4346. if len(this.Tags) != len(that1.Tags) {
  4347. return false
  4348. }
  4349. for i := range this.Tags {
  4350. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4351. return false
  4352. }
  4353. }
  4354. if this.Codespace != that1.Codespace {
  4355. return false
  4356. }
  4357. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4358. return false
  4359. }
  4360. return true
  4361. }
  4362. func (this *ResponseEndBlock) Equal(that interface{}) bool {
  4363. if that == nil {
  4364. return this == nil
  4365. }
  4366. that1, ok := that.(*ResponseEndBlock)
  4367. if !ok {
  4368. that2, ok := that.(ResponseEndBlock)
  4369. if ok {
  4370. that1 = &that2
  4371. } else {
  4372. return false
  4373. }
  4374. }
  4375. if that1 == nil {
  4376. return this == nil
  4377. } else if this == nil {
  4378. return false
  4379. }
  4380. if len(this.ValidatorUpdates) != len(that1.ValidatorUpdates) {
  4381. return false
  4382. }
  4383. for i := range this.ValidatorUpdates {
  4384. if !this.ValidatorUpdates[i].Equal(&that1.ValidatorUpdates[i]) {
  4385. return false
  4386. }
  4387. }
  4388. if !this.ConsensusParamUpdates.Equal(that1.ConsensusParamUpdates) {
  4389. return false
  4390. }
  4391. if len(this.Tags) != len(that1.Tags) {
  4392. return false
  4393. }
  4394. for i := range this.Tags {
  4395. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4396. return false
  4397. }
  4398. }
  4399. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4400. return false
  4401. }
  4402. return true
  4403. }
  4404. func (this *ResponseCommit) Equal(that interface{}) bool {
  4405. if that == nil {
  4406. return this == nil
  4407. }
  4408. that1, ok := that.(*ResponseCommit)
  4409. if !ok {
  4410. that2, ok := that.(ResponseCommit)
  4411. if ok {
  4412. that1 = &that2
  4413. } else {
  4414. return false
  4415. }
  4416. }
  4417. if that1 == nil {
  4418. return this == nil
  4419. } else if this == nil {
  4420. return false
  4421. }
  4422. if !bytes.Equal(this.Data, that1.Data) {
  4423. return false
  4424. }
  4425. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4426. return false
  4427. }
  4428. return true
  4429. }
  4430. func (this *ConsensusParams) Equal(that interface{}) bool {
  4431. if that == nil {
  4432. return this == nil
  4433. }
  4434. that1, ok := that.(*ConsensusParams)
  4435. if !ok {
  4436. that2, ok := that.(ConsensusParams)
  4437. if ok {
  4438. that1 = &that2
  4439. } else {
  4440. return false
  4441. }
  4442. }
  4443. if that1 == nil {
  4444. return this == nil
  4445. } else if this == nil {
  4446. return false
  4447. }
  4448. if !this.BlockSize.Equal(that1.BlockSize) {
  4449. return false
  4450. }
  4451. if !this.Evidence.Equal(that1.Evidence) {
  4452. return false
  4453. }
  4454. if !this.Validator.Equal(that1.Validator) {
  4455. return false
  4456. }
  4457. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4458. return false
  4459. }
  4460. return true
  4461. }
  4462. func (this *BlockSizeParams) Equal(that interface{}) bool {
  4463. if that == nil {
  4464. return this == nil
  4465. }
  4466. that1, ok := that.(*BlockSizeParams)
  4467. if !ok {
  4468. that2, ok := that.(BlockSizeParams)
  4469. if ok {
  4470. that1 = &that2
  4471. } else {
  4472. return false
  4473. }
  4474. }
  4475. if that1 == nil {
  4476. return this == nil
  4477. } else if this == nil {
  4478. return false
  4479. }
  4480. if this.MaxBytes != that1.MaxBytes {
  4481. return false
  4482. }
  4483. if this.MaxGas != that1.MaxGas {
  4484. return false
  4485. }
  4486. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4487. return false
  4488. }
  4489. return true
  4490. }
  4491. func (this *EvidenceParams) Equal(that interface{}) bool {
  4492. if that == nil {
  4493. return this == nil
  4494. }
  4495. that1, ok := that.(*EvidenceParams)
  4496. if !ok {
  4497. that2, ok := that.(EvidenceParams)
  4498. if ok {
  4499. that1 = &that2
  4500. } else {
  4501. return false
  4502. }
  4503. }
  4504. if that1 == nil {
  4505. return this == nil
  4506. } else if this == nil {
  4507. return false
  4508. }
  4509. if this.MaxAge != that1.MaxAge {
  4510. return false
  4511. }
  4512. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4513. return false
  4514. }
  4515. return true
  4516. }
  4517. func (this *ValidatorParams) Equal(that interface{}) bool {
  4518. if that == nil {
  4519. return this == nil
  4520. }
  4521. that1, ok := that.(*ValidatorParams)
  4522. if !ok {
  4523. that2, ok := that.(ValidatorParams)
  4524. if ok {
  4525. that1 = &that2
  4526. } else {
  4527. return false
  4528. }
  4529. }
  4530. if that1 == nil {
  4531. return this == nil
  4532. } else if this == nil {
  4533. return false
  4534. }
  4535. if len(this.PubKeyTypes) != len(that1.PubKeyTypes) {
  4536. return false
  4537. }
  4538. for i := range this.PubKeyTypes {
  4539. if this.PubKeyTypes[i] != that1.PubKeyTypes[i] {
  4540. return false
  4541. }
  4542. }
  4543. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4544. return false
  4545. }
  4546. return true
  4547. }
  4548. func (this *LastCommitInfo) Equal(that interface{}) bool {
  4549. if that == nil {
  4550. return this == nil
  4551. }
  4552. that1, ok := that.(*LastCommitInfo)
  4553. if !ok {
  4554. that2, ok := that.(LastCommitInfo)
  4555. if ok {
  4556. that1 = &that2
  4557. } else {
  4558. return false
  4559. }
  4560. }
  4561. if that1 == nil {
  4562. return this == nil
  4563. } else if this == nil {
  4564. return false
  4565. }
  4566. if this.Round != that1.Round {
  4567. return false
  4568. }
  4569. if len(this.Votes) != len(that1.Votes) {
  4570. return false
  4571. }
  4572. for i := range this.Votes {
  4573. if !this.Votes[i].Equal(&that1.Votes[i]) {
  4574. return false
  4575. }
  4576. }
  4577. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4578. return false
  4579. }
  4580. return true
  4581. }
  4582. func (this *Header) Equal(that interface{}) bool {
  4583. if that == nil {
  4584. return this == nil
  4585. }
  4586. that1, ok := that.(*Header)
  4587. if !ok {
  4588. that2, ok := that.(Header)
  4589. if ok {
  4590. that1 = &that2
  4591. } else {
  4592. return false
  4593. }
  4594. }
  4595. if that1 == nil {
  4596. return this == nil
  4597. } else if this == nil {
  4598. return false
  4599. }
  4600. if !this.Version.Equal(&that1.Version) {
  4601. return false
  4602. }
  4603. if this.ChainID != that1.ChainID {
  4604. return false
  4605. }
  4606. if this.Height != that1.Height {
  4607. return false
  4608. }
  4609. if !this.Time.Equal(that1.Time) {
  4610. return false
  4611. }
  4612. if this.NumTxs != that1.NumTxs {
  4613. return false
  4614. }
  4615. if this.TotalTxs != that1.TotalTxs {
  4616. return false
  4617. }
  4618. if !this.LastBlockId.Equal(&that1.LastBlockId) {
  4619. return false
  4620. }
  4621. if !bytes.Equal(this.LastCommitHash, that1.LastCommitHash) {
  4622. return false
  4623. }
  4624. if !bytes.Equal(this.DataHash, that1.DataHash) {
  4625. return false
  4626. }
  4627. if !bytes.Equal(this.ValidatorsHash, that1.ValidatorsHash) {
  4628. return false
  4629. }
  4630. if !bytes.Equal(this.NextValidatorsHash, that1.NextValidatorsHash) {
  4631. return false
  4632. }
  4633. if !bytes.Equal(this.ConsensusHash, that1.ConsensusHash) {
  4634. return false
  4635. }
  4636. if !bytes.Equal(this.AppHash, that1.AppHash) {
  4637. return false
  4638. }
  4639. if !bytes.Equal(this.LastResultsHash, that1.LastResultsHash) {
  4640. return false
  4641. }
  4642. if !bytes.Equal(this.EvidenceHash, that1.EvidenceHash) {
  4643. return false
  4644. }
  4645. if !bytes.Equal(this.ProposerAddress, that1.ProposerAddress) {
  4646. return false
  4647. }
  4648. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4649. return false
  4650. }
  4651. return true
  4652. }
  4653. func (this *Version) Equal(that interface{}) bool {
  4654. if that == nil {
  4655. return this == nil
  4656. }
  4657. that1, ok := that.(*Version)
  4658. if !ok {
  4659. that2, ok := that.(Version)
  4660. if ok {
  4661. that1 = &that2
  4662. } else {
  4663. return false
  4664. }
  4665. }
  4666. if that1 == nil {
  4667. return this == nil
  4668. } else if this == nil {
  4669. return false
  4670. }
  4671. if this.Block != that1.Block {
  4672. return false
  4673. }
  4674. if this.App != that1.App {
  4675. return false
  4676. }
  4677. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4678. return false
  4679. }
  4680. return true
  4681. }
  4682. func (this *BlockID) Equal(that interface{}) bool {
  4683. if that == nil {
  4684. return this == nil
  4685. }
  4686. that1, ok := that.(*BlockID)
  4687. if !ok {
  4688. that2, ok := that.(BlockID)
  4689. if ok {
  4690. that1 = &that2
  4691. } else {
  4692. return false
  4693. }
  4694. }
  4695. if that1 == nil {
  4696. return this == nil
  4697. } else if this == nil {
  4698. return false
  4699. }
  4700. if !bytes.Equal(this.Hash, that1.Hash) {
  4701. return false
  4702. }
  4703. if !this.PartsHeader.Equal(&that1.PartsHeader) {
  4704. return false
  4705. }
  4706. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4707. return false
  4708. }
  4709. return true
  4710. }
  4711. func (this *PartSetHeader) Equal(that interface{}) bool {
  4712. if that == nil {
  4713. return this == nil
  4714. }
  4715. that1, ok := that.(*PartSetHeader)
  4716. if !ok {
  4717. that2, ok := that.(PartSetHeader)
  4718. if ok {
  4719. that1 = &that2
  4720. } else {
  4721. return false
  4722. }
  4723. }
  4724. if that1 == nil {
  4725. return this == nil
  4726. } else if this == nil {
  4727. return false
  4728. }
  4729. if this.Total != that1.Total {
  4730. return false
  4731. }
  4732. if !bytes.Equal(this.Hash, that1.Hash) {
  4733. return false
  4734. }
  4735. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4736. return false
  4737. }
  4738. return true
  4739. }
  4740. func (this *Validator) Equal(that interface{}) bool {
  4741. if that == nil {
  4742. return this == nil
  4743. }
  4744. that1, ok := that.(*Validator)
  4745. if !ok {
  4746. that2, ok := that.(Validator)
  4747. if ok {
  4748. that1 = &that2
  4749. } else {
  4750. return false
  4751. }
  4752. }
  4753. if that1 == nil {
  4754. return this == nil
  4755. } else if this == nil {
  4756. return false
  4757. }
  4758. if !bytes.Equal(this.Address, that1.Address) {
  4759. return false
  4760. }
  4761. if this.Power != that1.Power {
  4762. return false
  4763. }
  4764. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4765. return false
  4766. }
  4767. return true
  4768. }
  4769. func (this *ValidatorUpdate) Equal(that interface{}) bool {
  4770. if that == nil {
  4771. return this == nil
  4772. }
  4773. that1, ok := that.(*ValidatorUpdate)
  4774. if !ok {
  4775. that2, ok := that.(ValidatorUpdate)
  4776. if ok {
  4777. that1 = &that2
  4778. } else {
  4779. return false
  4780. }
  4781. }
  4782. if that1 == nil {
  4783. return this == nil
  4784. } else if this == nil {
  4785. return false
  4786. }
  4787. if !this.PubKey.Equal(&that1.PubKey) {
  4788. return false
  4789. }
  4790. if this.Power != that1.Power {
  4791. return false
  4792. }
  4793. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4794. return false
  4795. }
  4796. return true
  4797. }
  4798. func (this *VoteInfo) Equal(that interface{}) bool {
  4799. if that == nil {
  4800. return this == nil
  4801. }
  4802. that1, ok := that.(*VoteInfo)
  4803. if !ok {
  4804. that2, ok := that.(VoteInfo)
  4805. if ok {
  4806. that1 = &that2
  4807. } else {
  4808. return false
  4809. }
  4810. }
  4811. if that1 == nil {
  4812. return this == nil
  4813. } else if this == nil {
  4814. return false
  4815. }
  4816. if !this.Validator.Equal(&that1.Validator) {
  4817. return false
  4818. }
  4819. if this.SignedLastBlock != that1.SignedLastBlock {
  4820. return false
  4821. }
  4822. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4823. return false
  4824. }
  4825. return true
  4826. }
  4827. func (this *PubKey) Equal(that interface{}) bool {
  4828. if that == nil {
  4829. return this == nil
  4830. }
  4831. that1, ok := that.(*PubKey)
  4832. if !ok {
  4833. that2, ok := that.(PubKey)
  4834. if ok {
  4835. that1 = &that2
  4836. } else {
  4837. return false
  4838. }
  4839. }
  4840. if that1 == nil {
  4841. return this == nil
  4842. } else if this == nil {
  4843. return false
  4844. }
  4845. if this.Type != that1.Type {
  4846. return false
  4847. }
  4848. if !bytes.Equal(this.Data, that1.Data) {
  4849. return false
  4850. }
  4851. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4852. return false
  4853. }
  4854. return true
  4855. }
  4856. func (this *Evidence) Equal(that interface{}) bool {
  4857. if that == nil {
  4858. return this == nil
  4859. }
  4860. that1, ok := that.(*Evidence)
  4861. if !ok {
  4862. that2, ok := that.(Evidence)
  4863. if ok {
  4864. that1 = &that2
  4865. } else {
  4866. return false
  4867. }
  4868. }
  4869. if that1 == nil {
  4870. return this == nil
  4871. } else if this == nil {
  4872. return false
  4873. }
  4874. if this.Type != that1.Type {
  4875. return false
  4876. }
  4877. if !this.Validator.Equal(&that1.Validator) {
  4878. return false
  4879. }
  4880. if this.Height != that1.Height {
  4881. return false
  4882. }
  4883. if !this.Time.Equal(that1.Time) {
  4884. return false
  4885. }
  4886. if this.TotalVotingPower != that1.TotalVotingPower {
  4887. return false
  4888. }
  4889. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4890. return false
  4891. }
  4892. return true
  4893. }
  4894. // Reference imports to suppress errors if they are not otherwise used.
  4895. var _ context.Context
  4896. var _ grpc.ClientConn
  4897. // This is a compile-time assertion to ensure that this generated file
  4898. // is compatible with the grpc package it is being compiled against.
  4899. const _ = grpc.SupportPackageIsVersion4
  4900. // ABCIApplicationClient is the client API for ABCIApplication service.
  4901. //
  4902. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4903. type ABCIApplicationClient interface {
  4904. Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error)
  4905. Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error)
  4906. Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error)
  4907. SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error)
  4908. DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error)
  4909. CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error)
  4910. Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error)
  4911. Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error)
  4912. InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error)
  4913. BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error)
  4914. EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error)
  4915. }
  4916. type aBCIApplicationClient struct {
  4917. cc *grpc.ClientConn
  4918. }
  4919. func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient {
  4920. return &aBCIApplicationClient{cc}
  4921. }
  4922. func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) {
  4923. out := new(ResponseEcho)
  4924. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Echo", in, out, opts...)
  4925. if err != nil {
  4926. return nil, err
  4927. }
  4928. return out, nil
  4929. }
  4930. func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) {
  4931. out := new(ResponseFlush)
  4932. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Flush", in, out, opts...)
  4933. if err != nil {
  4934. return nil, err
  4935. }
  4936. return out, nil
  4937. }
  4938. func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) {
  4939. out := new(ResponseInfo)
  4940. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Info", in, out, opts...)
  4941. if err != nil {
  4942. return nil, err
  4943. }
  4944. return out, nil
  4945. }
  4946. func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) {
  4947. out := new(ResponseSetOption)
  4948. err := c.cc.Invoke(ctx, "/types.ABCIApplication/SetOption", in, out, opts...)
  4949. if err != nil {
  4950. return nil, err
  4951. }
  4952. return out, nil
  4953. }
  4954. func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) {
  4955. out := new(ResponseDeliverTx)
  4956. err := c.cc.Invoke(ctx, "/types.ABCIApplication/DeliverTx", in, out, opts...)
  4957. if err != nil {
  4958. return nil, err
  4959. }
  4960. return out, nil
  4961. }
  4962. func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) {
  4963. out := new(ResponseCheckTx)
  4964. err := c.cc.Invoke(ctx, "/types.ABCIApplication/CheckTx", in, out, opts...)
  4965. if err != nil {
  4966. return nil, err
  4967. }
  4968. return out, nil
  4969. }
  4970. func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) {
  4971. out := new(ResponseQuery)
  4972. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Query", in, out, opts...)
  4973. if err != nil {
  4974. return nil, err
  4975. }
  4976. return out, nil
  4977. }
  4978. func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) {
  4979. out := new(ResponseCommit)
  4980. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Commit", in, out, opts...)
  4981. if err != nil {
  4982. return nil, err
  4983. }
  4984. return out, nil
  4985. }
  4986. func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) {
  4987. out := new(ResponseInitChain)
  4988. err := c.cc.Invoke(ctx, "/types.ABCIApplication/InitChain", in, out, opts...)
  4989. if err != nil {
  4990. return nil, err
  4991. }
  4992. return out, nil
  4993. }
  4994. func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) {
  4995. out := new(ResponseBeginBlock)
  4996. err := c.cc.Invoke(ctx, "/types.ABCIApplication/BeginBlock", in, out, opts...)
  4997. if err != nil {
  4998. return nil, err
  4999. }
  5000. return out, nil
  5001. }
  5002. func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) {
  5003. out := new(ResponseEndBlock)
  5004. err := c.cc.Invoke(ctx, "/types.ABCIApplication/EndBlock", in, out, opts...)
  5005. if err != nil {
  5006. return nil, err
  5007. }
  5008. return out, nil
  5009. }
  5010. // ABCIApplicationServer is the server API for ABCIApplication service.
  5011. type ABCIApplicationServer interface {
  5012. Echo(context.Context, *RequestEcho) (*ResponseEcho, error)
  5013. Flush(context.Context, *RequestFlush) (*ResponseFlush, error)
  5014. Info(context.Context, *RequestInfo) (*ResponseInfo, error)
  5015. SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error)
  5016. DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error)
  5017. CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error)
  5018. Query(context.Context, *RequestQuery) (*ResponseQuery, error)
  5019. Commit(context.Context, *RequestCommit) (*ResponseCommit, error)
  5020. InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error)
  5021. BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error)
  5022. EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error)
  5023. }
  5024. func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) {
  5025. s.RegisterService(&_ABCIApplication_serviceDesc, srv)
  5026. }
  5027. func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5028. in := new(RequestEcho)
  5029. if err := dec(in); err != nil {
  5030. return nil, err
  5031. }
  5032. if interceptor == nil {
  5033. return srv.(ABCIApplicationServer).Echo(ctx, in)
  5034. }
  5035. info := &grpc.UnaryServerInfo{
  5036. Server: srv,
  5037. FullMethod: "/types.ABCIApplication/Echo",
  5038. }
  5039. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5040. return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho))
  5041. }
  5042. return interceptor(ctx, in, info, handler)
  5043. }
  5044. func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5045. in := new(RequestFlush)
  5046. if err := dec(in); err != nil {
  5047. return nil, err
  5048. }
  5049. if interceptor == nil {
  5050. return srv.(ABCIApplicationServer).Flush(ctx, in)
  5051. }
  5052. info := &grpc.UnaryServerInfo{
  5053. Server: srv,
  5054. FullMethod: "/types.ABCIApplication/Flush",
  5055. }
  5056. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5057. return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush))
  5058. }
  5059. return interceptor(ctx, in, info, handler)
  5060. }
  5061. func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5062. in := new(RequestInfo)
  5063. if err := dec(in); err != nil {
  5064. return nil, err
  5065. }
  5066. if interceptor == nil {
  5067. return srv.(ABCIApplicationServer).Info(ctx, in)
  5068. }
  5069. info := &grpc.UnaryServerInfo{
  5070. Server: srv,
  5071. FullMethod: "/types.ABCIApplication/Info",
  5072. }
  5073. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5074. return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo))
  5075. }
  5076. return interceptor(ctx, in, info, handler)
  5077. }
  5078. func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5079. in := new(RequestSetOption)
  5080. if err := dec(in); err != nil {
  5081. return nil, err
  5082. }
  5083. if interceptor == nil {
  5084. return srv.(ABCIApplicationServer).SetOption(ctx, in)
  5085. }
  5086. info := &grpc.UnaryServerInfo{
  5087. Server: srv,
  5088. FullMethod: "/types.ABCIApplication/SetOption",
  5089. }
  5090. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5091. return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption))
  5092. }
  5093. return interceptor(ctx, in, info, handler)
  5094. }
  5095. func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5096. in := new(RequestDeliverTx)
  5097. if err := dec(in); err != nil {
  5098. return nil, err
  5099. }
  5100. if interceptor == nil {
  5101. return srv.(ABCIApplicationServer).DeliverTx(ctx, in)
  5102. }
  5103. info := &grpc.UnaryServerInfo{
  5104. Server: srv,
  5105. FullMethod: "/types.ABCIApplication/DeliverTx",
  5106. }
  5107. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5108. return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx))
  5109. }
  5110. return interceptor(ctx, in, info, handler)
  5111. }
  5112. func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5113. in := new(RequestCheckTx)
  5114. if err := dec(in); err != nil {
  5115. return nil, err
  5116. }
  5117. if interceptor == nil {
  5118. return srv.(ABCIApplicationServer).CheckTx(ctx, in)
  5119. }
  5120. info := &grpc.UnaryServerInfo{
  5121. Server: srv,
  5122. FullMethod: "/types.ABCIApplication/CheckTx",
  5123. }
  5124. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5125. return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx))
  5126. }
  5127. return interceptor(ctx, in, info, handler)
  5128. }
  5129. func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5130. in := new(RequestQuery)
  5131. if err := dec(in); err != nil {
  5132. return nil, err
  5133. }
  5134. if interceptor == nil {
  5135. return srv.(ABCIApplicationServer).Query(ctx, in)
  5136. }
  5137. info := &grpc.UnaryServerInfo{
  5138. Server: srv,
  5139. FullMethod: "/types.ABCIApplication/Query",
  5140. }
  5141. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5142. return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery))
  5143. }
  5144. return interceptor(ctx, in, info, handler)
  5145. }
  5146. func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5147. in := new(RequestCommit)
  5148. if err := dec(in); err != nil {
  5149. return nil, err
  5150. }
  5151. if interceptor == nil {
  5152. return srv.(ABCIApplicationServer).Commit(ctx, in)
  5153. }
  5154. info := &grpc.UnaryServerInfo{
  5155. Server: srv,
  5156. FullMethod: "/types.ABCIApplication/Commit",
  5157. }
  5158. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5159. return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit))
  5160. }
  5161. return interceptor(ctx, in, info, handler)
  5162. }
  5163. func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5164. in := new(RequestInitChain)
  5165. if err := dec(in); err != nil {
  5166. return nil, err
  5167. }
  5168. if interceptor == nil {
  5169. return srv.(ABCIApplicationServer).InitChain(ctx, in)
  5170. }
  5171. info := &grpc.UnaryServerInfo{
  5172. Server: srv,
  5173. FullMethod: "/types.ABCIApplication/InitChain",
  5174. }
  5175. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5176. return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain))
  5177. }
  5178. return interceptor(ctx, in, info, handler)
  5179. }
  5180. func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5181. in := new(RequestBeginBlock)
  5182. if err := dec(in); err != nil {
  5183. return nil, err
  5184. }
  5185. if interceptor == nil {
  5186. return srv.(ABCIApplicationServer).BeginBlock(ctx, in)
  5187. }
  5188. info := &grpc.UnaryServerInfo{
  5189. Server: srv,
  5190. FullMethod: "/types.ABCIApplication/BeginBlock",
  5191. }
  5192. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5193. return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock))
  5194. }
  5195. return interceptor(ctx, in, info, handler)
  5196. }
  5197. func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5198. in := new(RequestEndBlock)
  5199. if err := dec(in); err != nil {
  5200. return nil, err
  5201. }
  5202. if interceptor == nil {
  5203. return srv.(ABCIApplicationServer).EndBlock(ctx, in)
  5204. }
  5205. info := &grpc.UnaryServerInfo{
  5206. Server: srv,
  5207. FullMethod: "/types.ABCIApplication/EndBlock",
  5208. }
  5209. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5210. return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock))
  5211. }
  5212. return interceptor(ctx, in, info, handler)
  5213. }
  5214. var _ABCIApplication_serviceDesc = grpc.ServiceDesc{
  5215. ServiceName: "types.ABCIApplication",
  5216. HandlerType: (*ABCIApplicationServer)(nil),
  5217. Methods: []grpc.MethodDesc{
  5218. {
  5219. MethodName: "Echo",
  5220. Handler: _ABCIApplication_Echo_Handler,
  5221. },
  5222. {
  5223. MethodName: "Flush",
  5224. Handler: _ABCIApplication_Flush_Handler,
  5225. },
  5226. {
  5227. MethodName: "Info",
  5228. Handler: _ABCIApplication_Info_Handler,
  5229. },
  5230. {
  5231. MethodName: "SetOption",
  5232. Handler: _ABCIApplication_SetOption_Handler,
  5233. },
  5234. {
  5235. MethodName: "DeliverTx",
  5236. Handler: _ABCIApplication_DeliverTx_Handler,
  5237. },
  5238. {
  5239. MethodName: "CheckTx",
  5240. Handler: _ABCIApplication_CheckTx_Handler,
  5241. },
  5242. {
  5243. MethodName: "Query",
  5244. Handler: _ABCIApplication_Query_Handler,
  5245. },
  5246. {
  5247. MethodName: "Commit",
  5248. Handler: _ABCIApplication_Commit_Handler,
  5249. },
  5250. {
  5251. MethodName: "InitChain",
  5252. Handler: _ABCIApplication_InitChain_Handler,
  5253. },
  5254. {
  5255. MethodName: "BeginBlock",
  5256. Handler: _ABCIApplication_BeginBlock_Handler,
  5257. },
  5258. {
  5259. MethodName: "EndBlock",
  5260. Handler: _ABCIApplication_EndBlock_Handler,
  5261. },
  5262. },
  5263. Streams: []grpc.StreamDesc{},
  5264. Metadata: "abci/types/types.proto",
  5265. }
  5266. func (m *Request) Marshal() (dAtA []byte, err error) {
  5267. size := m.Size()
  5268. dAtA = make([]byte, size)
  5269. n, err := m.MarshalTo(dAtA)
  5270. if err != nil {
  5271. return nil, err
  5272. }
  5273. return dAtA[:n], nil
  5274. }
  5275. func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  5276. var i int
  5277. _ = i
  5278. var l int
  5279. _ = l
  5280. if m.Value != nil {
  5281. nn1, err := m.Value.MarshalTo(dAtA[i:])
  5282. if err != nil {
  5283. return 0, err
  5284. }
  5285. i += nn1
  5286. }
  5287. if m.XXX_unrecognized != nil {
  5288. i += copy(dAtA[i:], m.XXX_unrecognized)
  5289. }
  5290. return i, nil
  5291. }
  5292. func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) {
  5293. i := 0
  5294. if m.Echo != nil {
  5295. dAtA[i] = 0x12
  5296. i++
  5297. i = encodeVarintTypes(dAtA, i, uint64(m.Echo.Size()))
  5298. n2, err := m.Echo.MarshalTo(dAtA[i:])
  5299. if err != nil {
  5300. return 0, err
  5301. }
  5302. i += n2
  5303. }
  5304. return i, nil
  5305. }
  5306. func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) {
  5307. i := 0
  5308. if m.Flush != nil {
  5309. dAtA[i] = 0x1a
  5310. i++
  5311. i = encodeVarintTypes(dAtA, i, uint64(m.Flush.Size()))
  5312. n3, err := m.Flush.MarshalTo(dAtA[i:])
  5313. if err != nil {
  5314. return 0, err
  5315. }
  5316. i += n3
  5317. }
  5318. return i, nil
  5319. }
  5320. func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) {
  5321. i := 0
  5322. if m.Info != nil {
  5323. dAtA[i] = 0x22
  5324. i++
  5325. i = encodeVarintTypes(dAtA, i, uint64(m.Info.Size()))
  5326. n4, err := m.Info.MarshalTo(dAtA[i:])
  5327. if err != nil {
  5328. return 0, err
  5329. }
  5330. i += n4
  5331. }
  5332. return i, nil
  5333. }
  5334. func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) {
  5335. i := 0
  5336. if m.SetOption != nil {
  5337. dAtA[i] = 0x2a
  5338. i++
  5339. i = encodeVarintTypes(dAtA, i, uint64(m.SetOption.Size()))
  5340. n5, err := m.SetOption.MarshalTo(dAtA[i:])
  5341. if err != nil {
  5342. return 0, err
  5343. }
  5344. i += n5
  5345. }
  5346. return i, nil
  5347. }
  5348. func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) {
  5349. i := 0
  5350. if m.InitChain != nil {
  5351. dAtA[i] = 0x32
  5352. i++
  5353. i = encodeVarintTypes(dAtA, i, uint64(m.InitChain.Size()))
  5354. n6, err := m.InitChain.MarshalTo(dAtA[i:])
  5355. if err != nil {
  5356. return 0, err
  5357. }
  5358. i += n6
  5359. }
  5360. return i, nil
  5361. }
  5362. func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) {
  5363. i := 0
  5364. if m.Query != nil {
  5365. dAtA[i] = 0x3a
  5366. i++
  5367. i = encodeVarintTypes(dAtA, i, uint64(m.Query.Size()))
  5368. n7, err := m.Query.MarshalTo(dAtA[i:])
  5369. if err != nil {
  5370. return 0, err
  5371. }
  5372. i += n7
  5373. }
  5374. return i, nil
  5375. }
  5376. func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5377. i := 0
  5378. if m.BeginBlock != nil {
  5379. dAtA[i] = 0x42
  5380. i++
  5381. i = encodeVarintTypes(dAtA, i, uint64(m.BeginBlock.Size()))
  5382. n8, err := m.BeginBlock.MarshalTo(dAtA[i:])
  5383. if err != nil {
  5384. return 0, err
  5385. }
  5386. i += n8
  5387. }
  5388. return i, nil
  5389. }
  5390. func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) {
  5391. i := 0
  5392. if m.CheckTx != nil {
  5393. dAtA[i] = 0x4a
  5394. i++
  5395. i = encodeVarintTypes(dAtA, i, uint64(m.CheckTx.Size()))
  5396. n9, err := m.CheckTx.MarshalTo(dAtA[i:])
  5397. if err != nil {
  5398. return 0, err
  5399. }
  5400. i += n9
  5401. }
  5402. return i, nil
  5403. }
  5404. func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) {
  5405. i := 0
  5406. if m.EndBlock != nil {
  5407. dAtA[i] = 0x5a
  5408. i++
  5409. i = encodeVarintTypes(dAtA, i, uint64(m.EndBlock.Size()))
  5410. n10, err := m.EndBlock.MarshalTo(dAtA[i:])
  5411. if err != nil {
  5412. return 0, err
  5413. }
  5414. i += n10
  5415. }
  5416. return i, nil
  5417. }
  5418. func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) {
  5419. i := 0
  5420. if m.Commit != nil {
  5421. dAtA[i] = 0x62
  5422. i++
  5423. i = encodeVarintTypes(dAtA, i, uint64(m.Commit.Size()))
  5424. n11, err := m.Commit.MarshalTo(dAtA[i:])
  5425. if err != nil {
  5426. return 0, err
  5427. }
  5428. i += n11
  5429. }
  5430. return i, nil
  5431. }
  5432. func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5433. i := 0
  5434. if m.DeliverTx != nil {
  5435. dAtA[i] = 0x9a
  5436. i++
  5437. dAtA[i] = 0x1
  5438. i++
  5439. i = encodeVarintTypes(dAtA, i, uint64(m.DeliverTx.Size()))
  5440. n12, err := m.DeliverTx.MarshalTo(dAtA[i:])
  5441. if err != nil {
  5442. return 0, err
  5443. }
  5444. i += n12
  5445. }
  5446. return i, nil
  5447. }
  5448. func (m *RequestEcho) Marshal() (dAtA []byte, err error) {
  5449. size := m.Size()
  5450. dAtA = make([]byte, size)
  5451. n, err := m.MarshalTo(dAtA)
  5452. if err != nil {
  5453. return nil, err
  5454. }
  5455. return dAtA[:n], nil
  5456. }
  5457. func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) {
  5458. var i int
  5459. _ = i
  5460. var l int
  5461. _ = l
  5462. if len(m.Message) > 0 {
  5463. dAtA[i] = 0xa
  5464. i++
  5465. i = encodeVarintTypes(dAtA, i, uint64(len(m.Message)))
  5466. i += copy(dAtA[i:], m.Message)
  5467. }
  5468. if m.XXX_unrecognized != nil {
  5469. i += copy(dAtA[i:], m.XXX_unrecognized)
  5470. }
  5471. return i, nil
  5472. }
  5473. func (m *RequestFlush) Marshal() (dAtA []byte, err error) {
  5474. size := m.Size()
  5475. dAtA = make([]byte, size)
  5476. n, err := m.MarshalTo(dAtA)
  5477. if err != nil {
  5478. return nil, err
  5479. }
  5480. return dAtA[:n], nil
  5481. }
  5482. func (m *RequestFlush) MarshalTo(dAtA []byte) (int, error) {
  5483. var i int
  5484. _ = i
  5485. var l int
  5486. _ = l
  5487. if m.XXX_unrecognized != nil {
  5488. i += copy(dAtA[i:], m.XXX_unrecognized)
  5489. }
  5490. return i, nil
  5491. }
  5492. func (m *RequestInfo) Marshal() (dAtA []byte, err error) {
  5493. size := m.Size()
  5494. dAtA = make([]byte, size)
  5495. n, err := m.MarshalTo(dAtA)
  5496. if err != nil {
  5497. return nil, err
  5498. }
  5499. return dAtA[:n], nil
  5500. }
  5501. func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) {
  5502. var i int
  5503. _ = i
  5504. var l int
  5505. _ = l
  5506. if len(m.Version) > 0 {
  5507. dAtA[i] = 0xa
  5508. i++
  5509. i = encodeVarintTypes(dAtA, i, uint64(len(m.Version)))
  5510. i += copy(dAtA[i:], m.Version)
  5511. }
  5512. if m.BlockVersion != 0 {
  5513. dAtA[i] = 0x10
  5514. i++
  5515. i = encodeVarintTypes(dAtA, i, uint64(m.BlockVersion))
  5516. }
  5517. if m.P2PVersion != 0 {
  5518. dAtA[i] = 0x18
  5519. i++
  5520. i = encodeVarintTypes(dAtA, i, uint64(m.P2PVersion))
  5521. }
  5522. if m.XXX_unrecognized != nil {
  5523. i += copy(dAtA[i:], m.XXX_unrecognized)
  5524. }
  5525. return i, nil
  5526. }
  5527. func (m *RequestSetOption) Marshal() (dAtA []byte, err error) {
  5528. size := m.Size()
  5529. dAtA = make([]byte, size)
  5530. n, err := m.MarshalTo(dAtA)
  5531. if err != nil {
  5532. return nil, err
  5533. }
  5534. return dAtA[:n], nil
  5535. }
  5536. func (m *RequestSetOption) MarshalTo(dAtA []byte) (int, error) {
  5537. var i int
  5538. _ = i
  5539. var l int
  5540. _ = l
  5541. if len(m.Key) > 0 {
  5542. dAtA[i] = 0xa
  5543. i++
  5544. i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  5545. i += copy(dAtA[i:], m.Key)
  5546. }
  5547. if len(m.Value) > 0 {
  5548. dAtA[i] = 0x12
  5549. i++
  5550. i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  5551. i += copy(dAtA[i:], m.Value)
  5552. }
  5553. if m.XXX_unrecognized != nil {
  5554. i += copy(dAtA[i:], m.XXX_unrecognized)
  5555. }
  5556. return i, nil
  5557. }
  5558. func (m *RequestInitChain) Marshal() (dAtA []byte, err error) {
  5559. size := m.Size()
  5560. dAtA = make([]byte, size)
  5561. n, err := m.MarshalTo(dAtA)
  5562. if err != nil {
  5563. return nil, err
  5564. }
  5565. return dAtA[:n], nil
  5566. }
  5567. func (m *RequestInitChain) MarshalTo(dAtA []byte) (int, error) {
  5568. var i int
  5569. _ = i
  5570. var l int
  5571. _ = l
  5572. dAtA[i] = 0xa
  5573. i++
  5574. i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)))
  5575. n13, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i:])
  5576. if err != nil {
  5577. return 0, err
  5578. }
  5579. i += n13
  5580. if len(m.ChainId) > 0 {
  5581. dAtA[i] = 0x12
  5582. i++
  5583. i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId)))
  5584. i += copy(dAtA[i:], m.ChainId)
  5585. }
  5586. if m.ConsensusParams != nil {
  5587. dAtA[i] = 0x1a
  5588. i++
  5589. i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusParams.Size()))
  5590. n14, err := m.ConsensusParams.MarshalTo(dAtA[i:])
  5591. if err != nil {
  5592. return 0, err
  5593. }
  5594. i += n14
  5595. }
  5596. if len(m.Validators) > 0 {
  5597. for _, msg := range m.Validators {
  5598. dAtA[i] = 0x22
  5599. i++
  5600. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  5601. n, err := msg.MarshalTo(dAtA[i:])
  5602. if err != nil {
  5603. return 0, err
  5604. }
  5605. i += n
  5606. }
  5607. }
  5608. if len(m.AppStateBytes) > 0 {
  5609. dAtA[i] = 0x2a
  5610. i++
  5611. i = encodeVarintTypes(dAtA, i, uint64(len(m.AppStateBytes)))
  5612. i += copy(dAtA[i:], m.AppStateBytes)
  5613. }
  5614. if m.XXX_unrecognized != nil {
  5615. i += copy(dAtA[i:], m.XXX_unrecognized)
  5616. }
  5617. return i, nil
  5618. }
  5619. func (m *RequestQuery) Marshal() (dAtA []byte, err error) {
  5620. size := m.Size()
  5621. dAtA = make([]byte, size)
  5622. n, err := m.MarshalTo(dAtA)
  5623. if err != nil {
  5624. return nil, err
  5625. }
  5626. return dAtA[:n], nil
  5627. }
  5628. func (m *RequestQuery) MarshalTo(dAtA []byte) (int, error) {
  5629. var i int
  5630. _ = i
  5631. var l int
  5632. _ = l
  5633. if len(m.Data) > 0 {
  5634. dAtA[i] = 0xa
  5635. i++
  5636. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5637. i += copy(dAtA[i:], m.Data)
  5638. }
  5639. if len(m.Path) > 0 {
  5640. dAtA[i] = 0x12
  5641. i++
  5642. i = encodeVarintTypes(dAtA, i, uint64(len(m.Path)))
  5643. i += copy(dAtA[i:], m.Path)
  5644. }
  5645. if m.Height != 0 {
  5646. dAtA[i] = 0x18
  5647. i++
  5648. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  5649. }
  5650. if m.Prove {
  5651. dAtA[i] = 0x20
  5652. i++
  5653. if m.Prove {
  5654. dAtA[i] = 1
  5655. } else {
  5656. dAtA[i] = 0
  5657. }
  5658. i++
  5659. }
  5660. if m.XXX_unrecognized != nil {
  5661. i += copy(dAtA[i:], m.XXX_unrecognized)
  5662. }
  5663. return i, nil
  5664. }
  5665. func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) {
  5666. size := m.Size()
  5667. dAtA = make([]byte, size)
  5668. n, err := m.MarshalTo(dAtA)
  5669. if err != nil {
  5670. return nil, err
  5671. }
  5672. return dAtA[:n], nil
  5673. }
  5674. func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5675. var i int
  5676. _ = i
  5677. var l int
  5678. _ = l
  5679. if len(m.Hash) > 0 {
  5680. dAtA[i] = 0xa
  5681. i++
  5682. i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  5683. i += copy(dAtA[i:], m.Hash)
  5684. }
  5685. dAtA[i] = 0x12
  5686. i++
  5687. i = encodeVarintTypes(dAtA, i, uint64(m.Header.Size()))
  5688. n15, err := m.Header.MarshalTo(dAtA[i:])
  5689. if err != nil {
  5690. return 0, err
  5691. }
  5692. i += n15
  5693. dAtA[i] = 0x1a
  5694. i++
  5695. i = encodeVarintTypes(dAtA, i, uint64(m.LastCommitInfo.Size()))
  5696. n16, err := m.LastCommitInfo.MarshalTo(dAtA[i:])
  5697. if err != nil {
  5698. return 0, err
  5699. }
  5700. i += n16
  5701. if len(m.ByzantineValidators) > 0 {
  5702. for _, msg := range m.ByzantineValidators {
  5703. dAtA[i] = 0x22
  5704. i++
  5705. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  5706. n, err := msg.MarshalTo(dAtA[i:])
  5707. if err != nil {
  5708. return 0, err
  5709. }
  5710. i += n
  5711. }
  5712. }
  5713. if m.XXX_unrecognized != nil {
  5714. i += copy(dAtA[i:], m.XXX_unrecognized)
  5715. }
  5716. return i, nil
  5717. }
  5718. func (m *RequestCheckTx) Marshal() (dAtA []byte, err error) {
  5719. size := m.Size()
  5720. dAtA = make([]byte, size)
  5721. n, err := m.MarshalTo(dAtA)
  5722. if err != nil {
  5723. return nil, err
  5724. }
  5725. return dAtA[:n], nil
  5726. }
  5727. func (m *RequestCheckTx) MarshalTo(dAtA []byte) (int, error) {
  5728. var i int
  5729. _ = i
  5730. var l int
  5731. _ = l
  5732. if len(m.Tx) > 0 {
  5733. dAtA[i] = 0xa
  5734. i++
  5735. i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  5736. i += copy(dAtA[i:], m.Tx)
  5737. }
  5738. if m.XXX_unrecognized != nil {
  5739. i += copy(dAtA[i:], m.XXX_unrecognized)
  5740. }
  5741. return i, nil
  5742. }
  5743. func (m *RequestDeliverTx) Marshal() (dAtA []byte, err error) {
  5744. size := m.Size()
  5745. dAtA = make([]byte, size)
  5746. n, err := m.MarshalTo(dAtA)
  5747. if err != nil {
  5748. return nil, err
  5749. }
  5750. return dAtA[:n], nil
  5751. }
  5752. func (m *RequestDeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5753. var i int
  5754. _ = i
  5755. var l int
  5756. _ = l
  5757. if len(m.Tx) > 0 {
  5758. dAtA[i] = 0xa
  5759. i++
  5760. i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  5761. i += copy(dAtA[i:], m.Tx)
  5762. }
  5763. if m.XXX_unrecognized != nil {
  5764. i += copy(dAtA[i:], m.XXX_unrecognized)
  5765. }
  5766. return i, nil
  5767. }
  5768. func (m *RequestEndBlock) Marshal() (dAtA []byte, err error) {
  5769. size := m.Size()
  5770. dAtA = make([]byte, size)
  5771. n, err := m.MarshalTo(dAtA)
  5772. if err != nil {
  5773. return nil, err
  5774. }
  5775. return dAtA[:n], nil
  5776. }
  5777. func (m *RequestEndBlock) MarshalTo(dAtA []byte) (int, error) {
  5778. var i int
  5779. _ = i
  5780. var l int
  5781. _ = l
  5782. if m.Height != 0 {
  5783. dAtA[i] = 0x8
  5784. i++
  5785. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  5786. }
  5787. if m.XXX_unrecognized != nil {
  5788. i += copy(dAtA[i:], m.XXX_unrecognized)
  5789. }
  5790. return i, nil
  5791. }
  5792. func (m *RequestCommit) Marshal() (dAtA []byte, err error) {
  5793. size := m.Size()
  5794. dAtA = make([]byte, size)
  5795. n, err := m.MarshalTo(dAtA)
  5796. if err != nil {
  5797. return nil, err
  5798. }
  5799. return dAtA[:n], nil
  5800. }
  5801. func (m *RequestCommit) MarshalTo(dAtA []byte) (int, error) {
  5802. var i int
  5803. _ = i
  5804. var l int
  5805. _ = l
  5806. if m.XXX_unrecognized != nil {
  5807. i += copy(dAtA[i:], m.XXX_unrecognized)
  5808. }
  5809. return i, nil
  5810. }
  5811. func (m *Response) Marshal() (dAtA []byte, err error) {
  5812. size := m.Size()
  5813. dAtA = make([]byte, size)
  5814. n, err := m.MarshalTo(dAtA)
  5815. if err != nil {
  5816. return nil, err
  5817. }
  5818. return dAtA[:n], nil
  5819. }
  5820. func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  5821. var i int
  5822. _ = i
  5823. var l int
  5824. _ = l
  5825. if m.Value != nil {
  5826. nn17, err := m.Value.MarshalTo(dAtA[i:])
  5827. if err != nil {
  5828. return 0, err
  5829. }
  5830. i += nn17
  5831. }
  5832. if m.XXX_unrecognized != nil {
  5833. i += copy(dAtA[i:], m.XXX_unrecognized)
  5834. }
  5835. return i, nil
  5836. }
  5837. func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) {
  5838. i := 0
  5839. if m.Exception != nil {
  5840. dAtA[i] = 0xa
  5841. i++
  5842. i = encodeVarintTypes(dAtA, i, uint64(m.Exception.Size()))
  5843. n18, err := m.Exception.MarshalTo(dAtA[i:])
  5844. if err != nil {
  5845. return 0, err
  5846. }
  5847. i += n18
  5848. }
  5849. return i, nil
  5850. }
  5851. func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) {
  5852. i := 0
  5853. if m.Echo != nil {
  5854. dAtA[i] = 0x12
  5855. i++
  5856. i = encodeVarintTypes(dAtA, i, uint64(m.Echo.Size()))
  5857. n19, err := m.Echo.MarshalTo(dAtA[i:])
  5858. if err != nil {
  5859. return 0, err
  5860. }
  5861. i += n19
  5862. }
  5863. return i, nil
  5864. }
  5865. func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) {
  5866. i := 0
  5867. if m.Flush != nil {
  5868. dAtA[i] = 0x1a
  5869. i++
  5870. i = encodeVarintTypes(dAtA, i, uint64(m.Flush.Size()))
  5871. n20, err := m.Flush.MarshalTo(dAtA[i:])
  5872. if err != nil {
  5873. return 0, err
  5874. }
  5875. i += n20
  5876. }
  5877. return i, nil
  5878. }
  5879. func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) {
  5880. i := 0
  5881. if m.Info != nil {
  5882. dAtA[i] = 0x22
  5883. i++
  5884. i = encodeVarintTypes(dAtA, i, uint64(m.Info.Size()))
  5885. n21, err := m.Info.MarshalTo(dAtA[i:])
  5886. if err != nil {
  5887. return 0, err
  5888. }
  5889. i += n21
  5890. }
  5891. return i, nil
  5892. }
  5893. func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) {
  5894. i := 0
  5895. if m.SetOption != nil {
  5896. dAtA[i] = 0x2a
  5897. i++
  5898. i = encodeVarintTypes(dAtA, i, uint64(m.SetOption.Size()))
  5899. n22, err := m.SetOption.MarshalTo(dAtA[i:])
  5900. if err != nil {
  5901. return 0, err
  5902. }
  5903. i += n22
  5904. }
  5905. return i, nil
  5906. }
  5907. func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) {
  5908. i := 0
  5909. if m.InitChain != nil {
  5910. dAtA[i] = 0x32
  5911. i++
  5912. i = encodeVarintTypes(dAtA, i, uint64(m.InitChain.Size()))
  5913. n23, err := m.InitChain.MarshalTo(dAtA[i:])
  5914. if err != nil {
  5915. return 0, err
  5916. }
  5917. i += n23
  5918. }
  5919. return i, nil
  5920. }
  5921. func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) {
  5922. i := 0
  5923. if m.Query != nil {
  5924. dAtA[i] = 0x3a
  5925. i++
  5926. i = encodeVarintTypes(dAtA, i, uint64(m.Query.Size()))
  5927. n24, err := m.Query.MarshalTo(dAtA[i:])
  5928. if err != nil {
  5929. return 0, err
  5930. }
  5931. i += n24
  5932. }
  5933. return i, nil
  5934. }
  5935. func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5936. i := 0
  5937. if m.BeginBlock != nil {
  5938. dAtA[i] = 0x42
  5939. i++
  5940. i = encodeVarintTypes(dAtA, i, uint64(m.BeginBlock.Size()))
  5941. n25, err := m.BeginBlock.MarshalTo(dAtA[i:])
  5942. if err != nil {
  5943. return 0, err
  5944. }
  5945. i += n25
  5946. }
  5947. return i, nil
  5948. }
  5949. func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) {
  5950. i := 0
  5951. if m.CheckTx != nil {
  5952. dAtA[i] = 0x4a
  5953. i++
  5954. i = encodeVarintTypes(dAtA, i, uint64(m.CheckTx.Size()))
  5955. n26, err := m.CheckTx.MarshalTo(dAtA[i:])
  5956. if err != nil {
  5957. return 0, err
  5958. }
  5959. i += n26
  5960. }
  5961. return i, nil
  5962. }
  5963. func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5964. i := 0
  5965. if m.DeliverTx != nil {
  5966. dAtA[i] = 0x52
  5967. i++
  5968. i = encodeVarintTypes(dAtA, i, uint64(m.DeliverTx.Size()))
  5969. n27, err := m.DeliverTx.MarshalTo(dAtA[i:])
  5970. if err != nil {
  5971. return 0, err
  5972. }
  5973. i += n27
  5974. }
  5975. return i, nil
  5976. }
  5977. func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) {
  5978. i := 0
  5979. if m.EndBlock != nil {
  5980. dAtA[i] = 0x5a
  5981. i++
  5982. i = encodeVarintTypes(dAtA, i, uint64(m.EndBlock.Size()))
  5983. n28, err := m.EndBlock.MarshalTo(dAtA[i:])
  5984. if err != nil {
  5985. return 0, err
  5986. }
  5987. i += n28
  5988. }
  5989. return i, nil
  5990. }
  5991. func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) {
  5992. i := 0
  5993. if m.Commit != nil {
  5994. dAtA[i] = 0x62
  5995. i++
  5996. i = encodeVarintTypes(dAtA, i, uint64(m.Commit.Size()))
  5997. n29, err := m.Commit.MarshalTo(dAtA[i:])
  5998. if err != nil {
  5999. return 0, err
  6000. }
  6001. i += n29
  6002. }
  6003. return i, nil
  6004. }
  6005. func (m *ResponseException) Marshal() (dAtA []byte, err error) {
  6006. size := m.Size()
  6007. dAtA = make([]byte, size)
  6008. n, err := m.MarshalTo(dAtA)
  6009. if err != nil {
  6010. return nil, err
  6011. }
  6012. return dAtA[:n], nil
  6013. }
  6014. func (m *ResponseException) MarshalTo(dAtA []byte) (int, error) {
  6015. var i int
  6016. _ = i
  6017. var l int
  6018. _ = l
  6019. if len(m.Error) > 0 {
  6020. dAtA[i] = 0xa
  6021. i++
  6022. i = encodeVarintTypes(dAtA, i, uint64(len(m.Error)))
  6023. i += copy(dAtA[i:], m.Error)
  6024. }
  6025. if m.XXX_unrecognized != nil {
  6026. i += copy(dAtA[i:], m.XXX_unrecognized)
  6027. }
  6028. return i, nil
  6029. }
  6030. func (m *ResponseEcho) Marshal() (dAtA []byte, err error) {
  6031. size := m.Size()
  6032. dAtA = make([]byte, size)
  6033. n, err := m.MarshalTo(dAtA)
  6034. if err != nil {
  6035. return nil, err
  6036. }
  6037. return dAtA[:n], nil
  6038. }
  6039. func (m *ResponseEcho) MarshalTo(dAtA []byte) (int, error) {
  6040. var i int
  6041. _ = i
  6042. var l int
  6043. _ = l
  6044. if len(m.Message) > 0 {
  6045. dAtA[i] = 0xa
  6046. i++
  6047. i = encodeVarintTypes(dAtA, i, uint64(len(m.Message)))
  6048. i += copy(dAtA[i:], m.Message)
  6049. }
  6050. if m.XXX_unrecognized != nil {
  6051. i += copy(dAtA[i:], m.XXX_unrecognized)
  6052. }
  6053. return i, nil
  6054. }
  6055. func (m *ResponseFlush) Marshal() (dAtA []byte, err error) {
  6056. size := m.Size()
  6057. dAtA = make([]byte, size)
  6058. n, err := m.MarshalTo(dAtA)
  6059. if err != nil {
  6060. return nil, err
  6061. }
  6062. return dAtA[:n], nil
  6063. }
  6064. func (m *ResponseFlush) MarshalTo(dAtA []byte) (int, error) {
  6065. var i int
  6066. _ = i
  6067. var l int
  6068. _ = l
  6069. if m.XXX_unrecognized != nil {
  6070. i += copy(dAtA[i:], m.XXX_unrecognized)
  6071. }
  6072. return i, nil
  6073. }
  6074. func (m *ResponseInfo) Marshal() (dAtA []byte, err error) {
  6075. size := m.Size()
  6076. dAtA = make([]byte, size)
  6077. n, err := m.MarshalTo(dAtA)
  6078. if err != nil {
  6079. return nil, err
  6080. }
  6081. return dAtA[:n], nil
  6082. }
  6083. func (m *ResponseInfo) MarshalTo(dAtA []byte) (int, error) {
  6084. var i int
  6085. _ = i
  6086. var l int
  6087. _ = l
  6088. if len(m.Data) > 0 {
  6089. dAtA[i] = 0xa
  6090. i++
  6091. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6092. i += copy(dAtA[i:], m.Data)
  6093. }
  6094. if len(m.Version) > 0 {
  6095. dAtA[i] = 0x12
  6096. i++
  6097. i = encodeVarintTypes(dAtA, i, uint64(len(m.Version)))
  6098. i += copy(dAtA[i:], m.Version)
  6099. }
  6100. if m.AppVersion != 0 {
  6101. dAtA[i] = 0x18
  6102. i++
  6103. i = encodeVarintTypes(dAtA, i, uint64(m.AppVersion))
  6104. }
  6105. if m.LastBlockHeight != 0 {
  6106. dAtA[i] = 0x20
  6107. i++
  6108. i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight))
  6109. }
  6110. if len(m.LastBlockAppHash) > 0 {
  6111. dAtA[i] = 0x2a
  6112. i++
  6113. i = encodeVarintTypes(dAtA, i, uint64(len(m.LastBlockAppHash)))
  6114. i += copy(dAtA[i:], m.LastBlockAppHash)
  6115. }
  6116. if m.XXX_unrecognized != nil {
  6117. i += copy(dAtA[i:], m.XXX_unrecognized)
  6118. }
  6119. return i, nil
  6120. }
  6121. func (m *ResponseSetOption) Marshal() (dAtA []byte, err error) {
  6122. size := m.Size()
  6123. dAtA = make([]byte, size)
  6124. n, err := m.MarshalTo(dAtA)
  6125. if err != nil {
  6126. return nil, err
  6127. }
  6128. return dAtA[:n], nil
  6129. }
  6130. func (m *ResponseSetOption) MarshalTo(dAtA []byte) (int, error) {
  6131. var i int
  6132. _ = i
  6133. var l int
  6134. _ = l
  6135. if m.Code != 0 {
  6136. dAtA[i] = 0x8
  6137. i++
  6138. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  6139. }
  6140. if len(m.Log) > 0 {
  6141. dAtA[i] = 0x1a
  6142. i++
  6143. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  6144. i += copy(dAtA[i:], m.Log)
  6145. }
  6146. if len(m.Info) > 0 {
  6147. dAtA[i] = 0x22
  6148. i++
  6149. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  6150. i += copy(dAtA[i:], m.Info)
  6151. }
  6152. if m.XXX_unrecognized != nil {
  6153. i += copy(dAtA[i:], m.XXX_unrecognized)
  6154. }
  6155. return i, nil
  6156. }
  6157. func (m *ResponseInitChain) Marshal() (dAtA []byte, err error) {
  6158. size := m.Size()
  6159. dAtA = make([]byte, size)
  6160. n, err := m.MarshalTo(dAtA)
  6161. if err != nil {
  6162. return nil, err
  6163. }
  6164. return dAtA[:n], nil
  6165. }
  6166. func (m *ResponseInitChain) MarshalTo(dAtA []byte) (int, error) {
  6167. var i int
  6168. _ = i
  6169. var l int
  6170. _ = l
  6171. if m.ConsensusParams != nil {
  6172. dAtA[i] = 0xa
  6173. i++
  6174. i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusParams.Size()))
  6175. n30, err := m.ConsensusParams.MarshalTo(dAtA[i:])
  6176. if err != nil {
  6177. return 0, err
  6178. }
  6179. i += n30
  6180. }
  6181. if len(m.Validators) > 0 {
  6182. for _, msg := range m.Validators {
  6183. dAtA[i] = 0x12
  6184. i++
  6185. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6186. n, err := msg.MarshalTo(dAtA[i:])
  6187. if err != nil {
  6188. return 0, err
  6189. }
  6190. i += n
  6191. }
  6192. }
  6193. if m.XXX_unrecognized != nil {
  6194. i += copy(dAtA[i:], m.XXX_unrecognized)
  6195. }
  6196. return i, nil
  6197. }
  6198. func (m *ResponseQuery) Marshal() (dAtA []byte, err error) {
  6199. size := m.Size()
  6200. dAtA = make([]byte, size)
  6201. n, err := m.MarshalTo(dAtA)
  6202. if err != nil {
  6203. return nil, err
  6204. }
  6205. return dAtA[:n], nil
  6206. }
  6207. func (m *ResponseQuery) MarshalTo(dAtA []byte) (int, error) {
  6208. var i int
  6209. _ = i
  6210. var l int
  6211. _ = l
  6212. if m.Code != 0 {
  6213. dAtA[i] = 0x8
  6214. i++
  6215. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  6216. }
  6217. if len(m.Log) > 0 {
  6218. dAtA[i] = 0x1a
  6219. i++
  6220. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  6221. i += copy(dAtA[i:], m.Log)
  6222. }
  6223. if len(m.Info) > 0 {
  6224. dAtA[i] = 0x22
  6225. i++
  6226. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  6227. i += copy(dAtA[i:], m.Info)
  6228. }
  6229. if m.Index != 0 {
  6230. dAtA[i] = 0x28
  6231. i++
  6232. i = encodeVarintTypes(dAtA, i, uint64(m.Index))
  6233. }
  6234. if len(m.Key) > 0 {
  6235. dAtA[i] = 0x32
  6236. i++
  6237. i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  6238. i += copy(dAtA[i:], m.Key)
  6239. }
  6240. if len(m.Value) > 0 {
  6241. dAtA[i] = 0x3a
  6242. i++
  6243. i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  6244. i += copy(dAtA[i:], m.Value)
  6245. }
  6246. if m.Proof != nil {
  6247. dAtA[i] = 0x42
  6248. i++
  6249. i = encodeVarintTypes(dAtA, i, uint64(m.Proof.Size()))
  6250. n31, err := m.Proof.MarshalTo(dAtA[i:])
  6251. if err != nil {
  6252. return 0, err
  6253. }
  6254. i += n31
  6255. }
  6256. if m.Height != 0 {
  6257. dAtA[i] = 0x48
  6258. i++
  6259. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6260. }
  6261. if len(m.Codespace) > 0 {
  6262. dAtA[i] = 0x52
  6263. i++
  6264. i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace)))
  6265. i += copy(dAtA[i:], m.Codespace)
  6266. }
  6267. if m.XXX_unrecognized != nil {
  6268. i += copy(dAtA[i:], m.XXX_unrecognized)
  6269. }
  6270. return i, nil
  6271. }
  6272. func (m *ResponseBeginBlock) Marshal() (dAtA []byte, err error) {
  6273. size := m.Size()
  6274. dAtA = make([]byte, size)
  6275. n, err := m.MarshalTo(dAtA)
  6276. if err != nil {
  6277. return nil, err
  6278. }
  6279. return dAtA[:n], nil
  6280. }
  6281. func (m *ResponseBeginBlock) MarshalTo(dAtA []byte) (int, error) {
  6282. var i int
  6283. _ = i
  6284. var l int
  6285. _ = l
  6286. if len(m.Tags) > 0 {
  6287. for _, msg := range m.Tags {
  6288. dAtA[i] = 0xa
  6289. i++
  6290. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6291. n, err := msg.MarshalTo(dAtA[i:])
  6292. if err != nil {
  6293. return 0, err
  6294. }
  6295. i += n
  6296. }
  6297. }
  6298. if m.XXX_unrecognized != nil {
  6299. i += copy(dAtA[i:], m.XXX_unrecognized)
  6300. }
  6301. return i, nil
  6302. }
  6303. func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) {
  6304. size := m.Size()
  6305. dAtA = make([]byte, size)
  6306. n, err := m.MarshalTo(dAtA)
  6307. if err != nil {
  6308. return nil, err
  6309. }
  6310. return dAtA[:n], nil
  6311. }
  6312. func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) {
  6313. var i int
  6314. _ = i
  6315. var l int
  6316. _ = l
  6317. if m.Code != 0 {
  6318. dAtA[i] = 0x8
  6319. i++
  6320. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  6321. }
  6322. if len(m.Data) > 0 {
  6323. dAtA[i] = 0x12
  6324. i++
  6325. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6326. i += copy(dAtA[i:], m.Data)
  6327. }
  6328. if len(m.Log) > 0 {
  6329. dAtA[i] = 0x1a
  6330. i++
  6331. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  6332. i += copy(dAtA[i:], m.Log)
  6333. }
  6334. if len(m.Info) > 0 {
  6335. dAtA[i] = 0x22
  6336. i++
  6337. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  6338. i += copy(dAtA[i:], m.Info)
  6339. }
  6340. if m.GasWanted != 0 {
  6341. dAtA[i] = 0x28
  6342. i++
  6343. i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted))
  6344. }
  6345. if m.GasUsed != 0 {
  6346. dAtA[i] = 0x30
  6347. i++
  6348. i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed))
  6349. }
  6350. if len(m.Tags) > 0 {
  6351. for _, msg := range m.Tags {
  6352. dAtA[i] = 0x3a
  6353. i++
  6354. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6355. n, err := msg.MarshalTo(dAtA[i:])
  6356. if err != nil {
  6357. return 0, err
  6358. }
  6359. i += n
  6360. }
  6361. }
  6362. if len(m.Codespace) > 0 {
  6363. dAtA[i] = 0x42
  6364. i++
  6365. i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace)))
  6366. i += copy(dAtA[i:], m.Codespace)
  6367. }
  6368. if m.XXX_unrecognized != nil {
  6369. i += copy(dAtA[i:], m.XXX_unrecognized)
  6370. }
  6371. return i, nil
  6372. }
  6373. func (m *ResponseDeliverTx) Marshal() (dAtA []byte, err error) {
  6374. size := m.Size()
  6375. dAtA = make([]byte, size)
  6376. n, err := m.MarshalTo(dAtA)
  6377. if err != nil {
  6378. return nil, err
  6379. }
  6380. return dAtA[:n], nil
  6381. }
  6382. func (m *ResponseDeliverTx) MarshalTo(dAtA []byte) (int, error) {
  6383. var i int
  6384. _ = i
  6385. var l int
  6386. _ = l
  6387. if m.Code != 0 {
  6388. dAtA[i] = 0x8
  6389. i++
  6390. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  6391. }
  6392. if len(m.Data) > 0 {
  6393. dAtA[i] = 0x12
  6394. i++
  6395. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6396. i += copy(dAtA[i:], m.Data)
  6397. }
  6398. if len(m.Log) > 0 {
  6399. dAtA[i] = 0x1a
  6400. i++
  6401. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  6402. i += copy(dAtA[i:], m.Log)
  6403. }
  6404. if len(m.Info) > 0 {
  6405. dAtA[i] = 0x22
  6406. i++
  6407. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  6408. i += copy(dAtA[i:], m.Info)
  6409. }
  6410. if m.GasWanted != 0 {
  6411. dAtA[i] = 0x28
  6412. i++
  6413. i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted))
  6414. }
  6415. if m.GasUsed != 0 {
  6416. dAtA[i] = 0x30
  6417. i++
  6418. i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed))
  6419. }
  6420. if len(m.Tags) > 0 {
  6421. for _, msg := range m.Tags {
  6422. dAtA[i] = 0x3a
  6423. i++
  6424. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6425. n, err := msg.MarshalTo(dAtA[i:])
  6426. if err != nil {
  6427. return 0, err
  6428. }
  6429. i += n
  6430. }
  6431. }
  6432. if len(m.Codespace) > 0 {
  6433. dAtA[i] = 0x42
  6434. i++
  6435. i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace)))
  6436. i += copy(dAtA[i:], m.Codespace)
  6437. }
  6438. if m.XXX_unrecognized != nil {
  6439. i += copy(dAtA[i:], m.XXX_unrecognized)
  6440. }
  6441. return i, nil
  6442. }
  6443. func (m *ResponseEndBlock) Marshal() (dAtA []byte, err error) {
  6444. size := m.Size()
  6445. dAtA = make([]byte, size)
  6446. n, err := m.MarshalTo(dAtA)
  6447. if err != nil {
  6448. return nil, err
  6449. }
  6450. return dAtA[:n], nil
  6451. }
  6452. func (m *ResponseEndBlock) MarshalTo(dAtA []byte) (int, error) {
  6453. var i int
  6454. _ = i
  6455. var l int
  6456. _ = l
  6457. if len(m.ValidatorUpdates) > 0 {
  6458. for _, msg := range m.ValidatorUpdates {
  6459. dAtA[i] = 0xa
  6460. i++
  6461. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6462. n, err := msg.MarshalTo(dAtA[i:])
  6463. if err != nil {
  6464. return 0, err
  6465. }
  6466. i += n
  6467. }
  6468. }
  6469. if m.ConsensusParamUpdates != nil {
  6470. dAtA[i] = 0x12
  6471. i++
  6472. i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusParamUpdates.Size()))
  6473. n32, err := m.ConsensusParamUpdates.MarshalTo(dAtA[i:])
  6474. if err != nil {
  6475. return 0, err
  6476. }
  6477. i += n32
  6478. }
  6479. if len(m.Tags) > 0 {
  6480. for _, msg := range m.Tags {
  6481. dAtA[i] = 0x1a
  6482. i++
  6483. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6484. n, err := msg.MarshalTo(dAtA[i:])
  6485. if err != nil {
  6486. return 0, err
  6487. }
  6488. i += n
  6489. }
  6490. }
  6491. if m.XXX_unrecognized != nil {
  6492. i += copy(dAtA[i:], m.XXX_unrecognized)
  6493. }
  6494. return i, nil
  6495. }
  6496. func (m *ResponseCommit) Marshal() (dAtA []byte, err error) {
  6497. size := m.Size()
  6498. dAtA = make([]byte, size)
  6499. n, err := m.MarshalTo(dAtA)
  6500. if err != nil {
  6501. return nil, err
  6502. }
  6503. return dAtA[:n], nil
  6504. }
  6505. func (m *ResponseCommit) MarshalTo(dAtA []byte) (int, error) {
  6506. var i int
  6507. _ = i
  6508. var l int
  6509. _ = l
  6510. if len(m.Data) > 0 {
  6511. dAtA[i] = 0x12
  6512. i++
  6513. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6514. i += copy(dAtA[i:], m.Data)
  6515. }
  6516. if m.XXX_unrecognized != nil {
  6517. i += copy(dAtA[i:], m.XXX_unrecognized)
  6518. }
  6519. return i, nil
  6520. }
  6521. func (m *ConsensusParams) Marshal() (dAtA []byte, err error) {
  6522. size := m.Size()
  6523. dAtA = make([]byte, size)
  6524. n, err := m.MarshalTo(dAtA)
  6525. if err != nil {
  6526. return nil, err
  6527. }
  6528. return dAtA[:n], nil
  6529. }
  6530. func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) {
  6531. var i int
  6532. _ = i
  6533. var l int
  6534. _ = l
  6535. if m.BlockSize != nil {
  6536. dAtA[i] = 0xa
  6537. i++
  6538. i = encodeVarintTypes(dAtA, i, uint64(m.BlockSize.Size()))
  6539. n33, err := m.BlockSize.MarshalTo(dAtA[i:])
  6540. if err != nil {
  6541. return 0, err
  6542. }
  6543. i += n33
  6544. }
  6545. if m.Evidence != nil {
  6546. dAtA[i] = 0x12
  6547. i++
  6548. i = encodeVarintTypes(dAtA, i, uint64(m.Evidence.Size()))
  6549. n34, err := m.Evidence.MarshalTo(dAtA[i:])
  6550. if err != nil {
  6551. return 0, err
  6552. }
  6553. i += n34
  6554. }
  6555. if m.Validator != nil {
  6556. dAtA[i] = 0x1a
  6557. i++
  6558. i = encodeVarintTypes(dAtA, i, uint64(m.Validator.Size()))
  6559. n35, err := m.Validator.MarshalTo(dAtA[i:])
  6560. if err != nil {
  6561. return 0, err
  6562. }
  6563. i += n35
  6564. }
  6565. if m.XXX_unrecognized != nil {
  6566. i += copy(dAtA[i:], m.XXX_unrecognized)
  6567. }
  6568. return i, nil
  6569. }
  6570. func (m *BlockSizeParams) Marshal() (dAtA []byte, err error) {
  6571. size := m.Size()
  6572. dAtA = make([]byte, size)
  6573. n, err := m.MarshalTo(dAtA)
  6574. if err != nil {
  6575. return nil, err
  6576. }
  6577. return dAtA[:n], nil
  6578. }
  6579. func (m *BlockSizeParams) MarshalTo(dAtA []byte) (int, error) {
  6580. var i int
  6581. _ = i
  6582. var l int
  6583. _ = l
  6584. if m.MaxBytes != 0 {
  6585. dAtA[i] = 0x8
  6586. i++
  6587. i = encodeVarintTypes(dAtA, i, uint64(m.MaxBytes))
  6588. }
  6589. if m.MaxGas != 0 {
  6590. dAtA[i] = 0x10
  6591. i++
  6592. i = encodeVarintTypes(dAtA, i, uint64(m.MaxGas))
  6593. }
  6594. if m.XXX_unrecognized != nil {
  6595. i += copy(dAtA[i:], m.XXX_unrecognized)
  6596. }
  6597. return i, nil
  6598. }
  6599. func (m *EvidenceParams) Marshal() (dAtA []byte, err error) {
  6600. size := m.Size()
  6601. dAtA = make([]byte, size)
  6602. n, err := m.MarshalTo(dAtA)
  6603. if err != nil {
  6604. return nil, err
  6605. }
  6606. return dAtA[:n], nil
  6607. }
  6608. func (m *EvidenceParams) MarshalTo(dAtA []byte) (int, error) {
  6609. var i int
  6610. _ = i
  6611. var l int
  6612. _ = l
  6613. if m.MaxAge != 0 {
  6614. dAtA[i] = 0x8
  6615. i++
  6616. i = encodeVarintTypes(dAtA, i, uint64(m.MaxAge))
  6617. }
  6618. if m.XXX_unrecognized != nil {
  6619. i += copy(dAtA[i:], m.XXX_unrecognized)
  6620. }
  6621. return i, nil
  6622. }
  6623. func (m *ValidatorParams) Marshal() (dAtA []byte, err error) {
  6624. size := m.Size()
  6625. dAtA = make([]byte, size)
  6626. n, err := m.MarshalTo(dAtA)
  6627. if err != nil {
  6628. return nil, err
  6629. }
  6630. return dAtA[:n], nil
  6631. }
  6632. func (m *ValidatorParams) MarshalTo(dAtA []byte) (int, error) {
  6633. var i int
  6634. _ = i
  6635. var l int
  6636. _ = l
  6637. if len(m.PubKeyTypes) > 0 {
  6638. for _, s := range m.PubKeyTypes {
  6639. dAtA[i] = 0xa
  6640. i++
  6641. l = len(s)
  6642. for l >= 1<<7 {
  6643. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  6644. l >>= 7
  6645. i++
  6646. }
  6647. dAtA[i] = uint8(l)
  6648. i++
  6649. i += copy(dAtA[i:], s)
  6650. }
  6651. }
  6652. if m.XXX_unrecognized != nil {
  6653. i += copy(dAtA[i:], m.XXX_unrecognized)
  6654. }
  6655. return i, nil
  6656. }
  6657. func (m *LastCommitInfo) Marshal() (dAtA []byte, err error) {
  6658. size := m.Size()
  6659. dAtA = make([]byte, size)
  6660. n, err := m.MarshalTo(dAtA)
  6661. if err != nil {
  6662. return nil, err
  6663. }
  6664. return dAtA[:n], nil
  6665. }
  6666. func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error) {
  6667. var i int
  6668. _ = i
  6669. var l int
  6670. _ = l
  6671. if m.Round != 0 {
  6672. dAtA[i] = 0x8
  6673. i++
  6674. i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  6675. }
  6676. if len(m.Votes) > 0 {
  6677. for _, msg := range m.Votes {
  6678. dAtA[i] = 0x12
  6679. i++
  6680. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6681. n, err := msg.MarshalTo(dAtA[i:])
  6682. if err != nil {
  6683. return 0, err
  6684. }
  6685. i += n
  6686. }
  6687. }
  6688. if m.XXX_unrecognized != nil {
  6689. i += copy(dAtA[i:], m.XXX_unrecognized)
  6690. }
  6691. return i, nil
  6692. }
  6693. func (m *Header) Marshal() (dAtA []byte, err error) {
  6694. size := m.Size()
  6695. dAtA = make([]byte, size)
  6696. n, err := m.MarshalTo(dAtA)
  6697. if err != nil {
  6698. return nil, err
  6699. }
  6700. return dAtA[:n], nil
  6701. }
  6702. func (m *Header) MarshalTo(dAtA []byte) (int, error) {
  6703. var i int
  6704. _ = i
  6705. var l int
  6706. _ = l
  6707. dAtA[i] = 0xa
  6708. i++
  6709. i = encodeVarintTypes(dAtA, i, uint64(m.Version.Size()))
  6710. n36, err := m.Version.MarshalTo(dAtA[i:])
  6711. if err != nil {
  6712. return 0, err
  6713. }
  6714. i += n36
  6715. if len(m.ChainID) > 0 {
  6716. dAtA[i] = 0x12
  6717. i++
  6718. i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainID)))
  6719. i += copy(dAtA[i:], m.ChainID)
  6720. }
  6721. if m.Height != 0 {
  6722. dAtA[i] = 0x18
  6723. i++
  6724. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6725. }
  6726. dAtA[i] = 0x22
  6727. i++
  6728. i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)))
  6729. n37, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i:])
  6730. if err != nil {
  6731. return 0, err
  6732. }
  6733. i += n37
  6734. if m.NumTxs != 0 {
  6735. dAtA[i] = 0x28
  6736. i++
  6737. i = encodeVarintTypes(dAtA, i, uint64(m.NumTxs))
  6738. }
  6739. if m.TotalTxs != 0 {
  6740. dAtA[i] = 0x30
  6741. i++
  6742. i = encodeVarintTypes(dAtA, i, uint64(m.TotalTxs))
  6743. }
  6744. dAtA[i] = 0x3a
  6745. i++
  6746. i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockId.Size()))
  6747. n38, err := m.LastBlockId.MarshalTo(dAtA[i:])
  6748. if err != nil {
  6749. return 0, err
  6750. }
  6751. i += n38
  6752. if len(m.LastCommitHash) > 0 {
  6753. dAtA[i] = 0x42
  6754. i++
  6755. i = encodeVarintTypes(dAtA, i, uint64(len(m.LastCommitHash)))
  6756. i += copy(dAtA[i:], m.LastCommitHash)
  6757. }
  6758. if len(m.DataHash) > 0 {
  6759. dAtA[i] = 0x4a
  6760. i++
  6761. i = encodeVarintTypes(dAtA, i, uint64(len(m.DataHash)))
  6762. i += copy(dAtA[i:], m.DataHash)
  6763. }
  6764. if len(m.ValidatorsHash) > 0 {
  6765. dAtA[i] = 0x52
  6766. i++
  6767. i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorsHash)))
  6768. i += copy(dAtA[i:], m.ValidatorsHash)
  6769. }
  6770. if len(m.NextValidatorsHash) > 0 {
  6771. dAtA[i] = 0x5a
  6772. i++
  6773. i = encodeVarintTypes(dAtA, i, uint64(len(m.NextValidatorsHash)))
  6774. i += copy(dAtA[i:], m.NextValidatorsHash)
  6775. }
  6776. if len(m.ConsensusHash) > 0 {
  6777. dAtA[i] = 0x62
  6778. i++
  6779. i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusHash)))
  6780. i += copy(dAtA[i:], m.ConsensusHash)
  6781. }
  6782. if len(m.AppHash) > 0 {
  6783. dAtA[i] = 0x6a
  6784. i++
  6785. i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash)))
  6786. i += copy(dAtA[i:], m.AppHash)
  6787. }
  6788. if len(m.LastResultsHash) > 0 {
  6789. dAtA[i] = 0x72
  6790. i++
  6791. i = encodeVarintTypes(dAtA, i, uint64(len(m.LastResultsHash)))
  6792. i += copy(dAtA[i:], m.LastResultsHash)
  6793. }
  6794. if len(m.EvidenceHash) > 0 {
  6795. dAtA[i] = 0x7a
  6796. i++
  6797. i = encodeVarintTypes(dAtA, i, uint64(len(m.EvidenceHash)))
  6798. i += copy(dAtA[i:], m.EvidenceHash)
  6799. }
  6800. if len(m.ProposerAddress) > 0 {
  6801. dAtA[i] = 0x82
  6802. i++
  6803. dAtA[i] = 0x1
  6804. i++
  6805. i = encodeVarintTypes(dAtA, i, uint64(len(m.ProposerAddress)))
  6806. i += copy(dAtA[i:], m.ProposerAddress)
  6807. }
  6808. if m.XXX_unrecognized != nil {
  6809. i += copy(dAtA[i:], m.XXX_unrecognized)
  6810. }
  6811. return i, nil
  6812. }
  6813. func (m *Version) Marshal() (dAtA []byte, err error) {
  6814. size := m.Size()
  6815. dAtA = make([]byte, size)
  6816. n, err := m.MarshalTo(dAtA)
  6817. if err != nil {
  6818. return nil, err
  6819. }
  6820. return dAtA[:n], nil
  6821. }
  6822. func (m *Version) MarshalTo(dAtA []byte) (int, error) {
  6823. var i int
  6824. _ = i
  6825. var l int
  6826. _ = l
  6827. if m.Block != 0 {
  6828. dAtA[i] = 0x8
  6829. i++
  6830. i = encodeVarintTypes(dAtA, i, uint64(m.Block))
  6831. }
  6832. if m.App != 0 {
  6833. dAtA[i] = 0x10
  6834. i++
  6835. i = encodeVarintTypes(dAtA, i, uint64(m.App))
  6836. }
  6837. if m.XXX_unrecognized != nil {
  6838. i += copy(dAtA[i:], m.XXX_unrecognized)
  6839. }
  6840. return i, nil
  6841. }
  6842. func (m *BlockID) Marshal() (dAtA []byte, err error) {
  6843. size := m.Size()
  6844. dAtA = make([]byte, size)
  6845. n, err := m.MarshalTo(dAtA)
  6846. if err != nil {
  6847. return nil, err
  6848. }
  6849. return dAtA[:n], nil
  6850. }
  6851. func (m *BlockID) MarshalTo(dAtA []byte) (int, error) {
  6852. var i int
  6853. _ = i
  6854. var l int
  6855. _ = l
  6856. if len(m.Hash) > 0 {
  6857. dAtA[i] = 0xa
  6858. i++
  6859. i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  6860. i += copy(dAtA[i:], m.Hash)
  6861. }
  6862. dAtA[i] = 0x12
  6863. i++
  6864. i = encodeVarintTypes(dAtA, i, uint64(m.PartsHeader.Size()))
  6865. n39, err := m.PartsHeader.MarshalTo(dAtA[i:])
  6866. if err != nil {
  6867. return 0, err
  6868. }
  6869. i += n39
  6870. if m.XXX_unrecognized != nil {
  6871. i += copy(dAtA[i:], m.XXX_unrecognized)
  6872. }
  6873. return i, nil
  6874. }
  6875. func (m *PartSetHeader) Marshal() (dAtA []byte, err error) {
  6876. size := m.Size()
  6877. dAtA = make([]byte, size)
  6878. n, err := m.MarshalTo(dAtA)
  6879. if err != nil {
  6880. return nil, err
  6881. }
  6882. return dAtA[:n], nil
  6883. }
  6884. func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error) {
  6885. var i int
  6886. _ = i
  6887. var l int
  6888. _ = l
  6889. if m.Total != 0 {
  6890. dAtA[i] = 0x8
  6891. i++
  6892. i = encodeVarintTypes(dAtA, i, uint64(m.Total))
  6893. }
  6894. if len(m.Hash) > 0 {
  6895. dAtA[i] = 0x12
  6896. i++
  6897. i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  6898. i += copy(dAtA[i:], m.Hash)
  6899. }
  6900. if m.XXX_unrecognized != nil {
  6901. i += copy(dAtA[i:], m.XXX_unrecognized)
  6902. }
  6903. return i, nil
  6904. }
  6905. func (m *Validator) Marshal() (dAtA []byte, err error) {
  6906. size := m.Size()
  6907. dAtA = make([]byte, size)
  6908. n, err := m.MarshalTo(dAtA)
  6909. if err != nil {
  6910. return nil, err
  6911. }
  6912. return dAtA[:n], nil
  6913. }
  6914. func (m *Validator) MarshalTo(dAtA []byte) (int, error) {
  6915. var i int
  6916. _ = i
  6917. var l int
  6918. _ = l
  6919. if len(m.Address) > 0 {
  6920. dAtA[i] = 0xa
  6921. i++
  6922. i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
  6923. i += copy(dAtA[i:], m.Address)
  6924. }
  6925. if m.Power != 0 {
  6926. dAtA[i] = 0x18
  6927. i++
  6928. i = encodeVarintTypes(dAtA, i, uint64(m.Power))
  6929. }
  6930. if m.XXX_unrecognized != nil {
  6931. i += copy(dAtA[i:], m.XXX_unrecognized)
  6932. }
  6933. return i, nil
  6934. }
  6935. func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error) {
  6936. size := m.Size()
  6937. dAtA = make([]byte, size)
  6938. n, err := m.MarshalTo(dAtA)
  6939. if err != nil {
  6940. return nil, err
  6941. }
  6942. return dAtA[:n], nil
  6943. }
  6944. func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error) {
  6945. var i int
  6946. _ = i
  6947. var l int
  6948. _ = l
  6949. dAtA[i] = 0xa
  6950. i++
  6951. i = encodeVarintTypes(dAtA, i, uint64(m.PubKey.Size()))
  6952. n40, err := m.PubKey.MarshalTo(dAtA[i:])
  6953. if err != nil {
  6954. return 0, err
  6955. }
  6956. i += n40
  6957. if m.Power != 0 {
  6958. dAtA[i] = 0x10
  6959. i++
  6960. i = encodeVarintTypes(dAtA, i, uint64(m.Power))
  6961. }
  6962. if m.XXX_unrecognized != nil {
  6963. i += copy(dAtA[i:], m.XXX_unrecognized)
  6964. }
  6965. return i, nil
  6966. }
  6967. func (m *VoteInfo) Marshal() (dAtA []byte, err error) {
  6968. size := m.Size()
  6969. dAtA = make([]byte, size)
  6970. n, err := m.MarshalTo(dAtA)
  6971. if err != nil {
  6972. return nil, err
  6973. }
  6974. return dAtA[:n], nil
  6975. }
  6976. func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error) {
  6977. var i int
  6978. _ = i
  6979. var l int
  6980. _ = l
  6981. dAtA[i] = 0xa
  6982. i++
  6983. i = encodeVarintTypes(dAtA, i, uint64(m.Validator.Size()))
  6984. n41, err := m.Validator.MarshalTo(dAtA[i:])
  6985. if err != nil {
  6986. return 0, err
  6987. }
  6988. i += n41
  6989. if m.SignedLastBlock {
  6990. dAtA[i] = 0x10
  6991. i++
  6992. if m.SignedLastBlock {
  6993. dAtA[i] = 1
  6994. } else {
  6995. dAtA[i] = 0
  6996. }
  6997. i++
  6998. }
  6999. if m.XXX_unrecognized != nil {
  7000. i += copy(dAtA[i:], m.XXX_unrecognized)
  7001. }
  7002. return i, nil
  7003. }
  7004. func (m *PubKey) Marshal() (dAtA []byte, err error) {
  7005. size := m.Size()
  7006. dAtA = make([]byte, size)
  7007. n, err := m.MarshalTo(dAtA)
  7008. if err != nil {
  7009. return nil, err
  7010. }
  7011. return dAtA[:n], nil
  7012. }
  7013. func (m *PubKey) MarshalTo(dAtA []byte) (int, error) {
  7014. var i int
  7015. _ = i
  7016. var l int
  7017. _ = l
  7018. if len(m.Type) > 0 {
  7019. dAtA[i] = 0xa
  7020. i++
  7021. i = encodeVarintTypes(dAtA, i, uint64(len(m.Type)))
  7022. i += copy(dAtA[i:], m.Type)
  7023. }
  7024. if len(m.Data) > 0 {
  7025. dAtA[i] = 0x12
  7026. i++
  7027. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  7028. i += copy(dAtA[i:], m.Data)
  7029. }
  7030. if m.XXX_unrecognized != nil {
  7031. i += copy(dAtA[i:], m.XXX_unrecognized)
  7032. }
  7033. return i, nil
  7034. }
  7035. func (m *Evidence) Marshal() (dAtA []byte, err error) {
  7036. size := m.Size()
  7037. dAtA = make([]byte, size)
  7038. n, err := m.MarshalTo(dAtA)
  7039. if err != nil {
  7040. return nil, err
  7041. }
  7042. return dAtA[:n], nil
  7043. }
  7044. func (m *Evidence) MarshalTo(dAtA []byte) (int, error) {
  7045. var i int
  7046. _ = i
  7047. var l int
  7048. _ = l
  7049. if len(m.Type) > 0 {
  7050. dAtA[i] = 0xa
  7051. i++
  7052. i = encodeVarintTypes(dAtA, i, uint64(len(m.Type)))
  7053. i += copy(dAtA[i:], m.Type)
  7054. }
  7055. dAtA[i] = 0x12
  7056. i++
  7057. i = encodeVarintTypes(dAtA, i, uint64(m.Validator.Size()))
  7058. n42, err := m.Validator.MarshalTo(dAtA[i:])
  7059. if err != nil {
  7060. return 0, err
  7061. }
  7062. i += n42
  7063. if m.Height != 0 {
  7064. dAtA[i] = 0x18
  7065. i++
  7066. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  7067. }
  7068. dAtA[i] = 0x22
  7069. i++
  7070. i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)))
  7071. n43, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i:])
  7072. if err != nil {
  7073. return 0, err
  7074. }
  7075. i += n43
  7076. if m.TotalVotingPower != 0 {
  7077. dAtA[i] = 0x28
  7078. i++
  7079. i = encodeVarintTypes(dAtA, i, uint64(m.TotalVotingPower))
  7080. }
  7081. if m.XXX_unrecognized != nil {
  7082. i += copy(dAtA[i:], m.XXX_unrecognized)
  7083. }
  7084. return i, nil
  7085. }
  7086. func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  7087. for v >= 1<<7 {
  7088. dAtA[offset] = uint8(v&0x7f | 0x80)
  7089. v >>= 7
  7090. offset++
  7091. }
  7092. dAtA[offset] = uint8(v)
  7093. return offset + 1
  7094. }
  7095. func NewPopulatedRequest(r randyTypes, easy bool) *Request {
  7096. this := &Request{}
  7097. oneofNumber_Value := []int32{2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19}[r.Intn(11)]
  7098. switch oneofNumber_Value {
  7099. case 2:
  7100. this.Value = NewPopulatedRequest_Echo(r, easy)
  7101. case 3:
  7102. this.Value = NewPopulatedRequest_Flush(r, easy)
  7103. case 4:
  7104. this.Value = NewPopulatedRequest_Info(r, easy)
  7105. case 5:
  7106. this.Value = NewPopulatedRequest_SetOption(r, easy)
  7107. case 6:
  7108. this.Value = NewPopulatedRequest_InitChain(r, easy)
  7109. case 7:
  7110. this.Value = NewPopulatedRequest_Query(r, easy)
  7111. case 8:
  7112. this.Value = NewPopulatedRequest_BeginBlock(r, easy)
  7113. case 9:
  7114. this.Value = NewPopulatedRequest_CheckTx(r, easy)
  7115. case 11:
  7116. this.Value = NewPopulatedRequest_EndBlock(r, easy)
  7117. case 12:
  7118. this.Value = NewPopulatedRequest_Commit(r, easy)
  7119. case 19:
  7120. this.Value = NewPopulatedRequest_DeliverTx(r, easy)
  7121. }
  7122. if !easy && r.Intn(10) != 0 {
  7123. this.XXX_unrecognized = randUnrecognizedTypes(r, 20)
  7124. }
  7125. return this
  7126. }
  7127. func NewPopulatedRequest_Echo(r randyTypes, easy bool) *Request_Echo {
  7128. this := &Request_Echo{}
  7129. this.Echo = NewPopulatedRequestEcho(r, easy)
  7130. return this
  7131. }
  7132. func NewPopulatedRequest_Flush(r randyTypes, easy bool) *Request_Flush {
  7133. this := &Request_Flush{}
  7134. this.Flush = NewPopulatedRequestFlush(r, easy)
  7135. return this
  7136. }
  7137. func NewPopulatedRequest_Info(r randyTypes, easy bool) *Request_Info {
  7138. this := &Request_Info{}
  7139. this.Info = NewPopulatedRequestInfo(r, easy)
  7140. return this
  7141. }
  7142. func NewPopulatedRequest_SetOption(r randyTypes, easy bool) *Request_SetOption {
  7143. this := &Request_SetOption{}
  7144. this.SetOption = NewPopulatedRequestSetOption(r, easy)
  7145. return this
  7146. }
  7147. func NewPopulatedRequest_InitChain(r randyTypes, easy bool) *Request_InitChain {
  7148. this := &Request_InitChain{}
  7149. this.InitChain = NewPopulatedRequestInitChain(r, easy)
  7150. return this
  7151. }
  7152. func NewPopulatedRequest_Query(r randyTypes, easy bool) *Request_Query {
  7153. this := &Request_Query{}
  7154. this.Query = NewPopulatedRequestQuery(r, easy)
  7155. return this
  7156. }
  7157. func NewPopulatedRequest_BeginBlock(r randyTypes, easy bool) *Request_BeginBlock {
  7158. this := &Request_BeginBlock{}
  7159. this.BeginBlock = NewPopulatedRequestBeginBlock(r, easy)
  7160. return this
  7161. }
  7162. func NewPopulatedRequest_CheckTx(r randyTypes, easy bool) *Request_CheckTx {
  7163. this := &Request_CheckTx{}
  7164. this.CheckTx = NewPopulatedRequestCheckTx(r, easy)
  7165. return this
  7166. }
  7167. func NewPopulatedRequest_EndBlock(r randyTypes, easy bool) *Request_EndBlock {
  7168. this := &Request_EndBlock{}
  7169. this.EndBlock = NewPopulatedRequestEndBlock(r, easy)
  7170. return this
  7171. }
  7172. func NewPopulatedRequest_Commit(r randyTypes, easy bool) *Request_Commit {
  7173. this := &Request_Commit{}
  7174. this.Commit = NewPopulatedRequestCommit(r, easy)
  7175. return this
  7176. }
  7177. func NewPopulatedRequest_DeliverTx(r randyTypes, easy bool) *Request_DeliverTx {
  7178. this := &Request_DeliverTx{}
  7179. this.DeliverTx = NewPopulatedRequestDeliverTx(r, easy)
  7180. return this
  7181. }
  7182. func NewPopulatedRequestEcho(r randyTypes, easy bool) *RequestEcho {
  7183. this := &RequestEcho{}
  7184. this.Message = string(randStringTypes(r))
  7185. if !easy && r.Intn(10) != 0 {
  7186. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7187. }
  7188. return this
  7189. }
  7190. func NewPopulatedRequestFlush(r randyTypes, easy bool) *RequestFlush {
  7191. this := &RequestFlush{}
  7192. if !easy && r.Intn(10) != 0 {
  7193. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  7194. }
  7195. return this
  7196. }
  7197. func NewPopulatedRequestInfo(r randyTypes, easy bool) *RequestInfo {
  7198. this := &RequestInfo{}
  7199. this.Version = string(randStringTypes(r))
  7200. this.BlockVersion = uint64(uint64(r.Uint32()))
  7201. this.P2PVersion = uint64(uint64(r.Uint32()))
  7202. if !easy && r.Intn(10) != 0 {
  7203. this.XXX_unrecognized = randUnrecognizedTypes(r, 4)
  7204. }
  7205. return this
  7206. }
  7207. func NewPopulatedRequestSetOption(r randyTypes, easy bool) *RequestSetOption {
  7208. this := &RequestSetOption{}
  7209. this.Key = string(randStringTypes(r))
  7210. this.Value = string(randStringTypes(r))
  7211. if !easy && r.Intn(10) != 0 {
  7212. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7213. }
  7214. return this
  7215. }
  7216. func NewPopulatedRequestInitChain(r randyTypes, easy bool) *RequestInitChain {
  7217. this := &RequestInitChain{}
  7218. v1 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  7219. this.Time = *v1
  7220. this.ChainId = string(randStringTypes(r))
  7221. if r.Intn(10) != 0 {
  7222. this.ConsensusParams = NewPopulatedConsensusParams(r, easy)
  7223. }
  7224. if r.Intn(10) != 0 {
  7225. v2 := r.Intn(5)
  7226. this.Validators = make([]ValidatorUpdate, v2)
  7227. for i := 0; i < v2; i++ {
  7228. v3 := NewPopulatedValidatorUpdate(r, easy)
  7229. this.Validators[i] = *v3
  7230. }
  7231. }
  7232. v4 := r.Intn(100)
  7233. this.AppStateBytes = make([]byte, v4)
  7234. for i := 0; i < v4; i++ {
  7235. this.AppStateBytes[i] = byte(r.Intn(256))
  7236. }
  7237. if !easy && r.Intn(10) != 0 {
  7238. this.XXX_unrecognized = randUnrecognizedTypes(r, 6)
  7239. }
  7240. return this
  7241. }
  7242. func NewPopulatedRequestQuery(r randyTypes, easy bool) *RequestQuery {
  7243. this := &RequestQuery{}
  7244. v5 := r.Intn(100)
  7245. this.Data = make([]byte, v5)
  7246. for i := 0; i < v5; i++ {
  7247. this.Data[i] = byte(r.Intn(256))
  7248. }
  7249. this.Path = string(randStringTypes(r))
  7250. this.Height = int64(r.Int63())
  7251. if r.Intn(2) == 0 {
  7252. this.Height *= -1
  7253. }
  7254. this.Prove = bool(bool(r.Intn(2) == 0))
  7255. if !easy && r.Intn(10) != 0 {
  7256. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  7257. }
  7258. return this
  7259. }
  7260. func NewPopulatedRequestBeginBlock(r randyTypes, easy bool) *RequestBeginBlock {
  7261. this := &RequestBeginBlock{}
  7262. v6 := r.Intn(100)
  7263. this.Hash = make([]byte, v6)
  7264. for i := 0; i < v6; i++ {
  7265. this.Hash[i] = byte(r.Intn(256))
  7266. }
  7267. v7 := NewPopulatedHeader(r, easy)
  7268. this.Header = *v7
  7269. v8 := NewPopulatedLastCommitInfo(r, easy)
  7270. this.LastCommitInfo = *v8
  7271. if r.Intn(10) != 0 {
  7272. v9 := r.Intn(5)
  7273. this.ByzantineValidators = make([]Evidence, v9)
  7274. for i := 0; i < v9; i++ {
  7275. v10 := NewPopulatedEvidence(r, easy)
  7276. this.ByzantineValidators[i] = *v10
  7277. }
  7278. }
  7279. if !easy && r.Intn(10) != 0 {
  7280. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  7281. }
  7282. return this
  7283. }
  7284. func NewPopulatedRequestCheckTx(r randyTypes, easy bool) *RequestCheckTx {
  7285. this := &RequestCheckTx{}
  7286. v11 := r.Intn(100)
  7287. this.Tx = make([]byte, v11)
  7288. for i := 0; i < v11; i++ {
  7289. this.Tx[i] = byte(r.Intn(256))
  7290. }
  7291. if !easy && r.Intn(10) != 0 {
  7292. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7293. }
  7294. return this
  7295. }
  7296. func NewPopulatedRequestDeliverTx(r randyTypes, easy bool) *RequestDeliverTx {
  7297. this := &RequestDeliverTx{}
  7298. v12 := r.Intn(100)
  7299. this.Tx = make([]byte, v12)
  7300. for i := 0; i < v12; i++ {
  7301. this.Tx[i] = byte(r.Intn(256))
  7302. }
  7303. if !easy && r.Intn(10) != 0 {
  7304. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7305. }
  7306. return this
  7307. }
  7308. func NewPopulatedRequestEndBlock(r randyTypes, easy bool) *RequestEndBlock {
  7309. this := &RequestEndBlock{}
  7310. this.Height = int64(r.Int63())
  7311. if r.Intn(2) == 0 {
  7312. this.Height *= -1
  7313. }
  7314. if !easy && r.Intn(10) != 0 {
  7315. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7316. }
  7317. return this
  7318. }
  7319. func NewPopulatedRequestCommit(r randyTypes, easy bool) *RequestCommit {
  7320. this := &RequestCommit{}
  7321. if !easy && r.Intn(10) != 0 {
  7322. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  7323. }
  7324. return this
  7325. }
  7326. func NewPopulatedResponse(r randyTypes, easy bool) *Response {
  7327. this := &Response{}
  7328. oneofNumber_Value := []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(12)]
  7329. switch oneofNumber_Value {
  7330. case 1:
  7331. this.Value = NewPopulatedResponse_Exception(r, easy)
  7332. case 2:
  7333. this.Value = NewPopulatedResponse_Echo(r, easy)
  7334. case 3:
  7335. this.Value = NewPopulatedResponse_Flush(r, easy)
  7336. case 4:
  7337. this.Value = NewPopulatedResponse_Info(r, easy)
  7338. case 5:
  7339. this.Value = NewPopulatedResponse_SetOption(r, easy)
  7340. case 6:
  7341. this.Value = NewPopulatedResponse_InitChain(r, easy)
  7342. case 7:
  7343. this.Value = NewPopulatedResponse_Query(r, easy)
  7344. case 8:
  7345. this.Value = NewPopulatedResponse_BeginBlock(r, easy)
  7346. case 9:
  7347. this.Value = NewPopulatedResponse_CheckTx(r, easy)
  7348. case 10:
  7349. this.Value = NewPopulatedResponse_DeliverTx(r, easy)
  7350. case 11:
  7351. this.Value = NewPopulatedResponse_EndBlock(r, easy)
  7352. case 12:
  7353. this.Value = NewPopulatedResponse_Commit(r, easy)
  7354. }
  7355. if !easy && r.Intn(10) != 0 {
  7356. this.XXX_unrecognized = randUnrecognizedTypes(r, 13)
  7357. }
  7358. return this
  7359. }
  7360. func NewPopulatedResponse_Exception(r randyTypes, easy bool) *Response_Exception {
  7361. this := &Response_Exception{}
  7362. this.Exception = NewPopulatedResponseException(r, easy)
  7363. return this
  7364. }
  7365. func NewPopulatedResponse_Echo(r randyTypes, easy bool) *Response_Echo {
  7366. this := &Response_Echo{}
  7367. this.Echo = NewPopulatedResponseEcho(r, easy)
  7368. return this
  7369. }
  7370. func NewPopulatedResponse_Flush(r randyTypes, easy bool) *Response_Flush {
  7371. this := &Response_Flush{}
  7372. this.Flush = NewPopulatedResponseFlush(r, easy)
  7373. return this
  7374. }
  7375. func NewPopulatedResponse_Info(r randyTypes, easy bool) *Response_Info {
  7376. this := &Response_Info{}
  7377. this.Info = NewPopulatedResponseInfo(r, easy)
  7378. return this
  7379. }
  7380. func NewPopulatedResponse_SetOption(r randyTypes, easy bool) *Response_SetOption {
  7381. this := &Response_SetOption{}
  7382. this.SetOption = NewPopulatedResponseSetOption(r, easy)
  7383. return this
  7384. }
  7385. func NewPopulatedResponse_InitChain(r randyTypes, easy bool) *Response_InitChain {
  7386. this := &Response_InitChain{}
  7387. this.InitChain = NewPopulatedResponseInitChain(r, easy)
  7388. return this
  7389. }
  7390. func NewPopulatedResponse_Query(r randyTypes, easy bool) *Response_Query {
  7391. this := &Response_Query{}
  7392. this.Query = NewPopulatedResponseQuery(r, easy)
  7393. return this
  7394. }
  7395. func NewPopulatedResponse_BeginBlock(r randyTypes, easy bool) *Response_BeginBlock {
  7396. this := &Response_BeginBlock{}
  7397. this.BeginBlock = NewPopulatedResponseBeginBlock(r, easy)
  7398. return this
  7399. }
  7400. func NewPopulatedResponse_CheckTx(r randyTypes, easy bool) *Response_CheckTx {
  7401. this := &Response_CheckTx{}
  7402. this.CheckTx = NewPopulatedResponseCheckTx(r, easy)
  7403. return this
  7404. }
  7405. func NewPopulatedResponse_DeliverTx(r randyTypes, easy bool) *Response_DeliverTx {
  7406. this := &Response_DeliverTx{}
  7407. this.DeliverTx = NewPopulatedResponseDeliverTx(r, easy)
  7408. return this
  7409. }
  7410. func NewPopulatedResponse_EndBlock(r randyTypes, easy bool) *Response_EndBlock {
  7411. this := &Response_EndBlock{}
  7412. this.EndBlock = NewPopulatedResponseEndBlock(r, easy)
  7413. return this
  7414. }
  7415. func NewPopulatedResponse_Commit(r randyTypes, easy bool) *Response_Commit {
  7416. this := &Response_Commit{}
  7417. this.Commit = NewPopulatedResponseCommit(r, easy)
  7418. return this
  7419. }
  7420. func NewPopulatedResponseException(r randyTypes, easy bool) *ResponseException {
  7421. this := &ResponseException{}
  7422. this.Error = string(randStringTypes(r))
  7423. if !easy && r.Intn(10) != 0 {
  7424. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7425. }
  7426. return this
  7427. }
  7428. func NewPopulatedResponseEcho(r randyTypes, easy bool) *ResponseEcho {
  7429. this := &ResponseEcho{}
  7430. this.Message = string(randStringTypes(r))
  7431. if !easy && r.Intn(10) != 0 {
  7432. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7433. }
  7434. return this
  7435. }
  7436. func NewPopulatedResponseFlush(r randyTypes, easy bool) *ResponseFlush {
  7437. this := &ResponseFlush{}
  7438. if !easy && r.Intn(10) != 0 {
  7439. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  7440. }
  7441. return this
  7442. }
  7443. func NewPopulatedResponseInfo(r randyTypes, easy bool) *ResponseInfo {
  7444. this := &ResponseInfo{}
  7445. this.Data = string(randStringTypes(r))
  7446. this.Version = string(randStringTypes(r))
  7447. this.AppVersion = uint64(uint64(r.Uint32()))
  7448. this.LastBlockHeight = int64(r.Int63())
  7449. if r.Intn(2) == 0 {
  7450. this.LastBlockHeight *= -1
  7451. }
  7452. v13 := r.Intn(100)
  7453. this.LastBlockAppHash = make([]byte, v13)
  7454. for i := 0; i < v13; i++ {
  7455. this.LastBlockAppHash[i] = byte(r.Intn(256))
  7456. }
  7457. if !easy && r.Intn(10) != 0 {
  7458. this.XXX_unrecognized = randUnrecognizedTypes(r, 6)
  7459. }
  7460. return this
  7461. }
  7462. func NewPopulatedResponseSetOption(r randyTypes, easy bool) *ResponseSetOption {
  7463. this := &ResponseSetOption{}
  7464. this.Code = uint32(r.Uint32())
  7465. this.Log = string(randStringTypes(r))
  7466. this.Info = string(randStringTypes(r))
  7467. if !easy && r.Intn(10) != 0 {
  7468. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  7469. }
  7470. return this
  7471. }
  7472. func NewPopulatedResponseInitChain(r randyTypes, easy bool) *ResponseInitChain {
  7473. this := &ResponseInitChain{}
  7474. if r.Intn(10) != 0 {
  7475. this.ConsensusParams = NewPopulatedConsensusParams(r, easy)
  7476. }
  7477. if r.Intn(10) != 0 {
  7478. v14 := r.Intn(5)
  7479. this.Validators = make([]ValidatorUpdate, v14)
  7480. for i := 0; i < v14; i++ {
  7481. v15 := NewPopulatedValidatorUpdate(r, easy)
  7482. this.Validators[i] = *v15
  7483. }
  7484. }
  7485. if !easy && r.Intn(10) != 0 {
  7486. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7487. }
  7488. return this
  7489. }
  7490. func NewPopulatedResponseQuery(r randyTypes, easy bool) *ResponseQuery {
  7491. this := &ResponseQuery{}
  7492. this.Code = uint32(r.Uint32())
  7493. this.Log = string(randStringTypes(r))
  7494. this.Info = string(randStringTypes(r))
  7495. this.Index = int64(r.Int63())
  7496. if r.Intn(2) == 0 {
  7497. this.Index *= -1
  7498. }
  7499. v16 := r.Intn(100)
  7500. this.Key = make([]byte, v16)
  7501. for i := 0; i < v16; i++ {
  7502. this.Key[i] = byte(r.Intn(256))
  7503. }
  7504. v17 := r.Intn(100)
  7505. this.Value = make([]byte, v17)
  7506. for i := 0; i < v17; i++ {
  7507. this.Value[i] = byte(r.Intn(256))
  7508. }
  7509. if r.Intn(10) != 0 {
  7510. this.Proof = merkle.NewPopulatedProof(r, easy)
  7511. }
  7512. this.Height = int64(r.Int63())
  7513. if r.Intn(2) == 0 {
  7514. this.Height *= -1
  7515. }
  7516. this.Codespace = string(randStringTypes(r))
  7517. if !easy && r.Intn(10) != 0 {
  7518. this.XXX_unrecognized = randUnrecognizedTypes(r, 11)
  7519. }
  7520. return this
  7521. }
  7522. func NewPopulatedResponseBeginBlock(r randyTypes, easy bool) *ResponseBeginBlock {
  7523. this := &ResponseBeginBlock{}
  7524. if r.Intn(10) != 0 {
  7525. v18 := r.Intn(5)
  7526. this.Tags = make([]common.KVPair, v18)
  7527. for i := 0; i < v18; i++ {
  7528. v19 := common.NewPopulatedKVPair(r, easy)
  7529. this.Tags[i] = *v19
  7530. }
  7531. }
  7532. if !easy && r.Intn(10) != 0 {
  7533. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7534. }
  7535. return this
  7536. }
  7537. func NewPopulatedResponseCheckTx(r randyTypes, easy bool) *ResponseCheckTx {
  7538. this := &ResponseCheckTx{}
  7539. this.Code = uint32(r.Uint32())
  7540. v20 := r.Intn(100)
  7541. this.Data = make([]byte, v20)
  7542. for i := 0; i < v20; i++ {
  7543. this.Data[i] = byte(r.Intn(256))
  7544. }
  7545. this.Log = string(randStringTypes(r))
  7546. this.Info = string(randStringTypes(r))
  7547. this.GasWanted = int64(r.Int63())
  7548. if r.Intn(2) == 0 {
  7549. this.GasWanted *= -1
  7550. }
  7551. this.GasUsed = int64(r.Int63())
  7552. if r.Intn(2) == 0 {
  7553. this.GasUsed *= -1
  7554. }
  7555. if r.Intn(10) != 0 {
  7556. v21 := r.Intn(5)
  7557. this.Tags = make([]common.KVPair, v21)
  7558. for i := 0; i < v21; i++ {
  7559. v22 := common.NewPopulatedKVPair(r, easy)
  7560. this.Tags[i] = *v22
  7561. }
  7562. }
  7563. this.Codespace = string(randStringTypes(r))
  7564. if !easy && r.Intn(10) != 0 {
  7565. this.XXX_unrecognized = randUnrecognizedTypes(r, 9)
  7566. }
  7567. return this
  7568. }
  7569. func NewPopulatedResponseDeliverTx(r randyTypes, easy bool) *ResponseDeliverTx {
  7570. this := &ResponseDeliverTx{}
  7571. this.Code = uint32(r.Uint32())
  7572. v23 := r.Intn(100)
  7573. this.Data = make([]byte, v23)
  7574. for i := 0; i < v23; i++ {
  7575. this.Data[i] = byte(r.Intn(256))
  7576. }
  7577. this.Log = string(randStringTypes(r))
  7578. this.Info = string(randStringTypes(r))
  7579. this.GasWanted = int64(r.Int63())
  7580. if r.Intn(2) == 0 {
  7581. this.GasWanted *= -1
  7582. }
  7583. this.GasUsed = int64(r.Int63())
  7584. if r.Intn(2) == 0 {
  7585. this.GasUsed *= -1
  7586. }
  7587. if r.Intn(10) != 0 {
  7588. v24 := r.Intn(5)
  7589. this.Tags = make([]common.KVPair, v24)
  7590. for i := 0; i < v24; i++ {
  7591. v25 := common.NewPopulatedKVPair(r, easy)
  7592. this.Tags[i] = *v25
  7593. }
  7594. }
  7595. this.Codespace = string(randStringTypes(r))
  7596. if !easy && r.Intn(10) != 0 {
  7597. this.XXX_unrecognized = randUnrecognizedTypes(r, 9)
  7598. }
  7599. return this
  7600. }
  7601. func NewPopulatedResponseEndBlock(r randyTypes, easy bool) *ResponseEndBlock {
  7602. this := &ResponseEndBlock{}
  7603. if r.Intn(10) != 0 {
  7604. v26 := r.Intn(5)
  7605. this.ValidatorUpdates = make([]ValidatorUpdate, v26)
  7606. for i := 0; i < v26; i++ {
  7607. v27 := NewPopulatedValidatorUpdate(r, easy)
  7608. this.ValidatorUpdates[i] = *v27
  7609. }
  7610. }
  7611. if r.Intn(10) != 0 {
  7612. this.ConsensusParamUpdates = NewPopulatedConsensusParams(r, easy)
  7613. }
  7614. if r.Intn(10) != 0 {
  7615. v28 := r.Intn(5)
  7616. this.Tags = make([]common.KVPair, v28)
  7617. for i := 0; i < v28; i++ {
  7618. v29 := common.NewPopulatedKVPair(r, easy)
  7619. this.Tags[i] = *v29
  7620. }
  7621. }
  7622. if !easy && r.Intn(10) != 0 {
  7623. this.XXX_unrecognized = randUnrecognizedTypes(r, 4)
  7624. }
  7625. return this
  7626. }
  7627. func NewPopulatedResponseCommit(r randyTypes, easy bool) *ResponseCommit {
  7628. this := &ResponseCommit{}
  7629. v30 := r.Intn(100)
  7630. this.Data = make([]byte, v30)
  7631. for i := 0; i < v30; i++ {
  7632. this.Data[i] = byte(r.Intn(256))
  7633. }
  7634. if !easy && r.Intn(10) != 0 {
  7635. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7636. }
  7637. return this
  7638. }
  7639. func NewPopulatedConsensusParams(r randyTypes, easy bool) *ConsensusParams {
  7640. this := &ConsensusParams{}
  7641. if r.Intn(10) != 0 {
  7642. this.BlockSize = NewPopulatedBlockSizeParams(r, easy)
  7643. }
  7644. if r.Intn(10) != 0 {
  7645. this.Evidence = NewPopulatedEvidenceParams(r, easy)
  7646. }
  7647. if r.Intn(10) != 0 {
  7648. this.Validator = NewPopulatedValidatorParams(r, easy)
  7649. }
  7650. if !easy && r.Intn(10) != 0 {
  7651. this.XXX_unrecognized = randUnrecognizedTypes(r, 4)
  7652. }
  7653. return this
  7654. }
  7655. func NewPopulatedBlockSizeParams(r randyTypes, easy bool) *BlockSizeParams {
  7656. this := &BlockSizeParams{}
  7657. this.MaxBytes = int64(r.Int63())
  7658. if r.Intn(2) == 0 {
  7659. this.MaxBytes *= -1
  7660. }
  7661. this.MaxGas = int64(r.Int63())
  7662. if r.Intn(2) == 0 {
  7663. this.MaxGas *= -1
  7664. }
  7665. if !easy && r.Intn(10) != 0 {
  7666. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7667. }
  7668. return this
  7669. }
  7670. func NewPopulatedEvidenceParams(r randyTypes, easy bool) *EvidenceParams {
  7671. this := &EvidenceParams{}
  7672. this.MaxAge = int64(r.Int63())
  7673. if r.Intn(2) == 0 {
  7674. this.MaxAge *= -1
  7675. }
  7676. if !easy && r.Intn(10) != 0 {
  7677. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7678. }
  7679. return this
  7680. }
  7681. func NewPopulatedValidatorParams(r randyTypes, easy bool) *ValidatorParams {
  7682. this := &ValidatorParams{}
  7683. v31 := r.Intn(10)
  7684. this.PubKeyTypes = make([]string, v31)
  7685. for i := 0; i < v31; i++ {
  7686. this.PubKeyTypes[i] = string(randStringTypes(r))
  7687. }
  7688. if !easy && r.Intn(10) != 0 {
  7689. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7690. }
  7691. return this
  7692. }
  7693. func NewPopulatedLastCommitInfo(r randyTypes, easy bool) *LastCommitInfo {
  7694. this := &LastCommitInfo{}
  7695. this.Round = int32(r.Int31())
  7696. if r.Intn(2) == 0 {
  7697. this.Round *= -1
  7698. }
  7699. if r.Intn(10) != 0 {
  7700. v32 := r.Intn(5)
  7701. this.Votes = make([]VoteInfo, v32)
  7702. for i := 0; i < v32; i++ {
  7703. v33 := NewPopulatedVoteInfo(r, easy)
  7704. this.Votes[i] = *v33
  7705. }
  7706. }
  7707. if !easy && r.Intn(10) != 0 {
  7708. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7709. }
  7710. return this
  7711. }
  7712. func NewPopulatedHeader(r randyTypes, easy bool) *Header {
  7713. this := &Header{}
  7714. v34 := NewPopulatedVersion(r, easy)
  7715. this.Version = *v34
  7716. this.ChainID = string(randStringTypes(r))
  7717. this.Height = int64(r.Int63())
  7718. if r.Intn(2) == 0 {
  7719. this.Height *= -1
  7720. }
  7721. v35 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  7722. this.Time = *v35
  7723. this.NumTxs = int64(r.Int63())
  7724. if r.Intn(2) == 0 {
  7725. this.NumTxs *= -1
  7726. }
  7727. this.TotalTxs = int64(r.Int63())
  7728. if r.Intn(2) == 0 {
  7729. this.TotalTxs *= -1
  7730. }
  7731. v36 := NewPopulatedBlockID(r, easy)
  7732. this.LastBlockId = *v36
  7733. v37 := r.Intn(100)
  7734. this.LastCommitHash = make([]byte, v37)
  7735. for i := 0; i < v37; i++ {
  7736. this.LastCommitHash[i] = byte(r.Intn(256))
  7737. }
  7738. v38 := r.Intn(100)
  7739. this.DataHash = make([]byte, v38)
  7740. for i := 0; i < v38; i++ {
  7741. this.DataHash[i] = byte(r.Intn(256))
  7742. }
  7743. v39 := r.Intn(100)
  7744. this.ValidatorsHash = make([]byte, v39)
  7745. for i := 0; i < v39; i++ {
  7746. this.ValidatorsHash[i] = byte(r.Intn(256))
  7747. }
  7748. v40 := r.Intn(100)
  7749. this.NextValidatorsHash = make([]byte, v40)
  7750. for i := 0; i < v40; i++ {
  7751. this.NextValidatorsHash[i] = byte(r.Intn(256))
  7752. }
  7753. v41 := r.Intn(100)
  7754. this.ConsensusHash = make([]byte, v41)
  7755. for i := 0; i < v41; i++ {
  7756. this.ConsensusHash[i] = byte(r.Intn(256))
  7757. }
  7758. v42 := r.Intn(100)
  7759. this.AppHash = make([]byte, v42)
  7760. for i := 0; i < v42; i++ {
  7761. this.AppHash[i] = byte(r.Intn(256))
  7762. }
  7763. v43 := r.Intn(100)
  7764. this.LastResultsHash = make([]byte, v43)
  7765. for i := 0; i < v43; i++ {
  7766. this.LastResultsHash[i] = byte(r.Intn(256))
  7767. }
  7768. v44 := r.Intn(100)
  7769. this.EvidenceHash = make([]byte, v44)
  7770. for i := 0; i < v44; i++ {
  7771. this.EvidenceHash[i] = byte(r.Intn(256))
  7772. }
  7773. v45 := r.Intn(100)
  7774. this.ProposerAddress = make([]byte, v45)
  7775. for i := 0; i < v45; i++ {
  7776. this.ProposerAddress[i] = byte(r.Intn(256))
  7777. }
  7778. if !easy && r.Intn(10) != 0 {
  7779. this.XXX_unrecognized = randUnrecognizedTypes(r, 17)
  7780. }
  7781. return this
  7782. }
  7783. func NewPopulatedVersion(r randyTypes, easy bool) *Version {
  7784. this := &Version{}
  7785. this.Block = uint64(uint64(r.Uint32()))
  7786. this.App = uint64(uint64(r.Uint32()))
  7787. if !easy && r.Intn(10) != 0 {
  7788. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7789. }
  7790. return this
  7791. }
  7792. func NewPopulatedBlockID(r randyTypes, easy bool) *BlockID {
  7793. this := &BlockID{}
  7794. v46 := r.Intn(100)
  7795. this.Hash = make([]byte, v46)
  7796. for i := 0; i < v46; i++ {
  7797. this.Hash[i] = byte(r.Intn(256))
  7798. }
  7799. v47 := NewPopulatedPartSetHeader(r, easy)
  7800. this.PartsHeader = *v47
  7801. if !easy && r.Intn(10) != 0 {
  7802. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7803. }
  7804. return this
  7805. }
  7806. func NewPopulatedPartSetHeader(r randyTypes, easy bool) *PartSetHeader {
  7807. this := &PartSetHeader{}
  7808. this.Total = int32(r.Int31())
  7809. if r.Intn(2) == 0 {
  7810. this.Total *= -1
  7811. }
  7812. v48 := r.Intn(100)
  7813. this.Hash = make([]byte, v48)
  7814. for i := 0; i < v48; i++ {
  7815. this.Hash[i] = byte(r.Intn(256))
  7816. }
  7817. if !easy && r.Intn(10) != 0 {
  7818. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7819. }
  7820. return this
  7821. }
  7822. func NewPopulatedValidator(r randyTypes, easy bool) *Validator {
  7823. this := &Validator{}
  7824. v49 := r.Intn(100)
  7825. this.Address = make([]byte, v49)
  7826. for i := 0; i < v49; i++ {
  7827. this.Address[i] = byte(r.Intn(256))
  7828. }
  7829. this.Power = int64(r.Int63())
  7830. if r.Intn(2) == 0 {
  7831. this.Power *= -1
  7832. }
  7833. if !easy && r.Intn(10) != 0 {
  7834. this.XXX_unrecognized = randUnrecognizedTypes(r, 4)
  7835. }
  7836. return this
  7837. }
  7838. func NewPopulatedValidatorUpdate(r randyTypes, easy bool) *ValidatorUpdate {
  7839. this := &ValidatorUpdate{}
  7840. v50 := NewPopulatedPubKey(r, easy)
  7841. this.PubKey = *v50
  7842. this.Power = int64(r.Int63())
  7843. if r.Intn(2) == 0 {
  7844. this.Power *= -1
  7845. }
  7846. if !easy && r.Intn(10) != 0 {
  7847. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7848. }
  7849. return this
  7850. }
  7851. func NewPopulatedVoteInfo(r randyTypes, easy bool) *VoteInfo {
  7852. this := &VoteInfo{}
  7853. v51 := NewPopulatedValidator(r, easy)
  7854. this.Validator = *v51
  7855. this.SignedLastBlock = bool(bool(r.Intn(2) == 0))
  7856. if !easy && r.Intn(10) != 0 {
  7857. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7858. }
  7859. return this
  7860. }
  7861. func NewPopulatedPubKey(r randyTypes, easy bool) *PubKey {
  7862. this := &PubKey{}
  7863. this.Type = string(randStringTypes(r))
  7864. v52 := r.Intn(100)
  7865. this.Data = make([]byte, v52)
  7866. for i := 0; i < v52; i++ {
  7867. this.Data[i] = byte(r.Intn(256))
  7868. }
  7869. if !easy && r.Intn(10) != 0 {
  7870. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7871. }
  7872. return this
  7873. }
  7874. func NewPopulatedEvidence(r randyTypes, easy bool) *Evidence {
  7875. this := &Evidence{}
  7876. this.Type = string(randStringTypes(r))
  7877. v53 := NewPopulatedValidator(r, easy)
  7878. this.Validator = *v53
  7879. this.Height = int64(r.Int63())
  7880. if r.Intn(2) == 0 {
  7881. this.Height *= -1
  7882. }
  7883. v54 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  7884. this.Time = *v54
  7885. this.TotalVotingPower = int64(r.Int63())
  7886. if r.Intn(2) == 0 {
  7887. this.TotalVotingPower *= -1
  7888. }
  7889. if !easy && r.Intn(10) != 0 {
  7890. this.XXX_unrecognized = randUnrecognizedTypes(r, 6)
  7891. }
  7892. return this
  7893. }
  7894. type randyTypes interface {
  7895. Float32() float32
  7896. Float64() float64
  7897. Int63() int64
  7898. Int31() int32
  7899. Uint32() uint32
  7900. Intn(n int) int
  7901. }
  7902. func randUTF8RuneTypes(r randyTypes) rune {
  7903. ru := r.Intn(62)
  7904. if ru < 10 {
  7905. return rune(ru + 48)
  7906. } else if ru < 36 {
  7907. return rune(ru + 55)
  7908. }
  7909. return rune(ru + 61)
  7910. }
  7911. func randStringTypes(r randyTypes) string {
  7912. v55 := r.Intn(100)
  7913. tmps := make([]rune, v55)
  7914. for i := 0; i < v55; i++ {
  7915. tmps[i] = randUTF8RuneTypes(r)
  7916. }
  7917. return string(tmps)
  7918. }
  7919. func randUnrecognizedTypes(r randyTypes, maxFieldNumber int) (dAtA []byte) {
  7920. l := r.Intn(5)
  7921. for i := 0; i < l; i++ {
  7922. wire := r.Intn(4)
  7923. if wire == 3 {
  7924. wire = 5
  7925. }
  7926. fieldNumber := maxFieldNumber + r.Intn(100)
  7927. dAtA = randFieldTypes(dAtA, r, fieldNumber, wire)
  7928. }
  7929. return dAtA
  7930. }
  7931. func randFieldTypes(dAtA []byte, r randyTypes, fieldNumber int, wire int) []byte {
  7932. key := uint32(fieldNumber)<<3 | uint32(wire)
  7933. switch wire {
  7934. case 0:
  7935. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7936. v56 := r.Int63()
  7937. if r.Intn(2) == 0 {
  7938. v56 *= -1
  7939. }
  7940. dAtA = encodeVarintPopulateTypes(dAtA, uint64(v56))
  7941. case 1:
  7942. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7943. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  7944. case 2:
  7945. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7946. ll := r.Intn(100)
  7947. dAtA = encodeVarintPopulateTypes(dAtA, uint64(ll))
  7948. for j := 0; j < ll; j++ {
  7949. dAtA = append(dAtA, byte(r.Intn(256)))
  7950. }
  7951. default:
  7952. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7953. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  7954. }
  7955. return dAtA
  7956. }
  7957. func encodeVarintPopulateTypes(dAtA []byte, v uint64) []byte {
  7958. for v >= 1<<7 {
  7959. dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  7960. v >>= 7
  7961. }
  7962. dAtA = append(dAtA, uint8(v))
  7963. return dAtA
  7964. }
  7965. func (m *Request) Size() (n int) {
  7966. var l int
  7967. _ = l
  7968. if m.Value != nil {
  7969. n += m.Value.Size()
  7970. }
  7971. if m.XXX_unrecognized != nil {
  7972. n += len(m.XXX_unrecognized)
  7973. }
  7974. return n
  7975. }
  7976. func (m *Request_Echo) Size() (n int) {
  7977. var l int
  7978. _ = l
  7979. if m.Echo != nil {
  7980. l = m.Echo.Size()
  7981. n += 1 + l + sovTypes(uint64(l))
  7982. }
  7983. return n
  7984. }
  7985. func (m *Request_Flush) Size() (n int) {
  7986. var l int
  7987. _ = l
  7988. if m.Flush != nil {
  7989. l = m.Flush.Size()
  7990. n += 1 + l + sovTypes(uint64(l))
  7991. }
  7992. return n
  7993. }
  7994. func (m *Request_Info) Size() (n int) {
  7995. var l int
  7996. _ = l
  7997. if m.Info != nil {
  7998. l = m.Info.Size()
  7999. n += 1 + l + sovTypes(uint64(l))
  8000. }
  8001. return n
  8002. }
  8003. func (m *Request_SetOption) Size() (n int) {
  8004. var l int
  8005. _ = l
  8006. if m.SetOption != nil {
  8007. l = m.SetOption.Size()
  8008. n += 1 + l + sovTypes(uint64(l))
  8009. }
  8010. return n
  8011. }
  8012. func (m *Request_InitChain) Size() (n int) {
  8013. var l int
  8014. _ = l
  8015. if m.InitChain != nil {
  8016. l = m.InitChain.Size()
  8017. n += 1 + l + sovTypes(uint64(l))
  8018. }
  8019. return n
  8020. }
  8021. func (m *Request_Query) Size() (n int) {
  8022. var l int
  8023. _ = l
  8024. if m.Query != nil {
  8025. l = m.Query.Size()
  8026. n += 1 + l + sovTypes(uint64(l))
  8027. }
  8028. return n
  8029. }
  8030. func (m *Request_BeginBlock) Size() (n int) {
  8031. var l int
  8032. _ = l
  8033. if m.BeginBlock != nil {
  8034. l = m.BeginBlock.Size()
  8035. n += 1 + l + sovTypes(uint64(l))
  8036. }
  8037. return n
  8038. }
  8039. func (m *Request_CheckTx) Size() (n int) {
  8040. var l int
  8041. _ = l
  8042. if m.CheckTx != nil {
  8043. l = m.CheckTx.Size()
  8044. n += 1 + l + sovTypes(uint64(l))
  8045. }
  8046. return n
  8047. }
  8048. func (m *Request_EndBlock) Size() (n int) {
  8049. var l int
  8050. _ = l
  8051. if m.EndBlock != nil {
  8052. l = m.EndBlock.Size()
  8053. n += 1 + l + sovTypes(uint64(l))
  8054. }
  8055. return n
  8056. }
  8057. func (m *Request_Commit) Size() (n int) {
  8058. var l int
  8059. _ = l
  8060. if m.Commit != nil {
  8061. l = m.Commit.Size()
  8062. n += 1 + l + sovTypes(uint64(l))
  8063. }
  8064. return n
  8065. }
  8066. func (m *Request_DeliverTx) Size() (n int) {
  8067. var l int
  8068. _ = l
  8069. if m.DeliverTx != nil {
  8070. l = m.DeliverTx.Size()
  8071. n += 2 + l + sovTypes(uint64(l))
  8072. }
  8073. return n
  8074. }
  8075. func (m *RequestEcho) Size() (n int) {
  8076. var l int
  8077. _ = l
  8078. l = len(m.Message)
  8079. if l > 0 {
  8080. n += 1 + l + sovTypes(uint64(l))
  8081. }
  8082. if m.XXX_unrecognized != nil {
  8083. n += len(m.XXX_unrecognized)
  8084. }
  8085. return n
  8086. }
  8087. func (m *RequestFlush) Size() (n int) {
  8088. var l int
  8089. _ = l
  8090. if m.XXX_unrecognized != nil {
  8091. n += len(m.XXX_unrecognized)
  8092. }
  8093. return n
  8094. }
  8095. func (m *RequestInfo) Size() (n int) {
  8096. var l int
  8097. _ = l
  8098. l = len(m.Version)
  8099. if l > 0 {
  8100. n += 1 + l + sovTypes(uint64(l))
  8101. }
  8102. if m.BlockVersion != 0 {
  8103. n += 1 + sovTypes(uint64(m.BlockVersion))
  8104. }
  8105. if m.P2PVersion != 0 {
  8106. n += 1 + sovTypes(uint64(m.P2PVersion))
  8107. }
  8108. if m.XXX_unrecognized != nil {
  8109. n += len(m.XXX_unrecognized)
  8110. }
  8111. return n
  8112. }
  8113. func (m *RequestSetOption) Size() (n int) {
  8114. var l int
  8115. _ = l
  8116. l = len(m.Key)
  8117. if l > 0 {
  8118. n += 1 + l + sovTypes(uint64(l))
  8119. }
  8120. l = len(m.Value)
  8121. if l > 0 {
  8122. n += 1 + l + sovTypes(uint64(l))
  8123. }
  8124. if m.XXX_unrecognized != nil {
  8125. n += len(m.XXX_unrecognized)
  8126. }
  8127. return n
  8128. }
  8129. func (m *RequestInitChain) Size() (n int) {
  8130. var l int
  8131. _ = l
  8132. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  8133. n += 1 + l + sovTypes(uint64(l))
  8134. l = len(m.ChainId)
  8135. if l > 0 {
  8136. n += 1 + l + sovTypes(uint64(l))
  8137. }
  8138. if m.ConsensusParams != nil {
  8139. l = m.ConsensusParams.Size()
  8140. n += 1 + l + sovTypes(uint64(l))
  8141. }
  8142. if len(m.Validators) > 0 {
  8143. for _, e := range m.Validators {
  8144. l = e.Size()
  8145. n += 1 + l + sovTypes(uint64(l))
  8146. }
  8147. }
  8148. l = len(m.AppStateBytes)
  8149. if l > 0 {
  8150. n += 1 + l + sovTypes(uint64(l))
  8151. }
  8152. if m.XXX_unrecognized != nil {
  8153. n += len(m.XXX_unrecognized)
  8154. }
  8155. return n
  8156. }
  8157. func (m *RequestQuery) Size() (n int) {
  8158. var l int
  8159. _ = l
  8160. l = len(m.Data)
  8161. if l > 0 {
  8162. n += 1 + l + sovTypes(uint64(l))
  8163. }
  8164. l = len(m.Path)
  8165. if l > 0 {
  8166. n += 1 + l + sovTypes(uint64(l))
  8167. }
  8168. if m.Height != 0 {
  8169. n += 1 + sovTypes(uint64(m.Height))
  8170. }
  8171. if m.Prove {
  8172. n += 2
  8173. }
  8174. if m.XXX_unrecognized != nil {
  8175. n += len(m.XXX_unrecognized)
  8176. }
  8177. return n
  8178. }
  8179. func (m *RequestBeginBlock) Size() (n int) {
  8180. var l int
  8181. _ = l
  8182. l = len(m.Hash)
  8183. if l > 0 {
  8184. n += 1 + l + sovTypes(uint64(l))
  8185. }
  8186. l = m.Header.Size()
  8187. n += 1 + l + sovTypes(uint64(l))
  8188. l = m.LastCommitInfo.Size()
  8189. n += 1 + l + sovTypes(uint64(l))
  8190. if len(m.ByzantineValidators) > 0 {
  8191. for _, e := range m.ByzantineValidators {
  8192. l = e.Size()
  8193. n += 1 + l + sovTypes(uint64(l))
  8194. }
  8195. }
  8196. if m.XXX_unrecognized != nil {
  8197. n += len(m.XXX_unrecognized)
  8198. }
  8199. return n
  8200. }
  8201. func (m *RequestCheckTx) Size() (n int) {
  8202. var l int
  8203. _ = l
  8204. l = len(m.Tx)
  8205. if l > 0 {
  8206. n += 1 + l + sovTypes(uint64(l))
  8207. }
  8208. if m.XXX_unrecognized != nil {
  8209. n += len(m.XXX_unrecognized)
  8210. }
  8211. return n
  8212. }
  8213. func (m *RequestDeliverTx) Size() (n int) {
  8214. var l int
  8215. _ = l
  8216. l = len(m.Tx)
  8217. if l > 0 {
  8218. n += 1 + l + sovTypes(uint64(l))
  8219. }
  8220. if m.XXX_unrecognized != nil {
  8221. n += len(m.XXX_unrecognized)
  8222. }
  8223. return n
  8224. }
  8225. func (m *RequestEndBlock) Size() (n int) {
  8226. var l int
  8227. _ = l
  8228. if m.Height != 0 {
  8229. n += 1 + sovTypes(uint64(m.Height))
  8230. }
  8231. if m.XXX_unrecognized != nil {
  8232. n += len(m.XXX_unrecognized)
  8233. }
  8234. return n
  8235. }
  8236. func (m *RequestCommit) Size() (n int) {
  8237. var l int
  8238. _ = l
  8239. if m.XXX_unrecognized != nil {
  8240. n += len(m.XXX_unrecognized)
  8241. }
  8242. return n
  8243. }
  8244. func (m *Response) Size() (n int) {
  8245. var l int
  8246. _ = l
  8247. if m.Value != nil {
  8248. n += m.Value.Size()
  8249. }
  8250. if m.XXX_unrecognized != nil {
  8251. n += len(m.XXX_unrecognized)
  8252. }
  8253. return n
  8254. }
  8255. func (m *Response_Exception) Size() (n int) {
  8256. var l int
  8257. _ = l
  8258. if m.Exception != nil {
  8259. l = m.Exception.Size()
  8260. n += 1 + l + sovTypes(uint64(l))
  8261. }
  8262. return n
  8263. }
  8264. func (m *Response_Echo) Size() (n int) {
  8265. var l int
  8266. _ = l
  8267. if m.Echo != nil {
  8268. l = m.Echo.Size()
  8269. n += 1 + l + sovTypes(uint64(l))
  8270. }
  8271. return n
  8272. }
  8273. func (m *Response_Flush) Size() (n int) {
  8274. var l int
  8275. _ = l
  8276. if m.Flush != nil {
  8277. l = m.Flush.Size()
  8278. n += 1 + l + sovTypes(uint64(l))
  8279. }
  8280. return n
  8281. }
  8282. func (m *Response_Info) Size() (n int) {
  8283. var l int
  8284. _ = l
  8285. if m.Info != nil {
  8286. l = m.Info.Size()
  8287. n += 1 + l + sovTypes(uint64(l))
  8288. }
  8289. return n
  8290. }
  8291. func (m *Response_SetOption) Size() (n int) {
  8292. var l int
  8293. _ = l
  8294. if m.SetOption != nil {
  8295. l = m.SetOption.Size()
  8296. n += 1 + l + sovTypes(uint64(l))
  8297. }
  8298. return n
  8299. }
  8300. func (m *Response_InitChain) Size() (n int) {
  8301. var l int
  8302. _ = l
  8303. if m.InitChain != nil {
  8304. l = m.InitChain.Size()
  8305. n += 1 + l + sovTypes(uint64(l))
  8306. }
  8307. return n
  8308. }
  8309. func (m *Response_Query) Size() (n int) {
  8310. var l int
  8311. _ = l
  8312. if m.Query != nil {
  8313. l = m.Query.Size()
  8314. n += 1 + l + sovTypes(uint64(l))
  8315. }
  8316. return n
  8317. }
  8318. func (m *Response_BeginBlock) Size() (n int) {
  8319. var l int
  8320. _ = l
  8321. if m.BeginBlock != nil {
  8322. l = m.BeginBlock.Size()
  8323. n += 1 + l + sovTypes(uint64(l))
  8324. }
  8325. return n
  8326. }
  8327. func (m *Response_CheckTx) Size() (n int) {
  8328. var l int
  8329. _ = l
  8330. if m.CheckTx != nil {
  8331. l = m.CheckTx.Size()
  8332. n += 1 + l + sovTypes(uint64(l))
  8333. }
  8334. return n
  8335. }
  8336. func (m *Response_DeliverTx) Size() (n int) {
  8337. var l int
  8338. _ = l
  8339. if m.DeliverTx != nil {
  8340. l = m.DeliverTx.Size()
  8341. n += 1 + l + sovTypes(uint64(l))
  8342. }
  8343. return n
  8344. }
  8345. func (m *Response_EndBlock) Size() (n int) {
  8346. var l int
  8347. _ = l
  8348. if m.EndBlock != nil {
  8349. l = m.EndBlock.Size()
  8350. n += 1 + l + sovTypes(uint64(l))
  8351. }
  8352. return n
  8353. }
  8354. func (m *Response_Commit) Size() (n int) {
  8355. var l int
  8356. _ = l
  8357. if m.Commit != nil {
  8358. l = m.Commit.Size()
  8359. n += 1 + l + sovTypes(uint64(l))
  8360. }
  8361. return n
  8362. }
  8363. func (m *ResponseException) Size() (n int) {
  8364. var l int
  8365. _ = l
  8366. l = len(m.Error)
  8367. if l > 0 {
  8368. n += 1 + l + sovTypes(uint64(l))
  8369. }
  8370. if m.XXX_unrecognized != nil {
  8371. n += len(m.XXX_unrecognized)
  8372. }
  8373. return n
  8374. }
  8375. func (m *ResponseEcho) Size() (n int) {
  8376. var l int
  8377. _ = l
  8378. l = len(m.Message)
  8379. if l > 0 {
  8380. n += 1 + l + sovTypes(uint64(l))
  8381. }
  8382. if m.XXX_unrecognized != nil {
  8383. n += len(m.XXX_unrecognized)
  8384. }
  8385. return n
  8386. }
  8387. func (m *ResponseFlush) Size() (n int) {
  8388. var l int
  8389. _ = l
  8390. if m.XXX_unrecognized != nil {
  8391. n += len(m.XXX_unrecognized)
  8392. }
  8393. return n
  8394. }
  8395. func (m *ResponseInfo) Size() (n int) {
  8396. var l int
  8397. _ = l
  8398. l = len(m.Data)
  8399. if l > 0 {
  8400. n += 1 + l + sovTypes(uint64(l))
  8401. }
  8402. l = len(m.Version)
  8403. if l > 0 {
  8404. n += 1 + l + sovTypes(uint64(l))
  8405. }
  8406. if m.AppVersion != 0 {
  8407. n += 1 + sovTypes(uint64(m.AppVersion))
  8408. }
  8409. if m.LastBlockHeight != 0 {
  8410. n += 1 + sovTypes(uint64(m.LastBlockHeight))
  8411. }
  8412. l = len(m.LastBlockAppHash)
  8413. if l > 0 {
  8414. n += 1 + l + sovTypes(uint64(l))
  8415. }
  8416. if m.XXX_unrecognized != nil {
  8417. n += len(m.XXX_unrecognized)
  8418. }
  8419. return n
  8420. }
  8421. func (m *ResponseSetOption) Size() (n int) {
  8422. var l int
  8423. _ = l
  8424. if m.Code != 0 {
  8425. n += 1 + sovTypes(uint64(m.Code))
  8426. }
  8427. l = len(m.Log)
  8428. if l > 0 {
  8429. n += 1 + l + sovTypes(uint64(l))
  8430. }
  8431. l = len(m.Info)
  8432. if l > 0 {
  8433. n += 1 + l + sovTypes(uint64(l))
  8434. }
  8435. if m.XXX_unrecognized != nil {
  8436. n += len(m.XXX_unrecognized)
  8437. }
  8438. return n
  8439. }
  8440. func (m *ResponseInitChain) Size() (n int) {
  8441. var l int
  8442. _ = l
  8443. if m.ConsensusParams != nil {
  8444. l = m.ConsensusParams.Size()
  8445. n += 1 + l + sovTypes(uint64(l))
  8446. }
  8447. if len(m.Validators) > 0 {
  8448. for _, e := range m.Validators {
  8449. l = e.Size()
  8450. n += 1 + l + sovTypes(uint64(l))
  8451. }
  8452. }
  8453. if m.XXX_unrecognized != nil {
  8454. n += len(m.XXX_unrecognized)
  8455. }
  8456. return n
  8457. }
  8458. func (m *ResponseQuery) Size() (n int) {
  8459. var l int
  8460. _ = l
  8461. if m.Code != 0 {
  8462. n += 1 + sovTypes(uint64(m.Code))
  8463. }
  8464. l = len(m.Log)
  8465. if l > 0 {
  8466. n += 1 + l + sovTypes(uint64(l))
  8467. }
  8468. l = len(m.Info)
  8469. if l > 0 {
  8470. n += 1 + l + sovTypes(uint64(l))
  8471. }
  8472. if m.Index != 0 {
  8473. n += 1 + sovTypes(uint64(m.Index))
  8474. }
  8475. l = len(m.Key)
  8476. if l > 0 {
  8477. n += 1 + l + sovTypes(uint64(l))
  8478. }
  8479. l = len(m.Value)
  8480. if l > 0 {
  8481. n += 1 + l + sovTypes(uint64(l))
  8482. }
  8483. if m.Proof != nil {
  8484. l = m.Proof.Size()
  8485. n += 1 + l + sovTypes(uint64(l))
  8486. }
  8487. if m.Height != 0 {
  8488. n += 1 + sovTypes(uint64(m.Height))
  8489. }
  8490. l = len(m.Codespace)
  8491. if l > 0 {
  8492. n += 1 + l + sovTypes(uint64(l))
  8493. }
  8494. if m.XXX_unrecognized != nil {
  8495. n += len(m.XXX_unrecognized)
  8496. }
  8497. return n
  8498. }
  8499. func (m *ResponseBeginBlock) Size() (n int) {
  8500. var l int
  8501. _ = l
  8502. if len(m.Tags) > 0 {
  8503. for _, e := range m.Tags {
  8504. l = e.Size()
  8505. n += 1 + l + sovTypes(uint64(l))
  8506. }
  8507. }
  8508. if m.XXX_unrecognized != nil {
  8509. n += len(m.XXX_unrecognized)
  8510. }
  8511. return n
  8512. }
  8513. func (m *ResponseCheckTx) Size() (n int) {
  8514. var l int
  8515. _ = l
  8516. if m.Code != 0 {
  8517. n += 1 + sovTypes(uint64(m.Code))
  8518. }
  8519. l = len(m.Data)
  8520. if l > 0 {
  8521. n += 1 + l + sovTypes(uint64(l))
  8522. }
  8523. l = len(m.Log)
  8524. if l > 0 {
  8525. n += 1 + l + sovTypes(uint64(l))
  8526. }
  8527. l = len(m.Info)
  8528. if l > 0 {
  8529. n += 1 + l + sovTypes(uint64(l))
  8530. }
  8531. if m.GasWanted != 0 {
  8532. n += 1 + sovTypes(uint64(m.GasWanted))
  8533. }
  8534. if m.GasUsed != 0 {
  8535. n += 1 + sovTypes(uint64(m.GasUsed))
  8536. }
  8537. if len(m.Tags) > 0 {
  8538. for _, e := range m.Tags {
  8539. l = e.Size()
  8540. n += 1 + l + sovTypes(uint64(l))
  8541. }
  8542. }
  8543. l = len(m.Codespace)
  8544. if l > 0 {
  8545. n += 1 + l + sovTypes(uint64(l))
  8546. }
  8547. if m.XXX_unrecognized != nil {
  8548. n += len(m.XXX_unrecognized)
  8549. }
  8550. return n
  8551. }
  8552. func (m *ResponseDeliverTx) Size() (n int) {
  8553. var l int
  8554. _ = l
  8555. if m.Code != 0 {
  8556. n += 1 + sovTypes(uint64(m.Code))
  8557. }
  8558. l = len(m.Data)
  8559. if l > 0 {
  8560. n += 1 + l + sovTypes(uint64(l))
  8561. }
  8562. l = len(m.Log)
  8563. if l > 0 {
  8564. n += 1 + l + sovTypes(uint64(l))
  8565. }
  8566. l = len(m.Info)
  8567. if l > 0 {
  8568. n += 1 + l + sovTypes(uint64(l))
  8569. }
  8570. if m.GasWanted != 0 {
  8571. n += 1 + sovTypes(uint64(m.GasWanted))
  8572. }
  8573. if m.GasUsed != 0 {
  8574. n += 1 + sovTypes(uint64(m.GasUsed))
  8575. }
  8576. if len(m.Tags) > 0 {
  8577. for _, e := range m.Tags {
  8578. l = e.Size()
  8579. n += 1 + l + sovTypes(uint64(l))
  8580. }
  8581. }
  8582. l = len(m.Codespace)
  8583. if l > 0 {
  8584. n += 1 + l + sovTypes(uint64(l))
  8585. }
  8586. if m.XXX_unrecognized != nil {
  8587. n += len(m.XXX_unrecognized)
  8588. }
  8589. return n
  8590. }
  8591. func (m *ResponseEndBlock) Size() (n int) {
  8592. var l int
  8593. _ = l
  8594. if len(m.ValidatorUpdates) > 0 {
  8595. for _, e := range m.ValidatorUpdates {
  8596. l = e.Size()
  8597. n += 1 + l + sovTypes(uint64(l))
  8598. }
  8599. }
  8600. if m.ConsensusParamUpdates != nil {
  8601. l = m.ConsensusParamUpdates.Size()
  8602. n += 1 + l + sovTypes(uint64(l))
  8603. }
  8604. if len(m.Tags) > 0 {
  8605. for _, e := range m.Tags {
  8606. l = e.Size()
  8607. n += 1 + l + sovTypes(uint64(l))
  8608. }
  8609. }
  8610. if m.XXX_unrecognized != nil {
  8611. n += len(m.XXX_unrecognized)
  8612. }
  8613. return n
  8614. }
  8615. func (m *ResponseCommit) Size() (n int) {
  8616. var l int
  8617. _ = l
  8618. l = len(m.Data)
  8619. if l > 0 {
  8620. n += 1 + l + sovTypes(uint64(l))
  8621. }
  8622. if m.XXX_unrecognized != nil {
  8623. n += len(m.XXX_unrecognized)
  8624. }
  8625. return n
  8626. }
  8627. func (m *ConsensusParams) Size() (n int) {
  8628. var l int
  8629. _ = l
  8630. if m.BlockSize != nil {
  8631. l = m.BlockSize.Size()
  8632. n += 1 + l + sovTypes(uint64(l))
  8633. }
  8634. if m.Evidence != nil {
  8635. l = m.Evidence.Size()
  8636. n += 1 + l + sovTypes(uint64(l))
  8637. }
  8638. if m.Validator != nil {
  8639. l = m.Validator.Size()
  8640. n += 1 + l + sovTypes(uint64(l))
  8641. }
  8642. if m.XXX_unrecognized != nil {
  8643. n += len(m.XXX_unrecognized)
  8644. }
  8645. return n
  8646. }
  8647. func (m *BlockSizeParams) Size() (n int) {
  8648. var l int
  8649. _ = l
  8650. if m.MaxBytes != 0 {
  8651. n += 1 + sovTypes(uint64(m.MaxBytes))
  8652. }
  8653. if m.MaxGas != 0 {
  8654. n += 1 + sovTypes(uint64(m.MaxGas))
  8655. }
  8656. if m.XXX_unrecognized != nil {
  8657. n += len(m.XXX_unrecognized)
  8658. }
  8659. return n
  8660. }
  8661. func (m *EvidenceParams) Size() (n int) {
  8662. var l int
  8663. _ = l
  8664. if m.MaxAge != 0 {
  8665. n += 1 + sovTypes(uint64(m.MaxAge))
  8666. }
  8667. if m.XXX_unrecognized != nil {
  8668. n += len(m.XXX_unrecognized)
  8669. }
  8670. return n
  8671. }
  8672. func (m *ValidatorParams) Size() (n int) {
  8673. var l int
  8674. _ = l
  8675. if len(m.PubKeyTypes) > 0 {
  8676. for _, s := range m.PubKeyTypes {
  8677. l = len(s)
  8678. n += 1 + l + sovTypes(uint64(l))
  8679. }
  8680. }
  8681. if m.XXX_unrecognized != nil {
  8682. n += len(m.XXX_unrecognized)
  8683. }
  8684. return n
  8685. }
  8686. func (m *LastCommitInfo) Size() (n int) {
  8687. var l int
  8688. _ = l
  8689. if m.Round != 0 {
  8690. n += 1 + sovTypes(uint64(m.Round))
  8691. }
  8692. if len(m.Votes) > 0 {
  8693. for _, e := range m.Votes {
  8694. l = e.Size()
  8695. n += 1 + l + sovTypes(uint64(l))
  8696. }
  8697. }
  8698. if m.XXX_unrecognized != nil {
  8699. n += len(m.XXX_unrecognized)
  8700. }
  8701. return n
  8702. }
  8703. func (m *Header) Size() (n int) {
  8704. var l int
  8705. _ = l
  8706. l = m.Version.Size()
  8707. n += 1 + l + sovTypes(uint64(l))
  8708. l = len(m.ChainID)
  8709. if l > 0 {
  8710. n += 1 + l + sovTypes(uint64(l))
  8711. }
  8712. if m.Height != 0 {
  8713. n += 1 + sovTypes(uint64(m.Height))
  8714. }
  8715. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  8716. n += 1 + l + sovTypes(uint64(l))
  8717. if m.NumTxs != 0 {
  8718. n += 1 + sovTypes(uint64(m.NumTxs))
  8719. }
  8720. if m.TotalTxs != 0 {
  8721. n += 1 + sovTypes(uint64(m.TotalTxs))
  8722. }
  8723. l = m.LastBlockId.Size()
  8724. n += 1 + l + sovTypes(uint64(l))
  8725. l = len(m.LastCommitHash)
  8726. if l > 0 {
  8727. n += 1 + l + sovTypes(uint64(l))
  8728. }
  8729. l = len(m.DataHash)
  8730. if l > 0 {
  8731. n += 1 + l + sovTypes(uint64(l))
  8732. }
  8733. l = len(m.ValidatorsHash)
  8734. if l > 0 {
  8735. n += 1 + l + sovTypes(uint64(l))
  8736. }
  8737. l = len(m.NextValidatorsHash)
  8738. if l > 0 {
  8739. n += 1 + l + sovTypes(uint64(l))
  8740. }
  8741. l = len(m.ConsensusHash)
  8742. if l > 0 {
  8743. n += 1 + l + sovTypes(uint64(l))
  8744. }
  8745. l = len(m.AppHash)
  8746. if l > 0 {
  8747. n += 1 + l + sovTypes(uint64(l))
  8748. }
  8749. l = len(m.LastResultsHash)
  8750. if l > 0 {
  8751. n += 1 + l + sovTypes(uint64(l))
  8752. }
  8753. l = len(m.EvidenceHash)
  8754. if l > 0 {
  8755. n += 1 + l + sovTypes(uint64(l))
  8756. }
  8757. l = len(m.ProposerAddress)
  8758. if l > 0 {
  8759. n += 2 + l + sovTypes(uint64(l))
  8760. }
  8761. if m.XXX_unrecognized != nil {
  8762. n += len(m.XXX_unrecognized)
  8763. }
  8764. return n
  8765. }
  8766. func (m *Version) Size() (n int) {
  8767. var l int
  8768. _ = l
  8769. if m.Block != 0 {
  8770. n += 1 + sovTypes(uint64(m.Block))
  8771. }
  8772. if m.App != 0 {
  8773. n += 1 + sovTypes(uint64(m.App))
  8774. }
  8775. if m.XXX_unrecognized != nil {
  8776. n += len(m.XXX_unrecognized)
  8777. }
  8778. return n
  8779. }
  8780. func (m *BlockID) Size() (n int) {
  8781. var l int
  8782. _ = l
  8783. l = len(m.Hash)
  8784. if l > 0 {
  8785. n += 1 + l + sovTypes(uint64(l))
  8786. }
  8787. l = m.PartsHeader.Size()
  8788. n += 1 + l + sovTypes(uint64(l))
  8789. if m.XXX_unrecognized != nil {
  8790. n += len(m.XXX_unrecognized)
  8791. }
  8792. return n
  8793. }
  8794. func (m *PartSetHeader) Size() (n int) {
  8795. var l int
  8796. _ = l
  8797. if m.Total != 0 {
  8798. n += 1 + sovTypes(uint64(m.Total))
  8799. }
  8800. l = len(m.Hash)
  8801. if l > 0 {
  8802. n += 1 + l + sovTypes(uint64(l))
  8803. }
  8804. if m.XXX_unrecognized != nil {
  8805. n += len(m.XXX_unrecognized)
  8806. }
  8807. return n
  8808. }
  8809. func (m *Validator) Size() (n int) {
  8810. var l int
  8811. _ = l
  8812. l = len(m.Address)
  8813. if l > 0 {
  8814. n += 1 + l + sovTypes(uint64(l))
  8815. }
  8816. if m.Power != 0 {
  8817. n += 1 + sovTypes(uint64(m.Power))
  8818. }
  8819. if m.XXX_unrecognized != nil {
  8820. n += len(m.XXX_unrecognized)
  8821. }
  8822. return n
  8823. }
  8824. func (m *ValidatorUpdate) Size() (n int) {
  8825. var l int
  8826. _ = l
  8827. l = m.PubKey.Size()
  8828. n += 1 + l + sovTypes(uint64(l))
  8829. if m.Power != 0 {
  8830. n += 1 + sovTypes(uint64(m.Power))
  8831. }
  8832. if m.XXX_unrecognized != nil {
  8833. n += len(m.XXX_unrecognized)
  8834. }
  8835. return n
  8836. }
  8837. func (m *VoteInfo) Size() (n int) {
  8838. var l int
  8839. _ = l
  8840. l = m.Validator.Size()
  8841. n += 1 + l + sovTypes(uint64(l))
  8842. if m.SignedLastBlock {
  8843. n += 2
  8844. }
  8845. if m.XXX_unrecognized != nil {
  8846. n += len(m.XXX_unrecognized)
  8847. }
  8848. return n
  8849. }
  8850. func (m *PubKey) Size() (n int) {
  8851. var l int
  8852. _ = l
  8853. l = len(m.Type)
  8854. if l > 0 {
  8855. n += 1 + l + sovTypes(uint64(l))
  8856. }
  8857. l = len(m.Data)
  8858. if l > 0 {
  8859. n += 1 + l + sovTypes(uint64(l))
  8860. }
  8861. if m.XXX_unrecognized != nil {
  8862. n += len(m.XXX_unrecognized)
  8863. }
  8864. return n
  8865. }
  8866. func (m *Evidence) Size() (n int) {
  8867. var l int
  8868. _ = l
  8869. l = len(m.Type)
  8870. if l > 0 {
  8871. n += 1 + l + sovTypes(uint64(l))
  8872. }
  8873. l = m.Validator.Size()
  8874. n += 1 + l + sovTypes(uint64(l))
  8875. if m.Height != 0 {
  8876. n += 1 + sovTypes(uint64(m.Height))
  8877. }
  8878. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  8879. n += 1 + l + sovTypes(uint64(l))
  8880. if m.TotalVotingPower != 0 {
  8881. n += 1 + sovTypes(uint64(m.TotalVotingPower))
  8882. }
  8883. if m.XXX_unrecognized != nil {
  8884. n += len(m.XXX_unrecognized)
  8885. }
  8886. return n
  8887. }
  8888. func sovTypes(x uint64) (n int) {
  8889. for {
  8890. n++
  8891. x >>= 7
  8892. if x == 0 {
  8893. break
  8894. }
  8895. }
  8896. return n
  8897. }
  8898. func sozTypes(x uint64) (n int) {
  8899. return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  8900. }
  8901. func (m *Request) Unmarshal(dAtA []byte) error {
  8902. l := len(dAtA)
  8903. iNdEx := 0
  8904. for iNdEx < l {
  8905. preIndex := iNdEx
  8906. var wire uint64
  8907. for shift := uint(0); ; shift += 7 {
  8908. if shift >= 64 {
  8909. return ErrIntOverflowTypes
  8910. }
  8911. if iNdEx >= l {
  8912. return io.ErrUnexpectedEOF
  8913. }
  8914. b := dAtA[iNdEx]
  8915. iNdEx++
  8916. wire |= (uint64(b) & 0x7F) << shift
  8917. if b < 0x80 {
  8918. break
  8919. }
  8920. }
  8921. fieldNum := int32(wire >> 3)
  8922. wireType := int(wire & 0x7)
  8923. if wireType == 4 {
  8924. return fmt.Errorf("proto: Request: wiretype end group for non-group")
  8925. }
  8926. if fieldNum <= 0 {
  8927. return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  8928. }
  8929. switch fieldNum {
  8930. case 2:
  8931. if wireType != 2 {
  8932. return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
  8933. }
  8934. var msglen int
  8935. for shift := uint(0); ; shift += 7 {
  8936. if shift >= 64 {
  8937. return ErrIntOverflowTypes
  8938. }
  8939. if iNdEx >= l {
  8940. return io.ErrUnexpectedEOF
  8941. }
  8942. b := dAtA[iNdEx]
  8943. iNdEx++
  8944. msglen |= (int(b) & 0x7F) << shift
  8945. if b < 0x80 {
  8946. break
  8947. }
  8948. }
  8949. if msglen < 0 {
  8950. return ErrInvalidLengthTypes
  8951. }
  8952. postIndex := iNdEx + msglen
  8953. if postIndex > l {
  8954. return io.ErrUnexpectedEOF
  8955. }
  8956. v := &RequestEcho{}
  8957. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8958. return err
  8959. }
  8960. m.Value = &Request_Echo{v}
  8961. iNdEx = postIndex
  8962. case 3:
  8963. if wireType != 2 {
  8964. return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType)
  8965. }
  8966. var msglen int
  8967. for shift := uint(0); ; shift += 7 {
  8968. if shift >= 64 {
  8969. return ErrIntOverflowTypes
  8970. }
  8971. if iNdEx >= l {
  8972. return io.ErrUnexpectedEOF
  8973. }
  8974. b := dAtA[iNdEx]
  8975. iNdEx++
  8976. msglen |= (int(b) & 0x7F) << shift
  8977. if b < 0x80 {
  8978. break
  8979. }
  8980. }
  8981. if msglen < 0 {
  8982. return ErrInvalidLengthTypes
  8983. }
  8984. postIndex := iNdEx + msglen
  8985. if postIndex > l {
  8986. return io.ErrUnexpectedEOF
  8987. }
  8988. v := &RequestFlush{}
  8989. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8990. return err
  8991. }
  8992. m.Value = &Request_Flush{v}
  8993. iNdEx = postIndex
  8994. case 4:
  8995. if wireType != 2 {
  8996. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  8997. }
  8998. var msglen int
  8999. for shift := uint(0); ; shift += 7 {
  9000. if shift >= 64 {
  9001. return ErrIntOverflowTypes
  9002. }
  9003. if iNdEx >= l {
  9004. return io.ErrUnexpectedEOF
  9005. }
  9006. b := dAtA[iNdEx]
  9007. iNdEx++
  9008. msglen |= (int(b) & 0x7F) << shift
  9009. if b < 0x80 {
  9010. break
  9011. }
  9012. }
  9013. if msglen < 0 {
  9014. return ErrInvalidLengthTypes
  9015. }
  9016. postIndex := iNdEx + msglen
  9017. if postIndex > l {
  9018. return io.ErrUnexpectedEOF
  9019. }
  9020. v := &RequestInfo{}
  9021. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9022. return err
  9023. }
  9024. m.Value = &Request_Info{v}
  9025. iNdEx = postIndex
  9026. case 5:
  9027. if wireType != 2 {
  9028. return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType)
  9029. }
  9030. var msglen int
  9031. for shift := uint(0); ; shift += 7 {
  9032. if shift >= 64 {
  9033. return ErrIntOverflowTypes
  9034. }
  9035. if iNdEx >= l {
  9036. return io.ErrUnexpectedEOF
  9037. }
  9038. b := dAtA[iNdEx]
  9039. iNdEx++
  9040. msglen |= (int(b) & 0x7F) << shift
  9041. if b < 0x80 {
  9042. break
  9043. }
  9044. }
  9045. if msglen < 0 {
  9046. return ErrInvalidLengthTypes
  9047. }
  9048. postIndex := iNdEx + msglen
  9049. if postIndex > l {
  9050. return io.ErrUnexpectedEOF
  9051. }
  9052. v := &RequestSetOption{}
  9053. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9054. return err
  9055. }
  9056. m.Value = &Request_SetOption{v}
  9057. iNdEx = postIndex
  9058. case 6:
  9059. if wireType != 2 {
  9060. return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType)
  9061. }
  9062. var msglen int
  9063. for shift := uint(0); ; shift += 7 {
  9064. if shift >= 64 {
  9065. return ErrIntOverflowTypes
  9066. }
  9067. if iNdEx >= l {
  9068. return io.ErrUnexpectedEOF
  9069. }
  9070. b := dAtA[iNdEx]
  9071. iNdEx++
  9072. msglen |= (int(b) & 0x7F) << shift
  9073. if b < 0x80 {
  9074. break
  9075. }
  9076. }
  9077. if msglen < 0 {
  9078. return ErrInvalidLengthTypes
  9079. }
  9080. postIndex := iNdEx + msglen
  9081. if postIndex > l {
  9082. return io.ErrUnexpectedEOF
  9083. }
  9084. v := &RequestInitChain{}
  9085. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9086. return err
  9087. }
  9088. m.Value = &Request_InitChain{v}
  9089. iNdEx = postIndex
  9090. case 7:
  9091. if wireType != 2 {
  9092. return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  9093. }
  9094. var msglen int
  9095. for shift := uint(0); ; shift += 7 {
  9096. if shift >= 64 {
  9097. return ErrIntOverflowTypes
  9098. }
  9099. if iNdEx >= l {
  9100. return io.ErrUnexpectedEOF
  9101. }
  9102. b := dAtA[iNdEx]
  9103. iNdEx++
  9104. msglen |= (int(b) & 0x7F) << shift
  9105. if b < 0x80 {
  9106. break
  9107. }
  9108. }
  9109. if msglen < 0 {
  9110. return ErrInvalidLengthTypes
  9111. }
  9112. postIndex := iNdEx + msglen
  9113. if postIndex > l {
  9114. return io.ErrUnexpectedEOF
  9115. }
  9116. v := &RequestQuery{}
  9117. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9118. return err
  9119. }
  9120. m.Value = &Request_Query{v}
  9121. iNdEx = postIndex
  9122. case 8:
  9123. if wireType != 2 {
  9124. return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  9125. }
  9126. var msglen int
  9127. for shift := uint(0); ; shift += 7 {
  9128. if shift >= 64 {
  9129. return ErrIntOverflowTypes
  9130. }
  9131. if iNdEx >= l {
  9132. return io.ErrUnexpectedEOF
  9133. }
  9134. b := dAtA[iNdEx]
  9135. iNdEx++
  9136. msglen |= (int(b) & 0x7F) << shift
  9137. if b < 0x80 {
  9138. break
  9139. }
  9140. }
  9141. if msglen < 0 {
  9142. return ErrInvalidLengthTypes
  9143. }
  9144. postIndex := iNdEx + msglen
  9145. if postIndex > l {
  9146. return io.ErrUnexpectedEOF
  9147. }
  9148. v := &RequestBeginBlock{}
  9149. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9150. return err
  9151. }
  9152. m.Value = &Request_BeginBlock{v}
  9153. iNdEx = postIndex
  9154. case 9:
  9155. if wireType != 2 {
  9156. return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
  9157. }
  9158. var msglen int
  9159. for shift := uint(0); ; shift += 7 {
  9160. if shift >= 64 {
  9161. return ErrIntOverflowTypes
  9162. }
  9163. if iNdEx >= l {
  9164. return io.ErrUnexpectedEOF
  9165. }
  9166. b := dAtA[iNdEx]
  9167. iNdEx++
  9168. msglen |= (int(b) & 0x7F) << shift
  9169. if b < 0x80 {
  9170. break
  9171. }
  9172. }
  9173. if msglen < 0 {
  9174. return ErrInvalidLengthTypes
  9175. }
  9176. postIndex := iNdEx + msglen
  9177. if postIndex > l {
  9178. return io.ErrUnexpectedEOF
  9179. }
  9180. v := &RequestCheckTx{}
  9181. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9182. return err
  9183. }
  9184. m.Value = &Request_CheckTx{v}
  9185. iNdEx = postIndex
  9186. case 11:
  9187. if wireType != 2 {
  9188. return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
  9189. }
  9190. var msglen int
  9191. for shift := uint(0); ; shift += 7 {
  9192. if shift >= 64 {
  9193. return ErrIntOverflowTypes
  9194. }
  9195. if iNdEx >= l {
  9196. return io.ErrUnexpectedEOF
  9197. }
  9198. b := dAtA[iNdEx]
  9199. iNdEx++
  9200. msglen |= (int(b) & 0x7F) << shift
  9201. if b < 0x80 {
  9202. break
  9203. }
  9204. }
  9205. if msglen < 0 {
  9206. return ErrInvalidLengthTypes
  9207. }
  9208. postIndex := iNdEx + msglen
  9209. if postIndex > l {
  9210. return io.ErrUnexpectedEOF
  9211. }
  9212. v := &RequestEndBlock{}
  9213. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9214. return err
  9215. }
  9216. m.Value = &Request_EndBlock{v}
  9217. iNdEx = postIndex
  9218. case 12:
  9219. if wireType != 2 {
  9220. return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  9221. }
  9222. var msglen int
  9223. for shift := uint(0); ; shift += 7 {
  9224. if shift >= 64 {
  9225. return ErrIntOverflowTypes
  9226. }
  9227. if iNdEx >= l {
  9228. return io.ErrUnexpectedEOF
  9229. }
  9230. b := dAtA[iNdEx]
  9231. iNdEx++
  9232. msglen |= (int(b) & 0x7F) << shift
  9233. if b < 0x80 {
  9234. break
  9235. }
  9236. }
  9237. if msglen < 0 {
  9238. return ErrInvalidLengthTypes
  9239. }
  9240. postIndex := iNdEx + msglen
  9241. if postIndex > l {
  9242. return io.ErrUnexpectedEOF
  9243. }
  9244. v := &RequestCommit{}
  9245. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9246. return err
  9247. }
  9248. m.Value = &Request_Commit{v}
  9249. iNdEx = postIndex
  9250. case 19:
  9251. if wireType != 2 {
  9252. return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
  9253. }
  9254. var msglen int
  9255. for shift := uint(0); ; shift += 7 {
  9256. if shift >= 64 {
  9257. return ErrIntOverflowTypes
  9258. }
  9259. if iNdEx >= l {
  9260. return io.ErrUnexpectedEOF
  9261. }
  9262. b := dAtA[iNdEx]
  9263. iNdEx++
  9264. msglen |= (int(b) & 0x7F) << shift
  9265. if b < 0x80 {
  9266. break
  9267. }
  9268. }
  9269. if msglen < 0 {
  9270. return ErrInvalidLengthTypes
  9271. }
  9272. postIndex := iNdEx + msglen
  9273. if postIndex > l {
  9274. return io.ErrUnexpectedEOF
  9275. }
  9276. v := &RequestDeliverTx{}
  9277. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9278. return err
  9279. }
  9280. m.Value = &Request_DeliverTx{v}
  9281. iNdEx = postIndex
  9282. default:
  9283. iNdEx = preIndex
  9284. skippy, err := skipTypes(dAtA[iNdEx:])
  9285. if err != nil {
  9286. return err
  9287. }
  9288. if skippy < 0 {
  9289. return ErrInvalidLengthTypes
  9290. }
  9291. if (iNdEx + skippy) > l {
  9292. return io.ErrUnexpectedEOF
  9293. }
  9294. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9295. iNdEx += skippy
  9296. }
  9297. }
  9298. if iNdEx > l {
  9299. return io.ErrUnexpectedEOF
  9300. }
  9301. return nil
  9302. }
  9303. func (m *RequestEcho) Unmarshal(dAtA []byte) error {
  9304. l := len(dAtA)
  9305. iNdEx := 0
  9306. for iNdEx < l {
  9307. preIndex := iNdEx
  9308. var wire uint64
  9309. for shift := uint(0); ; shift += 7 {
  9310. if shift >= 64 {
  9311. return ErrIntOverflowTypes
  9312. }
  9313. if iNdEx >= l {
  9314. return io.ErrUnexpectedEOF
  9315. }
  9316. b := dAtA[iNdEx]
  9317. iNdEx++
  9318. wire |= (uint64(b) & 0x7F) << shift
  9319. if b < 0x80 {
  9320. break
  9321. }
  9322. }
  9323. fieldNum := int32(wire >> 3)
  9324. wireType := int(wire & 0x7)
  9325. if wireType == 4 {
  9326. return fmt.Errorf("proto: RequestEcho: wiretype end group for non-group")
  9327. }
  9328. if fieldNum <= 0 {
  9329. return fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire)
  9330. }
  9331. switch fieldNum {
  9332. case 1:
  9333. if wireType != 2 {
  9334. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  9335. }
  9336. var stringLen uint64
  9337. for shift := uint(0); ; shift += 7 {
  9338. if shift >= 64 {
  9339. return ErrIntOverflowTypes
  9340. }
  9341. if iNdEx >= l {
  9342. return io.ErrUnexpectedEOF
  9343. }
  9344. b := dAtA[iNdEx]
  9345. iNdEx++
  9346. stringLen |= (uint64(b) & 0x7F) << shift
  9347. if b < 0x80 {
  9348. break
  9349. }
  9350. }
  9351. intStringLen := int(stringLen)
  9352. if intStringLen < 0 {
  9353. return ErrInvalidLengthTypes
  9354. }
  9355. postIndex := iNdEx + intStringLen
  9356. if postIndex > l {
  9357. return io.ErrUnexpectedEOF
  9358. }
  9359. m.Message = string(dAtA[iNdEx:postIndex])
  9360. iNdEx = postIndex
  9361. default:
  9362. iNdEx = preIndex
  9363. skippy, err := skipTypes(dAtA[iNdEx:])
  9364. if err != nil {
  9365. return err
  9366. }
  9367. if skippy < 0 {
  9368. return ErrInvalidLengthTypes
  9369. }
  9370. if (iNdEx + skippy) > l {
  9371. return io.ErrUnexpectedEOF
  9372. }
  9373. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9374. iNdEx += skippy
  9375. }
  9376. }
  9377. if iNdEx > l {
  9378. return io.ErrUnexpectedEOF
  9379. }
  9380. return nil
  9381. }
  9382. func (m *RequestFlush) Unmarshal(dAtA []byte) error {
  9383. l := len(dAtA)
  9384. iNdEx := 0
  9385. for iNdEx < l {
  9386. preIndex := iNdEx
  9387. var wire uint64
  9388. for shift := uint(0); ; shift += 7 {
  9389. if shift >= 64 {
  9390. return ErrIntOverflowTypes
  9391. }
  9392. if iNdEx >= l {
  9393. return io.ErrUnexpectedEOF
  9394. }
  9395. b := dAtA[iNdEx]
  9396. iNdEx++
  9397. wire |= (uint64(b) & 0x7F) << shift
  9398. if b < 0x80 {
  9399. break
  9400. }
  9401. }
  9402. fieldNum := int32(wire >> 3)
  9403. wireType := int(wire & 0x7)
  9404. if wireType == 4 {
  9405. return fmt.Errorf("proto: RequestFlush: wiretype end group for non-group")
  9406. }
  9407. if fieldNum <= 0 {
  9408. return fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire)
  9409. }
  9410. switch fieldNum {
  9411. default:
  9412. iNdEx = preIndex
  9413. skippy, err := skipTypes(dAtA[iNdEx:])
  9414. if err != nil {
  9415. return err
  9416. }
  9417. if skippy < 0 {
  9418. return ErrInvalidLengthTypes
  9419. }
  9420. if (iNdEx + skippy) > l {
  9421. return io.ErrUnexpectedEOF
  9422. }
  9423. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9424. iNdEx += skippy
  9425. }
  9426. }
  9427. if iNdEx > l {
  9428. return io.ErrUnexpectedEOF
  9429. }
  9430. return nil
  9431. }
  9432. func (m *RequestInfo) Unmarshal(dAtA []byte) error {
  9433. l := len(dAtA)
  9434. iNdEx := 0
  9435. for iNdEx < l {
  9436. preIndex := iNdEx
  9437. var wire uint64
  9438. for shift := uint(0); ; shift += 7 {
  9439. if shift >= 64 {
  9440. return ErrIntOverflowTypes
  9441. }
  9442. if iNdEx >= l {
  9443. return io.ErrUnexpectedEOF
  9444. }
  9445. b := dAtA[iNdEx]
  9446. iNdEx++
  9447. wire |= (uint64(b) & 0x7F) << shift
  9448. if b < 0x80 {
  9449. break
  9450. }
  9451. }
  9452. fieldNum := int32(wire >> 3)
  9453. wireType := int(wire & 0x7)
  9454. if wireType == 4 {
  9455. return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group")
  9456. }
  9457. if fieldNum <= 0 {
  9458. return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  9459. }
  9460. switch fieldNum {
  9461. case 1:
  9462. if wireType != 2 {
  9463. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  9464. }
  9465. var stringLen uint64
  9466. for shift := uint(0); ; shift += 7 {
  9467. if shift >= 64 {
  9468. return ErrIntOverflowTypes
  9469. }
  9470. if iNdEx >= l {
  9471. return io.ErrUnexpectedEOF
  9472. }
  9473. b := dAtA[iNdEx]
  9474. iNdEx++
  9475. stringLen |= (uint64(b) & 0x7F) << shift
  9476. if b < 0x80 {
  9477. break
  9478. }
  9479. }
  9480. intStringLen := int(stringLen)
  9481. if intStringLen < 0 {
  9482. return ErrInvalidLengthTypes
  9483. }
  9484. postIndex := iNdEx + intStringLen
  9485. if postIndex > l {
  9486. return io.ErrUnexpectedEOF
  9487. }
  9488. m.Version = string(dAtA[iNdEx:postIndex])
  9489. iNdEx = postIndex
  9490. case 2:
  9491. if wireType != 0 {
  9492. return fmt.Errorf("proto: wrong wireType = %d for field BlockVersion", wireType)
  9493. }
  9494. m.BlockVersion = 0
  9495. for shift := uint(0); ; shift += 7 {
  9496. if shift >= 64 {
  9497. return ErrIntOverflowTypes
  9498. }
  9499. if iNdEx >= l {
  9500. return io.ErrUnexpectedEOF
  9501. }
  9502. b := dAtA[iNdEx]
  9503. iNdEx++
  9504. m.BlockVersion |= (uint64(b) & 0x7F) << shift
  9505. if b < 0x80 {
  9506. break
  9507. }
  9508. }
  9509. case 3:
  9510. if wireType != 0 {
  9511. return fmt.Errorf("proto: wrong wireType = %d for field P2PVersion", wireType)
  9512. }
  9513. m.P2PVersion = 0
  9514. for shift := uint(0); ; shift += 7 {
  9515. if shift >= 64 {
  9516. return ErrIntOverflowTypes
  9517. }
  9518. if iNdEx >= l {
  9519. return io.ErrUnexpectedEOF
  9520. }
  9521. b := dAtA[iNdEx]
  9522. iNdEx++
  9523. m.P2PVersion |= (uint64(b) & 0x7F) << shift
  9524. if b < 0x80 {
  9525. break
  9526. }
  9527. }
  9528. default:
  9529. iNdEx = preIndex
  9530. skippy, err := skipTypes(dAtA[iNdEx:])
  9531. if err != nil {
  9532. return err
  9533. }
  9534. if skippy < 0 {
  9535. return ErrInvalidLengthTypes
  9536. }
  9537. if (iNdEx + skippy) > l {
  9538. return io.ErrUnexpectedEOF
  9539. }
  9540. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9541. iNdEx += skippy
  9542. }
  9543. }
  9544. if iNdEx > l {
  9545. return io.ErrUnexpectedEOF
  9546. }
  9547. return nil
  9548. }
  9549. func (m *RequestSetOption) Unmarshal(dAtA []byte) error {
  9550. l := len(dAtA)
  9551. iNdEx := 0
  9552. for iNdEx < l {
  9553. preIndex := iNdEx
  9554. var wire uint64
  9555. for shift := uint(0); ; shift += 7 {
  9556. if shift >= 64 {
  9557. return ErrIntOverflowTypes
  9558. }
  9559. if iNdEx >= l {
  9560. return io.ErrUnexpectedEOF
  9561. }
  9562. b := dAtA[iNdEx]
  9563. iNdEx++
  9564. wire |= (uint64(b) & 0x7F) << shift
  9565. if b < 0x80 {
  9566. break
  9567. }
  9568. }
  9569. fieldNum := int32(wire >> 3)
  9570. wireType := int(wire & 0x7)
  9571. if wireType == 4 {
  9572. return fmt.Errorf("proto: RequestSetOption: wiretype end group for non-group")
  9573. }
  9574. if fieldNum <= 0 {
  9575. return fmt.Errorf("proto: RequestSetOption: illegal tag %d (wire type %d)", fieldNum, wire)
  9576. }
  9577. switch fieldNum {
  9578. case 1:
  9579. if wireType != 2 {
  9580. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  9581. }
  9582. var stringLen uint64
  9583. for shift := uint(0); ; shift += 7 {
  9584. if shift >= 64 {
  9585. return ErrIntOverflowTypes
  9586. }
  9587. if iNdEx >= l {
  9588. return io.ErrUnexpectedEOF
  9589. }
  9590. b := dAtA[iNdEx]
  9591. iNdEx++
  9592. stringLen |= (uint64(b) & 0x7F) << shift
  9593. if b < 0x80 {
  9594. break
  9595. }
  9596. }
  9597. intStringLen := int(stringLen)
  9598. if intStringLen < 0 {
  9599. return ErrInvalidLengthTypes
  9600. }
  9601. postIndex := iNdEx + intStringLen
  9602. if postIndex > l {
  9603. return io.ErrUnexpectedEOF
  9604. }
  9605. m.Key = string(dAtA[iNdEx:postIndex])
  9606. iNdEx = postIndex
  9607. case 2:
  9608. if wireType != 2 {
  9609. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  9610. }
  9611. var stringLen uint64
  9612. for shift := uint(0); ; shift += 7 {
  9613. if shift >= 64 {
  9614. return ErrIntOverflowTypes
  9615. }
  9616. if iNdEx >= l {
  9617. return io.ErrUnexpectedEOF
  9618. }
  9619. b := dAtA[iNdEx]
  9620. iNdEx++
  9621. stringLen |= (uint64(b) & 0x7F) << shift
  9622. if b < 0x80 {
  9623. break
  9624. }
  9625. }
  9626. intStringLen := int(stringLen)
  9627. if intStringLen < 0 {
  9628. return ErrInvalidLengthTypes
  9629. }
  9630. postIndex := iNdEx + intStringLen
  9631. if postIndex > l {
  9632. return io.ErrUnexpectedEOF
  9633. }
  9634. m.Value = string(dAtA[iNdEx:postIndex])
  9635. iNdEx = postIndex
  9636. default:
  9637. iNdEx = preIndex
  9638. skippy, err := skipTypes(dAtA[iNdEx:])
  9639. if err != nil {
  9640. return err
  9641. }
  9642. if skippy < 0 {
  9643. return ErrInvalidLengthTypes
  9644. }
  9645. if (iNdEx + skippy) > l {
  9646. return io.ErrUnexpectedEOF
  9647. }
  9648. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9649. iNdEx += skippy
  9650. }
  9651. }
  9652. if iNdEx > l {
  9653. return io.ErrUnexpectedEOF
  9654. }
  9655. return nil
  9656. }
  9657. func (m *RequestInitChain) Unmarshal(dAtA []byte) error {
  9658. l := len(dAtA)
  9659. iNdEx := 0
  9660. for iNdEx < l {
  9661. preIndex := iNdEx
  9662. var wire uint64
  9663. for shift := uint(0); ; shift += 7 {
  9664. if shift >= 64 {
  9665. return ErrIntOverflowTypes
  9666. }
  9667. if iNdEx >= l {
  9668. return io.ErrUnexpectedEOF
  9669. }
  9670. b := dAtA[iNdEx]
  9671. iNdEx++
  9672. wire |= (uint64(b) & 0x7F) << shift
  9673. if b < 0x80 {
  9674. break
  9675. }
  9676. }
  9677. fieldNum := int32(wire >> 3)
  9678. wireType := int(wire & 0x7)
  9679. if wireType == 4 {
  9680. return fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group")
  9681. }
  9682. if fieldNum <= 0 {
  9683. return fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire)
  9684. }
  9685. switch fieldNum {
  9686. case 1:
  9687. if wireType != 2 {
  9688. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  9689. }
  9690. var msglen int
  9691. for shift := uint(0); ; shift += 7 {
  9692. if shift >= 64 {
  9693. return ErrIntOverflowTypes
  9694. }
  9695. if iNdEx >= l {
  9696. return io.ErrUnexpectedEOF
  9697. }
  9698. b := dAtA[iNdEx]
  9699. iNdEx++
  9700. msglen |= (int(b) & 0x7F) << shift
  9701. if b < 0x80 {
  9702. break
  9703. }
  9704. }
  9705. if msglen < 0 {
  9706. return ErrInvalidLengthTypes
  9707. }
  9708. postIndex := iNdEx + msglen
  9709. if postIndex > l {
  9710. return io.ErrUnexpectedEOF
  9711. }
  9712. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  9713. return err
  9714. }
  9715. iNdEx = postIndex
  9716. case 2:
  9717. if wireType != 2 {
  9718. return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType)
  9719. }
  9720. var stringLen uint64
  9721. for shift := uint(0); ; shift += 7 {
  9722. if shift >= 64 {
  9723. return ErrIntOverflowTypes
  9724. }
  9725. if iNdEx >= l {
  9726. return io.ErrUnexpectedEOF
  9727. }
  9728. b := dAtA[iNdEx]
  9729. iNdEx++
  9730. stringLen |= (uint64(b) & 0x7F) << shift
  9731. if b < 0x80 {
  9732. break
  9733. }
  9734. }
  9735. intStringLen := int(stringLen)
  9736. if intStringLen < 0 {
  9737. return ErrInvalidLengthTypes
  9738. }
  9739. postIndex := iNdEx + intStringLen
  9740. if postIndex > l {
  9741. return io.ErrUnexpectedEOF
  9742. }
  9743. m.ChainId = string(dAtA[iNdEx:postIndex])
  9744. iNdEx = postIndex
  9745. case 3:
  9746. if wireType != 2 {
  9747. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  9748. }
  9749. var msglen int
  9750. for shift := uint(0); ; shift += 7 {
  9751. if shift >= 64 {
  9752. return ErrIntOverflowTypes
  9753. }
  9754. if iNdEx >= l {
  9755. return io.ErrUnexpectedEOF
  9756. }
  9757. b := dAtA[iNdEx]
  9758. iNdEx++
  9759. msglen |= (int(b) & 0x7F) << shift
  9760. if b < 0x80 {
  9761. break
  9762. }
  9763. }
  9764. if msglen < 0 {
  9765. return ErrInvalidLengthTypes
  9766. }
  9767. postIndex := iNdEx + msglen
  9768. if postIndex > l {
  9769. return io.ErrUnexpectedEOF
  9770. }
  9771. if m.ConsensusParams == nil {
  9772. m.ConsensusParams = &ConsensusParams{}
  9773. }
  9774. if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9775. return err
  9776. }
  9777. iNdEx = postIndex
  9778. case 4:
  9779. if wireType != 2 {
  9780. return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  9781. }
  9782. var msglen int
  9783. for shift := uint(0); ; shift += 7 {
  9784. if shift >= 64 {
  9785. return ErrIntOverflowTypes
  9786. }
  9787. if iNdEx >= l {
  9788. return io.ErrUnexpectedEOF
  9789. }
  9790. b := dAtA[iNdEx]
  9791. iNdEx++
  9792. msglen |= (int(b) & 0x7F) << shift
  9793. if b < 0x80 {
  9794. break
  9795. }
  9796. }
  9797. if msglen < 0 {
  9798. return ErrInvalidLengthTypes
  9799. }
  9800. postIndex := iNdEx + msglen
  9801. if postIndex > l {
  9802. return io.ErrUnexpectedEOF
  9803. }
  9804. m.Validators = append(m.Validators, ValidatorUpdate{})
  9805. if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9806. return err
  9807. }
  9808. iNdEx = postIndex
  9809. case 5:
  9810. if wireType != 2 {
  9811. return fmt.Errorf("proto: wrong wireType = %d for field AppStateBytes", wireType)
  9812. }
  9813. var byteLen int
  9814. for shift := uint(0); ; shift += 7 {
  9815. if shift >= 64 {
  9816. return ErrIntOverflowTypes
  9817. }
  9818. if iNdEx >= l {
  9819. return io.ErrUnexpectedEOF
  9820. }
  9821. b := dAtA[iNdEx]
  9822. iNdEx++
  9823. byteLen |= (int(b) & 0x7F) << shift
  9824. if b < 0x80 {
  9825. break
  9826. }
  9827. }
  9828. if byteLen < 0 {
  9829. return ErrInvalidLengthTypes
  9830. }
  9831. postIndex := iNdEx + byteLen
  9832. if postIndex > l {
  9833. return io.ErrUnexpectedEOF
  9834. }
  9835. m.AppStateBytes = append(m.AppStateBytes[:0], dAtA[iNdEx:postIndex]...)
  9836. if m.AppStateBytes == nil {
  9837. m.AppStateBytes = []byte{}
  9838. }
  9839. iNdEx = postIndex
  9840. default:
  9841. iNdEx = preIndex
  9842. skippy, err := skipTypes(dAtA[iNdEx:])
  9843. if err != nil {
  9844. return err
  9845. }
  9846. if skippy < 0 {
  9847. return ErrInvalidLengthTypes
  9848. }
  9849. if (iNdEx + skippy) > l {
  9850. return io.ErrUnexpectedEOF
  9851. }
  9852. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9853. iNdEx += skippy
  9854. }
  9855. }
  9856. if iNdEx > l {
  9857. return io.ErrUnexpectedEOF
  9858. }
  9859. return nil
  9860. }
  9861. func (m *RequestQuery) Unmarshal(dAtA []byte) error {
  9862. l := len(dAtA)
  9863. iNdEx := 0
  9864. for iNdEx < l {
  9865. preIndex := iNdEx
  9866. var wire uint64
  9867. for shift := uint(0); ; shift += 7 {
  9868. if shift >= 64 {
  9869. return ErrIntOverflowTypes
  9870. }
  9871. if iNdEx >= l {
  9872. return io.ErrUnexpectedEOF
  9873. }
  9874. b := dAtA[iNdEx]
  9875. iNdEx++
  9876. wire |= (uint64(b) & 0x7F) << shift
  9877. if b < 0x80 {
  9878. break
  9879. }
  9880. }
  9881. fieldNum := int32(wire >> 3)
  9882. wireType := int(wire & 0x7)
  9883. if wireType == 4 {
  9884. return fmt.Errorf("proto: RequestQuery: wiretype end group for non-group")
  9885. }
  9886. if fieldNum <= 0 {
  9887. return fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  9888. }
  9889. switch fieldNum {
  9890. case 1:
  9891. if wireType != 2 {
  9892. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  9893. }
  9894. var byteLen int
  9895. for shift := uint(0); ; shift += 7 {
  9896. if shift >= 64 {
  9897. return ErrIntOverflowTypes
  9898. }
  9899. if iNdEx >= l {
  9900. return io.ErrUnexpectedEOF
  9901. }
  9902. b := dAtA[iNdEx]
  9903. iNdEx++
  9904. byteLen |= (int(b) & 0x7F) << shift
  9905. if b < 0x80 {
  9906. break
  9907. }
  9908. }
  9909. if byteLen < 0 {
  9910. return ErrInvalidLengthTypes
  9911. }
  9912. postIndex := iNdEx + byteLen
  9913. if postIndex > l {
  9914. return io.ErrUnexpectedEOF
  9915. }
  9916. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  9917. if m.Data == nil {
  9918. m.Data = []byte{}
  9919. }
  9920. iNdEx = postIndex
  9921. case 2:
  9922. if wireType != 2 {
  9923. return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  9924. }
  9925. var stringLen uint64
  9926. for shift := uint(0); ; shift += 7 {
  9927. if shift >= 64 {
  9928. return ErrIntOverflowTypes
  9929. }
  9930. if iNdEx >= l {
  9931. return io.ErrUnexpectedEOF
  9932. }
  9933. b := dAtA[iNdEx]
  9934. iNdEx++
  9935. stringLen |= (uint64(b) & 0x7F) << shift
  9936. if b < 0x80 {
  9937. break
  9938. }
  9939. }
  9940. intStringLen := int(stringLen)
  9941. if intStringLen < 0 {
  9942. return ErrInvalidLengthTypes
  9943. }
  9944. postIndex := iNdEx + intStringLen
  9945. if postIndex > l {
  9946. return io.ErrUnexpectedEOF
  9947. }
  9948. m.Path = string(dAtA[iNdEx:postIndex])
  9949. iNdEx = postIndex
  9950. case 3:
  9951. if wireType != 0 {
  9952. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  9953. }
  9954. m.Height = 0
  9955. for shift := uint(0); ; shift += 7 {
  9956. if shift >= 64 {
  9957. return ErrIntOverflowTypes
  9958. }
  9959. if iNdEx >= l {
  9960. return io.ErrUnexpectedEOF
  9961. }
  9962. b := dAtA[iNdEx]
  9963. iNdEx++
  9964. m.Height |= (int64(b) & 0x7F) << shift
  9965. if b < 0x80 {
  9966. break
  9967. }
  9968. }
  9969. case 4:
  9970. if wireType != 0 {
  9971. return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType)
  9972. }
  9973. var v int
  9974. for shift := uint(0); ; shift += 7 {
  9975. if shift >= 64 {
  9976. return ErrIntOverflowTypes
  9977. }
  9978. if iNdEx >= l {
  9979. return io.ErrUnexpectedEOF
  9980. }
  9981. b := dAtA[iNdEx]
  9982. iNdEx++
  9983. v |= (int(b) & 0x7F) << shift
  9984. if b < 0x80 {
  9985. break
  9986. }
  9987. }
  9988. m.Prove = bool(v != 0)
  9989. default:
  9990. iNdEx = preIndex
  9991. skippy, err := skipTypes(dAtA[iNdEx:])
  9992. if err != nil {
  9993. return err
  9994. }
  9995. if skippy < 0 {
  9996. return ErrInvalidLengthTypes
  9997. }
  9998. if (iNdEx + skippy) > l {
  9999. return io.ErrUnexpectedEOF
  10000. }
  10001. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10002. iNdEx += skippy
  10003. }
  10004. }
  10005. if iNdEx > l {
  10006. return io.ErrUnexpectedEOF
  10007. }
  10008. return nil
  10009. }
  10010. func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error {
  10011. l := len(dAtA)
  10012. iNdEx := 0
  10013. for iNdEx < l {
  10014. preIndex := iNdEx
  10015. var wire uint64
  10016. for shift := uint(0); ; shift += 7 {
  10017. if shift >= 64 {
  10018. return ErrIntOverflowTypes
  10019. }
  10020. if iNdEx >= l {
  10021. return io.ErrUnexpectedEOF
  10022. }
  10023. b := dAtA[iNdEx]
  10024. iNdEx++
  10025. wire |= (uint64(b) & 0x7F) << shift
  10026. if b < 0x80 {
  10027. break
  10028. }
  10029. }
  10030. fieldNum := int32(wire >> 3)
  10031. wireType := int(wire & 0x7)
  10032. if wireType == 4 {
  10033. return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group")
  10034. }
  10035. if fieldNum <= 0 {
  10036. return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  10037. }
  10038. switch fieldNum {
  10039. case 1:
  10040. if wireType != 2 {
  10041. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  10042. }
  10043. var byteLen int
  10044. for shift := uint(0); ; shift += 7 {
  10045. if shift >= 64 {
  10046. return ErrIntOverflowTypes
  10047. }
  10048. if iNdEx >= l {
  10049. return io.ErrUnexpectedEOF
  10050. }
  10051. b := dAtA[iNdEx]
  10052. iNdEx++
  10053. byteLen |= (int(b) & 0x7F) << shift
  10054. if b < 0x80 {
  10055. break
  10056. }
  10057. }
  10058. if byteLen < 0 {
  10059. return ErrInvalidLengthTypes
  10060. }
  10061. postIndex := iNdEx + byteLen
  10062. if postIndex > l {
  10063. return io.ErrUnexpectedEOF
  10064. }
  10065. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  10066. if m.Hash == nil {
  10067. m.Hash = []byte{}
  10068. }
  10069. iNdEx = postIndex
  10070. case 2:
  10071. if wireType != 2 {
  10072. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  10073. }
  10074. var msglen int
  10075. for shift := uint(0); ; shift += 7 {
  10076. if shift >= 64 {
  10077. return ErrIntOverflowTypes
  10078. }
  10079. if iNdEx >= l {
  10080. return io.ErrUnexpectedEOF
  10081. }
  10082. b := dAtA[iNdEx]
  10083. iNdEx++
  10084. msglen |= (int(b) & 0x7F) << shift
  10085. if b < 0x80 {
  10086. break
  10087. }
  10088. }
  10089. if msglen < 0 {
  10090. return ErrInvalidLengthTypes
  10091. }
  10092. postIndex := iNdEx + msglen
  10093. if postIndex > l {
  10094. return io.ErrUnexpectedEOF
  10095. }
  10096. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10097. return err
  10098. }
  10099. iNdEx = postIndex
  10100. case 3:
  10101. if wireType != 2 {
  10102. return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType)
  10103. }
  10104. var msglen int
  10105. for shift := uint(0); ; shift += 7 {
  10106. if shift >= 64 {
  10107. return ErrIntOverflowTypes
  10108. }
  10109. if iNdEx >= l {
  10110. return io.ErrUnexpectedEOF
  10111. }
  10112. b := dAtA[iNdEx]
  10113. iNdEx++
  10114. msglen |= (int(b) & 0x7F) << shift
  10115. if b < 0x80 {
  10116. break
  10117. }
  10118. }
  10119. if msglen < 0 {
  10120. return ErrInvalidLengthTypes
  10121. }
  10122. postIndex := iNdEx + msglen
  10123. if postIndex > l {
  10124. return io.ErrUnexpectedEOF
  10125. }
  10126. if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10127. return err
  10128. }
  10129. iNdEx = postIndex
  10130. case 4:
  10131. if wireType != 2 {
  10132. return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType)
  10133. }
  10134. var msglen int
  10135. for shift := uint(0); ; shift += 7 {
  10136. if shift >= 64 {
  10137. return ErrIntOverflowTypes
  10138. }
  10139. if iNdEx >= l {
  10140. return io.ErrUnexpectedEOF
  10141. }
  10142. b := dAtA[iNdEx]
  10143. iNdEx++
  10144. msglen |= (int(b) & 0x7F) << shift
  10145. if b < 0x80 {
  10146. break
  10147. }
  10148. }
  10149. if msglen < 0 {
  10150. return ErrInvalidLengthTypes
  10151. }
  10152. postIndex := iNdEx + msglen
  10153. if postIndex > l {
  10154. return io.ErrUnexpectedEOF
  10155. }
  10156. m.ByzantineValidators = append(m.ByzantineValidators, Evidence{})
  10157. if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10158. return err
  10159. }
  10160. iNdEx = postIndex
  10161. default:
  10162. iNdEx = preIndex
  10163. skippy, err := skipTypes(dAtA[iNdEx:])
  10164. if err != nil {
  10165. return err
  10166. }
  10167. if skippy < 0 {
  10168. return ErrInvalidLengthTypes
  10169. }
  10170. if (iNdEx + skippy) > l {
  10171. return io.ErrUnexpectedEOF
  10172. }
  10173. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10174. iNdEx += skippy
  10175. }
  10176. }
  10177. if iNdEx > l {
  10178. return io.ErrUnexpectedEOF
  10179. }
  10180. return nil
  10181. }
  10182. func (m *RequestCheckTx) Unmarshal(dAtA []byte) error {
  10183. l := len(dAtA)
  10184. iNdEx := 0
  10185. for iNdEx < l {
  10186. preIndex := iNdEx
  10187. var wire uint64
  10188. for shift := uint(0); ; shift += 7 {
  10189. if shift >= 64 {
  10190. return ErrIntOverflowTypes
  10191. }
  10192. if iNdEx >= l {
  10193. return io.ErrUnexpectedEOF
  10194. }
  10195. b := dAtA[iNdEx]
  10196. iNdEx++
  10197. wire |= (uint64(b) & 0x7F) << shift
  10198. if b < 0x80 {
  10199. break
  10200. }
  10201. }
  10202. fieldNum := int32(wire >> 3)
  10203. wireType := int(wire & 0x7)
  10204. if wireType == 4 {
  10205. return fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group")
  10206. }
  10207. if fieldNum <= 0 {
  10208. return fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire)
  10209. }
  10210. switch fieldNum {
  10211. case 1:
  10212. if wireType != 2 {
  10213. return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  10214. }
  10215. var byteLen int
  10216. for shift := uint(0); ; shift += 7 {
  10217. if shift >= 64 {
  10218. return ErrIntOverflowTypes
  10219. }
  10220. if iNdEx >= l {
  10221. return io.ErrUnexpectedEOF
  10222. }
  10223. b := dAtA[iNdEx]
  10224. iNdEx++
  10225. byteLen |= (int(b) & 0x7F) << shift
  10226. if b < 0x80 {
  10227. break
  10228. }
  10229. }
  10230. if byteLen < 0 {
  10231. return ErrInvalidLengthTypes
  10232. }
  10233. postIndex := iNdEx + byteLen
  10234. if postIndex > l {
  10235. return io.ErrUnexpectedEOF
  10236. }
  10237. m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  10238. if m.Tx == nil {
  10239. m.Tx = []byte{}
  10240. }
  10241. iNdEx = postIndex
  10242. default:
  10243. iNdEx = preIndex
  10244. skippy, err := skipTypes(dAtA[iNdEx:])
  10245. if err != nil {
  10246. return err
  10247. }
  10248. if skippy < 0 {
  10249. return ErrInvalidLengthTypes
  10250. }
  10251. if (iNdEx + skippy) > l {
  10252. return io.ErrUnexpectedEOF
  10253. }
  10254. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10255. iNdEx += skippy
  10256. }
  10257. }
  10258. if iNdEx > l {
  10259. return io.ErrUnexpectedEOF
  10260. }
  10261. return nil
  10262. }
  10263. func (m *RequestDeliverTx) Unmarshal(dAtA []byte) error {
  10264. l := len(dAtA)
  10265. iNdEx := 0
  10266. for iNdEx < l {
  10267. preIndex := iNdEx
  10268. var wire uint64
  10269. for shift := uint(0); ; shift += 7 {
  10270. if shift >= 64 {
  10271. return ErrIntOverflowTypes
  10272. }
  10273. if iNdEx >= l {
  10274. return io.ErrUnexpectedEOF
  10275. }
  10276. b := dAtA[iNdEx]
  10277. iNdEx++
  10278. wire |= (uint64(b) & 0x7F) << shift
  10279. if b < 0x80 {
  10280. break
  10281. }
  10282. }
  10283. fieldNum := int32(wire >> 3)
  10284. wireType := int(wire & 0x7)
  10285. if wireType == 4 {
  10286. return fmt.Errorf("proto: RequestDeliverTx: wiretype end group for non-group")
  10287. }
  10288. if fieldNum <= 0 {
  10289. return fmt.Errorf("proto: RequestDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire)
  10290. }
  10291. switch fieldNum {
  10292. case 1:
  10293. if wireType != 2 {
  10294. return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  10295. }
  10296. var byteLen int
  10297. for shift := uint(0); ; shift += 7 {
  10298. if shift >= 64 {
  10299. return ErrIntOverflowTypes
  10300. }
  10301. if iNdEx >= l {
  10302. return io.ErrUnexpectedEOF
  10303. }
  10304. b := dAtA[iNdEx]
  10305. iNdEx++
  10306. byteLen |= (int(b) & 0x7F) << shift
  10307. if b < 0x80 {
  10308. break
  10309. }
  10310. }
  10311. if byteLen < 0 {
  10312. return ErrInvalidLengthTypes
  10313. }
  10314. postIndex := iNdEx + byteLen
  10315. if postIndex > l {
  10316. return io.ErrUnexpectedEOF
  10317. }
  10318. m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  10319. if m.Tx == nil {
  10320. m.Tx = []byte{}
  10321. }
  10322. iNdEx = postIndex
  10323. default:
  10324. iNdEx = preIndex
  10325. skippy, err := skipTypes(dAtA[iNdEx:])
  10326. if err != nil {
  10327. return err
  10328. }
  10329. if skippy < 0 {
  10330. return ErrInvalidLengthTypes
  10331. }
  10332. if (iNdEx + skippy) > l {
  10333. return io.ErrUnexpectedEOF
  10334. }
  10335. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10336. iNdEx += skippy
  10337. }
  10338. }
  10339. if iNdEx > l {
  10340. return io.ErrUnexpectedEOF
  10341. }
  10342. return nil
  10343. }
  10344. func (m *RequestEndBlock) Unmarshal(dAtA []byte) error {
  10345. l := len(dAtA)
  10346. iNdEx := 0
  10347. for iNdEx < l {
  10348. preIndex := iNdEx
  10349. var wire uint64
  10350. for shift := uint(0); ; shift += 7 {
  10351. if shift >= 64 {
  10352. return ErrIntOverflowTypes
  10353. }
  10354. if iNdEx >= l {
  10355. return io.ErrUnexpectedEOF
  10356. }
  10357. b := dAtA[iNdEx]
  10358. iNdEx++
  10359. wire |= (uint64(b) & 0x7F) << shift
  10360. if b < 0x80 {
  10361. break
  10362. }
  10363. }
  10364. fieldNum := int32(wire >> 3)
  10365. wireType := int(wire & 0x7)
  10366. if wireType == 4 {
  10367. return fmt.Errorf("proto: RequestEndBlock: wiretype end group for non-group")
  10368. }
  10369. if fieldNum <= 0 {
  10370. return fmt.Errorf("proto: RequestEndBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  10371. }
  10372. switch fieldNum {
  10373. case 1:
  10374. if wireType != 0 {
  10375. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  10376. }
  10377. m.Height = 0
  10378. for shift := uint(0); ; shift += 7 {
  10379. if shift >= 64 {
  10380. return ErrIntOverflowTypes
  10381. }
  10382. if iNdEx >= l {
  10383. return io.ErrUnexpectedEOF
  10384. }
  10385. b := dAtA[iNdEx]
  10386. iNdEx++
  10387. m.Height |= (int64(b) & 0x7F) << shift
  10388. if b < 0x80 {
  10389. break
  10390. }
  10391. }
  10392. default:
  10393. iNdEx = preIndex
  10394. skippy, err := skipTypes(dAtA[iNdEx:])
  10395. if err != nil {
  10396. return err
  10397. }
  10398. if skippy < 0 {
  10399. return ErrInvalidLengthTypes
  10400. }
  10401. if (iNdEx + skippy) > l {
  10402. return io.ErrUnexpectedEOF
  10403. }
  10404. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10405. iNdEx += skippy
  10406. }
  10407. }
  10408. if iNdEx > l {
  10409. return io.ErrUnexpectedEOF
  10410. }
  10411. return nil
  10412. }
  10413. func (m *RequestCommit) Unmarshal(dAtA []byte) error {
  10414. l := len(dAtA)
  10415. iNdEx := 0
  10416. for iNdEx < l {
  10417. preIndex := iNdEx
  10418. var wire uint64
  10419. for shift := uint(0); ; shift += 7 {
  10420. if shift >= 64 {
  10421. return ErrIntOverflowTypes
  10422. }
  10423. if iNdEx >= l {
  10424. return io.ErrUnexpectedEOF
  10425. }
  10426. b := dAtA[iNdEx]
  10427. iNdEx++
  10428. wire |= (uint64(b) & 0x7F) << shift
  10429. if b < 0x80 {
  10430. break
  10431. }
  10432. }
  10433. fieldNum := int32(wire >> 3)
  10434. wireType := int(wire & 0x7)
  10435. if wireType == 4 {
  10436. return fmt.Errorf("proto: RequestCommit: wiretype end group for non-group")
  10437. }
  10438. if fieldNum <= 0 {
  10439. return fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire)
  10440. }
  10441. switch fieldNum {
  10442. default:
  10443. iNdEx = preIndex
  10444. skippy, err := skipTypes(dAtA[iNdEx:])
  10445. if err != nil {
  10446. return err
  10447. }
  10448. if skippy < 0 {
  10449. return ErrInvalidLengthTypes
  10450. }
  10451. if (iNdEx + skippy) > l {
  10452. return io.ErrUnexpectedEOF
  10453. }
  10454. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10455. iNdEx += skippy
  10456. }
  10457. }
  10458. if iNdEx > l {
  10459. return io.ErrUnexpectedEOF
  10460. }
  10461. return nil
  10462. }
  10463. func (m *Response) Unmarshal(dAtA []byte) error {
  10464. l := len(dAtA)
  10465. iNdEx := 0
  10466. for iNdEx < l {
  10467. preIndex := iNdEx
  10468. var wire uint64
  10469. for shift := uint(0); ; shift += 7 {
  10470. if shift >= 64 {
  10471. return ErrIntOverflowTypes
  10472. }
  10473. if iNdEx >= l {
  10474. return io.ErrUnexpectedEOF
  10475. }
  10476. b := dAtA[iNdEx]
  10477. iNdEx++
  10478. wire |= (uint64(b) & 0x7F) << shift
  10479. if b < 0x80 {
  10480. break
  10481. }
  10482. }
  10483. fieldNum := int32(wire >> 3)
  10484. wireType := int(wire & 0x7)
  10485. if wireType == 4 {
  10486. return fmt.Errorf("proto: Response: wiretype end group for non-group")
  10487. }
  10488. if fieldNum <= 0 {
  10489. return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
  10490. }
  10491. switch fieldNum {
  10492. case 1:
  10493. if wireType != 2 {
  10494. return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType)
  10495. }
  10496. var msglen int
  10497. for shift := uint(0); ; shift += 7 {
  10498. if shift >= 64 {
  10499. return ErrIntOverflowTypes
  10500. }
  10501. if iNdEx >= l {
  10502. return io.ErrUnexpectedEOF
  10503. }
  10504. b := dAtA[iNdEx]
  10505. iNdEx++
  10506. msglen |= (int(b) & 0x7F) << shift
  10507. if b < 0x80 {
  10508. break
  10509. }
  10510. }
  10511. if msglen < 0 {
  10512. return ErrInvalidLengthTypes
  10513. }
  10514. postIndex := iNdEx + msglen
  10515. if postIndex > l {
  10516. return io.ErrUnexpectedEOF
  10517. }
  10518. v := &ResponseException{}
  10519. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10520. return err
  10521. }
  10522. m.Value = &Response_Exception{v}
  10523. iNdEx = postIndex
  10524. case 2:
  10525. if wireType != 2 {
  10526. return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
  10527. }
  10528. var msglen int
  10529. for shift := uint(0); ; shift += 7 {
  10530. if shift >= 64 {
  10531. return ErrIntOverflowTypes
  10532. }
  10533. if iNdEx >= l {
  10534. return io.ErrUnexpectedEOF
  10535. }
  10536. b := dAtA[iNdEx]
  10537. iNdEx++
  10538. msglen |= (int(b) & 0x7F) << shift
  10539. if b < 0x80 {
  10540. break
  10541. }
  10542. }
  10543. if msglen < 0 {
  10544. return ErrInvalidLengthTypes
  10545. }
  10546. postIndex := iNdEx + msglen
  10547. if postIndex > l {
  10548. return io.ErrUnexpectedEOF
  10549. }
  10550. v := &ResponseEcho{}
  10551. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10552. return err
  10553. }
  10554. m.Value = &Response_Echo{v}
  10555. iNdEx = postIndex
  10556. case 3:
  10557. if wireType != 2 {
  10558. return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType)
  10559. }
  10560. var msglen int
  10561. for shift := uint(0); ; shift += 7 {
  10562. if shift >= 64 {
  10563. return ErrIntOverflowTypes
  10564. }
  10565. if iNdEx >= l {
  10566. return io.ErrUnexpectedEOF
  10567. }
  10568. b := dAtA[iNdEx]
  10569. iNdEx++
  10570. msglen |= (int(b) & 0x7F) << shift
  10571. if b < 0x80 {
  10572. break
  10573. }
  10574. }
  10575. if msglen < 0 {
  10576. return ErrInvalidLengthTypes
  10577. }
  10578. postIndex := iNdEx + msglen
  10579. if postIndex > l {
  10580. return io.ErrUnexpectedEOF
  10581. }
  10582. v := &ResponseFlush{}
  10583. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10584. return err
  10585. }
  10586. m.Value = &Response_Flush{v}
  10587. iNdEx = postIndex
  10588. case 4:
  10589. if wireType != 2 {
  10590. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  10591. }
  10592. var msglen int
  10593. for shift := uint(0); ; shift += 7 {
  10594. if shift >= 64 {
  10595. return ErrIntOverflowTypes
  10596. }
  10597. if iNdEx >= l {
  10598. return io.ErrUnexpectedEOF
  10599. }
  10600. b := dAtA[iNdEx]
  10601. iNdEx++
  10602. msglen |= (int(b) & 0x7F) << shift
  10603. if b < 0x80 {
  10604. break
  10605. }
  10606. }
  10607. if msglen < 0 {
  10608. return ErrInvalidLengthTypes
  10609. }
  10610. postIndex := iNdEx + msglen
  10611. if postIndex > l {
  10612. return io.ErrUnexpectedEOF
  10613. }
  10614. v := &ResponseInfo{}
  10615. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10616. return err
  10617. }
  10618. m.Value = &Response_Info{v}
  10619. iNdEx = postIndex
  10620. case 5:
  10621. if wireType != 2 {
  10622. return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType)
  10623. }
  10624. var msglen int
  10625. for shift := uint(0); ; shift += 7 {
  10626. if shift >= 64 {
  10627. return ErrIntOverflowTypes
  10628. }
  10629. if iNdEx >= l {
  10630. return io.ErrUnexpectedEOF
  10631. }
  10632. b := dAtA[iNdEx]
  10633. iNdEx++
  10634. msglen |= (int(b) & 0x7F) << shift
  10635. if b < 0x80 {
  10636. break
  10637. }
  10638. }
  10639. if msglen < 0 {
  10640. return ErrInvalidLengthTypes
  10641. }
  10642. postIndex := iNdEx + msglen
  10643. if postIndex > l {
  10644. return io.ErrUnexpectedEOF
  10645. }
  10646. v := &ResponseSetOption{}
  10647. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10648. return err
  10649. }
  10650. m.Value = &Response_SetOption{v}
  10651. iNdEx = postIndex
  10652. case 6:
  10653. if wireType != 2 {
  10654. return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType)
  10655. }
  10656. var msglen int
  10657. for shift := uint(0); ; shift += 7 {
  10658. if shift >= 64 {
  10659. return ErrIntOverflowTypes
  10660. }
  10661. if iNdEx >= l {
  10662. return io.ErrUnexpectedEOF
  10663. }
  10664. b := dAtA[iNdEx]
  10665. iNdEx++
  10666. msglen |= (int(b) & 0x7F) << shift
  10667. if b < 0x80 {
  10668. break
  10669. }
  10670. }
  10671. if msglen < 0 {
  10672. return ErrInvalidLengthTypes
  10673. }
  10674. postIndex := iNdEx + msglen
  10675. if postIndex > l {
  10676. return io.ErrUnexpectedEOF
  10677. }
  10678. v := &ResponseInitChain{}
  10679. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10680. return err
  10681. }
  10682. m.Value = &Response_InitChain{v}
  10683. iNdEx = postIndex
  10684. case 7:
  10685. if wireType != 2 {
  10686. return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  10687. }
  10688. var msglen int
  10689. for shift := uint(0); ; shift += 7 {
  10690. if shift >= 64 {
  10691. return ErrIntOverflowTypes
  10692. }
  10693. if iNdEx >= l {
  10694. return io.ErrUnexpectedEOF
  10695. }
  10696. b := dAtA[iNdEx]
  10697. iNdEx++
  10698. msglen |= (int(b) & 0x7F) << shift
  10699. if b < 0x80 {
  10700. break
  10701. }
  10702. }
  10703. if msglen < 0 {
  10704. return ErrInvalidLengthTypes
  10705. }
  10706. postIndex := iNdEx + msglen
  10707. if postIndex > l {
  10708. return io.ErrUnexpectedEOF
  10709. }
  10710. v := &ResponseQuery{}
  10711. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10712. return err
  10713. }
  10714. m.Value = &Response_Query{v}
  10715. iNdEx = postIndex
  10716. case 8:
  10717. if wireType != 2 {
  10718. return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  10719. }
  10720. var msglen int
  10721. for shift := uint(0); ; shift += 7 {
  10722. if shift >= 64 {
  10723. return ErrIntOverflowTypes
  10724. }
  10725. if iNdEx >= l {
  10726. return io.ErrUnexpectedEOF
  10727. }
  10728. b := dAtA[iNdEx]
  10729. iNdEx++
  10730. msglen |= (int(b) & 0x7F) << shift
  10731. if b < 0x80 {
  10732. break
  10733. }
  10734. }
  10735. if msglen < 0 {
  10736. return ErrInvalidLengthTypes
  10737. }
  10738. postIndex := iNdEx + msglen
  10739. if postIndex > l {
  10740. return io.ErrUnexpectedEOF
  10741. }
  10742. v := &ResponseBeginBlock{}
  10743. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10744. return err
  10745. }
  10746. m.Value = &Response_BeginBlock{v}
  10747. iNdEx = postIndex
  10748. case 9:
  10749. if wireType != 2 {
  10750. return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
  10751. }
  10752. var msglen int
  10753. for shift := uint(0); ; shift += 7 {
  10754. if shift >= 64 {
  10755. return ErrIntOverflowTypes
  10756. }
  10757. if iNdEx >= l {
  10758. return io.ErrUnexpectedEOF
  10759. }
  10760. b := dAtA[iNdEx]
  10761. iNdEx++
  10762. msglen |= (int(b) & 0x7F) << shift
  10763. if b < 0x80 {
  10764. break
  10765. }
  10766. }
  10767. if msglen < 0 {
  10768. return ErrInvalidLengthTypes
  10769. }
  10770. postIndex := iNdEx + msglen
  10771. if postIndex > l {
  10772. return io.ErrUnexpectedEOF
  10773. }
  10774. v := &ResponseCheckTx{}
  10775. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10776. return err
  10777. }
  10778. m.Value = &Response_CheckTx{v}
  10779. iNdEx = postIndex
  10780. case 10:
  10781. if wireType != 2 {
  10782. return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
  10783. }
  10784. var msglen int
  10785. for shift := uint(0); ; shift += 7 {
  10786. if shift >= 64 {
  10787. return ErrIntOverflowTypes
  10788. }
  10789. if iNdEx >= l {
  10790. return io.ErrUnexpectedEOF
  10791. }
  10792. b := dAtA[iNdEx]
  10793. iNdEx++
  10794. msglen |= (int(b) & 0x7F) << shift
  10795. if b < 0x80 {
  10796. break
  10797. }
  10798. }
  10799. if msglen < 0 {
  10800. return ErrInvalidLengthTypes
  10801. }
  10802. postIndex := iNdEx + msglen
  10803. if postIndex > l {
  10804. return io.ErrUnexpectedEOF
  10805. }
  10806. v := &ResponseDeliverTx{}
  10807. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10808. return err
  10809. }
  10810. m.Value = &Response_DeliverTx{v}
  10811. iNdEx = postIndex
  10812. case 11:
  10813. if wireType != 2 {
  10814. return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
  10815. }
  10816. var msglen int
  10817. for shift := uint(0); ; shift += 7 {
  10818. if shift >= 64 {
  10819. return ErrIntOverflowTypes
  10820. }
  10821. if iNdEx >= l {
  10822. return io.ErrUnexpectedEOF
  10823. }
  10824. b := dAtA[iNdEx]
  10825. iNdEx++
  10826. msglen |= (int(b) & 0x7F) << shift
  10827. if b < 0x80 {
  10828. break
  10829. }
  10830. }
  10831. if msglen < 0 {
  10832. return ErrInvalidLengthTypes
  10833. }
  10834. postIndex := iNdEx + msglen
  10835. if postIndex > l {
  10836. return io.ErrUnexpectedEOF
  10837. }
  10838. v := &ResponseEndBlock{}
  10839. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10840. return err
  10841. }
  10842. m.Value = &Response_EndBlock{v}
  10843. iNdEx = postIndex
  10844. case 12:
  10845. if wireType != 2 {
  10846. return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  10847. }
  10848. var msglen int
  10849. for shift := uint(0); ; shift += 7 {
  10850. if shift >= 64 {
  10851. return ErrIntOverflowTypes
  10852. }
  10853. if iNdEx >= l {
  10854. return io.ErrUnexpectedEOF
  10855. }
  10856. b := dAtA[iNdEx]
  10857. iNdEx++
  10858. msglen |= (int(b) & 0x7F) << shift
  10859. if b < 0x80 {
  10860. break
  10861. }
  10862. }
  10863. if msglen < 0 {
  10864. return ErrInvalidLengthTypes
  10865. }
  10866. postIndex := iNdEx + msglen
  10867. if postIndex > l {
  10868. return io.ErrUnexpectedEOF
  10869. }
  10870. v := &ResponseCommit{}
  10871. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10872. return err
  10873. }
  10874. m.Value = &Response_Commit{v}
  10875. iNdEx = postIndex
  10876. default:
  10877. iNdEx = preIndex
  10878. skippy, err := skipTypes(dAtA[iNdEx:])
  10879. if err != nil {
  10880. return err
  10881. }
  10882. if skippy < 0 {
  10883. return ErrInvalidLengthTypes
  10884. }
  10885. if (iNdEx + skippy) > l {
  10886. return io.ErrUnexpectedEOF
  10887. }
  10888. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10889. iNdEx += skippy
  10890. }
  10891. }
  10892. if iNdEx > l {
  10893. return io.ErrUnexpectedEOF
  10894. }
  10895. return nil
  10896. }
  10897. func (m *ResponseException) Unmarshal(dAtA []byte) error {
  10898. l := len(dAtA)
  10899. iNdEx := 0
  10900. for iNdEx < l {
  10901. preIndex := iNdEx
  10902. var wire uint64
  10903. for shift := uint(0); ; shift += 7 {
  10904. if shift >= 64 {
  10905. return ErrIntOverflowTypes
  10906. }
  10907. if iNdEx >= l {
  10908. return io.ErrUnexpectedEOF
  10909. }
  10910. b := dAtA[iNdEx]
  10911. iNdEx++
  10912. wire |= (uint64(b) & 0x7F) << shift
  10913. if b < 0x80 {
  10914. break
  10915. }
  10916. }
  10917. fieldNum := int32(wire >> 3)
  10918. wireType := int(wire & 0x7)
  10919. if wireType == 4 {
  10920. return fmt.Errorf("proto: ResponseException: wiretype end group for non-group")
  10921. }
  10922. if fieldNum <= 0 {
  10923. return fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire)
  10924. }
  10925. switch fieldNum {
  10926. case 1:
  10927. if wireType != 2 {
  10928. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  10929. }
  10930. var stringLen uint64
  10931. for shift := uint(0); ; shift += 7 {
  10932. if shift >= 64 {
  10933. return ErrIntOverflowTypes
  10934. }
  10935. if iNdEx >= l {
  10936. return io.ErrUnexpectedEOF
  10937. }
  10938. b := dAtA[iNdEx]
  10939. iNdEx++
  10940. stringLen |= (uint64(b) & 0x7F) << shift
  10941. if b < 0x80 {
  10942. break
  10943. }
  10944. }
  10945. intStringLen := int(stringLen)
  10946. if intStringLen < 0 {
  10947. return ErrInvalidLengthTypes
  10948. }
  10949. postIndex := iNdEx + intStringLen
  10950. if postIndex > l {
  10951. return io.ErrUnexpectedEOF
  10952. }
  10953. m.Error = string(dAtA[iNdEx:postIndex])
  10954. iNdEx = postIndex
  10955. default:
  10956. iNdEx = preIndex
  10957. skippy, err := skipTypes(dAtA[iNdEx:])
  10958. if err != nil {
  10959. return err
  10960. }
  10961. if skippy < 0 {
  10962. return ErrInvalidLengthTypes
  10963. }
  10964. if (iNdEx + skippy) > l {
  10965. return io.ErrUnexpectedEOF
  10966. }
  10967. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10968. iNdEx += skippy
  10969. }
  10970. }
  10971. if iNdEx > l {
  10972. return io.ErrUnexpectedEOF
  10973. }
  10974. return nil
  10975. }
  10976. func (m *ResponseEcho) Unmarshal(dAtA []byte) error {
  10977. l := len(dAtA)
  10978. iNdEx := 0
  10979. for iNdEx < l {
  10980. preIndex := iNdEx
  10981. var wire uint64
  10982. for shift := uint(0); ; shift += 7 {
  10983. if shift >= 64 {
  10984. return ErrIntOverflowTypes
  10985. }
  10986. if iNdEx >= l {
  10987. return io.ErrUnexpectedEOF
  10988. }
  10989. b := dAtA[iNdEx]
  10990. iNdEx++
  10991. wire |= (uint64(b) & 0x7F) << shift
  10992. if b < 0x80 {
  10993. break
  10994. }
  10995. }
  10996. fieldNum := int32(wire >> 3)
  10997. wireType := int(wire & 0x7)
  10998. if wireType == 4 {
  10999. return fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group")
  11000. }
  11001. if fieldNum <= 0 {
  11002. return fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire)
  11003. }
  11004. switch fieldNum {
  11005. case 1:
  11006. if wireType != 2 {
  11007. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  11008. }
  11009. var stringLen uint64
  11010. for shift := uint(0); ; shift += 7 {
  11011. if shift >= 64 {
  11012. return ErrIntOverflowTypes
  11013. }
  11014. if iNdEx >= l {
  11015. return io.ErrUnexpectedEOF
  11016. }
  11017. b := dAtA[iNdEx]
  11018. iNdEx++
  11019. stringLen |= (uint64(b) & 0x7F) << shift
  11020. if b < 0x80 {
  11021. break
  11022. }
  11023. }
  11024. intStringLen := int(stringLen)
  11025. if intStringLen < 0 {
  11026. return ErrInvalidLengthTypes
  11027. }
  11028. postIndex := iNdEx + intStringLen
  11029. if postIndex > l {
  11030. return io.ErrUnexpectedEOF
  11031. }
  11032. m.Message = string(dAtA[iNdEx:postIndex])
  11033. iNdEx = postIndex
  11034. default:
  11035. iNdEx = preIndex
  11036. skippy, err := skipTypes(dAtA[iNdEx:])
  11037. if err != nil {
  11038. return err
  11039. }
  11040. if skippy < 0 {
  11041. return ErrInvalidLengthTypes
  11042. }
  11043. if (iNdEx + skippy) > l {
  11044. return io.ErrUnexpectedEOF
  11045. }
  11046. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11047. iNdEx += skippy
  11048. }
  11049. }
  11050. if iNdEx > l {
  11051. return io.ErrUnexpectedEOF
  11052. }
  11053. return nil
  11054. }
  11055. func (m *ResponseFlush) Unmarshal(dAtA []byte) error {
  11056. l := len(dAtA)
  11057. iNdEx := 0
  11058. for iNdEx < l {
  11059. preIndex := iNdEx
  11060. var wire uint64
  11061. for shift := uint(0); ; shift += 7 {
  11062. if shift >= 64 {
  11063. return ErrIntOverflowTypes
  11064. }
  11065. if iNdEx >= l {
  11066. return io.ErrUnexpectedEOF
  11067. }
  11068. b := dAtA[iNdEx]
  11069. iNdEx++
  11070. wire |= (uint64(b) & 0x7F) << shift
  11071. if b < 0x80 {
  11072. break
  11073. }
  11074. }
  11075. fieldNum := int32(wire >> 3)
  11076. wireType := int(wire & 0x7)
  11077. if wireType == 4 {
  11078. return fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group")
  11079. }
  11080. if fieldNum <= 0 {
  11081. return fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire)
  11082. }
  11083. switch fieldNum {
  11084. default:
  11085. iNdEx = preIndex
  11086. skippy, err := skipTypes(dAtA[iNdEx:])
  11087. if err != nil {
  11088. return err
  11089. }
  11090. if skippy < 0 {
  11091. return ErrInvalidLengthTypes
  11092. }
  11093. if (iNdEx + skippy) > l {
  11094. return io.ErrUnexpectedEOF
  11095. }
  11096. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11097. iNdEx += skippy
  11098. }
  11099. }
  11100. if iNdEx > l {
  11101. return io.ErrUnexpectedEOF
  11102. }
  11103. return nil
  11104. }
  11105. func (m *ResponseInfo) Unmarshal(dAtA []byte) error {
  11106. l := len(dAtA)
  11107. iNdEx := 0
  11108. for iNdEx < l {
  11109. preIndex := iNdEx
  11110. var wire uint64
  11111. for shift := uint(0); ; shift += 7 {
  11112. if shift >= 64 {
  11113. return ErrIntOverflowTypes
  11114. }
  11115. if iNdEx >= l {
  11116. return io.ErrUnexpectedEOF
  11117. }
  11118. b := dAtA[iNdEx]
  11119. iNdEx++
  11120. wire |= (uint64(b) & 0x7F) << shift
  11121. if b < 0x80 {
  11122. break
  11123. }
  11124. }
  11125. fieldNum := int32(wire >> 3)
  11126. wireType := int(wire & 0x7)
  11127. if wireType == 4 {
  11128. return fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group")
  11129. }
  11130. if fieldNum <= 0 {
  11131. return fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  11132. }
  11133. switch fieldNum {
  11134. case 1:
  11135. if wireType != 2 {
  11136. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  11137. }
  11138. var stringLen uint64
  11139. for shift := uint(0); ; shift += 7 {
  11140. if shift >= 64 {
  11141. return ErrIntOverflowTypes
  11142. }
  11143. if iNdEx >= l {
  11144. return io.ErrUnexpectedEOF
  11145. }
  11146. b := dAtA[iNdEx]
  11147. iNdEx++
  11148. stringLen |= (uint64(b) & 0x7F) << shift
  11149. if b < 0x80 {
  11150. break
  11151. }
  11152. }
  11153. intStringLen := int(stringLen)
  11154. if intStringLen < 0 {
  11155. return ErrInvalidLengthTypes
  11156. }
  11157. postIndex := iNdEx + intStringLen
  11158. if postIndex > l {
  11159. return io.ErrUnexpectedEOF
  11160. }
  11161. m.Data = string(dAtA[iNdEx:postIndex])
  11162. iNdEx = postIndex
  11163. case 2:
  11164. if wireType != 2 {
  11165. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  11166. }
  11167. var stringLen uint64
  11168. for shift := uint(0); ; shift += 7 {
  11169. if shift >= 64 {
  11170. return ErrIntOverflowTypes
  11171. }
  11172. if iNdEx >= l {
  11173. return io.ErrUnexpectedEOF
  11174. }
  11175. b := dAtA[iNdEx]
  11176. iNdEx++
  11177. stringLen |= (uint64(b) & 0x7F) << shift
  11178. if b < 0x80 {
  11179. break
  11180. }
  11181. }
  11182. intStringLen := int(stringLen)
  11183. if intStringLen < 0 {
  11184. return ErrInvalidLengthTypes
  11185. }
  11186. postIndex := iNdEx + intStringLen
  11187. if postIndex > l {
  11188. return io.ErrUnexpectedEOF
  11189. }
  11190. m.Version = string(dAtA[iNdEx:postIndex])
  11191. iNdEx = postIndex
  11192. case 3:
  11193. if wireType != 0 {
  11194. return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType)
  11195. }
  11196. m.AppVersion = 0
  11197. for shift := uint(0); ; shift += 7 {
  11198. if shift >= 64 {
  11199. return ErrIntOverflowTypes
  11200. }
  11201. if iNdEx >= l {
  11202. return io.ErrUnexpectedEOF
  11203. }
  11204. b := dAtA[iNdEx]
  11205. iNdEx++
  11206. m.AppVersion |= (uint64(b) & 0x7F) << shift
  11207. if b < 0x80 {
  11208. break
  11209. }
  11210. }
  11211. case 4:
  11212. if wireType != 0 {
  11213. return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType)
  11214. }
  11215. m.LastBlockHeight = 0
  11216. for shift := uint(0); ; shift += 7 {
  11217. if shift >= 64 {
  11218. return ErrIntOverflowTypes
  11219. }
  11220. if iNdEx >= l {
  11221. return io.ErrUnexpectedEOF
  11222. }
  11223. b := dAtA[iNdEx]
  11224. iNdEx++
  11225. m.LastBlockHeight |= (int64(b) & 0x7F) << shift
  11226. if b < 0x80 {
  11227. break
  11228. }
  11229. }
  11230. case 5:
  11231. if wireType != 2 {
  11232. return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType)
  11233. }
  11234. var byteLen int
  11235. for shift := uint(0); ; shift += 7 {
  11236. if shift >= 64 {
  11237. return ErrIntOverflowTypes
  11238. }
  11239. if iNdEx >= l {
  11240. return io.ErrUnexpectedEOF
  11241. }
  11242. b := dAtA[iNdEx]
  11243. iNdEx++
  11244. byteLen |= (int(b) & 0x7F) << shift
  11245. if b < 0x80 {
  11246. break
  11247. }
  11248. }
  11249. if byteLen < 0 {
  11250. return ErrInvalidLengthTypes
  11251. }
  11252. postIndex := iNdEx + byteLen
  11253. if postIndex > l {
  11254. return io.ErrUnexpectedEOF
  11255. }
  11256. m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...)
  11257. if m.LastBlockAppHash == nil {
  11258. m.LastBlockAppHash = []byte{}
  11259. }
  11260. iNdEx = postIndex
  11261. default:
  11262. iNdEx = preIndex
  11263. skippy, err := skipTypes(dAtA[iNdEx:])
  11264. if err != nil {
  11265. return err
  11266. }
  11267. if skippy < 0 {
  11268. return ErrInvalidLengthTypes
  11269. }
  11270. if (iNdEx + skippy) > l {
  11271. return io.ErrUnexpectedEOF
  11272. }
  11273. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11274. iNdEx += skippy
  11275. }
  11276. }
  11277. if iNdEx > l {
  11278. return io.ErrUnexpectedEOF
  11279. }
  11280. return nil
  11281. }
  11282. func (m *ResponseSetOption) Unmarshal(dAtA []byte) error {
  11283. l := len(dAtA)
  11284. iNdEx := 0
  11285. for iNdEx < l {
  11286. preIndex := iNdEx
  11287. var wire uint64
  11288. for shift := uint(0); ; shift += 7 {
  11289. if shift >= 64 {
  11290. return ErrIntOverflowTypes
  11291. }
  11292. if iNdEx >= l {
  11293. return io.ErrUnexpectedEOF
  11294. }
  11295. b := dAtA[iNdEx]
  11296. iNdEx++
  11297. wire |= (uint64(b) & 0x7F) << shift
  11298. if b < 0x80 {
  11299. break
  11300. }
  11301. }
  11302. fieldNum := int32(wire >> 3)
  11303. wireType := int(wire & 0x7)
  11304. if wireType == 4 {
  11305. return fmt.Errorf("proto: ResponseSetOption: wiretype end group for non-group")
  11306. }
  11307. if fieldNum <= 0 {
  11308. return fmt.Errorf("proto: ResponseSetOption: illegal tag %d (wire type %d)", fieldNum, wire)
  11309. }
  11310. switch fieldNum {
  11311. case 1:
  11312. if wireType != 0 {
  11313. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  11314. }
  11315. m.Code = 0
  11316. for shift := uint(0); ; shift += 7 {
  11317. if shift >= 64 {
  11318. return ErrIntOverflowTypes
  11319. }
  11320. if iNdEx >= l {
  11321. return io.ErrUnexpectedEOF
  11322. }
  11323. b := dAtA[iNdEx]
  11324. iNdEx++
  11325. m.Code |= (uint32(b) & 0x7F) << shift
  11326. if b < 0x80 {
  11327. break
  11328. }
  11329. }
  11330. case 3:
  11331. if wireType != 2 {
  11332. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11333. }
  11334. var stringLen uint64
  11335. for shift := uint(0); ; shift += 7 {
  11336. if shift >= 64 {
  11337. return ErrIntOverflowTypes
  11338. }
  11339. if iNdEx >= l {
  11340. return io.ErrUnexpectedEOF
  11341. }
  11342. b := dAtA[iNdEx]
  11343. iNdEx++
  11344. stringLen |= (uint64(b) & 0x7F) << shift
  11345. if b < 0x80 {
  11346. break
  11347. }
  11348. }
  11349. intStringLen := int(stringLen)
  11350. if intStringLen < 0 {
  11351. return ErrInvalidLengthTypes
  11352. }
  11353. postIndex := iNdEx + intStringLen
  11354. if postIndex > l {
  11355. return io.ErrUnexpectedEOF
  11356. }
  11357. m.Log = string(dAtA[iNdEx:postIndex])
  11358. iNdEx = postIndex
  11359. case 4:
  11360. if wireType != 2 {
  11361. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  11362. }
  11363. var stringLen uint64
  11364. for shift := uint(0); ; shift += 7 {
  11365. if shift >= 64 {
  11366. return ErrIntOverflowTypes
  11367. }
  11368. if iNdEx >= l {
  11369. return io.ErrUnexpectedEOF
  11370. }
  11371. b := dAtA[iNdEx]
  11372. iNdEx++
  11373. stringLen |= (uint64(b) & 0x7F) << shift
  11374. if b < 0x80 {
  11375. break
  11376. }
  11377. }
  11378. intStringLen := int(stringLen)
  11379. if intStringLen < 0 {
  11380. return ErrInvalidLengthTypes
  11381. }
  11382. postIndex := iNdEx + intStringLen
  11383. if postIndex > l {
  11384. return io.ErrUnexpectedEOF
  11385. }
  11386. m.Info = string(dAtA[iNdEx:postIndex])
  11387. iNdEx = postIndex
  11388. default:
  11389. iNdEx = preIndex
  11390. skippy, err := skipTypes(dAtA[iNdEx:])
  11391. if err != nil {
  11392. return err
  11393. }
  11394. if skippy < 0 {
  11395. return ErrInvalidLengthTypes
  11396. }
  11397. if (iNdEx + skippy) > l {
  11398. return io.ErrUnexpectedEOF
  11399. }
  11400. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11401. iNdEx += skippy
  11402. }
  11403. }
  11404. if iNdEx > l {
  11405. return io.ErrUnexpectedEOF
  11406. }
  11407. return nil
  11408. }
  11409. func (m *ResponseInitChain) Unmarshal(dAtA []byte) error {
  11410. l := len(dAtA)
  11411. iNdEx := 0
  11412. for iNdEx < l {
  11413. preIndex := iNdEx
  11414. var wire uint64
  11415. for shift := uint(0); ; shift += 7 {
  11416. if shift >= 64 {
  11417. return ErrIntOverflowTypes
  11418. }
  11419. if iNdEx >= l {
  11420. return io.ErrUnexpectedEOF
  11421. }
  11422. b := dAtA[iNdEx]
  11423. iNdEx++
  11424. wire |= (uint64(b) & 0x7F) << shift
  11425. if b < 0x80 {
  11426. break
  11427. }
  11428. }
  11429. fieldNum := int32(wire >> 3)
  11430. wireType := int(wire & 0x7)
  11431. if wireType == 4 {
  11432. return fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group")
  11433. }
  11434. if fieldNum <= 0 {
  11435. return fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire)
  11436. }
  11437. switch fieldNum {
  11438. case 1:
  11439. if wireType != 2 {
  11440. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  11441. }
  11442. var msglen int
  11443. for shift := uint(0); ; shift += 7 {
  11444. if shift >= 64 {
  11445. return ErrIntOverflowTypes
  11446. }
  11447. if iNdEx >= l {
  11448. return io.ErrUnexpectedEOF
  11449. }
  11450. b := dAtA[iNdEx]
  11451. iNdEx++
  11452. msglen |= (int(b) & 0x7F) << shift
  11453. if b < 0x80 {
  11454. break
  11455. }
  11456. }
  11457. if msglen < 0 {
  11458. return ErrInvalidLengthTypes
  11459. }
  11460. postIndex := iNdEx + msglen
  11461. if postIndex > l {
  11462. return io.ErrUnexpectedEOF
  11463. }
  11464. if m.ConsensusParams == nil {
  11465. m.ConsensusParams = &ConsensusParams{}
  11466. }
  11467. if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11468. return err
  11469. }
  11470. iNdEx = postIndex
  11471. case 2:
  11472. if wireType != 2 {
  11473. return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  11474. }
  11475. var msglen int
  11476. for shift := uint(0); ; shift += 7 {
  11477. if shift >= 64 {
  11478. return ErrIntOverflowTypes
  11479. }
  11480. if iNdEx >= l {
  11481. return io.ErrUnexpectedEOF
  11482. }
  11483. b := dAtA[iNdEx]
  11484. iNdEx++
  11485. msglen |= (int(b) & 0x7F) << shift
  11486. if b < 0x80 {
  11487. break
  11488. }
  11489. }
  11490. if msglen < 0 {
  11491. return ErrInvalidLengthTypes
  11492. }
  11493. postIndex := iNdEx + msglen
  11494. if postIndex > l {
  11495. return io.ErrUnexpectedEOF
  11496. }
  11497. m.Validators = append(m.Validators, ValidatorUpdate{})
  11498. if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11499. return err
  11500. }
  11501. iNdEx = postIndex
  11502. default:
  11503. iNdEx = preIndex
  11504. skippy, err := skipTypes(dAtA[iNdEx:])
  11505. if err != nil {
  11506. return err
  11507. }
  11508. if skippy < 0 {
  11509. return ErrInvalidLengthTypes
  11510. }
  11511. if (iNdEx + skippy) > l {
  11512. return io.ErrUnexpectedEOF
  11513. }
  11514. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11515. iNdEx += skippy
  11516. }
  11517. }
  11518. if iNdEx > l {
  11519. return io.ErrUnexpectedEOF
  11520. }
  11521. return nil
  11522. }
  11523. func (m *ResponseQuery) Unmarshal(dAtA []byte) error {
  11524. l := len(dAtA)
  11525. iNdEx := 0
  11526. for iNdEx < l {
  11527. preIndex := iNdEx
  11528. var wire uint64
  11529. for shift := uint(0); ; shift += 7 {
  11530. if shift >= 64 {
  11531. return ErrIntOverflowTypes
  11532. }
  11533. if iNdEx >= l {
  11534. return io.ErrUnexpectedEOF
  11535. }
  11536. b := dAtA[iNdEx]
  11537. iNdEx++
  11538. wire |= (uint64(b) & 0x7F) << shift
  11539. if b < 0x80 {
  11540. break
  11541. }
  11542. }
  11543. fieldNum := int32(wire >> 3)
  11544. wireType := int(wire & 0x7)
  11545. if wireType == 4 {
  11546. return fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group")
  11547. }
  11548. if fieldNum <= 0 {
  11549. return fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  11550. }
  11551. switch fieldNum {
  11552. case 1:
  11553. if wireType != 0 {
  11554. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  11555. }
  11556. m.Code = 0
  11557. for shift := uint(0); ; shift += 7 {
  11558. if shift >= 64 {
  11559. return ErrIntOverflowTypes
  11560. }
  11561. if iNdEx >= l {
  11562. return io.ErrUnexpectedEOF
  11563. }
  11564. b := dAtA[iNdEx]
  11565. iNdEx++
  11566. m.Code |= (uint32(b) & 0x7F) << shift
  11567. if b < 0x80 {
  11568. break
  11569. }
  11570. }
  11571. case 3:
  11572. if wireType != 2 {
  11573. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11574. }
  11575. var stringLen uint64
  11576. for shift := uint(0); ; shift += 7 {
  11577. if shift >= 64 {
  11578. return ErrIntOverflowTypes
  11579. }
  11580. if iNdEx >= l {
  11581. return io.ErrUnexpectedEOF
  11582. }
  11583. b := dAtA[iNdEx]
  11584. iNdEx++
  11585. stringLen |= (uint64(b) & 0x7F) << shift
  11586. if b < 0x80 {
  11587. break
  11588. }
  11589. }
  11590. intStringLen := int(stringLen)
  11591. if intStringLen < 0 {
  11592. return ErrInvalidLengthTypes
  11593. }
  11594. postIndex := iNdEx + intStringLen
  11595. if postIndex > l {
  11596. return io.ErrUnexpectedEOF
  11597. }
  11598. m.Log = string(dAtA[iNdEx:postIndex])
  11599. iNdEx = postIndex
  11600. case 4:
  11601. if wireType != 2 {
  11602. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  11603. }
  11604. var stringLen uint64
  11605. for shift := uint(0); ; shift += 7 {
  11606. if shift >= 64 {
  11607. return ErrIntOverflowTypes
  11608. }
  11609. if iNdEx >= l {
  11610. return io.ErrUnexpectedEOF
  11611. }
  11612. b := dAtA[iNdEx]
  11613. iNdEx++
  11614. stringLen |= (uint64(b) & 0x7F) << shift
  11615. if b < 0x80 {
  11616. break
  11617. }
  11618. }
  11619. intStringLen := int(stringLen)
  11620. if intStringLen < 0 {
  11621. return ErrInvalidLengthTypes
  11622. }
  11623. postIndex := iNdEx + intStringLen
  11624. if postIndex > l {
  11625. return io.ErrUnexpectedEOF
  11626. }
  11627. m.Info = string(dAtA[iNdEx:postIndex])
  11628. iNdEx = postIndex
  11629. case 5:
  11630. if wireType != 0 {
  11631. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  11632. }
  11633. m.Index = 0
  11634. for shift := uint(0); ; shift += 7 {
  11635. if shift >= 64 {
  11636. return ErrIntOverflowTypes
  11637. }
  11638. if iNdEx >= l {
  11639. return io.ErrUnexpectedEOF
  11640. }
  11641. b := dAtA[iNdEx]
  11642. iNdEx++
  11643. m.Index |= (int64(b) & 0x7F) << shift
  11644. if b < 0x80 {
  11645. break
  11646. }
  11647. }
  11648. case 6:
  11649. if wireType != 2 {
  11650. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  11651. }
  11652. var byteLen int
  11653. for shift := uint(0); ; shift += 7 {
  11654. if shift >= 64 {
  11655. return ErrIntOverflowTypes
  11656. }
  11657. if iNdEx >= l {
  11658. return io.ErrUnexpectedEOF
  11659. }
  11660. b := dAtA[iNdEx]
  11661. iNdEx++
  11662. byteLen |= (int(b) & 0x7F) << shift
  11663. if b < 0x80 {
  11664. break
  11665. }
  11666. }
  11667. if byteLen < 0 {
  11668. return ErrInvalidLengthTypes
  11669. }
  11670. postIndex := iNdEx + byteLen
  11671. if postIndex > l {
  11672. return io.ErrUnexpectedEOF
  11673. }
  11674. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  11675. if m.Key == nil {
  11676. m.Key = []byte{}
  11677. }
  11678. iNdEx = postIndex
  11679. case 7:
  11680. if wireType != 2 {
  11681. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  11682. }
  11683. var byteLen int
  11684. for shift := uint(0); ; shift += 7 {
  11685. if shift >= 64 {
  11686. return ErrIntOverflowTypes
  11687. }
  11688. if iNdEx >= l {
  11689. return io.ErrUnexpectedEOF
  11690. }
  11691. b := dAtA[iNdEx]
  11692. iNdEx++
  11693. byteLen |= (int(b) & 0x7F) << shift
  11694. if b < 0x80 {
  11695. break
  11696. }
  11697. }
  11698. if byteLen < 0 {
  11699. return ErrInvalidLengthTypes
  11700. }
  11701. postIndex := iNdEx + byteLen
  11702. if postIndex > l {
  11703. return io.ErrUnexpectedEOF
  11704. }
  11705. m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  11706. if m.Value == nil {
  11707. m.Value = []byte{}
  11708. }
  11709. iNdEx = postIndex
  11710. case 8:
  11711. if wireType != 2 {
  11712. return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType)
  11713. }
  11714. var msglen int
  11715. for shift := uint(0); ; shift += 7 {
  11716. if shift >= 64 {
  11717. return ErrIntOverflowTypes
  11718. }
  11719. if iNdEx >= l {
  11720. return io.ErrUnexpectedEOF
  11721. }
  11722. b := dAtA[iNdEx]
  11723. iNdEx++
  11724. msglen |= (int(b) & 0x7F) << shift
  11725. if b < 0x80 {
  11726. break
  11727. }
  11728. }
  11729. if msglen < 0 {
  11730. return ErrInvalidLengthTypes
  11731. }
  11732. postIndex := iNdEx + msglen
  11733. if postIndex > l {
  11734. return io.ErrUnexpectedEOF
  11735. }
  11736. if m.Proof == nil {
  11737. m.Proof = &merkle.Proof{}
  11738. }
  11739. if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11740. return err
  11741. }
  11742. iNdEx = postIndex
  11743. case 9:
  11744. if wireType != 0 {
  11745. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  11746. }
  11747. m.Height = 0
  11748. for shift := uint(0); ; shift += 7 {
  11749. if shift >= 64 {
  11750. return ErrIntOverflowTypes
  11751. }
  11752. if iNdEx >= l {
  11753. return io.ErrUnexpectedEOF
  11754. }
  11755. b := dAtA[iNdEx]
  11756. iNdEx++
  11757. m.Height |= (int64(b) & 0x7F) << shift
  11758. if b < 0x80 {
  11759. break
  11760. }
  11761. }
  11762. case 10:
  11763. if wireType != 2 {
  11764. return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
  11765. }
  11766. var stringLen uint64
  11767. for shift := uint(0); ; shift += 7 {
  11768. if shift >= 64 {
  11769. return ErrIntOverflowTypes
  11770. }
  11771. if iNdEx >= l {
  11772. return io.ErrUnexpectedEOF
  11773. }
  11774. b := dAtA[iNdEx]
  11775. iNdEx++
  11776. stringLen |= (uint64(b) & 0x7F) << shift
  11777. if b < 0x80 {
  11778. break
  11779. }
  11780. }
  11781. intStringLen := int(stringLen)
  11782. if intStringLen < 0 {
  11783. return ErrInvalidLengthTypes
  11784. }
  11785. postIndex := iNdEx + intStringLen
  11786. if postIndex > l {
  11787. return io.ErrUnexpectedEOF
  11788. }
  11789. m.Codespace = string(dAtA[iNdEx:postIndex])
  11790. iNdEx = postIndex
  11791. default:
  11792. iNdEx = preIndex
  11793. skippy, err := skipTypes(dAtA[iNdEx:])
  11794. if err != nil {
  11795. return err
  11796. }
  11797. if skippy < 0 {
  11798. return ErrInvalidLengthTypes
  11799. }
  11800. if (iNdEx + skippy) > l {
  11801. return io.ErrUnexpectedEOF
  11802. }
  11803. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11804. iNdEx += skippy
  11805. }
  11806. }
  11807. if iNdEx > l {
  11808. return io.ErrUnexpectedEOF
  11809. }
  11810. return nil
  11811. }
  11812. func (m *ResponseBeginBlock) Unmarshal(dAtA []byte) error {
  11813. l := len(dAtA)
  11814. iNdEx := 0
  11815. for iNdEx < l {
  11816. preIndex := iNdEx
  11817. var wire uint64
  11818. for shift := uint(0); ; shift += 7 {
  11819. if shift >= 64 {
  11820. return ErrIntOverflowTypes
  11821. }
  11822. if iNdEx >= l {
  11823. return io.ErrUnexpectedEOF
  11824. }
  11825. b := dAtA[iNdEx]
  11826. iNdEx++
  11827. wire |= (uint64(b) & 0x7F) << shift
  11828. if b < 0x80 {
  11829. break
  11830. }
  11831. }
  11832. fieldNum := int32(wire >> 3)
  11833. wireType := int(wire & 0x7)
  11834. if wireType == 4 {
  11835. return fmt.Errorf("proto: ResponseBeginBlock: wiretype end group for non-group")
  11836. }
  11837. if fieldNum <= 0 {
  11838. return fmt.Errorf("proto: ResponseBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  11839. }
  11840. switch fieldNum {
  11841. case 1:
  11842. if wireType != 2 {
  11843. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  11844. }
  11845. var msglen int
  11846. for shift := uint(0); ; shift += 7 {
  11847. if shift >= 64 {
  11848. return ErrIntOverflowTypes
  11849. }
  11850. if iNdEx >= l {
  11851. return io.ErrUnexpectedEOF
  11852. }
  11853. b := dAtA[iNdEx]
  11854. iNdEx++
  11855. msglen |= (int(b) & 0x7F) << shift
  11856. if b < 0x80 {
  11857. break
  11858. }
  11859. }
  11860. if msglen < 0 {
  11861. return ErrInvalidLengthTypes
  11862. }
  11863. postIndex := iNdEx + msglen
  11864. if postIndex > l {
  11865. return io.ErrUnexpectedEOF
  11866. }
  11867. m.Tags = append(m.Tags, common.KVPair{})
  11868. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11869. return err
  11870. }
  11871. iNdEx = postIndex
  11872. default:
  11873. iNdEx = preIndex
  11874. skippy, err := skipTypes(dAtA[iNdEx:])
  11875. if err != nil {
  11876. return err
  11877. }
  11878. if skippy < 0 {
  11879. return ErrInvalidLengthTypes
  11880. }
  11881. if (iNdEx + skippy) > l {
  11882. return io.ErrUnexpectedEOF
  11883. }
  11884. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11885. iNdEx += skippy
  11886. }
  11887. }
  11888. if iNdEx > l {
  11889. return io.ErrUnexpectedEOF
  11890. }
  11891. return nil
  11892. }
  11893. func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error {
  11894. l := len(dAtA)
  11895. iNdEx := 0
  11896. for iNdEx < l {
  11897. preIndex := iNdEx
  11898. var wire uint64
  11899. for shift := uint(0); ; shift += 7 {
  11900. if shift >= 64 {
  11901. return ErrIntOverflowTypes
  11902. }
  11903. if iNdEx >= l {
  11904. return io.ErrUnexpectedEOF
  11905. }
  11906. b := dAtA[iNdEx]
  11907. iNdEx++
  11908. wire |= (uint64(b) & 0x7F) << shift
  11909. if b < 0x80 {
  11910. break
  11911. }
  11912. }
  11913. fieldNum := int32(wire >> 3)
  11914. wireType := int(wire & 0x7)
  11915. if wireType == 4 {
  11916. return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group")
  11917. }
  11918. if fieldNum <= 0 {
  11919. return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire)
  11920. }
  11921. switch fieldNum {
  11922. case 1:
  11923. if wireType != 0 {
  11924. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  11925. }
  11926. m.Code = 0
  11927. for shift := uint(0); ; shift += 7 {
  11928. if shift >= 64 {
  11929. return ErrIntOverflowTypes
  11930. }
  11931. if iNdEx >= l {
  11932. return io.ErrUnexpectedEOF
  11933. }
  11934. b := dAtA[iNdEx]
  11935. iNdEx++
  11936. m.Code |= (uint32(b) & 0x7F) << shift
  11937. if b < 0x80 {
  11938. break
  11939. }
  11940. }
  11941. case 2:
  11942. if wireType != 2 {
  11943. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  11944. }
  11945. var byteLen int
  11946. for shift := uint(0); ; shift += 7 {
  11947. if shift >= 64 {
  11948. return ErrIntOverflowTypes
  11949. }
  11950. if iNdEx >= l {
  11951. return io.ErrUnexpectedEOF
  11952. }
  11953. b := dAtA[iNdEx]
  11954. iNdEx++
  11955. byteLen |= (int(b) & 0x7F) << shift
  11956. if b < 0x80 {
  11957. break
  11958. }
  11959. }
  11960. if byteLen < 0 {
  11961. return ErrInvalidLengthTypes
  11962. }
  11963. postIndex := iNdEx + byteLen
  11964. if postIndex > l {
  11965. return io.ErrUnexpectedEOF
  11966. }
  11967. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  11968. if m.Data == nil {
  11969. m.Data = []byte{}
  11970. }
  11971. iNdEx = postIndex
  11972. case 3:
  11973. if wireType != 2 {
  11974. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11975. }
  11976. var stringLen uint64
  11977. for shift := uint(0); ; shift += 7 {
  11978. if shift >= 64 {
  11979. return ErrIntOverflowTypes
  11980. }
  11981. if iNdEx >= l {
  11982. return io.ErrUnexpectedEOF
  11983. }
  11984. b := dAtA[iNdEx]
  11985. iNdEx++
  11986. stringLen |= (uint64(b) & 0x7F) << shift
  11987. if b < 0x80 {
  11988. break
  11989. }
  11990. }
  11991. intStringLen := int(stringLen)
  11992. if intStringLen < 0 {
  11993. return ErrInvalidLengthTypes
  11994. }
  11995. postIndex := iNdEx + intStringLen
  11996. if postIndex > l {
  11997. return io.ErrUnexpectedEOF
  11998. }
  11999. m.Log = string(dAtA[iNdEx:postIndex])
  12000. iNdEx = postIndex
  12001. case 4:
  12002. if wireType != 2 {
  12003. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  12004. }
  12005. var stringLen uint64
  12006. for shift := uint(0); ; shift += 7 {
  12007. if shift >= 64 {
  12008. return ErrIntOverflowTypes
  12009. }
  12010. if iNdEx >= l {
  12011. return io.ErrUnexpectedEOF
  12012. }
  12013. b := dAtA[iNdEx]
  12014. iNdEx++
  12015. stringLen |= (uint64(b) & 0x7F) << shift
  12016. if b < 0x80 {
  12017. break
  12018. }
  12019. }
  12020. intStringLen := int(stringLen)
  12021. if intStringLen < 0 {
  12022. return ErrInvalidLengthTypes
  12023. }
  12024. postIndex := iNdEx + intStringLen
  12025. if postIndex > l {
  12026. return io.ErrUnexpectedEOF
  12027. }
  12028. m.Info = string(dAtA[iNdEx:postIndex])
  12029. iNdEx = postIndex
  12030. case 5:
  12031. if wireType != 0 {
  12032. return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
  12033. }
  12034. m.GasWanted = 0
  12035. for shift := uint(0); ; shift += 7 {
  12036. if shift >= 64 {
  12037. return ErrIntOverflowTypes
  12038. }
  12039. if iNdEx >= l {
  12040. return io.ErrUnexpectedEOF
  12041. }
  12042. b := dAtA[iNdEx]
  12043. iNdEx++
  12044. m.GasWanted |= (int64(b) & 0x7F) << shift
  12045. if b < 0x80 {
  12046. break
  12047. }
  12048. }
  12049. case 6:
  12050. if wireType != 0 {
  12051. return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
  12052. }
  12053. m.GasUsed = 0
  12054. for shift := uint(0); ; shift += 7 {
  12055. if shift >= 64 {
  12056. return ErrIntOverflowTypes
  12057. }
  12058. if iNdEx >= l {
  12059. return io.ErrUnexpectedEOF
  12060. }
  12061. b := dAtA[iNdEx]
  12062. iNdEx++
  12063. m.GasUsed |= (int64(b) & 0x7F) << shift
  12064. if b < 0x80 {
  12065. break
  12066. }
  12067. }
  12068. case 7:
  12069. if wireType != 2 {
  12070. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  12071. }
  12072. var msglen int
  12073. for shift := uint(0); ; shift += 7 {
  12074. if shift >= 64 {
  12075. return ErrIntOverflowTypes
  12076. }
  12077. if iNdEx >= l {
  12078. return io.ErrUnexpectedEOF
  12079. }
  12080. b := dAtA[iNdEx]
  12081. iNdEx++
  12082. msglen |= (int(b) & 0x7F) << shift
  12083. if b < 0x80 {
  12084. break
  12085. }
  12086. }
  12087. if msglen < 0 {
  12088. return ErrInvalidLengthTypes
  12089. }
  12090. postIndex := iNdEx + msglen
  12091. if postIndex > l {
  12092. return io.ErrUnexpectedEOF
  12093. }
  12094. m.Tags = append(m.Tags, common.KVPair{})
  12095. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12096. return err
  12097. }
  12098. iNdEx = postIndex
  12099. case 8:
  12100. if wireType != 2 {
  12101. return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
  12102. }
  12103. var stringLen uint64
  12104. for shift := uint(0); ; shift += 7 {
  12105. if shift >= 64 {
  12106. return ErrIntOverflowTypes
  12107. }
  12108. if iNdEx >= l {
  12109. return io.ErrUnexpectedEOF
  12110. }
  12111. b := dAtA[iNdEx]
  12112. iNdEx++
  12113. stringLen |= (uint64(b) & 0x7F) << shift
  12114. if b < 0x80 {
  12115. break
  12116. }
  12117. }
  12118. intStringLen := int(stringLen)
  12119. if intStringLen < 0 {
  12120. return ErrInvalidLengthTypes
  12121. }
  12122. postIndex := iNdEx + intStringLen
  12123. if postIndex > l {
  12124. return io.ErrUnexpectedEOF
  12125. }
  12126. m.Codespace = string(dAtA[iNdEx:postIndex])
  12127. iNdEx = postIndex
  12128. default:
  12129. iNdEx = preIndex
  12130. skippy, err := skipTypes(dAtA[iNdEx:])
  12131. if err != nil {
  12132. return err
  12133. }
  12134. if skippy < 0 {
  12135. return ErrInvalidLengthTypes
  12136. }
  12137. if (iNdEx + skippy) > l {
  12138. return io.ErrUnexpectedEOF
  12139. }
  12140. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12141. iNdEx += skippy
  12142. }
  12143. }
  12144. if iNdEx > l {
  12145. return io.ErrUnexpectedEOF
  12146. }
  12147. return nil
  12148. }
  12149. func (m *ResponseDeliverTx) Unmarshal(dAtA []byte) error {
  12150. l := len(dAtA)
  12151. iNdEx := 0
  12152. for iNdEx < l {
  12153. preIndex := iNdEx
  12154. var wire uint64
  12155. for shift := uint(0); ; shift += 7 {
  12156. if shift >= 64 {
  12157. return ErrIntOverflowTypes
  12158. }
  12159. if iNdEx >= l {
  12160. return io.ErrUnexpectedEOF
  12161. }
  12162. b := dAtA[iNdEx]
  12163. iNdEx++
  12164. wire |= (uint64(b) & 0x7F) << shift
  12165. if b < 0x80 {
  12166. break
  12167. }
  12168. }
  12169. fieldNum := int32(wire >> 3)
  12170. wireType := int(wire & 0x7)
  12171. if wireType == 4 {
  12172. return fmt.Errorf("proto: ResponseDeliverTx: wiretype end group for non-group")
  12173. }
  12174. if fieldNum <= 0 {
  12175. return fmt.Errorf("proto: ResponseDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire)
  12176. }
  12177. switch fieldNum {
  12178. case 1:
  12179. if wireType != 0 {
  12180. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  12181. }
  12182. m.Code = 0
  12183. for shift := uint(0); ; shift += 7 {
  12184. if shift >= 64 {
  12185. return ErrIntOverflowTypes
  12186. }
  12187. if iNdEx >= l {
  12188. return io.ErrUnexpectedEOF
  12189. }
  12190. b := dAtA[iNdEx]
  12191. iNdEx++
  12192. m.Code |= (uint32(b) & 0x7F) << shift
  12193. if b < 0x80 {
  12194. break
  12195. }
  12196. }
  12197. case 2:
  12198. if wireType != 2 {
  12199. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  12200. }
  12201. var byteLen int
  12202. for shift := uint(0); ; shift += 7 {
  12203. if shift >= 64 {
  12204. return ErrIntOverflowTypes
  12205. }
  12206. if iNdEx >= l {
  12207. return io.ErrUnexpectedEOF
  12208. }
  12209. b := dAtA[iNdEx]
  12210. iNdEx++
  12211. byteLen |= (int(b) & 0x7F) << shift
  12212. if b < 0x80 {
  12213. break
  12214. }
  12215. }
  12216. if byteLen < 0 {
  12217. return ErrInvalidLengthTypes
  12218. }
  12219. postIndex := iNdEx + byteLen
  12220. if postIndex > l {
  12221. return io.ErrUnexpectedEOF
  12222. }
  12223. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  12224. if m.Data == nil {
  12225. m.Data = []byte{}
  12226. }
  12227. iNdEx = postIndex
  12228. case 3:
  12229. if wireType != 2 {
  12230. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  12231. }
  12232. var stringLen uint64
  12233. for shift := uint(0); ; shift += 7 {
  12234. if shift >= 64 {
  12235. return ErrIntOverflowTypes
  12236. }
  12237. if iNdEx >= l {
  12238. return io.ErrUnexpectedEOF
  12239. }
  12240. b := dAtA[iNdEx]
  12241. iNdEx++
  12242. stringLen |= (uint64(b) & 0x7F) << shift
  12243. if b < 0x80 {
  12244. break
  12245. }
  12246. }
  12247. intStringLen := int(stringLen)
  12248. if intStringLen < 0 {
  12249. return ErrInvalidLengthTypes
  12250. }
  12251. postIndex := iNdEx + intStringLen
  12252. if postIndex > l {
  12253. return io.ErrUnexpectedEOF
  12254. }
  12255. m.Log = string(dAtA[iNdEx:postIndex])
  12256. iNdEx = postIndex
  12257. case 4:
  12258. if wireType != 2 {
  12259. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  12260. }
  12261. var stringLen uint64
  12262. for shift := uint(0); ; shift += 7 {
  12263. if shift >= 64 {
  12264. return ErrIntOverflowTypes
  12265. }
  12266. if iNdEx >= l {
  12267. return io.ErrUnexpectedEOF
  12268. }
  12269. b := dAtA[iNdEx]
  12270. iNdEx++
  12271. stringLen |= (uint64(b) & 0x7F) << shift
  12272. if b < 0x80 {
  12273. break
  12274. }
  12275. }
  12276. intStringLen := int(stringLen)
  12277. if intStringLen < 0 {
  12278. return ErrInvalidLengthTypes
  12279. }
  12280. postIndex := iNdEx + intStringLen
  12281. if postIndex > l {
  12282. return io.ErrUnexpectedEOF
  12283. }
  12284. m.Info = string(dAtA[iNdEx:postIndex])
  12285. iNdEx = postIndex
  12286. case 5:
  12287. if wireType != 0 {
  12288. return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
  12289. }
  12290. m.GasWanted = 0
  12291. for shift := uint(0); ; shift += 7 {
  12292. if shift >= 64 {
  12293. return ErrIntOverflowTypes
  12294. }
  12295. if iNdEx >= l {
  12296. return io.ErrUnexpectedEOF
  12297. }
  12298. b := dAtA[iNdEx]
  12299. iNdEx++
  12300. m.GasWanted |= (int64(b) & 0x7F) << shift
  12301. if b < 0x80 {
  12302. break
  12303. }
  12304. }
  12305. case 6:
  12306. if wireType != 0 {
  12307. return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
  12308. }
  12309. m.GasUsed = 0
  12310. for shift := uint(0); ; shift += 7 {
  12311. if shift >= 64 {
  12312. return ErrIntOverflowTypes
  12313. }
  12314. if iNdEx >= l {
  12315. return io.ErrUnexpectedEOF
  12316. }
  12317. b := dAtA[iNdEx]
  12318. iNdEx++
  12319. m.GasUsed |= (int64(b) & 0x7F) << shift
  12320. if b < 0x80 {
  12321. break
  12322. }
  12323. }
  12324. case 7:
  12325. if wireType != 2 {
  12326. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  12327. }
  12328. var msglen int
  12329. for shift := uint(0); ; shift += 7 {
  12330. if shift >= 64 {
  12331. return ErrIntOverflowTypes
  12332. }
  12333. if iNdEx >= l {
  12334. return io.ErrUnexpectedEOF
  12335. }
  12336. b := dAtA[iNdEx]
  12337. iNdEx++
  12338. msglen |= (int(b) & 0x7F) << shift
  12339. if b < 0x80 {
  12340. break
  12341. }
  12342. }
  12343. if msglen < 0 {
  12344. return ErrInvalidLengthTypes
  12345. }
  12346. postIndex := iNdEx + msglen
  12347. if postIndex > l {
  12348. return io.ErrUnexpectedEOF
  12349. }
  12350. m.Tags = append(m.Tags, common.KVPair{})
  12351. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12352. return err
  12353. }
  12354. iNdEx = postIndex
  12355. case 8:
  12356. if wireType != 2 {
  12357. return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType)
  12358. }
  12359. var stringLen uint64
  12360. for shift := uint(0); ; shift += 7 {
  12361. if shift >= 64 {
  12362. return ErrIntOverflowTypes
  12363. }
  12364. if iNdEx >= l {
  12365. return io.ErrUnexpectedEOF
  12366. }
  12367. b := dAtA[iNdEx]
  12368. iNdEx++
  12369. stringLen |= (uint64(b) & 0x7F) << shift
  12370. if b < 0x80 {
  12371. break
  12372. }
  12373. }
  12374. intStringLen := int(stringLen)
  12375. if intStringLen < 0 {
  12376. return ErrInvalidLengthTypes
  12377. }
  12378. postIndex := iNdEx + intStringLen
  12379. if postIndex > l {
  12380. return io.ErrUnexpectedEOF
  12381. }
  12382. m.Codespace = string(dAtA[iNdEx:postIndex])
  12383. iNdEx = postIndex
  12384. default:
  12385. iNdEx = preIndex
  12386. skippy, err := skipTypes(dAtA[iNdEx:])
  12387. if err != nil {
  12388. return err
  12389. }
  12390. if skippy < 0 {
  12391. return ErrInvalidLengthTypes
  12392. }
  12393. if (iNdEx + skippy) > l {
  12394. return io.ErrUnexpectedEOF
  12395. }
  12396. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12397. iNdEx += skippy
  12398. }
  12399. }
  12400. if iNdEx > l {
  12401. return io.ErrUnexpectedEOF
  12402. }
  12403. return nil
  12404. }
  12405. func (m *ResponseEndBlock) Unmarshal(dAtA []byte) error {
  12406. l := len(dAtA)
  12407. iNdEx := 0
  12408. for iNdEx < l {
  12409. preIndex := iNdEx
  12410. var wire uint64
  12411. for shift := uint(0); ; shift += 7 {
  12412. if shift >= 64 {
  12413. return ErrIntOverflowTypes
  12414. }
  12415. if iNdEx >= l {
  12416. return io.ErrUnexpectedEOF
  12417. }
  12418. b := dAtA[iNdEx]
  12419. iNdEx++
  12420. wire |= (uint64(b) & 0x7F) << shift
  12421. if b < 0x80 {
  12422. break
  12423. }
  12424. }
  12425. fieldNum := int32(wire >> 3)
  12426. wireType := int(wire & 0x7)
  12427. if wireType == 4 {
  12428. return fmt.Errorf("proto: ResponseEndBlock: wiretype end group for non-group")
  12429. }
  12430. if fieldNum <= 0 {
  12431. return fmt.Errorf("proto: ResponseEndBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  12432. }
  12433. switch fieldNum {
  12434. case 1:
  12435. if wireType != 2 {
  12436. return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdates", wireType)
  12437. }
  12438. var msglen int
  12439. for shift := uint(0); ; shift += 7 {
  12440. if shift >= 64 {
  12441. return ErrIntOverflowTypes
  12442. }
  12443. if iNdEx >= l {
  12444. return io.ErrUnexpectedEOF
  12445. }
  12446. b := dAtA[iNdEx]
  12447. iNdEx++
  12448. msglen |= (int(b) & 0x7F) << shift
  12449. if b < 0x80 {
  12450. break
  12451. }
  12452. }
  12453. if msglen < 0 {
  12454. return ErrInvalidLengthTypes
  12455. }
  12456. postIndex := iNdEx + msglen
  12457. if postIndex > l {
  12458. return io.ErrUnexpectedEOF
  12459. }
  12460. m.ValidatorUpdates = append(m.ValidatorUpdates, ValidatorUpdate{})
  12461. if err := m.ValidatorUpdates[len(m.ValidatorUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12462. return err
  12463. }
  12464. iNdEx = postIndex
  12465. case 2:
  12466. if wireType != 2 {
  12467. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParamUpdates", wireType)
  12468. }
  12469. var msglen int
  12470. for shift := uint(0); ; shift += 7 {
  12471. if shift >= 64 {
  12472. return ErrIntOverflowTypes
  12473. }
  12474. if iNdEx >= l {
  12475. return io.ErrUnexpectedEOF
  12476. }
  12477. b := dAtA[iNdEx]
  12478. iNdEx++
  12479. msglen |= (int(b) & 0x7F) << shift
  12480. if b < 0x80 {
  12481. break
  12482. }
  12483. }
  12484. if msglen < 0 {
  12485. return ErrInvalidLengthTypes
  12486. }
  12487. postIndex := iNdEx + msglen
  12488. if postIndex > l {
  12489. return io.ErrUnexpectedEOF
  12490. }
  12491. if m.ConsensusParamUpdates == nil {
  12492. m.ConsensusParamUpdates = &ConsensusParams{}
  12493. }
  12494. if err := m.ConsensusParamUpdates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12495. return err
  12496. }
  12497. iNdEx = postIndex
  12498. case 3:
  12499. if wireType != 2 {
  12500. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  12501. }
  12502. var msglen int
  12503. for shift := uint(0); ; shift += 7 {
  12504. if shift >= 64 {
  12505. return ErrIntOverflowTypes
  12506. }
  12507. if iNdEx >= l {
  12508. return io.ErrUnexpectedEOF
  12509. }
  12510. b := dAtA[iNdEx]
  12511. iNdEx++
  12512. msglen |= (int(b) & 0x7F) << shift
  12513. if b < 0x80 {
  12514. break
  12515. }
  12516. }
  12517. if msglen < 0 {
  12518. return ErrInvalidLengthTypes
  12519. }
  12520. postIndex := iNdEx + msglen
  12521. if postIndex > l {
  12522. return io.ErrUnexpectedEOF
  12523. }
  12524. m.Tags = append(m.Tags, common.KVPair{})
  12525. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12526. return err
  12527. }
  12528. iNdEx = postIndex
  12529. default:
  12530. iNdEx = preIndex
  12531. skippy, err := skipTypes(dAtA[iNdEx:])
  12532. if err != nil {
  12533. return err
  12534. }
  12535. if skippy < 0 {
  12536. return ErrInvalidLengthTypes
  12537. }
  12538. if (iNdEx + skippy) > l {
  12539. return io.ErrUnexpectedEOF
  12540. }
  12541. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12542. iNdEx += skippy
  12543. }
  12544. }
  12545. if iNdEx > l {
  12546. return io.ErrUnexpectedEOF
  12547. }
  12548. return nil
  12549. }
  12550. func (m *ResponseCommit) Unmarshal(dAtA []byte) error {
  12551. l := len(dAtA)
  12552. iNdEx := 0
  12553. for iNdEx < l {
  12554. preIndex := iNdEx
  12555. var wire uint64
  12556. for shift := uint(0); ; shift += 7 {
  12557. if shift >= 64 {
  12558. return ErrIntOverflowTypes
  12559. }
  12560. if iNdEx >= l {
  12561. return io.ErrUnexpectedEOF
  12562. }
  12563. b := dAtA[iNdEx]
  12564. iNdEx++
  12565. wire |= (uint64(b) & 0x7F) << shift
  12566. if b < 0x80 {
  12567. break
  12568. }
  12569. }
  12570. fieldNum := int32(wire >> 3)
  12571. wireType := int(wire & 0x7)
  12572. if wireType == 4 {
  12573. return fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group")
  12574. }
  12575. if fieldNum <= 0 {
  12576. return fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire)
  12577. }
  12578. switch fieldNum {
  12579. case 2:
  12580. if wireType != 2 {
  12581. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  12582. }
  12583. var byteLen int
  12584. for shift := uint(0); ; shift += 7 {
  12585. if shift >= 64 {
  12586. return ErrIntOverflowTypes
  12587. }
  12588. if iNdEx >= l {
  12589. return io.ErrUnexpectedEOF
  12590. }
  12591. b := dAtA[iNdEx]
  12592. iNdEx++
  12593. byteLen |= (int(b) & 0x7F) << shift
  12594. if b < 0x80 {
  12595. break
  12596. }
  12597. }
  12598. if byteLen < 0 {
  12599. return ErrInvalidLengthTypes
  12600. }
  12601. postIndex := iNdEx + byteLen
  12602. if postIndex > l {
  12603. return io.ErrUnexpectedEOF
  12604. }
  12605. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  12606. if m.Data == nil {
  12607. m.Data = []byte{}
  12608. }
  12609. iNdEx = postIndex
  12610. default:
  12611. iNdEx = preIndex
  12612. skippy, err := skipTypes(dAtA[iNdEx:])
  12613. if err != nil {
  12614. return err
  12615. }
  12616. if skippy < 0 {
  12617. return ErrInvalidLengthTypes
  12618. }
  12619. if (iNdEx + skippy) > l {
  12620. return io.ErrUnexpectedEOF
  12621. }
  12622. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12623. iNdEx += skippy
  12624. }
  12625. }
  12626. if iNdEx > l {
  12627. return io.ErrUnexpectedEOF
  12628. }
  12629. return nil
  12630. }
  12631. func (m *ConsensusParams) Unmarshal(dAtA []byte) error {
  12632. l := len(dAtA)
  12633. iNdEx := 0
  12634. for iNdEx < l {
  12635. preIndex := iNdEx
  12636. var wire uint64
  12637. for shift := uint(0); ; shift += 7 {
  12638. if shift >= 64 {
  12639. return ErrIntOverflowTypes
  12640. }
  12641. if iNdEx >= l {
  12642. return io.ErrUnexpectedEOF
  12643. }
  12644. b := dAtA[iNdEx]
  12645. iNdEx++
  12646. wire |= (uint64(b) & 0x7F) << shift
  12647. if b < 0x80 {
  12648. break
  12649. }
  12650. }
  12651. fieldNum := int32(wire >> 3)
  12652. wireType := int(wire & 0x7)
  12653. if wireType == 4 {
  12654. return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group")
  12655. }
  12656. if fieldNum <= 0 {
  12657. return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire)
  12658. }
  12659. switch fieldNum {
  12660. case 1:
  12661. if wireType != 2 {
  12662. return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType)
  12663. }
  12664. var msglen int
  12665. for shift := uint(0); ; shift += 7 {
  12666. if shift >= 64 {
  12667. return ErrIntOverflowTypes
  12668. }
  12669. if iNdEx >= l {
  12670. return io.ErrUnexpectedEOF
  12671. }
  12672. b := dAtA[iNdEx]
  12673. iNdEx++
  12674. msglen |= (int(b) & 0x7F) << shift
  12675. if b < 0x80 {
  12676. break
  12677. }
  12678. }
  12679. if msglen < 0 {
  12680. return ErrInvalidLengthTypes
  12681. }
  12682. postIndex := iNdEx + msglen
  12683. if postIndex > l {
  12684. return io.ErrUnexpectedEOF
  12685. }
  12686. if m.BlockSize == nil {
  12687. m.BlockSize = &BlockSizeParams{}
  12688. }
  12689. if err := m.BlockSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12690. return err
  12691. }
  12692. iNdEx = postIndex
  12693. case 2:
  12694. if wireType != 2 {
  12695. return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType)
  12696. }
  12697. var msglen int
  12698. for shift := uint(0); ; shift += 7 {
  12699. if shift >= 64 {
  12700. return ErrIntOverflowTypes
  12701. }
  12702. if iNdEx >= l {
  12703. return io.ErrUnexpectedEOF
  12704. }
  12705. b := dAtA[iNdEx]
  12706. iNdEx++
  12707. msglen |= (int(b) & 0x7F) << shift
  12708. if b < 0x80 {
  12709. break
  12710. }
  12711. }
  12712. if msglen < 0 {
  12713. return ErrInvalidLengthTypes
  12714. }
  12715. postIndex := iNdEx + msglen
  12716. if postIndex > l {
  12717. return io.ErrUnexpectedEOF
  12718. }
  12719. if m.Evidence == nil {
  12720. m.Evidence = &EvidenceParams{}
  12721. }
  12722. if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12723. return err
  12724. }
  12725. iNdEx = postIndex
  12726. case 3:
  12727. if wireType != 2 {
  12728. return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  12729. }
  12730. var msglen int
  12731. for shift := uint(0); ; shift += 7 {
  12732. if shift >= 64 {
  12733. return ErrIntOverflowTypes
  12734. }
  12735. if iNdEx >= l {
  12736. return io.ErrUnexpectedEOF
  12737. }
  12738. b := dAtA[iNdEx]
  12739. iNdEx++
  12740. msglen |= (int(b) & 0x7F) << shift
  12741. if b < 0x80 {
  12742. break
  12743. }
  12744. }
  12745. if msglen < 0 {
  12746. return ErrInvalidLengthTypes
  12747. }
  12748. postIndex := iNdEx + msglen
  12749. if postIndex > l {
  12750. return io.ErrUnexpectedEOF
  12751. }
  12752. if m.Validator == nil {
  12753. m.Validator = &ValidatorParams{}
  12754. }
  12755. if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12756. return err
  12757. }
  12758. iNdEx = postIndex
  12759. default:
  12760. iNdEx = preIndex
  12761. skippy, err := skipTypes(dAtA[iNdEx:])
  12762. if err != nil {
  12763. return err
  12764. }
  12765. if skippy < 0 {
  12766. return ErrInvalidLengthTypes
  12767. }
  12768. if (iNdEx + skippy) > l {
  12769. return io.ErrUnexpectedEOF
  12770. }
  12771. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12772. iNdEx += skippy
  12773. }
  12774. }
  12775. if iNdEx > l {
  12776. return io.ErrUnexpectedEOF
  12777. }
  12778. return nil
  12779. }
  12780. func (m *BlockSizeParams) Unmarshal(dAtA []byte) error {
  12781. l := len(dAtA)
  12782. iNdEx := 0
  12783. for iNdEx < l {
  12784. preIndex := iNdEx
  12785. var wire uint64
  12786. for shift := uint(0); ; shift += 7 {
  12787. if shift >= 64 {
  12788. return ErrIntOverflowTypes
  12789. }
  12790. if iNdEx >= l {
  12791. return io.ErrUnexpectedEOF
  12792. }
  12793. b := dAtA[iNdEx]
  12794. iNdEx++
  12795. wire |= (uint64(b) & 0x7F) << shift
  12796. if b < 0x80 {
  12797. break
  12798. }
  12799. }
  12800. fieldNum := int32(wire >> 3)
  12801. wireType := int(wire & 0x7)
  12802. if wireType == 4 {
  12803. return fmt.Errorf("proto: BlockSizeParams: wiretype end group for non-group")
  12804. }
  12805. if fieldNum <= 0 {
  12806. return fmt.Errorf("proto: BlockSizeParams: illegal tag %d (wire type %d)", fieldNum, wire)
  12807. }
  12808. switch fieldNum {
  12809. case 1:
  12810. if wireType != 0 {
  12811. return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType)
  12812. }
  12813. m.MaxBytes = 0
  12814. for shift := uint(0); ; shift += 7 {
  12815. if shift >= 64 {
  12816. return ErrIntOverflowTypes
  12817. }
  12818. if iNdEx >= l {
  12819. return io.ErrUnexpectedEOF
  12820. }
  12821. b := dAtA[iNdEx]
  12822. iNdEx++
  12823. m.MaxBytes |= (int64(b) & 0x7F) << shift
  12824. if b < 0x80 {
  12825. break
  12826. }
  12827. }
  12828. case 2:
  12829. if wireType != 0 {
  12830. return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType)
  12831. }
  12832. m.MaxGas = 0
  12833. for shift := uint(0); ; shift += 7 {
  12834. if shift >= 64 {
  12835. return ErrIntOverflowTypes
  12836. }
  12837. if iNdEx >= l {
  12838. return io.ErrUnexpectedEOF
  12839. }
  12840. b := dAtA[iNdEx]
  12841. iNdEx++
  12842. m.MaxGas |= (int64(b) & 0x7F) << shift
  12843. if b < 0x80 {
  12844. break
  12845. }
  12846. }
  12847. default:
  12848. iNdEx = preIndex
  12849. skippy, err := skipTypes(dAtA[iNdEx:])
  12850. if err != nil {
  12851. return err
  12852. }
  12853. if skippy < 0 {
  12854. return ErrInvalidLengthTypes
  12855. }
  12856. if (iNdEx + skippy) > l {
  12857. return io.ErrUnexpectedEOF
  12858. }
  12859. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12860. iNdEx += skippy
  12861. }
  12862. }
  12863. if iNdEx > l {
  12864. return io.ErrUnexpectedEOF
  12865. }
  12866. return nil
  12867. }
  12868. func (m *EvidenceParams) Unmarshal(dAtA []byte) error {
  12869. l := len(dAtA)
  12870. iNdEx := 0
  12871. for iNdEx < l {
  12872. preIndex := iNdEx
  12873. var wire uint64
  12874. for shift := uint(0); ; shift += 7 {
  12875. if shift >= 64 {
  12876. return ErrIntOverflowTypes
  12877. }
  12878. if iNdEx >= l {
  12879. return io.ErrUnexpectedEOF
  12880. }
  12881. b := dAtA[iNdEx]
  12882. iNdEx++
  12883. wire |= (uint64(b) & 0x7F) << shift
  12884. if b < 0x80 {
  12885. break
  12886. }
  12887. }
  12888. fieldNum := int32(wire >> 3)
  12889. wireType := int(wire & 0x7)
  12890. if wireType == 4 {
  12891. return fmt.Errorf("proto: EvidenceParams: wiretype end group for non-group")
  12892. }
  12893. if fieldNum <= 0 {
  12894. return fmt.Errorf("proto: EvidenceParams: illegal tag %d (wire type %d)", fieldNum, wire)
  12895. }
  12896. switch fieldNum {
  12897. case 1:
  12898. if wireType != 0 {
  12899. return fmt.Errorf("proto: wrong wireType = %d for field MaxAge", wireType)
  12900. }
  12901. m.MaxAge = 0
  12902. for shift := uint(0); ; shift += 7 {
  12903. if shift >= 64 {
  12904. return ErrIntOverflowTypes
  12905. }
  12906. if iNdEx >= l {
  12907. return io.ErrUnexpectedEOF
  12908. }
  12909. b := dAtA[iNdEx]
  12910. iNdEx++
  12911. m.MaxAge |= (int64(b) & 0x7F) << shift
  12912. if b < 0x80 {
  12913. break
  12914. }
  12915. }
  12916. default:
  12917. iNdEx = preIndex
  12918. skippy, err := skipTypes(dAtA[iNdEx:])
  12919. if err != nil {
  12920. return err
  12921. }
  12922. if skippy < 0 {
  12923. return ErrInvalidLengthTypes
  12924. }
  12925. if (iNdEx + skippy) > l {
  12926. return io.ErrUnexpectedEOF
  12927. }
  12928. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12929. iNdEx += skippy
  12930. }
  12931. }
  12932. if iNdEx > l {
  12933. return io.ErrUnexpectedEOF
  12934. }
  12935. return nil
  12936. }
  12937. func (m *ValidatorParams) Unmarshal(dAtA []byte) error {
  12938. l := len(dAtA)
  12939. iNdEx := 0
  12940. for iNdEx < l {
  12941. preIndex := iNdEx
  12942. var wire uint64
  12943. for shift := uint(0); ; shift += 7 {
  12944. if shift >= 64 {
  12945. return ErrIntOverflowTypes
  12946. }
  12947. if iNdEx >= l {
  12948. return io.ErrUnexpectedEOF
  12949. }
  12950. b := dAtA[iNdEx]
  12951. iNdEx++
  12952. wire |= (uint64(b) & 0x7F) << shift
  12953. if b < 0x80 {
  12954. break
  12955. }
  12956. }
  12957. fieldNum := int32(wire >> 3)
  12958. wireType := int(wire & 0x7)
  12959. if wireType == 4 {
  12960. return fmt.Errorf("proto: ValidatorParams: wiretype end group for non-group")
  12961. }
  12962. if fieldNum <= 0 {
  12963. return fmt.Errorf("proto: ValidatorParams: illegal tag %d (wire type %d)", fieldNum, wire)
  12964. }
  12965. switch fieldNum {
  12966. case 1:
  12967. if wireType != 2 {
  12968. return fmt.Errorf("proto: wrong wireType = %d for field PubKeyTypes", wireType)
  12969. }
  12970. var stringLen uint64
  12971. for shift := uint(0); ; shift += 7 {
  12972. if shift >= 64 {
  12973. return ErrIntOverflowTypes
  12974. }
  12975. if iNdEx >= l {
  12976. return io.ErrUnexpectedEOF
  12977. }
  12978. b := dAtA[iNdEx]
  12979. iNdEx++
  12980. stringLen |= (uint64(b) & 0x7F) << shift
  12981. if b < 0x80 {
  12982. break
  12983. }
  12984. }
  12985. intStringLen := int(stringLen)
  12986. if intStringLen < 0 {
  12987. return ErrInvalidLengthTypes
  12988. }
  12989. postIndex := iNdEx + intStringLen
  12990. if postIndex > l {
  12991. return io.ErrUnexpectedEOF
  12992. }
  12993. m.PubKeyTypes = append(m.PubKeyTypes, string(dAtA[iNdEx:postIndex]))
  12994. iNdEx = postIndex
  12995. default:
  12996. iNdEx = preIndex
  12997. skippy, err := skipTypes(dAtA[iNdEx:])
  12998. if err != nil {
  12999. return err
  13000. }
  13001. if skippy < 0 {
  13002. return ErrInvalidLengthTypes
  13003. }
  13004. if (iNdEx + skippy) > l {
  13005. return io.ErrUnexpectedEOF
  13006. }
  13007. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13008. iNdEx += skippy
  13009. }
  13010. }
  13011. if iNdEx > l {
  13012. return io.ErrUnexpectedEOF
  13013. }
  13014. return nil
  13015. }
  13016. func (m *LastCommitInfo) Unmarshal(dAtA []byte) error {
  13017. l := len(dAtA)
  13018. iNdEx := 0
  13019. for iNdEx < l {
  13020. preIndex := iNdEx
  13021. var wire uint64
  13022. for shift := uint(0); ; shift += 7 {
  13023. if shift >= 64 {
  13024. return ErrIntOverflowTypes
  13025. }
  13026. if iNdEx >= l {
  13027. return io.ErrUnexpectedEOF
  13028. }
  13029. b := dAtA[iNdEx]
  13030. iNdEx++
  13031. wire |= (uint64(b) & 0x7F) << shift
  13032. if b < 0x80 {
  13033. break
  13034. }
  13035. }
  13036. fieldNum := int32(wire >> 3)
  13037. wireType := int(wire & 0x7)
  13038. if wireType == 4 {
  13039. return fmt.Errorf("proto: LastCommitInfo: wiretype end group for non-group")
  13040. }
  13041. if fieldNum <= 0 {
  13042. return fmt.Errorf("proto: LastCommitInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  13043. }
  13044. switch fieldNum {
  13045. case 1:
  13046. if wireType != 0 {
  13047. return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  13048. }
  13049. m.Round = 0
  13050. for shift := uint(0); ; shift += 7 {
  13051. if shift >= 64 {
  13052. return ErrIntOverflowTypes
  13053. }
  13054. if iNdEx >= l {
  13055. return io.ErrUnexpectedEOF
  13056. }
  13057. b := dAtA[iNdEx]
  13058. iNdEx++
  13059. m.Round |= (int32(b) & 0x7F) << shift
  13060. if b < 0x80 {
  13061. break
  13062. }
  13063. }
  13064. case 2:
  13065. if wireType != 2 {
  13066. return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
  13067. }
  13068. var msglen int
  13069. for shift := uint(0); ; shift += 7 {
  13070. if shift >= 64 {
  13071. return ErrIntOverflowTypes
  13072. }
  13073. if iNdEx >= l {
  13074. return io.ErrUnexpectedEOF
  13075. }
  13076. b := dAtA[iNdEx]
  13077. iNdEx++
  13078. msglen |= (int(b) & 0x7F) << shift
  13079. if b < 0x80 {
  13080. break
  13081. }
  13082. }
  13083. if msglen < 0 {
  13084. return ErrInvalidLengthTypes
  13085. }
  13086. postIndex := iNdEx + msglen
  13087. if postIndex > l {
  13088. return io.ErrUnexpectedEOF
  13089. }
  13090. m.Votes = append(m.Votes, VoteInfo{})
  13091. if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13092. return err
  13093. }
  13094. iNdEx = postIndex
  13095. default:
  13096. iNdEx = preIndex
  13097. skippy, err := skipTypes(dAtA[iNdEx:])
  13098. if err != nil {
  13099. return err
  13100. }
  13101. if skippy < 0 {
  13102. return ErrInvalidLengthTypes
  13103. }
  13104. if (iNdEx + skippy) > l {
  13105. return io.ErrUnexpectedEOF
  13106. }
  13107. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13108. iNdEx += skippy
  13109. }
  13110. }
  13111. if iNdEx > l {
  13112. return io.ErrUnexpectedEOF
  13113. }
  13114. return nil
  13115. }
  13116. func (m *Header) Unmarshal(dAtA []byte) error {
  13117. l := len(dAtA)
  13118. iNdEx := 0
  13119. for iNdEx < l {
  13120. preIndex := iNdEx
  13121. var wire uint64
  13122. for shift := uint(0); ; shift += 7 {
  13123. if shift >= 64 {
  13124. return ErrIntOverflowTypes
  13125. }
  13126. if iNdEx >= l {
  13127. return io.ErrUnexpectedEOF
  13128. }
  13129. b := dAtA[iNdEx]
  13130. iNdEx++
  13131. wire |= (uint64(b) & 0x7F) << shift
  13132. if b < 0x80 {
  13133. break
  13134. }
  13135. }
  13136. fieldNum := int32(wire >> 3)
  13137. wireType := int(wire & 0x7)
  13138. if wireType == 4 {
  13139. return fmt.Errorf("proto: Header: wiretype end group for non-group")
  13140. }
  13141. if fieldNum <= 0 {
  13142. return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
  13143. }
  13144. switch fieldNum {
  13145. case 1:
  13146. if wireType != 2 {
  13147. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  13148. }
  13149. var msglen int
  13150. for shift := uint(0); ; shift += 7 {
  13151. if shift >= 64 {
  13152. return ErrIntOverflowTypes
  13153. }
  13154. if iNdEx >= l {
  13155. return io.ErrUnexpectedEOF
  13156. }
  13157. b := dAtA[iNdEx]
  13158. iNdEx++
  13159. msglen |= (int(b) & 0x7F) << shift
  13160. if b < 0x80 {
  13161. break
  13162. }
  13163. }
  13164. if msglen < 0 {
  13165. return ErrInvalidLengthTypes
  13166. }
  13167. postIndex := iNdEx + msglen
  13168. if postIndex > l {
  13169. return io.ErrUnexpectedEOF
  13170. }
  13171. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13172. return err
  13173. }
  13174. iNdEx = postIndex
  13175. case 2:
  13176. if wireType != 2 {
  13177. return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType)
  13178. }
  13179. var stringLen uint64
  13180. for shift := uint(0); ; shift += 7 {
  13181. if shift >= 64 {
  13182. return ErrIntOverflowTypes
  13183. }
  13184. if iNdEx >= l {
  13185. return io.ErrUnexpectedEOF
  13186. }
  13187. b := dAtA[iNdEx]
  13188. iNdEx++
  13189. stringLen |= (uint64(b) & 0x7F) << shift
  13190. if b < 0x80 {
  13191. break
  13192. }
  13193. }
  13194. intStringLen := int(stringLen)
  13195. if intStringLen < 0 {
  13196. return ErrInvalidLengthTypes
  13197. }
  13198. postIndex := iNdEx + intStringLen
  13199. if postIndex > l {
  13200. return io.ErrUnexpectedEOF
  13201. }
  13202. m.ChainID = string(dAtA[iNdEx:postIndex])
  13203. iNdEx = postIndex
  13204. case 3:
  13205. if wireType != 0 {
  13206. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  13207. }
  13208. m.Height = 0
  13209. for shift := uint(0); ; shift += 7 {
  13210. if shift >= 64 {
  13211. return ErrIntOverflowTypes
  13212. }
  13213. if iNdEx >= l {
  13214. return io.ErrUnexpectedEOF
  13215. }
  13216. b := dAtA[iNdEx]
  13217. iNdEx++
  13218. m.Height |= (int64(b) & 0x7F) << shift
  13219. if b < 0x80 {
  13220. break
  13221. }
  13222. }
  13223. case 4:
  13224. if wireType != 2 {
  13225. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  13226. }
  13227. var msglen int
  13228. for shift := uint(0); ; shift += 7 {
  13229. if shift >= 64 {
  13230. return ErrIntOverflowTypes
  13231. }
  13232. if iNdEx >= l {
  13233. return io.ErrUnexpectedEOF
  13234. }
  13235. b := dAtA[iNdEx]
  13236. iNdEx++
  13237. msglen |= (int(b) & 0x7F) << shift
  13238. if b < 0x80 {
  13239. break
  13240. }
  13241. }
  13242. if msglen < 0 {
  13243. return ErrInvalidLengthTypes
  13244. }
  13245. postIndex := iNdEx + msglen
  13246. if postIndex > l {
  13247. return io.ErrUnexpectedEOF
  13248. }
  13249. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  13250. return err
  13251. }
  13252. iNdEx = postIndex
  13253. case 5:
  13254. if wireType != 0 {
  13255. return fmt.Errorf("proto: wrong wireType = %d for field NumTxs", wireType)
  13256. }
  13257. m.NumTxs = 0
  13258. for shift := uint(0); ; shift += 7 {
  13259. if shift >= 64 {
  13260. return ErrIntOverflowTypes
  13261. }
  13262. if iNdEx >= l {
  13263. return io.ErrUnexpectedEOF
  13264. }
  13265. b := dAtA[iNdEx]
  13266. iNdEx++
  13267. m.NumTxs |= (int64(b) & 0x7F) << shift
  13268. if b < 0x80 {
  13269. break
  13270. }
  13271. }
  13272. case 6:
  13273. if wireType != 0 {
  13274. return fmt.Errorf("proto: wrong wireType = %d for field TotalTxs", wireType)
  13275. }
  13276. m.TotalTxs = 0
  13277. for shift := uint(0); ; shift += 7 {
  13278. if shift >= 64 {
  13279. return ErrIntOverflowTypes
  13280. }
  13281. if iNdEx >= l {
  13282. return io.ErrUnexpectedEOF
  13283. }
  13284. b := dAtA[iNdEx]
  13285. iNdEx++
  13286. m.TotalTxs |= (int64(b) & 0x7F) << shift
  13287. if b < 0x80 {
  13288. break
  13289. }
  13290. }
  13291. case 7:
  13292. if wireType != 2 {
  13293. return fmt.Errorf("proto: wrong wireType = %d for field LastBlockId", wireType)
  13294. }
  13295. var msglen int
  13296. for shift := uint(0); ; shift += 7 {
  13297. if shift >= 64 {
  13298. return ErrIntOverflowTypes
  13299. }
  13300. if iNdEx >= l {
  13301. return io.ErrUnexpectedEOF
  13302. }
  13303. b := dAtA[iNdEx]
  13304. iNdEx++
  13305. msglen |= (int(b) & 0x7F) << shift
  13306. if b < 0x80 {
  13307. break
  13308. }
  13309. }
  13310. if msglen < 0 {
  13311. return ErrInvalidLengthTypes
  13312. }
  13313. postIndex := iNdEx + msglen
  13314. if postIndex > l {
  13315. return io.ErrUnexpectedEOF
  13316. }
  13317. if err := m.LastBlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13318. return err
  13319. }
  13320. iNdEx = postIndex
  13321. case 8:
  13322. if wireType != 2 {
  13323. return fmt.Errorf("proto: wrong wireType = %d for field LastCommitHash", wireType)
  13324. }
  13325. var byteLen int
  13326. for shift := uint(0); ; shift += 7 {
  13327. if shift >= 64 {
  13328. return ErrIntOverflowTypes
  13329. }
  13330. if iNdEx >= l {
  13331. return io.ErrUnexpectedEOF
  13332. }
  13333. b := dAtA[iNdEx]
  13334. iNdEx++
  13335. byteLen |= (int(b) & 0x7F) << shift
  13336. if b < 0x80 {
  13337. break
  13338. }
  13339. }
  13340. if byteLen < 0 {
  13341. return ErrInvalidLengthTypes
  13342. }
  13343. postIndex := iNdEx + byteLen
  13344. if postIndex > l {
  13345. return io.ErrUnexpectedEOF
  13346. }
  13347. m.LastCommitHash = append(m.LastCommitHash[:0], dAtA[iNdEx:postIndex]...)
  13348. if m.LastCommitHash == nil {
  13349. m.LastCommitHash = []byte{}
  13350. }
  13351. iNdEx = postIndex
  13352. case 9:
  13353. if wireType != 2 {
  13354. return fmt.Errorf("proto: wrong wireType = %d for field DataHash", wireType)
  13355. }
  13356. var byteLen int
  13357. for shift := uint(0); ; shift += 7 {
  13358. if shift >= 64 {
  13359. return ErrIntOverflowTypes
  13360. }
  13361. if iNdEx >= l {
  13362. return io.ErrUnexpectedEOF
  13363. }
  13364. b := dAtA[iNdEx]
  13365. iNdEx++
  13366. byteLen |= (int(b) & 0x7F) << shift
  13367. if b < 0x80 {
  13368. break
  13369. }
  13370. }
  13371. if byteLen < 0 {
  13372. return ErrInvalidLengthTypes
  13373. }
  13374. postIndex := iNdEx + byteLen
  13375. if postIndex > l {
  13376. return io.ErrUnexpectedEOF
  13377. }
  13378. m.DataHash = append(m.DataHash[:0], dAtA[iNdEx:postIndex]...)
  13379. if m.DataHash == nil {
  13380. m.DataHash = []byte{}
  13381. }
  13382. iNdEx = postIndex
  13383. case 10:
  13384. if wireType != 2 {
  13385. return fmt.Errorf("proto: wrong wireType = %d for field ValidatorsHash", wireType)
  13386. }
  13387. var byteLen int
  13388. for shift := uint(0); ; shift += 7 {
  13389. if shift >= 64 {
  13390. return ErrIntOverflowTypes
  13391. }
  13392. if iNdEx >= l {
  13393. return io.ErrUnexpectedEOF
  13394. }
  13395. b := dAtA[iNdEx]
  13396. iNdEx++
  13397. byteLen |= (int(b) & 0x7F) << shift
  13398. if b < 0x80 {
  13399. break
  13400. }
  13401. }
  13402. if byteLen < 0 {
  13403. return ErrInvalidLengthTypes
  13404. }
  13405. postIndex := iNdEx + byteLen
  13406. if postIndex > l {
  13407. return io.ErrUnexpectedEOF
  13408. }
  13409. m.ValidatorsHash = append(m.ValidatorsHash[:0], dAtA[iNdEx:postIndex]...)
  13410. if m.ValidatorsHash == nil {
  13411. m.ValidatorsHash = []byte{}
  13412. }
  13413. iNdEx = postIndex
  13414. case 11:
  13415. if wireType != 2 {
  13416. return fmt.Errorf("proto: wrong wireType = %d for field NextValidatorsHash", wireType)
  13417. }
  13418. var byteLen int
  13419. for shift := uint(0); ; shift += 7 {
  13420. if shift >= 64 {
  13421. return ErrIntOverflowTypes
  13422. }
  13423. if iNdEx >= l {
  13424. return io.ErrUnexpectedEOF
  13425. }
  13426. b := dAtA[iNdEx]
  13427. iNdEx++
  13428. byteLen |= (int(b) & 0x7F) << shift
  13429. if b < 0x80 {
  13430. break
  13431. }
  13432. }
  13433. if byteLen < 0 {
  13434. return ErrInvalidLengthTypes
  13435. }
  13436. postIndex := iNdEx + byteLen
  13437. if postIndex > l {
  13438. return io.ErrUnexpectedEOF
  13439. }
  13440. m.NextValidatorsHash = append(m.NextValidatorsHash[:0], dAtA[iNdEx:postIndex]...)
  13441. if m.NextValidatorsHash == nil {
  13442. m.NextValidatorsHash = []byte{}
  13443. }
  13444. iNdEx = postIndex
  13445. case 12:
  13446. if wireType != 2 {
  13447. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusHash", wireType)
  13448. }
  13449. var byteLen int
  13450. for shift := uint(0); ; shift += 7 {
  13451. if shift >= 64 {
  13452. return ErrIntOverflowTypes
  13453. }
  13454. if iNdEx >= l {
  13455. return io.ErrUnexpectedEOF
  13456. }
  13457. b := dAtA[iNdEx]
  13458. iNdEx++
  13459. byteLen |= (int(b) & 0x7F) << shift
  13460. if b < 0x80 {
  13461. break
  13462. }
  13463. }
  13464. if byteLen < 0 {
  13465. return ErrInvalidLengthTypes
  13466. }
  13467. postIndex := iNdEx + byteLen
  13468. if postIndex > l {
  13469. return io.ErrUnexpectedEOF
  13470. }
  13471. m.ConsensusHash = append(m.ConsensusHash[:0], dAtA[iNdEx:postIndex]...)
  13472. if m.ConsensusHash == nil {
  13473. m.ConsensusHash = []byte{}
  13474. }
  13475. iNdEx = postIndex
  13476. case 13:
  13477. if wireType != 2 {
  13478. return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType)
  13479. }
  13480. var byteLen int
  13481. for shift := uint(0); ; shift += 7 {
  13482. if shift >= 64 {
  13483. return ErrIntOverflowTypes
  13484. }
  13485. if iNdEx >= l {
  13486. return io.ErrUnexpectedEOF
  13487. }
  13488. b := dAtA[iNdEx]
  13489. iNdEx++
  13490. byteLen |= (int(b) & 0x7F) << shift
  13491. if b < 0x80 {
  13492. break
  13493. }
  13494. }
  13495. if byteLen < 0 {
  13496. return ErrInvalidLengthTypes
  13497. }
  13498. postIndex := iNdEx + byteLen
  13499. if postIndex > l {
  13500. return io.ErrUnexpectedEOF
  13501. }
  13502. m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...)
  13503. if m.AppHash == nil {
  13504. m.AppHash = []byte{}
  13505. }
  13506. iNdEx = postIndex
  13507. case 14:
  13508. if wireType != 2 {
  13509. return fmt.Errorf("proto: wrong wireType = %d for field LastResultsHash", wireType)
  13510. }
  13511. var byteLen int
  13512. for shift := uint(0); ; shift += 7 {
  13513. if shift >= 64 {
  13514. return ErrIntOverflowTypes
  13515. }
  13516. if iNdEx >= l {
  13517. return io.ErrUnexpectedEOF
  13518. }
  13519. b := dAtA[iNdEx]
  13520. iNdEx++
  13521. byteLen |= (int(b) & 0x7F) << shift
  13522. if b < 0x80 {
  13523. break
  13524. }
  13525. }
  13526. if byteLen < 0 {
  13527. return ErrInvalidLengthTypes
  13528. }
  13529. postIndex := iNdEx + byteLen
  13530. if postIndex > l {
  13531. return io.ErrUnexpectedEOF
  13532. }
  13533. m.LastResultsHash = append(m.LastResultsHash[:0], dAtA[iNdEx:postIndex]...)
  13534. if m.LastResultsHash == nil {
  13535. m.LastResultsHash = []byte{}
  13536. }
  13537. iNdEx = postIndex
  13538. case 15:
  13539. if wireType != 2 {
  13540. return fmt.Errorf("proto: wrong wireType = %d for field EvidenceHash", wireType)
  13541. }
  13542. var byteLen int
  13543. for shift := uint(0); ; shift += 7 {
  13544. if shift >= 64 {
  13545. return ErrIntOverflowTypes
  13546. }
  13547. if iNdEx >= l {
  13548. return io.ErrUnexpectedEOF
  13549. }
  13550. b := dAtA[iNdEx]
  13551. iNdEx++
  13552. byteLen |= (int(b) & 0x7F) << shift
  13553. if b < 0x80 {
  13554. break
  13555. }
  13556. }
  13557. if byteLen < 0 {
  13558. return ErrInvalidLengthTypes
  13559. }
  13560. postIndex := iNdEx + byteLen
  13561. if postIndex > l {
  13562. return io.ErrUnexpectedEOF
  13563. }
  13564. m.EvidenceHash = append(m.EvidenceHash[:0], dAtA[iNdEx:postIndex]...)
  13565. if m.EvidenceHash == nil {
  13566. m.EvidenceHash = []byte{}
  13567. }
  13568. iNdEx = postIndex
  13569. case 16:
  13570. if wireType != 2 {
  13571. return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType)
  13572. }
  13573. var byteLen int
  13574. for shift := uint(0); ; shift += 7 {
  13575. if shift >= 64 {
  13576. return ErrIntOverflowTypes
  13577. }
  13578. if iNdEx >= l {
  13579. return io.ErrUnexpectedEOF
  13580. }
  13581. b := dAtA[iNdEx]
  13582. iNdEx++
  13583. byteLen |= (int(b) & 0x7F) << shift
  13584. if b < 0x80 {
  13585. break
  13586. }
  13587. }
  13588. if byteLen < 0 {
  13589. return ErrInvalidLengthTypes
  13590. }
  13591. postIndex := iNdEx + byteLen
  13592. if postIndex > l {
  13593. return io.ErrUnexpectedEOF
  13594. }
  13595. m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...)
  13596. if m.ProposerAddress == nil {
  13597. m.ProposerAddress = []byte{}
  13598. }
  13599. iNdEx = postIndex
  13600. default:
  13601. iNdEx = preIndex
  13602. skippy, err := skipTypes(dAtA[iNdEx:])
  13603. if err != nil {
  13604. return err
  13605. }
  13606. if skippy < 0 {
  13607. return ErrInvalidLengthTypes
  13608. }
  13609. if (iNdEx + skippy) > l {
  13610. return io.ErrUnexpectedEOF
  13611. }
  13612. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13613. iNdEx += skippy
  13614. }
  13615. }
  13616. if iNdEx > l {
  13617. return io.ErrUnexpectedEOF
  13618. }
  13619. return nil
  13620. }
  13621. func (m *Version) Unmarshal(dAtA []byte) error {
  13622. l := len(dAtA)
  13623. iNdEx := 0
  13624. for iNdEx < l {
  13625. preIndex := iNdEx
  13626. var wire uint64
  13627. for shift := uint(0); ; shift += 7 {
  13628. if shift >= 64 {
  13629. return ErrIntOverflowTypes
  13630. }
  13631. if iNdEx >= l {
  13632. return io.ErrUnexpectedEOF
  13633. }
  13634. b := dAtA[iNdEx]
  13635. iNdEx++
  13636. wire |= (uint64(b) & 0x7F) << shift
  13637. if b < 0x80 {
  13638. break
  13639. }
  13640. }
  13641. fieldNum := int32(wire >> 3)
  13642. wireType := int(wire & 0x7)
  13643. if wireType == 4 {
  13644. return fmt.Errorf("proto: Version: wiretype end group for non-group")
  13645. }
  13646. if fieldNum <= 0 {
  13647. return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire)
  13648. }
  13649. switch fieldNum {
  13650. case 1:
  13651. if wireType != 0 {
  13652. return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType)
  13653. }
  13654. m.Block = 0
  13655. for shift := uint(0); ; shift += 7 {
  13656. if shift >= 64 {
  13657. return ErrIntOverflowTypes
  13658. }
  13659. if iNdEx >= l {
  13660. return io.ErrUnexpectedEOF
  13661. }
  13662. b := dAtA[iNdEx]
  13663. iNdEx++
  13664. m.Block |= (uint64(b) & 0x7F) << shift
  13665. if b < 0x80 {
  13666. break
  13667. }
  13668. }
  13669. case 2:
  13670. if wireType != 0 {
  13671. return fmt.Errorf("proto: wrong wireType = %d for field App", wireType)
  13672. }
  13673. m.App = 0
  13674. for shift := uint(0); ; shift += 7 {
  13675. if shift >= 64 {
  13676. return ErrIntOverflowTypes
  13677. }
  13678. if iNdEx >= l {
  13679. return io.ErrUnexpectedEOF
  13680. }
  13681. b := dAtA[iNdEx]
  13682. iNdEx++
  13683. m.App |= (uint64(b) & 0x7F) << shift
  13684. if b < 0x80 {
  13685. break
  13686. }
  13687. }
  13688. default:
  13689. iNdEx = preIndex
  13690. skippy, err := skipTypes(dAtA[iNdEx:])
  13691. if err != nil {
  13692. return err
  13693. }
  13694. if skippy < 0 {
  13695. return ErrInvalidLengthTypes
  13696. }
  13697. if (iNdEx + skippy) > l {
  13698. return io.ErrUnexpectedEOF
  13699. }
  13700. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13701. iNdEx += skippy
  13702. }
  13703. }
  13704. if iNdEx > l {
  13705. return io.ErrUnexpectedEOF
  13706. }
  13707. return nil
  13708. }
  13709. func (m *BlockID) Unmarshal(dAtA []byte) error {
  13710. l := len(dAtA)
  13711. iNdEx := 0
  13712. for iNdEx < l {
  13713. preIndex := iNdEx
  13714. var wire uint64
  13715. for shift := uint(0); ; shift += 7 {
  13716. if shift >= 64 {
  13717. return ErrIntOverflowTypes
  13718. }
  13719. if iNdEx >= l {
  13720. return io.ErrUnexpectedEOF
  13721. }
  13722. b := dAtA[iNdEx]
  13723. iNdEx++
  13724. wire |= (uint64(b) & 0x7F) << shift
  13725. if b < 0x80 {
  13726. break
  13727. }
  13728. }
  13729. fieldNum := int32(wire >> 3)
  13730. wireType := int(wire & 0x7)
  13731. if wireType == 4 {
  13732. return fmt.Errorf("proto: BlockID: wiretype end group for non-group")
  13733. }
  13734. if fieldNum <= 0 {
  13735. return fmt.Errorf("proto: BlockID: illegal tag %d (wire type %d)", fieldNum, wire)
  13736. }
  13737. switch fieldNum {
  13738. case 1:
  13739. if wireType != 2 {
  13740. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  13741. }
  13742. var byteLen int
  13743. for shift := uint(0); ; shift += 7 {
  13744. if shift >= 64 {
  13745. return ErrIntOverflowTypes
  13746. }
  13747. if iNdEx >= l {
  13748. return io.ErrUnexpectedEOF
  13749. }
  13750. b := dAtA[iNdEx]
  13751. iNdEx++
  13752. byteLen |= (int(b) & 0x7F) << shift
  13753. if b < 0x80 {
  13754. break
  13755. }
  13756. }
  13757. if byteLen < 0 {
  13758. return ErrInvalidLengthTypes
  13759. }
  13760. postIndex := iNdEx + byteLen
  13761. if postIndex > l {
  13762. return io.ErrUnexpectedEOF
  13763. }
  13764. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  13765. if m.Hash == nil {
  13766. m.Hash = []byte{}
  13767. }
  13768. iNdEx = postIndex
  13769. case 2:
  13770. if wireType != 2 {
  13771. return fmt.Errorf("proto: wrong wireType = %d for field PartsHeader", wireType)
  13772. }
  13773. var msglen int
  13774. for shift := uint(0); ; shift += 7 {
  13775. if shift >= 64 {
  13776. return ErrIntOverflowTypes
  13777. }
  13778. if iNdEx >= l {
  13779. return io.ErrUnexpectedEOF
  13780. }
  13781. b := dAtA[iNdEx]
  13782. iNdEx++
  13783. msglen |= (int(b) & 0x7F) << shift
  13784. if b < 0x80 {
  13785. break
  13786. }
  13787. }
  13788. if msglen < 0 {
  13789. return ErrInvalidLengthTypes
  13790. }
  13791. postIndex := iNdEx + msglen
  13792. if postIndex > l {
  13793. return io.ErrUnexpectedEOF
  13794. }
  13795. if err := m.PartsHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13796. return err
  13797. }
  13798. iNdEx = postIndex
  13799. default:
  13800. iNdEx = preIndex
  13801. skippy, err := skipTypes(dAtA[iNdEx:])
  13802. if err != nil {
  13803. return err
  13804. }
  13805. if skippy < 0 {
  13806. return ErrInvalidLengthTypes
  13807. }
  13808. if (iNdEx + skippy) > l {
  13809. return io.ErrUnexpectedEOF
  13810. }
  13811. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13812. iNdEx += skippy
  13813. }
  13814. }
  13815. if iNdEx > l {
  13816. return io.ErrUnexpectedEOF
  13817. }
  13818. return nil
  13819. }
  13820. func (m *PartSetHeader) Unmarshal(dAtA []byte) error {
  13821. l := len(dAtA)
  13822. iNdEx := 0
  13823. for iNdEx < l {
  13824. preIndex := iNdEx
  13825. var wire uint64
  13826. for shift := uint(0); ; shift += 7 {
  13827. if shift >= 64 {
  13828. return ErrIntOverflowTypes
  13829. }
  13830. if iNdEx >= l {
  13831. return io.ErrUnexpectedEOF
  13832. }
  13833. b := dAtA[iNdEx]
  13834. iNdEx++
  13835. wire |= (uint64(b) & 0x7F) << shift
  13836. if b < 0x80 {
  13837. break
  13838. }
  13839. }
  13840. fieldNum := int32(wire >> 3)
  13841. wireType := int(wire & 0x7)
  13842. if wireType == 4 {
  13843. return fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group")
  13844. }
  13845. if fieldNum <= 0 {
  13846. return fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire)
  13847. }
  13848. switch fieldNum {
  13849. case 1:
  13850. if wireType != 0 {
  13851. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  13852. }
  13853. m.Total = 0
  13854. for shift := uint(0); ; shift += 7 {
  13855. if shift >= 64 {
  13856. return ErrIntOverflowTypes
  13857. }
  13858. if iNdEx >= l {
  13859. return io.ErrUnexpectedEOF
  13860. }
  13861. b := dAtA[iNdEx]
  13862. iNdEx++
  13863. m.Total |= (int32(b) & 0x7F) << shift
  13864. if b < 0x80 {
  13865. break
  13866. }
  13867. }
  13868. case 2:
  13869. if wireType != 2 {
  13870. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  13871. }
  13872. var byteLen int
  13873. for shift := uint(0); ; shift += 7 {
  13874. if shift >= 64 {
  13875. return ErrIntOverflowTypes
  13876. }
  13877. if iNdEx >= l {
  13878. return io.ErrUnexpectedEOF
  13879. }
  13880. b := dAtA[iNdEx]
  13881. iNdEx++
  13882. byteLen |= (int(b) & 0x7F) << shift
  13883. if b < 0x80 {
  13884. break
  13885. }
  13886. }
  13887. if byteLen < 0 {
  13888. return ErrInvalidLengthTypes
  13889. }
  13890. postIndex := iNdEx + byteLen
  13891. if postIndex > l {
  13892. return io.ErrUnexpectedEOF
  13893. }
  13894. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  13895. if m.Hash == nil {
  13896. m.Hash = []byte{}
  13897. }
  13898. iNdEx = postIndex
  13899. default:
  13900. iNdEx = preIndex
  13901. skippy, err := skipTypes(dAtA[iNdEx:])
  13902. if err != nil {
  13903. return err
  13904. }
  13905. if skippy < 0 {
  13906. return ErrInvalidLengthTypes
  13907. }
  13908. if (iNdEx + skippy) > l {
  13909. return io.ErrUnexpectedEOF
  13910. }
  13911. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13912. iNdEx += skippy
  13913. }
  13914. }
  13915. if iNdEx > l {
  13916. return io.ErrUnexpectedEOF
  13917. }
  13918. return nil
  13919. }
  13920. func (m *Validator) Unmarshal(dAtA []byte) error {
  13921. l := len(dAtA)
  13922. iNdEx := 0
  13923. for iNdEx < l {
  13924. preIndex := iNdEx
  13925. var wire uint64
  13926. for shift := uint(0); ; shift += 7 {
  13927. if shift >= 64 {
  13928. return ErrIntOverflowTypes
  13929. }
  13930. if iNdEx >= l {
  13931. return io.ErrUnexpectedEOF
  13932. }
  13933. b := dAtA[iNdEx]
  13934. iNdEx++
  13935. wire |= (uint64(b) & 0x7F) << shift
  13936. if b < 0x80 {
  13937. break
  13938. }
  13939. }
  13940. fieldNum := int32(wire >> 3)
  13941. wireType := int(wire & 0x7)
  13942. if wireType == 4 {
  13943. return fmt.Errorf("proto: Validator: wiretype end group for non-group")
  13944. }
  13945. if fieldNum <= 0 {
  13946. return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire)
  13947. }
  13948. switch fieldNum {
  13949. case 1:
  13950. if wireType != 2 {
  13951. return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  13952. }
  13953. var byteLen int
  13954. for shift := uint(0); ; shift += 7 {
  13955. if shift >= 64 {
  13956. return ErrIntOverflowTypes
  13957. }
  13958. if iNdEx >= l {
  13959. return io.ErrUnexpectedEOF
  13960. }
  13961. b := dAtA[iNdEx]
  13962. iNdEx++
  13963. byteLen |= (int(b) & 0x7F) << shift
  13964. if b < 0x80 {
  13965. break
  13966. }
  13967. }
  13968. if byteLen < 0 {
  13969. return ErrInvalidLengthTypes
  13970. }
  13971. postIndex := iNdEx + byteLen
  13972. if postIndex > l {
  13973. return io.ErrUnexpectedEOF
  13974. }
  13975. m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...)
  13976. if m.Address == nil {
  13977. m.Address = []byte{}
  13978. }
  13979. iNdEx = postIndex
  13980. case 3:
  13981. if wireType != 0 {
  13982. return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
  13983. }
  13984. m.Power = 0
  13985. for shift := uint(0); ; shift += 7 {
  13986. if shift >= 64 {
  13987. return ErrIntOverflowTypes
  13988. }
  13989. if iNdEx >= l {
  13990. return io.ErrUnexpectedEOF
  13991. }
  13992. b := dAtA[iNdEx]
  13993. iNdEx++
  13994. m.Power |= (int64(b) & 0x7F) << shift
  13995. if b < 0x80 {
  13996. break
  13997. }
  13998. }
  13999. default:
  14000. iNdEx = preIndex
  14001. skippy, err := skipTypes(dAtA[iNdEx:])
  14002. if err != nil {
  14003. return err
  14004. }
  14005. if skippy < 0 {
  14006. return ErrInvalidLengthTypes
  14007. }
  14008. if (iNdEx + skippy) > l {
  14009. return io.ErrUnexpectedEOF
  14010. }
  14011. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14012. iNdEx += skippy
  14013. }
  14014. }
  14015. if iNdEx > l {
  14016. return io.ErrUnexpectedEOF
  14017. }
  14018. return nil
  14019. }
  14020. func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error {
  14021. l := len(dAtA)
  14022. iNdEx := 0
  14023. for iNdEx < l {
  14024. preIndex := iNdEx
  14025. var wire uint64
  14026. for shift := uint(0); ; shift += 7 {
  14027. if shift >= 64 {
  14028. return ErrIntOverflowTypes
  14029. }
  14030. if iNdEx >= l {
  14031. return io.ErrUnexpectedEOF
  14032. }
  14033. b := dAtA[iNdEx]
  14034. iNdEx++
  14035. wire |= (uint64(b) & 0x7F) << shift
  14036. if b < 0x80 {
  14037. break
  14038. }
  14039. }
  14040. fieldNum := int32(wire >> 3)
  14041. wireType := int(wire & 0x7)
  14042. if wireType == 4 {
  14043. return fmt.Errorf("proto: ValidatorUpdate: wiretype end group for non-group")
  14044. }
  14045. if fieldNum <= 0 {
  14046. return fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  14047. }
  14048. switch fieldNum {
  14049. case 1:
  14050. if wireType != 2 {
  14051. return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
  14052. }
  14053. var msglen int
  14054. for shift := uint(0); ; shift += 7 {
  14055. if shift >= 64 {
  14056. return ErrIntOverflowTypes
  14057. }
  14058. if iNdEx >= l {
  14059. return io.ErrUnexpectedEOF
  14060. }
  14061. b := dAtA[iNdEx]
  14062. iNdEx++
  14063. msglen |= (int(b) & 0x7F) << shift
  14064. if b < 0x80 {
  14065. break
  14066. }
  14067. }
  14068. if msglen < 0 {
  14069. return ErrInvalidLengthTypes
  14070. }
  14071. postIndex := iNdEx + msglen
  14072. if postIndex > l {
  14073. return io.ErrUnexpectedEOF
  14074. }
  14075. if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14076. return err
  14077. }
  14078. iNdEx = postIndex
  14079. case 2:
  14080. if wireType != 0 {
  14081. return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
  14082. }
  14083. m.Power = 0
  14084. for shift := uint(0); ; shift += 7 {
  14085. if shift >= 64 {
  14086. return ErrIntOverflowTypes
  14087. }
  14088. if iNdEx >= l {
  14089. return io.ErrUnexpectedEOF
  14090. }
  14091. b := dAtA[iNdEx]
  14092. iNdEx++
  14093. m.Power |= (int64(b) & 0x7F) << shift
  14094. if b < 0x80 {
  14095. break
  14096. }
  14097. }
  14098. default:
  14099. iNdEx = preIndex
  14100. skippy, err := skipTypes(dAtA[iNdEx:])
  14101. if err != nil {
  14102. return err
  14103. }
  14104. if skippy < 0 {
  14105. return ErrInvalidLengthTypes
  14106. }
  14107. if (iNdEx + skippy) > l {
  14108. return io.ErrUnexpectedEOF
  14109. }
  14110. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14111. iNdEx += skippy
  14112. }
  14113. }
  14114. if iNdEx > l {
  14115. return io.ErrUnexpectedEOF
  14116. }
  14117. return nil
  14118. }
  14119. func (m *VoteInfo) Unmarshal(dAtA []byte) error {
  14120. l := len(dAtA)
  14121. iNdEx := 0
  14122. for iNdEx < l {
  14123. preIndex := iNdEx
  14124. var wire uint64
  14125. for shift := uint(0); ; shift += 7 {
  14126. if shift >= 64 {
  14127. return ErrIntOverflowTypes
  14128. }
  14129. if iNdEx >= l {
  14130. return io.ErrUnexpectedEOF
  14131. }
  14132. b := dAtA[iNdEx]
  14133. iNdEx++
  14134. wire |= (uint64(b) & 0x7F) << shift
  14135. if b < 0x80 {
  14136. break
  14137. }
  14138. }
  14139. fieldNum := int32(wire >> 3)
  14140. wireType := int(wire & 0x7)
  14141. if wireType == 4 {
  14142. return fmt.Errorf("proto: VoteInfo: wiretype end group for non-group")
  14143. }
  14144. if fieldNum <= 0 {
  14145. return fmt.Errorf("proto: VoteInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  14146. }
  14147. switch fieldNum {
  14148. case 1:
  14149. if wireType != 2 {
  14150. return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  14151. }
  14152. var msglen int
  14153. for shift := uint(0); ; shift += 7 {
  14154. if shift >= 64 {
  14155. return ErrIntOverflowTypes
  14156. }
  14157. if iNdEx >= l {
  14158. return io.ErrUnexpectedEOF
  14159. }
  14160. b := dAtA[iNdEx]
  14161. iNdEx++
  14162. msglen |= (int(b) & 0x7F) << shift
  14163. if b < 0x80 {
  14164. break
  14165. }
  14166. }
  14167. if msglen < 0 {
  14168. return ErrInvalidLengthTypes
  14169. }
  14170. postIndex := iNdEx + msglen
  14171. if postIndex > l {
  14172. return io.ErrUnexpectedEOF
  14173. }
  14174. if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14175. return err
  14176. }
  14177. iNdEx = postIndex
  14178. case 2:
  14179. if wireType != 0 {
  14180. return fmt.Errorf("proto: wrong wireType = %d for field SignedLastBlock", wireType)
  14181. }
  14182. var v int
  14183. for shift := uint(0); ; shift += 7 {
  14184. if shift >= 64 {
  14185. return ErrIntOverflowTypes
  14186. }
  14187. if iNdEx >= l {
  14188. return io.ErrUnexpectedEOF
  14189. }
  14190. b := dAtA[iNdEx]
  14191. iNdEx++
  14192. v |= (int(b) & 0x7F) << shift
  14193. if b < 0x80 {
  14194. break
  14195. }
  14196. }
  14197. m.SignedLastBlock = bool(v != 0)
  14198. default:
  14199. iNdEx = preIndex
  14200. skippy, err := skipTypes(dAtA[iNdEx:])
  14201. if err != nil {
  14202. return err
  14203. }
  14204. if skippy < 0 {
  14205. return ErrInvalidLengthTypes
  14206. }
  14207. if (iNdEx + skippy) > l {
  14208. return io.ErrUnexpectedEOF
  14209. }
  14210. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14211. iNdEx += skippy
  14212. }
  14213. }
  14214. if iNdEx > l {
  14215. return io.ErrUnexpectedEOF
  14216. }
  14217. return nil
  14218. }
  14219. func (m *PubKey) Unmarshal(dAtA []byte) error {
  14220. l := len(dAtA)
  14221. iNdEx := 0
  14222. for iNdEx < l {
  14223. preIndex := iNdEx
  14224. var wire uint64
  14225. for shift := uint(0); ; shift += 7 {
  14226. if shift >= 64 {
  14227. return ErrIntOverflowTypes
  14228. }
  14229. if iNdEx >= l {
  14230. return io.ErrUnexpectedEOF
  14231. }
  14232. b := dAtA[iNdEx]
  14233. iNdEx++
  14234. wire |= (uint64(b) & 0x7F) << shift
  14235. if b < 0x80 {
  14236. break
  14237. }
  14238. }
  14239. fieldNum := int32(wire >> 3)
  14240. wireType := int(wire & 0x7)
  14241. if wireType == 4 {
  14242. return fmt.Errorf("proto: PubKey: wiretype end group for non-group")
  14243. }
  14244. if fieldNum <= 0 {
  14245. return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire)
  14246. }
  14247. switch fieldNum {
  14248. case 1:
  14249. if wireType != 2 {
  14250. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  14251. }
  14252. var stringLen uint64
  14253. for shift := uint(0); ; shift += 7 {
  14254. if shift >= 64 {
  14255. return ErrIntOverflowTypes
  14256. }
  14257. if iNdEx >= l {
  14258. return io.ErrUnexpectedEOF
  14259. }
  14260. b := dAtA[iNdEx]
  14261. iNdEx++
  14262. stringLen |= (uint64(b) & 0x7F) << shift
  14263. if b < 0x80 {
  14264. break
  14265. }
  14266. }
  14267. intStringLen := int(stringLen)
  14268. if intStringLen < 0 {
  14269. return ErrInvalidLengthTypes
  14270. }
  14271. postIndex := iNdEx + intStringLen
  14272. if postIndex > l {
  14273. return io.ErrUnexpectedEOF
  14274. }
  14275. m.Type = string(dAtA[iNdEx:postIndex])
  14276. iNdEx = postIndex
  14277. case 2:
  14278. if wireType != 2 {
  14279. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  14280. }
  14281. var byteLen int
  14282. for shift := uint(0); ; shift += 7 {
  14283. if shift >= 64 {
  14284. return ErrIntOverflowTypes
  14285. }
  14286. if iNdEx >= l {
  14287. return io.ErrUnexpectedEOF
  14288. }
  14289. b := dAtA[iNdEx]
  14290. iNdEx++
  14291. byteLen |= (int(b) & 0x7F) << shift
  14292. if b < 0x80 {
  14293. break
  14294. }
  14295. }
  14296. if byteLen < 0 {
  14297. return ErrInvalidLengthTypes
  14298. }
  14299. postIndex := iNdEx + byteLen
  14300. if postIndex > l {
  14301. return io.ErrUnexpectedEOF
  14302. }
  14303. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  14304. if m.Data == nil {
  14305. m.Data = []byte{}
  14306. }
  14307. iNdEx = postIndex
  14308. default:
  14309. iNdEx = preIndex
  14310. skippy, err := skipTypes(dAtA[iNdEx:])
  14311. if err != nil {
  14312. return err
  14313. }
  14314. if skippy < 0 {
  14315. return ErrInvalidLengthTypes
  14316. }
  14317. if (iNdEx + skippy) > l {
  14318. return io.ErrUnexpectedEOF
  14319. }
  14320. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14321. iNdEx += skippy
  14322. }
  14323. }
  14324. if iNdEx > l {
  14325. return io.ErrUnexpectedEOF
  14326. }
  14327. return nil
  14328. }
  14329. func (m *Evidence) Unmarshal(dAtA []byte) error {
  14330. l := len(dAtA)
  14331. iNdEx := 0
  14332. for iNdEx < l {
  14333. preIndex := iNdEx
  14334. var wire uint64
  14335. for shift := uint(0); ; shift += 7 {
  14336. if shift >= 64 {
  14337. return ErrIntOverflowTypes
  14338. }
  14339. if iNdEx >= l {
  14340. return io.ErrUnexpectedEOF
  14341. }
  14342. b := dAtA[iNdEx]
  14343. iNdEx++
  14344. wire |= (uint64(b) & 0x7F) << shift
  14345. if b < 0x80 {
  14346. break
  14347. }
  14348. }
  14349. fieldNum := int32(wire >> 3)
  14350. wireType := int(wire & 0x7)
  14351. if wireType == 4 {
  14352. return fmt.Errorf("proto: Evidence: wiretype end group for non-group")
  14353. }
  14354. if fieldNum <= 0 {
  14355. return fmt.Errorf("proto: Evidence: illegal tag %d (wire type %d)", fieldNum, wire)
  14356. }
  14357. switch fieldNum {
  14358. case 1:
  14359. if wireType != 2 {
  14360. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  14361. }
  14362. var stringLen uint64
  14363. for shift := uint(0); ; shift += 7 {
  14364. if shift >= 64 {
  14365. return ErrIntOverflowTypes
  14366. }
  14367. if iNdEx >= l {
  14368. return io.ErrUnexpectedEOF
  14369. }
  14370. b := dAtA[iNdEx]
  14371. iNdEx++
  14372. stringLen |= (uint64(b) & 0x7F) << shift
  14373. if b < 0x80 {
  14374. break
  14375. }
  14376. }
  14377. intStringLen := int(stringLen)
  14378. if intStringLen < 0 {
  14379. return ErrInvalidLengthTypes
  14380. }
  14381. postIndex := iNdEx + intStringLen
  14382. if postIndex > l {
  14383. return io.ErrUnexpectedEOF
  14384. }
  14385. m.Type = string(dAtA[iNdEx:postIndex])
  14386. iNdEx = postIndex
  14387. case 2:
  14388. if wireType != 2 {
  14389. return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  14390. }
  14391. var msglen int
  14392. for shift := uint(0); ; shift += 7 {
  14393. if shift >= 64 {
  14394. return ErrIntOverflowTypes
  14395. }
  14396. if iNdEx >= l {
  14397. return io.ErrUnexpectedEOF
  14398. }
  14399. b := dAtA[iNdEx]
  14400. iNdEx++
  14401. msglen |= (int(b) & 0x7F) << shift
  14402. if b < 0x80 {
  14403. break
  14404. }
  14405. }
  14406. if msglen < 0 {
  14407. return ErrInvalidLengthTypes
  14408. }
  14409. postIndex := iNdEx + msglen
  14410. if postIndex > l {
  14411. return io.ErrUnexpectedEOF
  14412. }
  14413. if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14414. return err
  14415. }
  14416. iNdEx = postIndex
  14417. case 3:
  14418. if wireType != 0 {
  14419. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  14420. }
  14421. m.Height = 0
  14422. for shift := uint(0); ; shift += 7 {
  14423. if shift >= 64 {
  14424. return ErrIntOverflowTypes
  14425. }
  14426. if iNdEx >= l {
  14427. return io.ErrUnexpectedEOF
  14428. }
  14429. b := dAtA[iNdEx]
  14430. iNdEx++
  14431. m.Height |= (int64(b) & 0x7F) << shift
  14432. if b < 0x80 {
  14433. break
  14434. }
  14435. }
  14436. case 4:
  14437. if wireType != 2 {
  14438. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  14439. }
  14440. var msglen int
  14441. for shift := uint(0); ; shift += 7 {
  14442. if shift >= 64 {
  14443. return ErrIntOverflowTypes
  14444. }
  14445. if iNdEx >= l {
  14446. return io.ErrUnexpectedEOF
  14447. }
  14448. b := dAtA[iNdEx]
  14449. iNdEx++
  14450. msglen |= (int(b) & 0x7F) << shift
  14451. if b < 0x80 {
  14452. break
  14453. }
  14454. }
  14455. if msglen < 0 {
  14456. return ErrInvalidLengthTypes
  14457. }
  14458. postIndex := iNdEx + msglen
  14459. if postIndex > l {
  14460. return io.ErrUnexpectedEOF
  14461. }
  14462. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  14463. return err
  14464. }
  14465. iNdEx = postIndex
  14466. case 5:
  14467. if wireType != 0 {
  14468. return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType)
  14469. }
  14470. m.TotalVotingPower = 0
  14471. for shift := uint(0); ; shift += 7 {
  14472. if shift >= 64 {
  14473. return ErrIntOverflowTypes
  14474. }
  14475. if iNdEx >= l {
  14476. return io.ErrUnexpectedEOF
  14477. }
  14478. b := dAtA[iNdEx]
  14479. iNdEx++
  14480. m.TotalVotingPower |= (int64(b) & 0x7F) << shift
  14481. if b < 0x80 {
  14482. break
  14483. }
  14484. }
  14485. default:
  14486. iNdEx = preIndex
  14487. skippy, err := skipTypes(dAtA[iNdEx:])
  14488. if err != nil {
  14489. return err
  14490. }
  14491. if skippy < 0 {
  14492. return ErrInvalidLengthTypes
  14493. }
  14494. if (iNdEx + skippy) > l {
  14495. return io.ErrUnexpectedEOF
  14496. }
  14497. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14498. iNdEx += skippy
  14499. }
  14500. }
  14501. if iNdEx > l {
  14502. return io.ErrUnexpectedEOF
  14503. }
  14504. return nil
  14505. }
  14506. func skipTypes(dAtA []byte) (n int, err error) {
  14507. l := len(dAtA)
  14508. iNdEx := 0
  14509. for iNdEx < l {
  14510. var wire uint64
  14511. for shift := uint(0); ; shift += 7 {
  14512. if shift >= 64 {
  14513. return 0, ErrIntOverflowTypes
  14514. }
  14515. if iNdEx >= l {
  14516. return 0, io.ErrUnexpectedEOF
  14517. }
  14518. b := dAtA[iNdEx]
  14519. iNdEx++
  14520. wire |= (uint64(b) & 0x7F) << shift
  14521. if b < 0x80 {
  14522. break
  14523. }
  14524. }
  14525. wireType := int(wire & 0x7)
  14526. switch wireType {
  14527. case 0:
  14528. for shift := uint(0); ; shift += 7 {
  14529. if shift >= 64 {
  14530. return 0, ErrIntOverflowTypes
  14531. }
  14532. if iNdEx >= l {
  14533. return 0, io.ErrUnexpectedEOF
  14534. }
  14535. iNdEx++
  14536. if dAtA[iNdEx-1] < 0x80 {
  14537. break
  14538. }
  14539. }
  14540. return iNdEx, nil
  14541. case 1:
  14542. iNdEx += 8
  14543. return iNdEx, nil
  14544. case 2:
  14545. var length int
  14546. for shift := uint(0); ; shift += 7 {
  14547. if shift >= 64 {
  14548. return 0, ErrIntOverflowTypes
  14549. }
  14550. if iNdEx >= l {
  14551. return 0, io.ErrUnexpectedEOF
  14552. }
  14553. b := dAtA[iNdEx]
  14554. iNdEx++
  14555. length |= (int(b) & 0x7F) << shift
  14556. if b < 0x80 {
  14557. break
  14558. }
  14559. }
  14560. iNdEx += length
  14561. if length < 0 {
  14562. return 0, ErrInvalidLengthTypes
  14563. }
  14564. return iNdEx, nil
  14565. case 3:
  14566. for {
  14567. var innerWire uint64
  14568. var start int = iNdEx
  14569. for shift := uint(0); ; shift += 7 {
  14570. if shift >= 64 {
  14571. return 0, ErrIntOverflowTypes
  14572. }
  14573. if iNdEx >= l {
  14574. return 0, io.ErrUnexpectedEOF
  14575. }
  14576. b := dAtA[iNdEx]
  14577. iNdEx++
  14578. innerWire |= (uint64(b) & 0x7F) << shift
  14579. if b < 0x80 {
  14580. break
  14581. }
  14582. }
  14583. innerWireType := int(innerWire & 0x7)
  14584. if innerWireType == 4 {
  14585. break
  14586. }
  14587. next, err := skipTypes(dAtA[start:])
  14588. if err != nil {
  14589. return 0, err
  14590. }
  14591. iNdEx = start + next
  14592. }
  14593. return iNdEx, nil
  14594. case 4:
  14595. return iNdEx, nil
  14596. case 5:
  14597. iNdEx += 4
  14598. return iNdEx, nil
  14599. default:
  14600. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  14601. }
  14602. }
  14603. panic("unreachable")
  14604. }
  14605. var (
  14606. ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
  14607. ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
  14608. )
  14609. func init() { proto.RegisterFile("abci/types/types.proto", fileDescriptor_types_5b877df1938afe10) }
  14610. func init() {
  14611. golang_proto.RegisterFile("abci/types/types.proto", fileDescriptor_types_5b877df1938afe10)
  14612. }
  14613. var fileDescriptor_types_5b877df1938afe10 = []byte{
  14614. // 2214 bytes of a gzipped FileDescriptorProto
  14615. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcb, 0x73, 0x1b, 0xc7,
  14616. 0xd1, 0xe7, 0x82, 0x20, 0x81, 0x6d, 0x10, 0x0f, 0x8d, 0x28, 0x09, 0xc2, 0xe7, 0x8f, 0x54, 0xad,
  14617. 0x12, 0x5b, 0x8c, 0x65, 0xd0, 0xa6, 0xa3, 0x14, 0x65, 0x39, 0xa9, 0x22, 0x24, 0xc5, 0x64, 0xd9,
  14618. 0x49, 0x98, 0x95, 0xc4, 0x5c, 0x52, 0xb5, 0x35, 0xc0, 0x8e, 0x80, 0x2d, 0x02, 0xbb, 0xeb, 0xdd,
  14619. 0x01, 0x0d, 0xea, 0x98, 0xb3, 0x0f, 0x3e, 0xe4, 0x8f, 0xc8, 0x35, 0x37, 0x1f, 0x73, 0x4a, 0xf9,
  14620. 0x98, 0x43, 0xce, 0x4a, 0xc2, 0x54, 0x0e, 0xc9, 0x35, 0x95, 0xaa, 0x1c, 0x53, 0xd3, 0x33, 0xb3,
  14621. 0x2f, 0x2e, 0x14, 0xcb, 0xc9, 0x29, 0x17, 0x60, 0xa6, 0x1f, 0xf3, 0xe8, 0xed, 0xee, 0x5f, 0xf7,
  14622. 0xc0, 0x75, 0x3a, 0x1c, 0x79, 0xbb, 0xfc, 0x3c, 0x64, 0xb1, 0xfc, 0xed, 0x87, 0x51, 0xc0, 0x03,
  14623. 0xb2, 0x86, 0x93, 0xde, 0x3b, 0x63, 0x8f, 0x4f, 0xe6, 0xc3, 0xfe, 0x28, 0x98, 0xed, 0x8e, 0x83,
  14624. 0x71, 0xb0, 0x8b, 0xdc, 0xe1, 0xfc, 0x39, 0xce, 0x70, 0x82, 0x23, 0xa9, 0xd5, 0xdb, 0x1e, 0x07,
  14625. 0xc1, 0x78, 0xca, 0x52, 0x29, 0xee, 0xcd, 0x58, 0xcc, 0xe9, 0x2c, 0x54, 0x02, 0xfb, 0x99, 0xf5,
  14626. 0x38, 0xf3, 0x5d, 0x16, 0xcd, 0x3c, 0x9f, 0x67, 0x87, 0x53, 0x6f, 0x18, 0xef, 0x8e, 0x82, 0xd9,
  14627. 0x2c, 0xf0, 0xb3, 0x07, 0xea, 0x3d, 0xf8, 0xb7, 0x9a, 0xa3, 0xe8, 0x3c, 0xe4, 0xc1, 0xee, 0x8c,
  14628. 0x45, 0xa7, 0x53, 0xa6, 0xfe, 0xa4, 0xb2, 0xf5, 0xdb, 0x2a, 0xd4, 0x6c, 0xf6, 0xe9, 0x9c, 0xc5,
  14629. 0x9c, 0xdc, 0x81, 0x2a, 0x1b, 0x4d, 0x82, 0x6e, 0xe5, 0x96, 0x71, 0xa7, 0xb1, 0x47, 0xfa, 0x72,
  14630. 0x13, 0xc5, 0x7d, 0x3c, 0x9a, 0x04, 0x87, 0x2b, 0x36, 0x4a, 0x90, 0xb7, 0x61, 0xed, 0xf9, 0x74,
  14631. 0x1e, 0x4f, 0xba, 0xab, 0x28, 0x7a, 0x35, 0x2f, 0xfa, 0x43, 0xc1, 0x3a, 0x5c, 0xb1, 0xa5, 0x8c,
  14632. 0x58, 0xd6, 0xf3, 0x9f, 0x07, 0xdd, 0x6a, 0xd9, 0xb2, 0x47, 0xfe, 0x73, 0x5c, 0x56, 0x48, 0x90,
  14633. 0x7d, 0x80, 0x98, 0x71, 0x27, 0x08, 0xb9, 0x17, 0xf8, 0xdd, 0x35, 0x94, 0xbf, 0x91, 0x97, 0x7f,
  14634. 0xc2, 0xf8, 0x4f, 0x90, 0x7d, 0xb8, 0x62, 0x9b, 0xb1, 0x9e, 0x08, 0x4d, 0xcf, 0xf7, 0xb8, 0x33,
  14635. 0x9a, 0x50, 0xcf, 0xef, 0xae, 0x97, 0x69, 0x1e, 0xf9, 0x1e, 0x7f, 0x28, 0xd8, 0x42, 0xd3, 0xd3,
  14636. 0x13, 0x71, 0x95, 0x4f, 0xe7, 0x2c, 0x3a, 0xef, 0xd6, 0xca, 0xae, 0xf2, 0x53, 0xc1, 0x12, 0x57,
  14637. 0x41, 0x19, 0xf2, 0x00, 0x1a, 0x43, 0x36, 0xf6, 0x7c, 0x67, 0x38, 0x0d, 0x46, 0xa7, 0xdd, 0x3a,
  14638. 0xaa, 0x74, 0xf3, 0x2a, 0x03, 0x21, 0x30, 0x10, 0xfc, 0xc3, 0x15, 0x1b, 0x86, 0xc9, 0x8c, 0xec,
  14639. 0x41, 0x7d, 0x34, 0x61, 0xa3, 0x53, 0x87, 0x2f, 0xba, 0x26, 0x6a, 0x5e, 0xcb, 0x6b, 0x3e, 0x14,
  14640. 0xdc, 0xa7, 0x8b, 0xc3, 0x15, 0xbb, 0x36, 0x92, 0x43, 0x72, 0x0f, 0x4c, 0xe6, 0xbb, 0x6a, 0xbb,
  14641. 0x06, 0x2a, 0x5d, 0x2f, 0x7c, 0x17, 0xdf, 0xd5, 0x9b, 0xd5, 0x99, 0x1a, 0x93, 0x3e, 0xac, 0x0b,
  14642. 0x47, 0xf1, 0x78, 0x77, 0x03, 0x75, 0x36, 0x0b, 0x1b, 0x21, 0xef, 0x70, 0xc5, 0x56, 0x52, 0xc2,
  14643. 0x7c, 0x2e, 0x9b, 0x7a, 0x67, 0x2c, 0x12, 0x87, 0xbb, 0x5a, 0x66, 0xbe, 0x47, 0x92, 0x8f, 0xc7,
  14644. 0x33, 0x5d, 0x3d, 0x19, 0xd4, 0x60, 0xed, 0x8c, 0x4e, 0xe7, 0xcc, 0x7a, 0x0b, 0x1a, 0x19, 0x4f,
  14645. 0x21, 0x5d, 0xa8, 0xcd, 0x58, 0x1c, 0xd3, 0x31, 0xeb, 0x1a, 0xb7, 0x8c, 0x3b, 0xa6, 0xad, 0xa7,
  14646. 0x56, 0x0b, 0x36, 0xb2, 0x7e, 0x62, 0xcd, 0x12, 0x45, 0xe1, 0x0b, 0x42, 0xf1, 0x8c, 0x45, 0xb1,
  14647. 0x70, 0x00, 0xa5, 0xa8, 0xa6, 0xe4, 0x36, 0x34, 0xd1, 0x0e, 0x8e, 0xe6, 0x0b, 0x3f, 0xad, 0xda,
  14648. 0x1b, 0x48, 0x3c, 0x51, 0x42, 0xdb, 0xd0, 0x08, 0xf7, 0xc2, 0x44, 0x64, 0x15, 0x45, 0x20, 0xdc,
  14649. 0x0b, 0x95, 0x80, 0xf5, 0x01, 0x74, 0x8a, 0xae, 0x44, 0x3a, 0xb0, 0x7a, 0xca, 0xce, 0xd5, 0x7e,
  14650. 0x62, 0x48, 0x36, 0xd5, 0xb5, 0x70, 0x0f, 0xd3, 0x56, 0x77, 0xfc, 0xa2, 0x92, 0x28, 0x27, 0xde,
  14651. 0x44, 0xf6, 0xa1, 0x2a, 0x62, 0x19, 0xb5, 0x1b, 0x7b, 0xbd, 0xbe, 0x0c, 0xf4, 0xbe, 0x0e, 0xf4,
  14652. 0xfe, 0x53, 0x1d, 0xe8, 0x83, 0xfa, 0x57, 0x2f, 0xb7, 0x57, 0xbe, 0xf8, 0xc3, 0xb6, 0x61, 0xa3,
  14653. 0x06, 0xb9, 0x29, 0x1c, 0x82, 0x7a, 0xbe, 0xe3, 0xb9, 0x6a, 0x9f, 0x1a, 0xce, 0x8f, 0x5c, 0x72,
  14654. 0x00, 0x9d, 0x51, 0xe0, 0xc7, 0xcc, 0x8f, 0xe7, 0xb1, 0x13, 0xd2, 0x88, 0xce, 0x62, 0x15, 0x6b,
  14655. 0xfa, 0xf3, 0x3f, 0xd4, 0xec, 0x63, 0xe4, 0xda, 0xed, 0x51, 0x9e, 0x40, 0x3e, 0x04, 0x38, 0xa3,
  14656. 0x53, 0xcf, 0xa5, 0x3c, 0x88, 0xe2, 0x6e, 0xf5, 0xd6, 0x6a, 0x46, 0xf9, 0x44, 0x33, 0x9e, 0x85,
  14657. 0x2e, 0xe5, 0x6c, 0x50, 0x15, 0x27, 0xb3, 0x33, 0xf2, 0xe4, 0x4d, 0x68, 0xd3, 0x30, 0x74, 0x62,
  14658. 0x4e, 0x39, 0x73, 0x86, 0xe7, 0x9c, 0xc5, 0x18, 0x8f, 0x1b, 0x76, 0x93, 0x86, 0xe1, 0x13, 0x41,
  14659. 0x1d, 0x08, 0xa2, 0xe5, 0x26, 0x5f, 0x13, 0x43, 0x85, 0x10, 0xa8, 0xba, 0x94, 0x53, 0xb4, 0xc6,
  14660. 0x86, 0x8d, 0x63, 0x41, 0x0b, 0x29, 0x9f, 0xa8, 0x3b, 0xe2, 0x98, 0x5c, 0x87, 0xf5, 0x09, 0xf3,
  14661. 0xc6, 0x13, 0x8e, 0xd7, 0x5a, 0xb5, 0xd5, 0x4c, 0x18, 0x3e, 0x8c, 0x82, 0x33, 0x86, 0xd9, 0xa2,
  14662. 0x6e, 0xcb, 0x89, 0xf5, 0x17, 0x03, 0xae, 0x5c, 0x0a, 0x2f, 0xb1, 0xee, 0x84, 0xc6, 0x13, 0xbd,
  14663. 0x97, 0x18, 0x93, 0xb7, 0xc5, 0xba, 0xd4, 0x65, 0x91, 0xca, 0x62, 0x4d, 0x75, 0xe3, 0x43, 0x24,
  14664. 0xaa, 0x8b, 0x2a, 0x11, 0xf2, 0x18, 0x3a, 0x53, 0x1a, 0x73, 0x47, 0x46, 0x81, 0x83, 0x59, 0x6a,
  14665. 0x35, 0x17, 0x99, 0x9f, 0x50, 0x1d, 0x2d, 0xc2, 0x39, 0x95, 0x7a, 0x6b, 0x9a, 0xa3, 0x92, 0x43,
  14666. 0xd8, 0x1c, 0x9e, 0xbf, 0xa0, 0x3e, 0xf7, 0x7c, 0xe6, 0x5c, 0xb2, 0x79, 0x5b, 0x2d, 0xf5, 0xf8,
  14667. 0xcc, 0x73, 0x99, 0x3f, 0xd2, 0xc6, 0xbe, 0x9a, 0xa8, 0x24, 0x1f, 0x23, 0xb6, 0x6e, 0x41, 0x2b,
  14668. 0x9f, 0x0b, 0x48, 0x0b, 0x2a, 0x7c, 0xa1, 0x6e, 0x58, 0xe1, 0x0b, 0xcb, 0x4a, 0x3c, 0x30, 0x09,
  14669. 0xc8, 0x4b, 0x32, 0x3b, 0xd0, 0x2e, 0x24, 0x87, 0x8c, 0xb9, 0x8d, 0xac, 0xb9, 0xad, 0x36, 0x34,
  14670. 0x73, 0x39, 0xc1, 0xfa, 0x7c, 0x0d, 0xea, 0x36, 0x8b, 0x43, 0xe1, 0x4c, 0x64, 0x1f, 0x4c, 0xb6,
  14671. 0x18, 0x31, 0x99, 0x8e, 0x8d, 0x42, 0xb2, 0x93, 0x32, 0x8f, 0x35, 0x5f, 0xa4, 0x85, 0x44, 0x98,
  14672. 0xec, 0xe4, 0xa0, 0xe4, 0x6a, 0x51, 0x29, 0x8b, 0x25, 0x77, 0xf3, 0x58, 0xb2, 0x59, 0x90, 0x2d,
  14673. 0x80, 0xc9, 0x4e, 0x0e, 0x4c, 0x8a, 0x0b, 0xe7, 0xd0, 0xe4, 0x7e, 0x09, 0x9a, 0x14, 0x8f, 0xbf,
  14674. 0x04, 0x4e, 0xee, 0x97, 0xc0, 0x49, 0xf7, 0xd2, 0x5e, 0xa5, 0x78, 0x72, 0x37, 0x8f, 0x27, 0xc5,
  14675. 0xeb, 0x14, 0x00, 0xe5, 0xc3, 0x32, 0x40, 0xb9, 0x59, 0xd0, 0x59, 0x8a, 0x28, 0xef, 0x5f, 0x42,
  14676. 0x94, 0xeb, 0x05, 0xd5, 0x12, 0x48, 0xb9, 0x9f, 0xcb, 0xf5, 0x50, 0x7a, 0xb7, 0xf2, 0x64, 0x4f,
  14677. 0xbe, 0x77, 0x19, 0x8d, 0x6e, 0x14, 0x3f, 0x6d, 0x19, 0x1c, 0xed, 0x16, 0xe0, 0xe8, 0x5a, 0xf1,
  14678. 0x94, 0x05, 0x3c, 0x4a, 0x51, 0x65, 0x47, 0xc4, 0x7d, 0xc1, 0xd3, 0x44, 0x8e, 0x60, 0x51, 0x14,
  14679. 0x44, 0x2a, 0x61, 0xcb, 0x89, 0x75, 0x47, 0x64, 0xa2, 0xd4, 0xbf, 0x5e, 0x81, 0x40, 0xe8, 0xf4,
  14680. 0x19, 0xef, 0xb2, 0xbe, 0x34, 0x52, 0x5d, 0x8c, 0xe8, 0x6c, 0x16, 0x33, 0x55, 0x16, 0xcb, 0x00,
  14681. 0x53, 0x25, 0x0f, 0x4c, 0xdb, 0xd0, 0x10, 0xb9, 0xb2, 0x80, 0x39, 0x34, 0xd4, 0x98, 0x43, 0xbe,
  14682. 0x03, 0x57, 0x30, 0xcf, 0x48, 0xf8, 0x52, 0x81, 0x58, 0xc5, 0x40, 0x6c, 0x0b, 0x86, 0xb4, 0x98,
  14683. 0x4c, 0x80, 0xef, 0xc0, 0xd5, 0x8c, 0xac, 0x58, 0x17, 0x73, 0x9c, 0x4c, 0xbe, 0x9d, 0x44, 0xfa,
  14684. 0x20, 0x0c, 0x0f, 0x69, 0x3c, 0xb1, 0x7e, 0x94, 0x1a, 0x28, 0xc5, 0x33, 0x02, 0xd5, 0x51, 0xe0,
  14685. 0xca, 0x7b, 0x37, 0x6d, 0x1c, 0x0b, 0x8c, 0x9b, 0x06, 0x63, 0x3c, 0x9c, 0x69, 0x8b, 0xa1, 0x90,
  14686. 0x4a, 0x42, 0xc9, 0x94, 0x31, 0x63, 0xfd, 0xd2, 0x48, 0xd7, 0x4b, 0x21, 0xae, 0x0c, 0x8d, 0x8c,
  14687. 0xff, 0x04, 0x8d, 0x2a, 0xaf, 0x87, 0x46, 0xd6, 0x85, 0x91, 0x7e, 0xb2, 0x04, 0x67, 0xbe, 0xd9,
  14688. 0x15, 0x85, 0xf7, 0x78, 0xbe, 0xcb, 0x16, 0x68, 0xd2, 0x55, 0x5b, 0x4e, 0x74, 0x09, 0xb0, 0x8e,
  14689. 0x66, 0xce, 0x97, 0x00, 0x35, 0xa4, 0xc9, 0x09, 0xb9, 0x8d, 0xf8, 0x14, 0x3c, 0x57, 0xa1, 0xda,
  14690. 0xec, 0xab, 0x6a, 0xfa, 0x58, 0x10, 0x6d, 0xc9, 0xcb, 0x64, 0x5b, 0x33, 0x07, 0x6e, 0x6f, 0x80,
  14691. 0x29, 0x0e, 0x1a, 0x87, 0x74, 0xc4, 0x30, 0xf2, 0x4c, 0x3b, 0x25, 0x58, 0xc7, 0x40, 0x2e, 0x47,
  14692. 0x3c, 0xf9, 0x00, 0xaa, 0x9c, 0x8e, 0x85, 0xbd, 0x85, 0xc9, 0x5a, 0x7d, 0xd9, 0x00, 0xf4, 0x3f,
  14693. 0x3e, 0x39, 0xa6, 0x5e, 0x34, 0xb8, 0x2e, 0x4c, 0xf5, 0xb7, 0x97, 0xdb, 0x2d, 0x21, 0x73, 0x37,
  14694. 0x98, 0x79, 0x9c, 0xcd, 0x42, 0x7e, 0x6e, 0xa3, 0x8e, 0xf5, 0x77, 0x43, 0x20, 0x41, 0x2e, 0x13,
  14695. 0x94, 0x1a, 0x4e, 0xbb, 0x7b, 0x25, 0x03, 0xda, 0x5f, 0xcf, 0x98, 0xff, 0x0f, 0x30, 0xa6, 0xb1,
  14696. 0xf3, 0x19, 0xf5, 0x39, 0x73, 0x95, 0x45, 0xcd, 0x31, 0x8d, 0x7f, 0x86, 0x04, 0x51, 0xe1, 0x08,
  14697. 0xf6, 0x3c, 0x66, 0x2e, 0x9a, 0x76, 0xd5, 0xae, 0x8d, 0x69, 0xfc, 0x2c, 0x66, 0x6e, 0x72, 0xaf,
  14698. 0xda, 0xeb, 0xdf, 0x2b, 0x6f, 0xc7, 0x7a, 0xd1, 0x8e, 0xff, 0xc8, 0xf8, 0x70, 0x0a, 0x92, 0xff,
  14699. 0xfb, 0xf7, 0xfe, 0xab, 0x21, 0x6a, 0x83, 0x7c, 0x1a, 0x26, 0x47, 0x70, 0x25, 0x89, 0x23, 0x67,
  14700. 0x8e, 0xf1, 0xa5, 0x7d, 0xe9, 0xd5, 0xe1, 0xd7, 0x39, 0xcb, 0x93, 0x63, 0xf2, 0x63, 0xb8, 0x51,
  14701. 0xc8, 0x02, 0xc9, 0x82, 0x95, 0x57, 0x26, 0x83, 0x6b, 0xf9, 0x64, 0xa0, 0xd7, 0xd3, 0x96, 0x58,
  14702. 0xfd, 0x06, 0x9e, 0xfd, 0x2d, 0x51, 0x28, 0x65, 0xc1, 0xa3, 0xec, 0x5b, 0x5a, 0xbf, 0x36, 0xa0,
  14703. 0x5d, 0x38, 0x0c, 0xb9, 0x07, 0x20, 0x53, 0x6b, 0xec, 0xbd, 0x60, 0x85, 0x2c, 0x86, 0x26, 0x7b,
  14704. 0xe2, 0xbd, 0x60, 0xea, 0xe0, 0xe6, 0x50, 0x13, 0xc8, 0x7b, 0x50, 0x67, 0xaa, 0x80, 0x53, 0xb7,
  14705. 0xbd, 0x56, 0xa8, 0xeb, 0x94, 0x4e, 0x22, 0x46, 0xbe, 0x0b, 0x66, 0x62, 0xc3, 0x42, 0xf1, 0x9e,
  14706. 0x98, 0x5c, 0x6f, 0x94, 0x08, 0x5a, 0x1f, 0x41, 0xbb, 0x70, 0x0c, 0xf2, 0x7f, 0x60, 0xce, 0xe8,
  14707. 0x42, 0x55, 0xe1, 0xb2, 0x7e, 0xab, 0xcf, 0xe8, 0x02, 0x0b, 0x70, 0x72, 0x03, 0x6a, 0x82, 0x39,
  14708. 0xa6, 0xf2, 0x2b, 0xac, 0xda, 0xeb, 0x33, 0xba, 0xf8, 0x88, 0xc6, 0xd6, 0x0e, 0xb4, 0xf2, 0x47,
  14709. 0xd3, 0xa2, 0x1a, 0x11, 0xa5, 0xe8, 0xc1, 0x98, 0x59, 0xf7, 0xa0, 0x5d, 0x38, 0x11, 0xb1, 0xa0,
  14710. 0x19, 0xce, 0x87, 0xce, 0x29, 0x3b, 0x77, 0xf0, 0xc8, 0xe8, 0x33, 0xa6, 0xdd, 0x08, 0xe7, 0xc3,
  14711. 0x8f, 0xd9, 0xf9, 0x53, 0x41, 0xb2, 0x9e, 0x40, 0x2b, 0x5f, 0x1f, 0x8b, 0x9c, 0x19, 0x05, 0x73,
  14712. 0xdf, 0xc5, 0xf5, 0xd7, 0x6c, 0x39, 0x11, 0x2d, 0xf6, 0x59, 0x20, 0xdd, 0x24, 0x5b, 0x10, 0x9f,
  14713. 0x04, 0x9c, 0x65, 0xaa, 0x6a, 0x29, 0x63, 0xfd, 0x62, 0x0d, 0xd6, 0x65, 0xb1, 0x4e, 0xfa, 0xf9,
  14714. 0x56, 0x50, 0xf8, 0x88, 0xd2, 0x94, 0x54, 0xa5, 0x98, 0xe0, 0xf0, 0x9b, 0xc5, 0x7e, 0x6a, 0xd0,
  14715. 0xb8, 0x78, 0xb9, 0x5d, 0x43, 0x0c, 0x3b, 0x7a, 0x94, 0x36, 0x57, 0xcb, 0x7a, 0x0f, 0xdd, 0xc9,
  14716. 0x55, 0x5f, 0xbb, 0x93, 0xbb, 0x01, 0x35, 0x7f, 0x3e, 0x73, 0xf8, 0x22, 0x56, 0xb9, 0x60, 0xdd,
  14717. 0x9f, 0xcf, 0x9e, 0x2e, 0xf0, 0xd3, 0xf1, 0x80, 0xd3, 0x29, 0xb2, 0x64, 0x26, 0xa8, 0x23, 0x41,
  14718. 0x30, 0xf7, 0xa1, 0x99, 0x81, 0x7a, 0xcf, 0x55, 0x25, 0x63, 0x2b, 0xeb, 0x8d, 0x47, 0x8f, 0xd4,
  14719. 0x2d, 0x1b, 0x09, 0xf4, 0x1f, 0xb9, 0xe4, 0x4e, 0xbe, 0x71, 0xc1, 0x0a, 0xa1, 0x8e, 0x8e, 0x9f,
  14720. 0xe9, 0x4d, 0x44, 0x7d, 0x20, 0x0e, 0x20, 0x42, 0x41, 0x8a, 0x98, 0x28, 0x52, 0x17, 0x04, 0x64,
  14721. 0xbe, 0x05, 0xed, 0x14, 0x64, 0xa5, 0x08, 0xc8, 0x55, 0x52, 0x32, 0x0a, 0xbe, 0x0b, 0x9b, 0x3e,
  14722. 0x5b, 0x70, 0xa7, 0x28, 0xdd, 0x40, 0x69, 0x22, 0x78, 0x27, 0x79, 0x8d, 0x6f, 0x43, 0x2b, 0x4d,
  14723. 0x16, 0x28, 0xbb, 0x21, 0xdb, 0xc7, 0x84, 0x8a, 0x62, 0x37, 0xa1, 0x9e, 0x94, 0x38, 0x4d, 0x14,
  14724. 0xa8, 0x51, 0x59, 0xd9, 0x24, 0x45, 0x53, 0xc4, 0xe2, 0xf9, 0x94, 0xab, 0x45, 0x5a, 0x28, 0x83,
  14725. 0x45, 0x93, 0x2d, 0xe9, 0x28, 0x7b, 0x1b, 0x9a, 0x3a, 0xec, 0xa4, 0x5c, 0x1b, 0xe5, 0x36, 0x34,
  14726. 0x11, 0x85, 0x76, 0xa0, 0x13, 0x46, 0x41, 0x18, 0xc4, 0x2c, 0x72, 0xa8, 0xeb, 0x46, 0x2c, 0x8e,
  14727. 0xbb, 0x1d, 0xb9, 0x9e, 0xa6, 0x1f, 0x48, 0xb2, 0xf5, 0x1e, 0xd4, 0x74, 0xed, 0xb6, 0x09, 0x6b,
  14728. 0x68, 0x75, 0x74, 0xc1, 0xaa, 0x2d, 0x27, 0x02, 0x25, 0x0e, 0xc2, 0x50, 0xbd, 0x40, 0x88, 0xa1,
  14729. 0xf5, 0x73, 0xa8, 0xa9, 0x0f, 0x56, 0xda, 0x97, 0x7e, 0x1f, 0x36, 0x42, 0x1a, 0x89, 0x6b, 0x64,
  14730. 0xbb, 0x53, 0xdd, 0x1d, 0x1c, 0xd3, 0x88, 0x3f, 0x61, 0x3c, 0xd7, 0xa4, 0x36, 0x50, 0x5e, 0x92,
  14731. 0xac, 0xfb, 0xd0, 0xcc, 0xc9, 0x88, 0x63, 0xa1, 0x1f, 0xe9, 0x48, 0xc3, 0x49, 0xb2, 0x73, 0x25,
  14732. 0xdd, 0xd9, 0x7a, 0x00, 0x66, 0xf2, 0x6d, 0x44, 0x11, 0xab, 0xaf, 0x6e, 0x28, 0x73, 0xcb, 0x29,
  14733. 0x36, 0xde, 0xc1, 0x67, 0x2c, 0x52, 0x31, 0x21, 0x27, 0xd6, 0xb3, 0x4c, 0x66, 0x90, 0x79, 0x9b,
  14734. 0xdc, 0x85, 0x9a, 0xca, 0x0c, 0x2a, 0x2a, 0x75, 0x8b, 0x7d, 0x8c, 0xa9, 0x41, 0xb7, 0xd8, 0x32,
  14735. 0x51, 0xa4, 0xcb, 0x56, 0xb2, 0xcb, 0x4e, 0xa1, 0xae, 0xa3, 0x3f, 0x9f, 0x26, 0xe5, 0x8a, 0x9d,
  14736. 0x62, 0x9a, 0x54, 0x8b, 0xa6, 0x82, 0xc2, 0x3b, 0x62, 0x6f, 0xec, 0x33, 0xd7, 0x49, 0x43, 0x08,
  14737. 0xf7, 0xa8, 0xdb, 0x6d, 0xc9, 0xf8, 0x44, 0xc7, 0x8b, 0xf5, 0x2e, 0xac, 0xcb, 0xb3, 0x09, 0xfb,
  14738. 0x88, 0x95, 0x75, 0x5d, 0x2f, 0xc6, 0xa5, 0xc0, 0xf1, 0x7b, 0x03, 0xea, 0x3a, 0x79, 0x96, 0x2a,
  14739. 0xe5, 0x0e, 0x5d, 0xf9, 0xba, 0x87, 0xfe, 0xef, 0x27, 0x9e, 0xbb, 0x40, 0x64, 0x7e, 0x39, 0x0b,
  14740. 0xb8, 0xe7, 0x8f, 0x1d, 0x69, 0x6b, 0x99, 0x83, 0x3a, 0xc8, 0x39, 0x41, 0xc6, 0xb1, 0xa0, 0xef,
  14741. 0x7d, 0xbe, 0x06, 0xed, 0x83, 0xc1, 0xc3, 0xa3, 0x83, 0x30, 0x9c, 0x7a, 0x23, 0x8a, 0xbd, 0xc2,
  14742. 0x2e, 0x54, 0xb1, 0x5d, 0x2a, 0x79, 0xee, 0xed, 0x95, 0xf5, 0xed, 0x64, 0x0f, 0xd6, 0xb0, 0x6b,
  14743. 0x22, 0x65, 0xaf, 0xbe, 0xbd, 0xd2, 0xf6, 0x5d, 0x6c, 0x22, 0xfb, 0xaa, 0xcb, 0x8f, 0xbf, 0xbd,
  14744. 0xb2, 0x1e, 0x9e, 0xfc, 0x00, 0xcc, 0xb4, 0x9d, 0x59, 0xf6, 0x04, 0xdc, 0x5b, 0xda, 0xcd, 0x0b,
  14745. 0xfd, 0xb4, 0xf4, 0x5b, 0xf6, 0x92, 0xd9, 0x5b, 0xda, 0xf6, 0x92, 0x7d, 0xa8, 0xe9, 0x82, 0xb9,
  14746. 0xfc, 0x91, 0xb6, 0xb7, 0xa4, 0xd3, 0x16, 0xe6, 0x91, 0x1d, 0x4a, 0xd9, 0x4b, 0x72, 0xaf, 0xf4,
  14747. 0x39, 0x80, 0xdc, 0x83, 0x75, 0x55, 0xc5, 0x94, 0x3e, 0xd4, 0xf6, 0xca, 0xfb, 0x65, 0x71, 0xc9,
  14748. 0xb4, 0x47, 0x5b, 0xf6, 0xda, 0xdd, 0x5b, 0xfa, 0x6e, 0x41, 0x0e, 0x00, 0x32, 0x8d, 0xc6, 0xd2,
  14749. 0x67, 0xec, 0xde, 0xf2, 0xf7, 0x08, 0xf2, 0x00, 0xea, 0xe9, 0x1b, 0x53, 0xf9, 0xc3, 0x74, 0x6f,
  14750. 0xd9, 0x13, 0xc1, 0xe0, 0x8d, 0x7f, 0xfe, 0x69, 0xcb, 0xf8, 0xd5, 0xc5, 0x96, 0xf1, 0xe5, 0xc5,
  14751. 0x96, 0xf1, 0xd5, 0xc5, 0x96, 0xf1, 0xbb, 0x8b, 0x2d, 0xe3, 0x8f, 0x17, 0x5b, 0xc6, 0x6f, 0xfe,
  14752. 0xbc, 0x65, 0x0c, 0xd7, 0xd1, 0xfd, 0xdf, 0xff, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x8d,
  14753. 0xcb, 0x04, 0x88, 0x19, 0x00, 0x00,
  14754. }