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.

14642 lines
339 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 common "github.com/tendermint/tendermint/libs/common"
  11. import time "time"
  12. import bytes "bytes"
  13. import (
  14. context "golang.org/x/net/context"
  15. grpc "google.golang.org/grpc"
  16. )
  17. import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  18. import io "io"
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = golang_proto.Marshal
  22. var _ = fmt.Errorf
  23. var _ = math.Inf
  24. var _ = time.Kitchen
  25. // This is a compile-time assertion to ensure that this generated file
  26. // is compatible with the proto package it is being compiled against.
  27. // A compilation error at this line likely means your copy of the
  28. // proto package needs to be updated.
  29. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  30. type Request struct {
  31. // Types that are valid to be assigned to Value:
  32. // *Request_Echo
  33. // *Request_Flush
  34. // *Request_Info
  35. // *Request_SetOption
  36. // *Request_InitChain
  37. // *Request_Query
  38. // *Request_BeginBlock
  39. // *Request_CheckTx
  40. // *Request_DeliverTx
  41. // *Request_EndBlock
  42. // *Request_Commit
  43. Value isRequest_Value `protobuf_oneof:"value"`
  44. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  45. XXX_unrecognized []byte `json:"-"`
  46. XXX_sizecache int32 `json:"-"`
  47. }
  48. func (m *Request) Reset() { *m = Request{} }
  49. func (m *Request) String() string { return proto.CompactTextString(m) }
  50. func (*Request) ProtoMessage() {}
  51. func (*Request) Descriptor() ([]byte, []int) {
  52. return fileDescriptor_types_8495fed925debe52, []int{0}
  53. }
  54. func (m *Request) XXX_Unmarshal(b []byte) error {
  55. return m.Unmarshal(b)
  56. }
  57. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  58. if deterministic {
  59. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  60. } else {
  61. b = b[:cap(b)]
  62. n, err := m.MarshalTo(b)
  63. if err != nil {
  64. return nil, err
  65. }
  66. return b[:n], nil
  67. }
  68. }
  69. func (dst *Request) XXX_Merge(src proto.Message) {
  70. xxx_messageInfo_Request.Merge(dst, src)
  71. }
  72. func (m *Request) XXX_Size() int {
  73. return m.Size()
  74. }
  75. func (m *Request) XXX_DiscardUnknown() {
  76. xxx_messageInfo_Request.DiscardUnknown(m)
  77. }
  78. var xxx_messageInfo_Request proto.InternalMessageInfo
  79. type isRequest_Value interface {
  80. isRequest_Value()
  81. Equal(interface{}) bool
  82. MarshalTo([]byte) (int, error)
  83. Size() int
  84. }
  85. type Request_Echo struct {
  86. Echo *RequestEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
  87. }
  88. type Request_Flush struct {
  89. Flush *RequestFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
  90. }
  91. type Request_Info struct {
  92. Info *RequestInfo `protobuf:"bytes,4,opt,name=info,oneof"`
  93. }
  94. type Request_SetOption struct {
  95. SetOption *RequestSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
  96. }
  97. type Request_InitChain struct {
  98. InitChain *RequestInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,oneof"`
  99. }
  100. type Request_Query struct {
  101. Query *RequestQuery `protobuf:"bytes,7,opt,name=query,oneof"`
  102. }
  103. type Request_BeginBlock struct {
  104. BeginBlock *RequestBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,oneof"`
  105. }
  106. type Request_CheckTx struct {
  107. CheckTx *RequestCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,oneof"`
  108. }
  109. type Request_DeliverTx struct {
  110. DeliverTx *RequestDeliverTx `protobuf:"bytes,19,opt,name=deliver_tx,json=deliverTx,oneof"`
  111. }
  112. type Request_EndBlock struct {
  113. EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
  114. }
  115. type Request_Commit struct {
  116. Commit *RequestCommit `protobuf:"bytes,12,opt,name=commit,oneof"`
  117. }
  118. func (*Request_Echo) isRequest_Value() {}
  119. func (*Request_Flush) isRequest_Value() {}
  120. func (*Request_Info) isRequest_Value() {}
  121. func (*Request_SetOption) isRequest_Value() {}
  122. func (*Request_InitChain) isRequest_Value() {}
  123. func (*Request_Query) isRequest_Value() {}
  124. func (*Request_BeginBlock) isRequest_Value() {}
  125. func (*Request_CheckTx) isRequest_Value() {}
  126. func (*Request_DeliverTx) isRequest_Value() {}
  127. func (*Request_EndBlock) isRequest_Value() {}
  128. func (*Request_Commit) isRequest_Value() {}
  129. func (m *Request) GetValue() isRequest_Value {
  130. if m != nil {
  131. return m.Value
  132. }
  133. return nil
  134. }
  135. func (m *Request) GetEcho() *RequestEcho {
  136. if x, ok := m.GetValue().(*Request_Echo); ok {
  137. return x.Echo
  138. }
  139. return nil
  140. }
  141. func (m *Request) GetFlush() *RequestFlush {
  142. if x, ok := m.GetValue().(*Request_Flush); ok {
  143. return x.Flush
  144. }
  145. return nil
  146. }
  147. func (m *Request) GetInfo() *RequestInfo {
  148. if x, ok := m.GetValue().(*Request_Info); ok {
  149. return x.Info
  150. }
  151. return nil
  152. }
  153. func (m *Request) GetSetOption() *RequestSetOption {
  154. if x, ok := m.GetValue().(*Request_SetOption); ok {
  155. return x.SetOption
  156. }
  157. return nil
  158. }
  159. func (m *Request) GetInitChain() *RequestInitChain {
  160. if x, ok := m.GetValue().(*Request_InitChain); ok {
  161. return x.InitChain
  162. }
  163. return nil
  164. }
  165. func (m *Request) GetQuery() *RequestQuery {
  166. if x, ok := m.GetValue().(*Request_Query); ok {
  167. return x.Query
  168. }
  169. return nil
  170. }
  171. func (m *Request) GetBeginBlock() *RequestBeginBlock {
  172. if x, ok := m.GetValue().(*Request_BeginBlock); ok {
  173. return x.BeginBlock
  174. }
  175. return nil
  176. }
  177. func (m *Request) GetCheckTx() *RequestCheckTx {
  178. if x, ok := m.GetValue().(*Request_CheckTx); ok {
  179. return x.CheckTx
  180. }
  181. return nil
  182. }
  183. func (m *Request) GetDeliverTx() *RequestDeliverTx {
  184. if x, ok := m.GetValue().(*Request_DeliverTx); ok {
  185. return x.DeliverTx
  186. }
  187. return nil
  188. }
  189. func (m *Request) GetEndBlock() *RequestEndBlock {
  190. if x, ok := m.GetValue().(*Request_EndBlock); ok {
  191. return x.EndBlock
  192. }
  193. return nil
  194. }
  195. func (m *Request) GetCommit() *RequestCommit {
  196. if x, ok := m.GetValue().(*Request_Commit); ok {
  197. return x.Commit
  198. }
  199. return nil
  200. }
  201. // XXX_OneofFuncs is for the internal use of the proto package.
  202. 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{}) {
  203. return _Request_OneofMarshaler, _Request_OneofUnmarshaler, _Request_OneofSizer, []interface{}{
  204. (*Request_Echo)(nil),
  205. (*Request_Flush)(nil),
  206. (*Request_Info)(nil),
  207. (*Request_SetOption)(nil),
  208. (*Request_InitChain)(nil),
  209. (*Request_Query)(nil),
  210. (*Request_BeginBlock)(nil),
  211. (*Request_CheckTx)(nil),
  212. (*Request_DeliverTx)(nil),
  213. (*Request_EndBlock)(nil),
  214. (*Request_Commit)(nil),
  215. }
  216. }
  217. func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  218. m := msg.(*Request)
  219. // value
  220. switch x := m.Value.(type) {
  221. case *Request_Echo:
  222. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  223. if err := b.EncodeMessage(x.Echo); err != nil {
  224. return err
  225. }
  226. case *Request_Flush:
  227. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  228. if err := b.EncodeMessage(x.Flush); err != nil {
  229. return err
  230. }
  231. case *Request_Info:
  232. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  233. if err := b.EncodeMessage(x.Info); err != nil {
  234. return err
  235. }
  236. case *Request_SetOption:
  237. _ = b.EncodeVarint(5<<3 | proto.WireBytes)
  238. if err := b.EncodeMessage(x.SetOption); err != nil {
  239. return err
  240. }
  241. case *Request_InitChain:
  242. _ = b.EncodeVarint(6<<3 | proto.WireBytes)
  243. if err := b.EncodeMessage(x.InitChain); err != nil {
  244. return err
  245. }
  246. case *Request_Query:
  247. _ = b.EncodeVarint(7<<3 | proto.WireBytes)
  248. if err := b.EncodeMessage(x.Query); err != nil {
  249. return err
  250. }
  251. case *Request_BeginBlock:
  252. _ = b.EncodeVarint(8<<3 | proto.WireBytes)
  253. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  254. return err
  255. }
  256. case *Request_CheckTx:
  257. _ = b.EncodeVarint(9<<3 | proto.WireBytes)
  258. if err := b.EncodeMessage(x.CheckTx); err != nil {
  259. return err
  260. }
  261. case *Request_DeliverTx:
  262. _ = b.EncodeVarint(19<<3 | proto.WireBytes)
  263. if err := b.EncodeMessage(x.DeliverTx); err != nil {
  264. return err
  265. }
  266. case *Request_EndBlock:
  267. _ = b.EncodeVarint(11<<3 | proto.WireBytes)
  268. if err := b.EncodeMessage(x.EndBlock); err != nil {
  269. return err
  270. }
  271. case *Request_Commit:
  272. _ = b.EncodeVarint(12<<3 | proto.WireBytes)
  273. if err := b.EncodeMessage(x.Commit); err != nil {
  274. return err
  275. }
  276. case nil:
  277. default:
  278. return fmt.Errorf("Request.Value has unexpected type %T", x)
  279. }
  280. return nil
  281. }
  282. func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  283. m := msg.(*Request)
  284. switch tag {
  285. case 2: // value.echo
  286. if wire != proto.WireBytes {
  287. return true, proto.ErrInternalBadWireType
  288. }
  289. msg := new(RequestEcho)
  290. err := b.DecodeMessage(msg)
  291. m.Value = &Request_Echo{msg}
  292. return true, err
  293. case 3: // value.flush
  294. if wire != proto.WireBytes {
  295. return true, proto.ErrInternalBadWireType
  296. }
  297. msg := new(RequestFlush)
  298. err := b.DecodeMessage(msg)
  299. m.Value = &Request_Flush{msg}
  300. return true, err
  301. case 4: // value.info
  302. if wire != proto.WireBytes {
  303. return true, proto.ErrInternalBadWireType
  304. }
  305. msg := new(RequestInfo)
  306. err := b.DecodeMessage(msg)
  307. m.Value = &Request_Info{msg}
  308. return true, err
  309. case 5: // value.set_option
  310. if wire != proto.WireBytes {
  311. return true, proto.ErrInternalBadWireType
  312. }
  313. msg := new(RequestSetOption)
  314. err := b.DecodeMessage(msg)
  315. m.Value = &Request_SetOption{msg}
  316. return true, err
  317. case 6: // value.init_chain
  318. if wire != proto.WireBytes {
  319. return true, proto.ErrInternalBadWireType
  320. }
  321. msg := new(RequestInitChain)
  322. err := b.DecodeMessage(msg)
  323. m.Value = &Request_InitChain{msg}
  324. return true, err
  325. case 7: // value.query
  326. if wire != proto.WireBytes {
  327. return true, proto.ErrInternalBadWireType
  328. }
  329. msg := new(RequestQuery)
  330. err := b.DecodeMessage(msg)
  331. m.Value = &Request_Query{msg}
  332. return true, err
  333. case 8: // value.begin_block
  334. if wire != proto.WireBytes {
  335. return true, proto.ErrInternalBadWireType
  336. }
  337. msg := new(RequestBeginBlock)
  338. err := b.DecodeMessage(msg)
  339. m.Value = &Request_BeginBlock{msg}
  340. return true, err
  341. case 9: // value.check_tx
  342. if wire != proto.WireBytes {
  343. return true, proto.ErrInternalBadWireType
  344. }
  345. msg := new(RequestCheckTx)
  346. err := b.DecodeMessage(msg)
  347. m.Value = &Request_CheckTx{msg}
  348. return true, err
  349. case 19: // value.deliver_tx
  350. if wire != proto.WireBytes {
  351. return true, proto.ErrInternalBadWireType
  352. }
  353. msg := new(RequestDeliverTx)
  354. err := b.DecodeMessage(msg)
  355. m.Value = &Request_DeliverTx{msg}
  356. return true, err
  357. case 11: // value.end_block
  358. if wire != proto.WireBytes {
  359. return true, proto.ErrInternalBadWireType
  360. }
  361. msg := new(RequestEndBlock)
  362. err := b.DecodeMessage(msg)
  363. m.Value = &Request_EndBlock{msg}
  364. return true, err
  365. case 12: // value.commit
  366. if wire != proto.WireBytes {
  367. return true, proto.ErrInternalBadWireType
  368. }
  369. msg := new(RequestCommit)
  370. err := b.DecodeMessage(msg)
  371. m.Value = &Request_Commit{msg}
  372. return true, err
  373. default:
  374. return false, nil
  375. }
  376. }
  377. func _Request_OneofSizer(msg proto.Message) (n int) {
  378. m := msg.(*Request)
  379. // value
  380. switch x := m.Value.(type) {
  381. case *Request_Echo:
  382. s := proto.Size(x.Echo)
  383. n += 1 // tag and wire
  384. n += proto.SizeVarint(uint64(s))
  385. n += s
  386. case *Request_Flush:
  387. s := proto.Size(x.Flush)
  388. n += 1 // tag and wire
  389. n += proto.SizeVarint(uint64(s))
  390. n += s
  391. case *Request_Info:
  392. s := proto.Size(x.Info)
  393. n += 1 // tag and wire
  394. n += proto.SizeVarint(uint64(s))
  395. n += s
  396. case *Request_SetOption:
  397. s := proto.Size(x.SetOption)
  398. n += 1 // tag and wire
  399. n += proto.SizeVarint(uint64(s))
  400. n += s
  401. case *Request_InitChain:
  402. s := proto.Size(x.InitChain)
  403. n += 1 // tag and wire
  404. n += proto.SizeVarint(uint64(s))
  405. n += s
  406. case *Request_Query:
  407. s := proto.Size(x.Query)
  408. n += 1 // tag and wire
  409. n += proto.SizeVarint(uint64(s))
  410. n += s
  411. case *Request_BeginBlock:
  412. s := proto.Size(x.BeginBlock)
  413. n += 1 // tag and wire
  414. n += proto.SizeVarint(uint64(s))
  415. n += s
  416. case *Request_CheckTx:
  417. s := proto.Size(x.CheckTx)
  418. n += 1 // tag and wire
  419. n += proto.SizeVarint(uint64(s))
  420. n += s
  421. case *Request_DeliverTx:
  422. s := proto.Size(x.DeliverTx)
  423. n += 2 // tag and wire
  424. n += proto.SizeVarint(uint64(s))
  425. n += s
  426. case *Request_EndBlock:
  427. s := proto.Size(x.EndBlock)
  428. n += 1 // tag and wire
  429. n += proto.SizeVarint(uint64(s))
  430. n += s
  431. case *Request_Commit:
  432. s := proto.Size(x.Commit)
  433. n += 1 // tag and wire
  434. n += proto.SizeVarint(uint64(s))
  435. n += s
  436. case nil:
  437. default:
  438. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  439. }
  440. return n
  441. }
  442. type RequestEcho struct {
  443. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  444. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  445. XXX_unrecognized []byte `json:"-"`
  446. XXX_sizecache int32 `json:"-"`
  447. }
  448. func (m *RequestEcho) Reset() { *m = RequestEcho{} }
  449. func (m *RequestEcho) String() string { return proto.CompactTextString(m) }
  450. func (*RequestEcho) ProtoMessage() {}
  451. func (*RequestEcho) Descriptor() ([]byte, []int) {
  452. return fileDescriptor_types_8495fed925debe52, []int{1}
  453. }
  454. func (m *RequestEcho) XXX_Unmarshal(b []byte) error {
  455. return m.Unmarshal(b)
  456. }
  457. func (m *RequestEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  458. if deterministic {
  459. return xxx_messageInfo_RequestEcho.Marshal(b, m, deterministic)
  460. } else {
  461. b = b[:cap(b)]
  462. n, err := m.MarshalTo(b)
  463. if err != nil {
  464. return nil, err
  465. }
  466. return b[:n], nil
  467. }
  468. }
  469. func (dst *RequestEcho) XXX_Merge(src proto.Message) {
  470. xxx_messageInfo_RequestEcho.Merge(dst, src)
  471. }
  472. func (m *RequestEcho) XXX_Size() int {
  473. return m.Size()
  474. }
  475. func (m *RequestEcho) XXX_DiscardUnknown() {
  476. xxx_messageInfo_RequestEcho.DiscardUnknown(m)
  477. }
  478. var xxx_messageInfo_RequestEcho proto.InternalMessageInfo
  479. func (m *RequestEcho) GetMessage() string {
  480. if m != nil {
  481. return m.Message
  482. }
  483. return ""
  484. }
  485. type RequestFlush struct {
  486. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  487. XXX_unrecognized []byte `json:"-"`
  488. XXX_sizecache int32 `json:"-"`
  489. }
  490. func (m *RequestFlush) Reset() { *m = RequestFlush{} }
  491. func (m *RequestFlush) String() string { return proto.CompactTextString(m) }
  492. func (*RequestFlush) ProtoMessage() {}
  493. func (*RequestFlush) Descriptor() ([]byte, []int) {
  494. return fileDescriptor_types_8495fed925debe52, []int{2}
  495. }
  496. func (m *RequestFlush) XXX_Unmarshal(b []byte) error {
  497. return m.Unmarshal(b)
  498. }
  499. func (m *RequestFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  500. if deterministic {
  501. return xxx_messageInfo_RequestFlush.Marshal(b, m, deterministic)
  502. } else {
  503. b = b[:cap(b)]
  504. n, err := m.MarshalTo(b)
  505. if err != nil {
  506. return nil, err
  507. }
  508. return b[:n], nil
  509. }
  510. }
  511. func (dst *RequestFlush) XXX_Merge(src proto.Message) {
  512. xxx_messageInfo_RequestFlush.Merge(dst, src)
  513. }
  514. func (m *RequestFlush) XXX_Size() int {
  515. return m.Size()
  516. }
  517. func (m *RequestFlush) XXX_DiscardUnknown() {
  518. xxx_messageInfo_RequestFlush.DiscardUnknown(m)
  519. }
  520. var xxx_messageInfo_RequestFlush proto.InternalMessageInfo
  521. type RequestInfo struct {
  522. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  523. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  524. XXX_unrecognized []byte `json:"-"`
  525. XXX_sizecache int32 `json:"-"`
  526. }
  527. func (m *RequestInfo) Reset() { *m = RequestInfo{} }
  528. func (m *RequestInfo) String() string { return proto.CompactTextString(m) }
  529. func (*RequestInfo) ProtoMessage() {}
  530. func (*RequestInfo) Descriptor() ([]byte, []int) {
  531. return fileDescriptor_types_8495fed925debe52, []int{3}
  532. }
  533. func (m *RequestInfo) XXX_Unmarshal(b []byte) error {
  534. return m.Unmarshal(b)
  535. }
  536. func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  537. if deterministic {
  538. return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic)
  539. } else {
  540. b = b[:cap(b)]
  541. n, err := m.MarshalTo(b)
  542. if err != nil {
  543. return nil, err
  544. }
  545. return b[:n], nil
  546. }
  547. }
  548. func (dst *RequestInfo) XXX_Merge(src proto.Message) {
  549. xxx_messageInfo_RequestInfo.Merge(dst, src)
  550. }
  551. func (m *RequestInfo) XXX_Size() int {
  552. return m.Size()
  553. }
  554. func (m *RequestInfo) XXX_DiscardUnknown() {
  555. xxx_messageInfo_RequestInfo.DiscardUnknown(m)
  556. }
  557. var xxx_messageInfo_RequestInfo proto.InternalMessageInfo
  558. func (m *RequestInfo) GetVersion() string {
  559. if m != nil {
  560. return m.Version
  561. }
  562. return ""
  563. }
  564. // nondeterministic
  565. type RequestSetOption struct {
  566. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  567. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  568. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  569. XXX_unrecognized []byte `json:"-"`
  570. XXX_sizecache int32 `json:"-"`
  571. }
  572. func (m *RequestSetOption) Reset() { *m = RequestSetOption{} }
  573. func (m *RequestSetOption) String() string { return proto.CompactTextString(m) }
  574. func (*RequestSetOption) ProtoMessage() {}
  575. func (*RequestSetOption) Descriptor() ([]byte, []int) {
  576. return fileDescriptor_types_8495fed925debe52, []int{4}
  577. }
  578. func (m *RequestSetOption) XXX_Unmarshal(b []byte) error {
  579. return m.Unmarshal(b)
  580. }
  581. func (m *RequestSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  582. if deterministic {
  583. return xxx_messageInfo_RequestSetOption.Marshal(b, m, deterministic)
  584. } else {
  585. b = b[:cap(b)]
  586. n, err := m.MarshalTo(b)
  587. if err != nil {
  588. return nil, err
  589. }
  590. return b[:n], nil
  591. }
  592. }
  593. func (dst *RequestSetOption) XXX_Merge(src proto.Message) {
  594. xxx_messageInfo_RequestSetOption.Merge(dst, src)
  595. }
  596. func (m *RequestSetOption) XXX_Size() int {
  597. return m.Size()
  598. }
  599. func (m *RequestSetOption) XXX_DiscardUnknown() {
  600. xxx_messageInfo_RequestSetOption.DiscardUnknown(m)
  601. }
  602. var xxx_messageInfo_RequestSetOption proto.InternalMessageInfo
  603. func (m *RequestSetOption) GetKey() string {
  604. if m != nil {
  605. return m.Key
  606. }
  607. return ""
  608. }
  609. func (m *RequestSetOption) GetValue() string {
  610. if m != nil {
  611. return m.Value
  612. }
  613. return ""
  614. }
  615. type RequestInitChain struct {
  616. Time time.Time `protobuf:"bytes,1,opt,name=time,stdtime" json:"time"`
  617. ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
  618. ConsensusParams *ConsensusParams `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams" json:"consensus_params,omitempty"`
  619. Validators []ValidatorUpdate `protobuf:"bytes,4,rep,name=validators" json:"validators"`
  620. AppStateBytes []byte `protobuf:"bytes,5,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"`
  621. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  622. XXX_unrecognized []byte `json:"-"`
  623. XXX_sizecache int32 `json:"-"`
  624. }
  625. func (m *RequestInitChain) Reset() { *m = RequestInitChain{} }
  626. func (m *RequestInitChain) String() string { return proto.CompactTextString(m) }
  627. func (*RequestInitChain) ProtoMessage() {}
  628. func (*RequestInitChain) Descriptor() ([]byte, []int) {
  629. return fileDescriptor_types_8495fed925debe52, []int{5}
  630. }
  631. func (m *RequestInitChain) XXX_Unmarshal(b []byte) error {
  632. return m.Unmarshal(b)
  633. }
  634. func (m *RequestInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  635. if deterministic {
  636. return xxx_messageInfo_RequestInitChain.Marshal(b, m, deterministic)
  637. } else {
  638. b = b[:cap(b)]
  639. n, err := m.MarshalTo(b)
  640. if err != nil {
  641. return nil, err
  642. }
  643. return b[:n], nil
  644. }
  645. }
  646. func (dst *RequestInitChain) XXX_Merge(src proto.Message) {
  647. xxx_messageInfo_RequestInitChain.Merge(dst, src)
  648. }
  649. func (m *RequestInitChain) XXX_Size() int {
  650. return m.Size()
  651. }
  652. func (m *RequestInitChain) XXX_DiscardUnknown() {
  653. xxx_messageInfo_RequestInitChain.DiscardUnknown(m)
  654. }
  655. var xxx_messageInfo_RequestInitChain proto.InternalMessageInfo
  656. func (m *RequestInitChain) GetTime() time.Time {
  657. if m != nil {
  658. return m.Time
  659. }
  660. return time.Time{}
  661. }
  662. func (m *RequestInitChain) GetChainId() string {
  663. if m != nil {
  664. return m.ChainId
  665. }
  666. return ""
  667. }
  668. func (m *RequestInitChain) GetConsensusParams() *ConsensusParams {
  669. if m != nil {
  670. return m.ConsensusParams
  671. }
  672. return nil
  673. }
  674. func (m *RequestInitChain) GetValidators() []ValidatorUpdate {
  675. if m != nil {
  676. return m.Validators
  677. }
  678. return nil
  679. }
  680. func (m *RequestInitChain) GetAppStateBytes() []byte {
  681. if m != nil {
  682. return m.AppStateBytes
  683. }
  684. return nil
  685. }
  686. type RequestQuery struct {
  687. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  688. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  689. Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
  690. Prove bool `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"`
  691. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  692. XXX_unrecognized []byte `json:"-"`
  693. XXX_sizecache int32 `json:"-"`
  694. }
  695. func (m *RequestQuery) Reset() { *m = RequestQuery{} }
  696. func (m *RequestQuery) String() string { return proto.CompactTextString(m) }
  697. func (*RequestQuery) ProtoMessage() {}
  698. func (*RequestQuery) Descriptor() ([]byte, []int) {
  699. return fileDescriptor_types_8495fed925debe52, []int{6}
  700. }
  701. func (m *RequestQuery) XXX_Unmarshal(b []byte) error {
  702. return m.Unmarshal(b)
  703. }
  704. func (m *RequestQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  705. if deterministic {
  706. return xxx_messageInfo_RequestQuery.Marshal(b, m, deterministic)
  707. } else {
  708. b = b[:cap(b)]
  709. n, err := m.MarshalTo(b)
  710. if err != nil {
  711. return nil, err
  712. }
  713. return b[:n], nil
  714. }
  715. }
  716. func (dst *RequestQuery) XXX_Merge(src proto.Message) {
  717. xxx_messageInfo_RequestQuery.Merge(dst, src)
  718. }
  719. func (m *RequestQuery) XXX_Size() int {
  720. return m.Size()
  721. }
  722. func (m *RequestQuery) XXX_DiscardUnknown() {
  723. xxx_messageInfo_RequestQuery.DiscardUnknown(m)
  724. }
  725. var xxx_messageInfo_RequestQuery proto.InternalMessageInfo
  726. func (m *RequestQuery) GetData() []byte {
  727. if m != nil {
  728. return m.Data
  729. }
  730. return nil
  731. }
  732. func (m *RequestQuery) GetPath() string {
  733. if m != nil {
  734. return m.Path
  735. }
  736. return ""
  737. }
  738. func (m *RequestQuery) GetHeight() int64 {
  739. if m != nil {
  740. return m.Height
  741. }
  742. return 0
  743. }
  744. func (m *RequestQuery) GetProve() bool {
  745. if m != nil {
  746. return m.Prove
  747. }
  748. return false
  749. }
  750. // NOTE: validators here have empty pubkeys.
  751. type RequestBeginBlock struct {
  752. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
  753. Header Header `protobuf:"bytes,2,opt,name=header" json:"header"`
  754. LastCommitInfo LastCommitInfo `protobuf:"bytes,3,opt,name=last_commit_info,json=lastCommitInfo" json:"last_commit_info"`
  755. ByzantineValidators []Evidence `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators" json:"byzantine_validators"`
  756. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  757. XXX_unrecognized []byte `json:"-"`
  758. XXX_sizecache int32 `json:"-"`
  759. }
  760. func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} }
  761. func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) }
  762. func (*RequestBeginBlock) ProtoMessage() {}
  763. func (*RequestBeginBlock) Descriptor() ([]byte, []int) {
  764. return fileDescriptor_types_8495fed925debe52, []int{7}
  765. }
  766. func (m *RequestBeginBlock) XXX_Unmarshal(b []byte) error {
  767. return m.Unmarshal(b)
  768. }
  769. func (m *RequestBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  770. if deterministic {
  771. return xxx_messageInfo_RequestBeginBlock.Marshal(b, m, deterministic)
  772. } else {
  773. b = b[:cap(b)]
  774. n, err := m.MarshalTo(b)
  775. if err != nil {
  776. return nil, err
  777. }
  778. return b[:n], nil
  779. }
  780. }
  781. func (dst *RequestBeginBlock) XXX_Merge(src proto.Message) {
  782. xxx_messageInfo_RequestBeginBlock.Merge(dst, src)
  783. }
  784. func (m *RequestBeginBlock) XXX_Size() int {
  785. return m.Size()
  786. }
  787. func (m *RequestBeginBlock) XXX_DiscardUnknown() {
  788. xxx_messageInfo_RequestBeginBlock.DiscardUnknown(m)
  789. }
  790. var xxx_messageInfo_RequestBeginBlock proto.InternalMessageInfo
  791. func (m *RequestBeginBlock) GetHash() []byte {
  792. if m != nil {
  793. return m.Hash
  794. }
  795. return nil
  796. }
  797. func (m *RequestBeginBlock) GetHeader() Header {
  798. if m != nil {
  799. return m.Header
  800. }
  801. return Header{}
  802. }
  803. func (m *RequestBeginBlock) GetLastCommitInfo() LastCommitInfo {
  804. if m != nil {
  805. return m.LastCommitInfo
  806. }
  807. return LastCommitInfo{}
  808. }
  809. func (m *RequestBeginBlock) GetByzantineValidators() []Evidence {
  810. if m != nil {
  811. return m.ByzantineValidators
  812. }
  813. return nil
  814. }
  815. type RequestCheckTx struct {
  816. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  817. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  818. XXX_unrecognized []byte `json:"-"`
  819. XXX_sizecache int32 `json:"-"`
  820. }
  821. func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} }
  822. func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) }
  823. func (*RequestCheckTx) ProtoMessage() {}
  824. func (*RequestCheckTx) Descriptor() ([]byte, []int) {
  825. return fileDescriptor_types_8495fed925debe52, []int{8}
  826. }
  827. func (m *RequestCheckTx) XXX_Unmarshal(b []byte) error {
  828. return m.Unmarshal(b)
  829. }
  830. func (m *RequestCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  831. if deterministic {
  832. return xxx_messageInfo_RequestCheckTx.Marshal(b, m, deterministic)
  833. } else {
  834. b = b[:cap(b)]
  835. n, err := m.MarshalTo(b)
  836. if err != nil {
  837. return nil, err
  838. }
  839. return b[:n], nil
  840. }
  841. }
  842. func (dst *RequestCheckTx) XXX_Merge(src proto.Message) {
  843. xxx_messageInfo_RequestCheckTx.Merge(dst, src)
  844. }
  845. func (m *RequestCheckTx) XXX_Size() int {
  846. return m.Size()
  847. }
  848. func (m *RequestCheckTx) XXX_DiscardUnknown() {
  849. xxx_messageInfo_RequestCheckTx.DiscardUnknown(m)
  850. }
  851. var xxx_messageInfo_RequestCheckTx proto.InternalMessageInfo
  852. func (m *RequestCheckTx) GetTx() []byte {
  853. if m != nil {
  854. return m.Tx
  855. }
  856. return nil
  857. }
  858. type RequestDeliverTx struct {
  859. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  860. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  861. XXX_unrecognized []byte `json:"-"`
  862. XXX_sizecache int32 `json:"-"`
  863. }
  864. func (m *RequestDeliverTx) Reset() { *m = RequestDeliverTx{} }
  865. func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) }
  866. func (*RequestDeliverTx) ProtoMessage() {}
  867. func (*RequestDeliverTx) Descriptor() ([]byte, []int) {
  868. return fileDescriptor_types_8495fed925debe52, []int{9}
  869. }
  870. func (m *RequestDeliverTx) XXX_Unmarshal(b []byte) error {
  871. return m.Unmarshal(b)
  872. }
  873. func (m *RequestDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  874. if deterministic {
  875. return xxx_messageInfo_RequestDeliverTx.Marshal(b, m, deterministic)
  876. } else {
  877. b = b[:cap(b)]
  878. n, err := m.MarshalTo(b)
  879. if err != nil {
  880. return nil, err
  881. }
  882. return b[:n], nil
  883. }
  884. }
  885. func (dst *RequestDeliverTx) XXX_Merge(src proto.Message) {
  886. xxx_messageInfo_RequestDeliverTx.Merge(dst, src)
  887. }
  888. func (m *RequestDeliverTx) XXX_Size() int {
  889. return m.Size()
  890. }
  891. func (m *RequestDeliverTx) XXX_DiscardUnknown() {
  892. xxx_messageInfo_RequestDeliverTx.DiscardUnknown(m)
  893. }
  894. var xxx_messageInfo_RequestDeliverTx proto.InternalMessageInfo
  895. func (m *RequestDeliverTx) GetTx() []byte {
  896. if m != nil {
  897. return m.Tx
  898. }
  899. return nil
  900. }
  901. type RequestEndBlock struct {
  902. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  903. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  904. XXX_unrecognized []byte `json:"-"`
  905. XXX_sizecache int32 `json:"-"`
  906. }
  907. func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} }
  908. func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) }
  909. func (*RequestEndBlock) ProtoMessage() {}
  910. func (*RequestEndBlock) Descriptor() ([]byte, []int) {
  911. return fileDescriptor_types_8495fed925debe52, []int{10}
  912. }
  913. func (m *RequestEndBlock) XXX_Unmarshal(b []byte) error {
  914. return m.Unmarshal(b)
  915. }
  916. func (m *RequestEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  917. if deterministic {
  918. return xxx_messageInfo_RequestEndBlock.Marshal(b, m, deterministic)
  919. } else {
  920. b = b[:cap(b)]
  921. n, err := m.MarshalTo(b)
  922. if err != nil {
  923. return nil, err
  924. }
  925. return b[:n], nil
  926. }
  927. }
  928. func (dst *RequestEndBlock) XXX_Merge(src proto.Message) {
  929. xxx_messageInfo_RequestEndBlock.Merge(dst, src)
  930. }
  931. func (m *RequestEndBlock) XXX_Size() int {
  932. return m.Size()
  933. }
  934. func (m *RequestEndBlock) XXX_DiscardUnknown() {
  935. xxx_messageInfo_RequestEndBlock.DiscardUnknown(m)
  936. }
  937. var xxx_messageInfo_RequestEndBlock proto.InternalMessageInfo
  938. func (m *RequestEndBlock) GetHeight() int64 {
  939. if m != nil {
  940. return m.Height
  941. }
  942. return 0
  943. }
  944. type RequestCommit struct {
  945. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  946. XXX_unrecognized []byte `json:"-"`
  947. XXX_sizecache int32 `json:"-"`
  948. }
  949. func (m *RequestCommit) Reset() { *m = RequestCommit{} }
  950. func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
  951. func (*RequestCommit) ProtoMessage() {}
  952. func (*RequestCommit) Descriptor() ([]byte, []int) {
  953. return fileDescriptor_types_8495fed925debe52, []int{11}
  954. }
  955. func (m *RequestCommit) XXX_Unmarshal(b []byte) error {
  956. return m.Unmarshal(b)
  957. }
  958. func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  959. if deterministic {
  960. return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic)
  961. } else {
  962. b = b[:cap(b)]
  963. n, err := m.MarshalTo(b)
  964. if err != nil {
  965. return nil, err
  966. }
  967. return b[:n], nil
  968. }
  969. }
  970. func (dst *RequestCommit) XXX_Merge(src proto.Message) {
  971. xxx_messageInfo_RequestCommit.Merge(dst, src)
  972. }
  973. func (m *RequestCommit) XXX_Size() int {
  974. return m.Size()
  975. }
  976. func (m *RequestCommit) XXX_DiscardUnknown() {
  977. xxx_messageInfo_RequestCommit.DiscardUnknown(m)
  978. }
  979. var xxx_messageInfo_RequestCommit proto.InternalMessageInfo
  980. type Response struct {
  981. // Types that are valid to be assigned to Value:
  982. // *Response_Exception
  983. // *Response_Echo
  984. // *Response_Flush
  985. // *Response_Info
  986. // *Response_SetOption
  987. // *Response_InitChain
  988. // *Response_Query
  989. // *Response_BeginBlock
  990. // *Response_CheckTx
  991. // *Response_DeliverTx
  992. // *Response_EndBlock
  993. // *Response_Commit
  994. Value isResponse_Value `protobuf_oneof:"value"`
  995. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  996. XXX_unrecognized []byte `json:"-"`
  997. XXX_sizecache int32 `json:"-"`
  998. }
  999. func (m *Response) Reset() { *m = Response{} }
  1000. func (m *Response) String() string { return proto.CompactTextString(m) }
  1001. func (*Response) ProtoMessage() {}
  1002. func (*Response) Descriptor() ([]byte, []int) {
  1003. return fileDescriptor_types_8495fed925debe52, []int{12}
  1004. }
  1005. func (m *Response) XXX_Unmarshal(b []byte) error {
  1006. return m.Unmarshal(b)
  1007. }
  1008. func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1009. if deterministic {
  1010. return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  1011. } else {
  1012. b = b[:cap(b)]
  1013. n, err := m.MarshalTo(b)
  1014. if err != nil {
  1015. return nil, err
  1016. }
  1017. return b[:n], nil
  1018. }
  1019. }
  1020. func (dst *Response) XXX_Merge(src proto.Message) {
  1021. xxx_messageInfo_Response.Merge(dst, src)
  1022. }
  1023. func (m *Response) XXX_Size() int {
  1024. return m.Size()
  1025. }
  1026. func (m *Response) XXX_DiscardUnknown() {
  1027. xxx_messageInfo_Response.DiscardUnknown(m)
  1028. }
  1029. var xxx_messageInfo_Response proto.InternalMessageInfo
  1030. type isResponse_Value interface {
  1031. isResponse_Value()
  1032. Equal(interface{}) bool
  1033. MarshalTo([]byte) (int, error)
  1034. Size() int
  1035. }
  1036. type Response_Exception struct {
  1037. Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,oneof"`
  1038. }
  1039. type Response_Echo struct {
  1040. Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
  1041. }
  1042. type Response_Flush struct {
  1043. Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
  1044. }
  1045. type Response_Info struct {
  1046. Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,oneof"`
  1047. }
  1048. type Response_SetOption struct {
  1049. SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
  1050. }
  1051. type Response_InitChain struct {
  1052. InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,oneof"`
  1053. }
  1054. type Response_Query struct {
  1055. Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,oneof"`
  1056. }
  1057. type Response_BeginBlock struct {
  1058. BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,oneof"`
  1059. }
  1060. type Response_CheckTx struct {
  1061. CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,oneof"`
  1062. }
  1063. type Response_DeliverTx struct {
  1064. DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,oneof"`
  1065. }
  1066. type Response_EndBlock struct {
  1067. EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
  1068. }
  1069. type Response_Commit struct {
  1070. Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,oneof"`
  1071. }
  1072. func (*Response_Exception) isResponse_Value() {}
  1073. func (*Response_Echo) isResponse_Value() {}
  1074. func (*Response_Flush) isResponse_Value() {}
  1075. func (*Response_Info) isResponse_Value() {}
  1076. func (*Response_SetOption) isResponse_Value() {}
  1077. func (*Response_InitChain) isResponse_Value() {}
  1078. func (*Response_Query) isResponse_Value() {}
  1079. func (*Response_BeginBlock) isResponse_Value() {}
  1080. func (*Response_CheckTx) isResponse_Value() {}
  1081. func (*Response_DeliverTx) isResponse_Value() {}
  1082. func (*Response_EndBlock) isResponse_Value() {}
  1083. func (*Response_Commit) isResponse_Value() {}
  1084. func (m *Response) GetValue() isResponse_Value {
  1085. if m != nil {
  1086. return m.Value
  1087. }
  1088. return nil
  1089. }
  1090. func (m *Response) GetException() *ResponseException {
  1091. if x, ok := m.GetValue().(*Response_Exception); ok {
  1092. return x.Exception
  1093. }
  1094. return nil
  1095. }
  1096. func (m *Response) GetEcho() *ResponseEcho {
  1097. if x, ok := m.GetValue().(*Response_Echo); ok {
  1098. return x.Echo
  1099. }
  1100. return nil
  1101. }
  1102. func (m *Response) GetFlush() *ResponseFlush {
  1103. if x, ok := m.GetValue().(*Response_Flush); ok {
  1104. return x.Flush
  1105. }
  1106. return nil
  1107. }
  1108. func (m *Response) GetInfo() *ResponseInfo {
  1109. if x, ok := m.GetValue().(*Response_Info); ok {
  1110. return x.Info
  1111. }
  1112. return nil
  1113. }
  1114. func (m *Response) GetSetOption() *ResponseSetOption {
  1115. if x, ok := m.GetValue().(*Response_SetOption); ok {
  1116. return x.SetOption
  1117. }
  1118. return nil
  1119. }
  1120. func (m *Response) GetInitChain() *ResponseInitChain {
  1121. if x, ok := m.GetValue().(*Response_InitChain); ok {
  1122. return x.InitChain
  1123. }
  1124. return nil
  1125. }
  1126. func (m *Response) GetQuery() *ResponseQuery {
  1127. if x, ok := m.GetValue().(*Response_Query); ok {
  1128. return x.Query
  1129. }
  1130. return nil
  1131. }
  1132. func (m *Response) GetBeginBlock() *ResponseBeginBlock {
  1133. if x, ok := m.GetValue().(*Response_BeginBlock); ok {
  1134. return x.BeginBlock
  1135. }
  1136. return nil
  1137. }
  1138. func (m *Response) GetCheckTx() *ResponseCheckTx {
  1139. if x, ok := m.GetValue().(*Response_CheckTx); ok {
  1140. return x.CheckTx
  1141. }
  1142. return nil
  1143. }
  1144. func (m *Response) GetDeliverTx() *ResponseDeliverTx {
  1145. if x, ok := m.GetValue().(*Response_DeliverTx); ok {
  1146. return x.DeliverTx
  1147. }
  1148. return nil
  1149. }
  1150. func (m *Response) GetEndBlock() *ResponseEndBlock {
  1151. if x, ok := m.GetValue().(*Response_EndBlock); ok {
  1152. return x.EndBlock
  1153. }
  1154. return nil
  1155. }
  1156. func (m *Response) GetCommit() *ResponseCommit {
  1157. if x, ok := m.GetValue().(*Response_Commit); ok {
  1158. return x.Commit
  1159. }
  1160. return nil
  1161. }
  1162. // XXX_OneofFuncs is for the internal use of the proto package.
  1163. 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{}) {
  1164. return _Response_OneofMarshaler, _Response_OneofUnmarshaler, _Response_OneofSizer, []interface{}{
  1165. (*Response_Exception)(nil),
  1166. (*Response_Echo)(nil),
  1167. (*Response_Flush)(nil),
  1168. (*Response_Info)(nil),
  1169. (*Response_SetOption)(nil),
  1170. (*Response_InitChain)(nil),
  1171. (*Response_Query)(nil),
  1172. (*Response_BeginBlock)(nil),
  1173. (*Response_CheckTx)(nil),
  1174. (*Response_DeliverTx)(nil),
  1175. (*Response_EndBlock)(nil),
  1176. (*Response_Commit)(nil),
  1177. }
  1178. }
  1179. func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1180. m := msg.(*Response)
  1181. // value
  1182. switch x := m.Value.(type) {
  1183. case *Response_Exception:
  1184. _ = b.EncodeVarint(1<<3 | proto.WireBytes)
  1185. if err := b.EncodeMessage(x.Exception); err != nil {
  1186. return err
  1187. }
  1188. case *Response_Echo:
  1189. _ = b.EncodeVarint(2<<3 | proto.WireBytes)
  1190. if err := b.EncodeMessage(x.Echo); err != nil {
  1191. return err
  1192. }
  1193. case *Response_Flush:
  1194. _ = b.EncodeVarint(3<<3 | proto.WireBytes)
  1195. if err := b.EncodeMessage(x.Flush); err != nil {
  1196. return err
  1197. }
  1198. case *Response_Info:
  1199. _ = b.EncodeVarint(4<<3 | proto.WireBytes)
  1200. if err := b.EncodeMessage(x.Info); err != nil {
  1201. return err
  1202. }
  1203. case *Response_SetOption:
  1204. _ = b.EncodeVarint(5<<3 | proto.WireBytes)
  1205. if err := b.EncodeMessage(x.SetOption); err != nil {
  1206. return err
  1207. }
  1208. case *Response_InitChain:
  1209. _ = b.EncodeVarint(6<<3 | proto.WireBytes)
  1210. if err := b.EncodeMessage(x.InitChain); err != nil {
  1211. return err
  1212. }
  1213. case *Response_Query:
  1214. _ = b.EncodeVarint(7<<3 | proto.WireBytes)
  1215. if err := b.EncodeMessage(x.Query); err != nil {
  1216. return err
  1217. }
  1218. case *Response_BeginBlock:
  1219. _ = b.EncodeVarint(8<<3 | proto.WireBytes)
  1220. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  1221. return err
  1222. }
  1223. case *Response_CheckTx:
  1224. _ = b.EncodeVarint(9<<3 | proto.WireBytes)
  1225. if err := b.EncodeMessage(x.CheckTx); err != nil {
  1226. return err
  1227. }
  1228. case *Response_DeliverTx:
  1229. _ = b.EncodeVarint(10<<3 | proto.WireBytes)
  1230. if err := b.EncodeMessage(x.DeliverTx); err != nil {
  1231. return err
  1232. }
  1233. case *Response_EndBlock:
  1234. _ = b.EncodeVarint(11<<3 | proto.WireBytes)
  1235. if err := b.EncodeMessage(x.EndBlock); err != nil {
  1236. return err
  1237. }
  1238. case *Response_Commit:
  1239. _ = b.EncodeVarint(12<<3 | proto.WireBytes)
  1240. if err := b.EncodeMessage(x.Commit); err != nil {
  1241. return err
  1242. }
  1243. case nil:
  1244. default:
  1245. return fmt.Errorf("Response.Value has unexpected type %T", x)
  1246. }
  1247. return nil
  1248. }
  1249. func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1250. m := msg.(*Response)
  1251. switch tag {
  1252. case 1: // value.exception
  1253. if wire != proto.WireBytes {
  1254. return true, proto.ErrInternalBadWireType
  1255. }
  1256. msg := new(ResponseException)
  1257. err := b.DecodeMessage(msg)
  1258. m.Value = &Response_Exception{msg}
  1259. return true, err
  1260. case 2: // value.echo
  1261. if wire != proto.WireBytes {
  1262. return true, proto.ErrInternalBadWireType
  1263. }
  1264. msg := new(ResponseEcho)
  1265. err := b.DecodeMessage(msg)
  1266. m.Value = &Response_Echo{msg}
  1267. return true, err
  1268. case 3: // value.flush
  1269. if wire != proto.WireBytes {
  1270. return true, proto.ErrInternalBadWireType
  1271. }
  1272. msg := new(ResponseFlush)
  1273. err := b.DecodeMessage(msg)
  1274. m.Value = &Response_Flush{msg}
  1275. return true, err
  1276. case 4: // value.info
  1277. if wire != proto.WireBytes {
  1278. return true, proto.ErrInternalBadWireType
  1279. }
  1280. msg := new(ResponseInfo)
  1281. err := b.DecodeMessage(msg)
  1282. m.Value = &Response_Info{msg}
  1283. return true, err
  1284. case 5: // value.set_option
  1285. if wire != proto.WireBytes {
  1286. return true, proto.ErrInternalBadWireType
  1287. }
  1288. msg := new(ResponseSetOption)
  1289. err := b.DecodeMessage(msg)
  1290. m.Value = &Response_SetOption{msg}
  1291. return true, err
  1292. case 6: // value.init_chain
  1293. if wire != proto.WireBytes {
  1294. return true, proto.ErrInternalBadWireType
  1295. }
  1296. msg := new(ResponseInitChain)
  1297. err := b.DecodeMessage(msg)
  1298. m.Value = &Response_InitChain{msg}
  1299. return true, err
  1300. case 7: // value.query
  1301. if wire != proto.WireBytes {
  1302. return true, proto.ErrInternalBadWireType
  1303. }
  1304. msg := new(ResponseQuery)
  1305. err := b.DecodeMessage(msg)
  1306. m.Value = &Response_Query{msg}
  1307. return true, err
  1308. case 8: // value.begin_block
  1309. if wire != proto.WireBytes {
  1310. return true, proto.ErrInternalBadWireType
  1311. }
  1312. msg := new(ResponseBeginBlock)
  1313. err := b.DecodeMessage(msg)
  1314. m.Value = &Response_BeginBlock{msg}
  1315. return true, err
  1316. case 9: // value.check_tx
  1317. if wire != proto.WireBytes {
  1318. return true, proto.ErrInternalBadWireType
  1319. }
  1320. msg := new(ResponseCheckTx)
  1321. err := b.DecodeMessage(msg)
  1322. m.Value = &Response_CheckTx{msg}
  1323. return true, err
  1324. case 10: // value.deliver_tx
  1325. if wire != proto.WireBytes {
  1326. return true, proto.ErrInternalBadWireType
  1327. }
  1328. msg := new(ResponseDeliverTx)
  1329. err := b.DecodeMessage(msg)
  1330. m.Value = &Response_DeliverTx{msg}
  1331. return true, err
  1332. case 11: // value.end_block
  1333. if wire != proto.WireBytes {
  1334. return true, proto.ErrInternalBadWireType
  1335. }
  1336. msg := new(ResponseEndBlock)
  1337. err := b.DecodeMessage(msg)
  1338. m.Value = &Response_EndBlock{msg}
  1339. return true, err
  1340. case 12: // value.commit
  1341. if wire != proto.WireBytes {
  1342. return true, proto.ErrInternalBadWireType
  1343. }
  1344. msg := new(ResponseCommit)
  1345. err := b.DecodeMessage(msg)
  1346. m.Value = &Response_Commit{msg}
  1347. return true, err
  1348. default:
  1349. return false, nil
  1350. }
  1351. }
  1352. func _Response_OneofSizer(msg proto.Message) (n int) {
  1353. m := msg.(*Response)
  1354. // value
  1355. switch x := m.Value.(type) {
  1356. case *Response_Exception:
  1357. s := proto.Size(x.Exception)
  1358. n += 1 // tag and wire
  1359. n += proto.SizeVarint(uint64(s))
  1360. n += s
  1361. case *Response_Echo:
  1362. s := proto.Size(x.Echo)
  1363. n += 1 // tag and wire
  1364. n += proto.SizeVarint(uint64(s))
  1365. n += s
  1366. case *Response_Flush:
  1367. s := proto.Size(x.Flush)
  1368. n += 1 // tag and wire
  1369. n += proto.SizeVarint(uint64(s))
  1370. n += s
  1371. case *Response_Info:
  1372. s := proto.Size(x.Info)
  1373. n += 1 // tag and wire
  1374. n += proto.SizeVarint(uint64(s))
  1375. n += s
  1376. case *Response_SetOption:
  1377. s := proto.Size(x.SetOption)
  1378. n += 1 // tag and wire
  1379. n += proto.SizeVarint(uint64(s))
  1380. n += s
  1381. case *Response_InitChain:
  1382. s := proto.Size(x.InitChain)
  1383. n += 1 // tag and wire
  1384. n += proto.SizeVarint(uint64(s))
  1385. n += s
  1386. case *Response_Query:
  1387. s := proto.Size(x.Query)
  1388. n += 1 // tag and wire
  1389. n += proto.SizeVarint(uint64(s))
  1390. n += s
  1391. case *Response_BeginBlock:
  1392. s := proto.Size(x.BeginBlock)
  1393. n += 1 // tag and wire
  1394. n += proto.SizeVarint(uint64(s))
  1395. n += s
  1396. case *Response_CheckTx:
  1397. s := proto.Size(x.CheckTx)
  1398. n += 1 // tag and wire
  1399. n += proto.SizeVarint(uint64(s))
  1400. n += s
  1401. case *Response_DeliverTx:
  1402. s := proto.Size(x.DeliverTx)
  1403. n += 1 // tag and wire
  1404. n += proto.SizeVarint(uint64(s))
  1405. n += s
  1406. case *Response_EndBlock:
  1407. s := proto.Size(x.EndBlock)
  1408. n += 1 // tag and wire
  1409. n += proto.SizeVarint(uint64(s))
  1410. n += s
  1411. case *Response_Commit:
  1412. s := proto.Size(x.Commit)
  1413. n += 1 // tag and wire
  1414. n += proto.SizeVarint(uint64(s))
  1415. n += s
  1416. case nil:
  1417. default:
  1418. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1419. }
  1420. return n
  1421. }
  1422. // nondeterministic
  1423. type ResponseException struct {
  1424. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  1425. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1426. XXX_unrecognized []byte `json:"-"`
  1427. XXX_sizecache int32 `json:"-"`
  1428. }
  1429. func (m *ResponseException) Reset() { *m = ResponseException{} }
  1430. func (m *ResponseException) String() string { return proto.CompactTextString(m) }
  1431. func (*ResponseException) ProtoMessage() {}
  1432. func (*ResponseException) Descriptor() ([]byte, []int) {
  1433. return fileDescriptor_types_8495fed925debe52, []int{13}
  1434. }
  1435. func (m *ResponseException) XXX_Unmarshal(b []byte) error {
  1436. return m.Unmarshal(b)
  1437. }
  1438. func (m *ResponseException) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1439. if deterministic {
  1440. return xxx_messageInfo_ResponseException.Marshal(b, m, deterministic)
  1441. } else {
  1442. b = b[:cap(b)]
  1443. n, err := m.MarshalTo(b)
  1444. if err != nil {
  1445. return nil, err
  1446. }
  1447. return b[:n], nil
  1448. }
  1449. }
  1450. func (dst *ResponseException) XXX_Merge(src proto.Message) {
  1451. xxx_messageInfo_ResponseException.Merge(dst, src)
  1452. }
  1453. func (m *ResponseException) XXX_Size() int {
  1454. return m.Size()
  1455. }
  1456. func (m *ResponseException) XXX_DiscardUnknown() {
  1457. xxx_messageInfo_ResponseException.DiscardUnknown(m)
  1458. }
  1459. var xxx_messageInfo_ResponseException proto.InternalMessageInfo
  1460. func (m *ResponseException) GetError() string {
  1461. if m != nil {
  1462. return m.Error
  1463. }
  1464. return ""
  1465. }
  1466. type ResponseEcho struct {
  1467. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  1468. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1469. XXX_unrecognized []byte `json:"-"`
  1470. XXX_sizecache int32 `json:"-"`
  1471. }
  1472. func (m *ResponseEcho) Reset() { *m = ResponseEcho{} }
  1473. func (m *ResponseEcho) String() string { return proto.CompactTextString(m) }
  1474. func (*ResponseEcho) ProtoMessage() {}
  1475. func (*ResponseEcho) Descriptor() ([]byte, []int) {
  1476. return fileDescriptor_types_8495fed925debe52, []int{14}
  1477. }
  1478. func (m *ResponseEcho) XXX_Unmarshal(b []byte) error {
  1479. return m.Unmarshal(b)
  1480. }
  1481. func (m *ResponseEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1482. if deterministic {
  1483. return xxx_messageInfo_ResponseEcho.Marshal(b, m, deterministic)
  1484. } else {
  1485. b = b[:cap(b)]
  1486. n, err := m.MarshalTo(b)
  1487. if err != nil {
  1488. return nil, err
  1489. }
  1490. return b[:n], nil
  1491. }
  1492. }
  1493. func (dst *ResponseEcho) XXX_Merge(src proto.Message) {
  1494. xxx_messageInfo_ResponseEcho.Merge(dst, src)
  1495. }
  1496. func (m *ResponseEcho) XXX_Size() int {
  1497. return m.Size()
  1498. }
  1499. func (m *ResponseEcho) XXX_DiscardUnknown() {
  1500. xxx_messageInfo_ResponseEcho.DiscardUnknown(m)
  1501. }
  1502. var xxx_messageInfo_ResponseEcho proto.InternalMessageInfo
  1503. func (m *ResponseEcho) GetMessage() string {
  1504. if m != nil {
  1505. return m.Message
  1506. }
  1507. return ""
  1508. }
  1509. type ResponseFlush struct {
  1510. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1511. XXX_unrecognized []byte `json:"-"`
  1512. XXX_sizecache int32 `json:"-"`
  1513. }
  1514. func (m *ResponseFlush) Reset() { *m = ResponseFlush{} }
  1515. func (m *ResponseFlush) String() string { return proto.CompactTextString(m) }
  1516. func (*ResponseFlush) ProtoMessage() {}
  1517. func (*ResponseFlush) Descriptor() ([]byte, []int) {
  1518. return fileDescriptor_types_8495fed925debe52, []int{15}
  1519. }
  1520. func (m *ResponseFlush) XXX_Unmarshal(b []byte) error {
  1521. return m.Unmarshal(b)
  1522. }
  1523. func (m *ResponseFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1524. if deterministic {
  1525. return xxx_messageInfo_ResponseFlush.Marshal(b, m, deterministic)
  1526. } else {
  1527. b = b[:cap(b)]
  1528. n, err := m.MarshalTo(b)
  1529. if err != nil {
  1530. return nil, err
  1531. }
  1532. return b[:n], nil
  1533. }
  1534. }
  1535. func (dst *ResponseFlush) XXX_Merge(src proto.Message) {
  1536. xxx_messageInfo_ResponseFlush.Merge(dst, src)
  1537. }
  1538. func (m *ResponseFlush) XXX_Size() int {
  1539. return m.Size()
  1540. }
  1541. func (m *ResponseFlush) XXX_DiscardUnknown() {
  1542. xxx_messageInfo_ResponseFlush.DiscardUnknown(m)
  1543. }
  1544. var xxx_messageInfo_ResponseFlush proto.InternalMessageInfo
  1545. type ResponseInfo struct {
  1546. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  1547. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  1548. LastBlockHeight int64 `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
  1549. LastBlockAppHash []byte `protobuf:"bytes,4,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"`
  1550. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1551. XXX_unrecognized []byte `json:"-"`
  1552. XXX_sizecache int32 `json:"-"`
  1553. }
  1554. func (m *ResponseInfo) Reset() { *m = ResponseInfo{} }
  1555. func (m *ResponseInfo) String() string { return proto.CompactTextString(m) }
  1556. func (*ResponseInfo) ProtoMessage() {}
  1557. func (*ResponseInfo) Descriptor() ([]byte, []int) {
  1558. return fileDescriptor_types_8495fed925debe52, []int{16}
  1559. }
  1560. func (m *ResponseInfo) XXX_Unmarshal(b []byte) error {
  1561. return m.Unmarshal(b)
  1562. }
  1563. func (m *ResponseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1564. if deterministic {
  1565. return xxx_messageInfo_ResponseInfo.Marshal(b, m, deterministic)
  1566. } else {
  1567. b = b[:cap(b)]
  1568. n, err := m.MarshalTo(b)
  1569. if err != nil {
  1570. return nil, err
  1571. }
  1572. return b[:n], nil
  1573. }
  1574. }
  1575. func (dst *ResponseInfo) XXX_Merge(src proto.Message) {
  1576. xxx_messageInfo_ResponseInfo.Merge(dst, src)
  1577. }
  1578. func (m *ResponseInfo) XXX_Size() int {
  1579. return m.Size()
  1580. }
  1581. func (m *ResponseInfo) XXX_DiscardUnknown() {
  1582. xxx_messageInfo_ResponseInfo.DiscardUnknown(m)
  1583. }
  1584. var xxx_messageInfo_ResponseInfo proto.InternalMessageInfo
  1585. func (m *ResponseInfo) GetData() string {
  1586. if m != nil {
  1587. return m.Data
  1588. }
  1589. return ""
  1590. }
  1591. func (m *ResponseInfo) GetVersion() string {
  1592. if m != nil {
  1593. return m.Version
  1594. }
  1595. return ""
  1596. }
  1597. func (m *ResponseInfo) GetLastBlockHeight() int64 {
  1598. if m != nil {
  1599. return m.LastBlockHeight
  1600. }
  1601. return 0
  1602. }
  1603. func (m *ResponseInfo) GetLastBlockAppHash() []byte {
  1604. if m != nil {
  1605. return m.LastBlockAppHash
  1606. }
  1607. return nil
  1608. }
  1609. // nondeterministic
  1610. type ResponseSetOption struct {
  1611. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1612. // bytes data = 2;
  1613. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1614. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1615. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1616. XXX_unrecognized []byte `json:"-"`
  1617. XXX_sizecache int32 `json:"-"`
  1618. }
  1619. func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} }
  1620. func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) }
  1621. func (*ResponseSetOption) ProtoMessage() {}
  1622. func (*ResponseSetOption) Descriptor() ([]byte, []int) {
  1623. return fileDescriptor_types_8495fed925debe52, []int{17}
  1624. }
  1625. func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error {
  1626. return m.Unmarshal(b)
  1627. }
  1628. func (m *ResponseSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1629. if deterministic {
  1630. return xxx_messageInfo_ResponseSetOption.Marshal(b, m, deterministic)
  1631. } else {
  1632. b = b[:cap(b)]
  1633. n, err := m.MarshalTo(b)
  1634. if err != nil {
  1635. return nil, err
  1636. }
  1637. return b[:n], nil
  1638. }
  1639. }
  1640. func (dst *ResponseSetOption) XXX_Merge(src proto.Message) {
  1641. xxx_messageInfo_ResponseSetOption.Merge(dst, src)
  1642. }
  1643. func (m *ResponseSetOption) XXX_Size() int {
  1644. return m.Size()
  1645. }
  1646. func (m *ResponseSetOption) XXX_DiscardUnknown() {
  1647. xxx_messageInfo_ResponseSetOption.DiscardUnknown(m)
  1648. }
  1649. var xxx_messageInfo_ResponseSetOption proto.InternalMessageInfo
  1650. func (m *ResponseSetOption) GetCode() uint32 {
  1651. if m != nil {
  1652. return m.Code
  1653. }
  1654. return 0
  1655. }
  1656. func (m *ResponseSetOption) GetLog() string {
  1657. if m != nil {
  1658. return m.Log
  1659. }
  1660. return ""
  1661. }
  1662. func (m *ResponseSetOption) GetInfo() string {
  1663. if m != nil {
  1664. return m.Info
  1665. }
  1666. return ""
  1667. }
  1668. type ResponseInitChain struct {
  1669. ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams" json:"consensus_params,omitempty"`
  1670. Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators" json:"validators"`
  1671. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1672. XXX_unrecognized []byte `json:"-"`
  1673. XXX_sizecache int32 `json:"-"`
  1674. }
  1675. func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} }
  1676. func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) }
  1677. func (*ResponseInitChain) ProtoMessage() {}
  1678. func (*ResponseInitChain) Descriptor() ([]byte, []int) {
  1679. return fileDescriptor_types_8495fed925debe52, []int{18}
  1680. }
  1681. func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error {
  1682. return m.Unmarshal(b)
  1683. }
  1684. func (m *ResponseInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1685. if deterministic {
  1686. return xxx_messageInfo_ResponseInitChain.Marshal(b, m, deterministic)
  1687. } else {
  1688. b = b[:cap(b)]
  1689. n, err := m.MarshalTo(b)
  1690. if err != nil {
  1691. return nil, err
  1692. }
  1693. return b[:n], nil
  1694. }
  1695. }
  1696. func (dst *ResponseInitChain) XXX_Merge(src proto.Message) {
  1697. xxx_messageInfo_ResponseInitChain.Merge(dst, src)
  1698. }
  1699. func (m *ResponseInitChain) XXX_Size() int {
  1700. return m.Size()
  1701. }
  1702. func (m *ResponseInitChain) XXX_DiscardUnknown() {
  1703. xxx_messageInfo_ResponseInitChain.DiscardUnknown(m)
  1704. }
  1705. var xxx_messageInfo_ResponseInitChain proto.InternalMessageInfo
  1706. func (m *ResponseInitChain) GetConsensusParams() *ConsensusParams {
  1707. if m != nil {
  1708. return m.ConsensusParams
  1709. }
  1710. return nil
  1711. }
  1712. func (m *ResponseInitChain) GetValidators() []ValidatorUpdate {
  1713. if m != nil {
  1714. return m.Validators
  1715. }
  1716. return nil
  1717. }
  1718. type ResponseQuery struct {
  1719. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1720. // bytes data = 2; // use "value" instead.
  1721. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1722. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1723. Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
  1724. Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
  1725. Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
  1726. Proof []byte `protobuf:"bytes,8,opt,name=proof,proto3" json:"proof,omitempty"`
  1727. Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
  1728. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1729. XXX_unrecognized []byte `json:"-"`
  1730. XXX_sizecache int32 `json:"-"`
  1731. }
  1732. func (m *ResponseQuery) Reset() { *m = ResponseQuery{} }
  1733. func (m *ResponseQuery) String() string { return proto.CompactTextString(m) }
  1734. func (*ResponseQuery) ProtoMessage() {}
  1735. func (*ResponseQuery) Descriptor() ([]byte, []int) {
  1736. return fileDescriptor_types_8495fed925debe52, []int{19}
  1737. }
  1738. func (m *ResponseQuery) XXX_Unmarshal(b []byte) error {
  1739. return m.Unmarshal(b)
  1740. }
  1741. func (m *ResponseQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1742. if deterministic {
  1743. return xxx_messageInfo_ResponseQuery.Marshal(b, m, deterministic)
  1744. } else {
  1745. b = b[:cap(b)]
  1746. n, err := m.MarshalTo(b)
  1747. if err != nil {
  1748. return nil, err
  1749. }
  1750. return b[:n], nil
  1751. }
  1752. }
  1753. func (dst *ResponseQuery) XXX_Merge(src proto.Message) {
  1754. xxx_messageInfo_ResponseQuery.Merge(dst, src)
  1755. }
  1756. func (m *ResponseQuery) XXX_Size() int {
  1757. return m.Size()
  1758. }
  1759. func (m *ResponseQuery) XXX_DiscardUnknown() {
  1760. xxx_messageInfo_ResponseQuery.DiscardUnknown(m)
  1761. }
  1762. var xxx_messageInfo_ResponseQuery proto.InternalMessageInfo
  1763. func (m *ResponseQuery) GetCode() uint32 {
  1764. if m != nil {
  1765. return m.Code
  1766. }
  1767. return 0
  1768. }
  1769. func (m *ResponseQuery) GetLog() string {
  1770. if m != nil {
  1771. return m.Log
  1772. }
  1773. return ""
  1774. }
  1775. func (m *ResponseQuery) GetInfo() string {
  1776. if m != nil {
  1777. return m.Info
  1778. }
  1779. return ""
  1780. }
  1781. func (m *ResponseQuery) GetIndex() int64 {
  1782. if m != nil {
  1783. return m.Index
  1784. }
  1785. return 0
  1786. }
  1787. func (m *ResponseQuery) GetKey() []byte {
  1788. if m != nil {
  1789. return m.Key
  1790. }
  1791. return nil
  1792. }
  1793. func (m *ResponseQuery) GetValue() []byte {
  1794. if m != nil {
  1795. return m.Value
  1796. }
  1797. return nil
  1798. }
  1799. func (m *ResponseQuery) GetProof() []byte {
  1800. if m != nil {
  1801. return m.Proof
  1802. }
  1803. return nil
  1804. }
  1805. func (m *ResponseQuery) GetHeight() int64 {
  1806. if m != nil {
  1807. return m.Height
  1808. }
  1809. return 0
  1810. }
  1811. type ResponseBeginBlock struct {
  1812. Tags []common.KVPair `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
  1813. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1814. XXX_unrecognized []byte `json:"-"`
  1815. XXX_sizecache int32 `json:"-"`
  1816. }
  1817. func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} }
  1818. func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) }
  1819. func (*ResponseBeginBlock) ProtoMessage() {}
  1820. func (*ResponseBeginBlock) Descriptor() ([]byte, []int) {
  1821. return fileDescriptor_types_8495fed925debe52, []int{20}
  1822. }
  1823. func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error {
  1824. return m.Unmarshal(b)
  1825. }
  1826. func (m *ResponseBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1827. if deterministic {
  1828. return xxx_messageInfo_ResponseBeginBlock.Marshal(b, m, deterministic)
  1829. } else {
  1830. b = b[:cap(b)]
  1831. n, err := m.MarshalTo(b)
  1832. if err != nil {
  1833. return nil, err
  1834. }
  1835. return b[:n], nil
  1836. }
  1837. }
  1838. func (dst *ResponseBeginBlock) XXX_Merge(src proto.Message) {
  1839. xxx_messageInfo_ResponseBeginBlock.Merge(dst, src)
  1840. }
  1841. func (m *ResponseBeginBlock) XXX_Size() int {
  1842. return m.Size()
  1843. }
  1844. func (m *ResponseBeginBlock) XXX_DiscardUnknown() {
  1845. xxx_messageInfo_ResponseBeginBlock.DiscardUnknown(m)
  1846. }
  1847. var xxx_messageInfo_ResponseBeginBlock proto.InternalMessageInfo
  1848. func (m *ResponseBeginBlock) GetTags() []common.KVPair {
  1849. if m != nil {
  1850. return m.Tags
  1851. }
  1852. return nil
  1853. }
  1854. type ResponseCheckTx struct {
  1855. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1856. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1857. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1858. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1859. GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
  1860. GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
  1861. Tags []common.KVPair `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
  1862. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1863. XXX_unrecognized []byte `json:"-"`
  1864. XXX_sizecache int32 `json:"-"`
  1865. }
  1866. func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} }
  1867. func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) }
  1868. func (*ResponseCheckTx) ProtoMessage() {}
  1869. func (*ResponseCheckTx) Descriptor() ([]byte, []int) {
  1870. return fileDescriptor_types_8495fed925debe52, []int{21}
  1871. }
  1872. func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error {
  1873. return m.Unmarshal(b)
  1874. }
  1875. func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1876. if deterministic {
  1877. return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic)
  1878. } else {
  1879. b = b[:cap(b)]
  1880. n, err := m.MarshalTo(b)
  1881. if err != nil {
  1882. return nil, err
  1883. }
  1884. return b[:n], nil
  1885. }
  1886. }
  1887. func (dst *ResponseCheckTx) XXX_Merge(src proto.Message) {
  1888. xxx_messageInfo_ResponseCheckTx.Merge(dst, src)
  1889. }
  1890. func (m *ResponseCheckTx) XXX_Size() int {
  1891. return m.Size()
  1892. }
  1893. func (m *ResponseCheckTx) XXX_DiscardUnknown() {
  1894. xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m)
  1895. }
  1896. var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo
  1897. func (m *ResponseCheckTx) GetCode() uint32 {
  1898. if m != nil {
  1899. return m.Code
  1900. }
  1901. return 0
  1902. }
  1903. func (m *ResponseCheckTx) GetData() []byte {
  1904. if m != nil {
  1905. return m.Data
  1906. }
  1907. return nil
  1908. }
  1909. func (m *ResponseCheckTx) GetLog() string {
  1910. if m != nil {
  1911. return m.Log
  1912. }
  1913. return ""
  1914. }
  1915. func (m *ResponseCheckTx) GetInfo() string {
  1916. if m != nil {
  1917. return m.Info
  1918. }
  1919. return ""
  1920. }
  1921. func (m *ResponseCheckTx) GetGasWanted() int64 {
  1922. if m != nil {
  1923. return m.GasWanted
  1924. }
  1925. return 0
  1926. }
  1927. func (m *ResponseCheckTx) GetGasUsed() int64 {
  1928. if m != nil {
  1929. return m.GasUsed
  1930. }
  1931. return 0
  1932. }
  1933. func (m *ResponseCheckTx) GetTags() []common.KVPair {
  1934. if m != nil {
  1935. return m.Tags
  1936. }
  1937. return nil
  1938. }
  1939. type ResponseDeliverTx struct {
  1940. Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  1941. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1942. Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
  1943. Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
  1944. GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
  1945. GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
  1946. Tags []common.KVPair `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
  1947. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1948. XXX_unrecognized []byte `json:"-"`
  1949. XXX_sizecache int32 `json:"-"`
  1950. }
  1951. func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} }
  1952. func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) }
  1953. func (*ResponseDeliverTx) ProtoMessage() {}
  1954. func (*ResponseDeliverTx) Descriptor() ([]byte, []int) {
  1955. return fileDescriptor_types_8495fed925debe52, []int{22}
  1956. }
  1957. func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error {
  1958. return m.Unmarshal(b)
  1959. }
  1960. func (m *ResponseDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1961. if deterministic {
  1962. return xxx_messageInfo_ResponseDeliverTx.Marshal(b, m, deterministic)
  1963. } else {
  1964. b = b[:cap(b)]
  1965. n, err := m.MarshalTo(b)
  1966. if err != nil {
  1967. return nil, err
  1968. }
  1969. return b[:n], nil
  1970. }
  1971. }
  1972. func (dst *ResponseDeliverTx) XXX_Merge(src proto.Message) {
  1973. xxx_messageInfo_ResponseDeliverTx.Merge(dst, src)
  1974. }
  1975. func (m *ResponseDeliverTx) XXX_Size() int {
  1976. return m.Size()
  1977. }
  1978. func (m *ResponseDeliverTx) XXX_DiscardUnknown() {
  1979. xxx_messageInfo_ResponseDeliverTx.DiscardUnknown(m)
  1980. }
  1981. var xxx_messageInfo_ResponseDeliverTx proto.InternalMessageInfo
  1982. func (m *ResponseDeliverTx) GetCode() uint32 {
  1983. if m != nil {
  1984. return m.Code
  1985. }
  1986. return 0
  1987. }
  1988. func (m *ResponseDeliverTx) GetData() []byte {
  1989. if m != nil {
  1990. return m.Data
  1991. }
  1992. return nil
  1993. }
  1994. func (m *ResponseDeliverTx) GetLog() string {
  1995. if m != nil {
  1996. return m.Log
  1997. }
  1998. return ""
  1999. }
  2000. func (m *ResponseDeliverTx) GetInfo() string {
  2001. if m != nil {
  2002. return m.Info
  2003. }
  2004. return ""
  2005. }
  2006. func (m *ResponseDeliverTx) GetGasWanted() int64 {
  2007. if m != nil {
  2008. return m.GasWanted
  2009. }
  2010. return 0
  2011. }
  2012. func (m *ResponseDeliverTx) GetGasUsed() int64 {
  2013. if m != nil {
  2014. return m.GasUsed
  2015. }
  2016. return 0
  2017. }
  2018. func (m *ResponseDeliverTx) GetTags() []common.KVPair {
  2019. if m != nil {
  2020. return m.Tags
  2021. }
  2022. return nil
  2023. }
  2024. type ResponseEndBlock struct {
  2025. ValidatorUpdates []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates" json:"validator_updates"`
  2026. ConsensusParamUpdates *ConsensusParams `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates" json:"consensus_param_updates,omitempty"`
  2027. Tags []common.KVPair `protobuf:"bytes,3,rep,name=tags" json:"tags,omitempty"`
  2028. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2029. XXX_unrecognized []byte `json:"-"`
  2030. XXX_sizecache int32 `json:"-"`
  2031. }
  2032. func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} }
  2033. func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) }
  2034. func (*ResponseEndBlock) ProtoMessage() {}
  2035. func (*ResponseEndBlock) Descriptor() ([]byte, []int) {
  2036. return fileDescriptor_types_8495fed925debe52, []int{23}
  2037. }
  2038. func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error {
  2039. return m.Unmarshal(b)
  2040. }
  2041. func (m *ResponseEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2042. if deterministic {
  2043. return xxx_messageInfo_ResponseEndBlock.Marshal(b, m, deterministic)
  2044. } else {
  2045. b = b[:cap(b)]
  2046. n, err := m.MarshalTo(b)
  2047. if err != nil {
  2048. return nil, err
  2049. }
  2050. return b[:n], nil
  2051. }
  2052. }
  2053. func (dst *ResponseEndBlock) XXX_Merge(src proto.Message) {
  2054. xxx_messageInfo_ResponseEndBlock.Merge(dst, src)
  2055. }
  2056. func (m *ResponseEndBlock) XXX_Size() int {
  2057. return m.Size()
  2058. }
  2059. func (m *ResponseEndBlock) XXX_DiscardUnknown() {
  2060. xxx_messageInfo_ResponseEndBlock.DiscardUnknown(m)
  2061. }
  2062. var xxx_messageInfo_ResponseEndBlock proto.InternalMessageInfo
  2063. func (m *ResponseEndBlock) GetValidatorUpdates() []ValidatorUpdate {
  2064. if m != nil {
  2065. return m.ValidatorUpdates
  2066. }
  2067. return nil
  2068. }
  2069. func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams {
  2070. if m != nil {
  2071. return m.ConsensusParamUpdates
  2072. }
  2073. return nil
  2074. }
  2075. func (m *ResponseEndBlock) GetTags() []common.KVPair {
  2076. if m != nil {
  2077. return m.Tags
  2078. }
  2079. return nil
  2080. }
  2081. type ResponseCommit struct {
  2082. // reserve 1
  2083. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  2084. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2085. XXX_unrecognized []byte `json:"-"`
  2086. XXX_sizecache int32 `json:"-"`
  2087. }
  2088. func (m *ResponseCommit) Reset() { *m = ResponseCommit{} }
  2089. func (m *ResponseCommit) String() string { return proto.CompactTextString(m) }
  2090. func (*ResponseCommit) ProtoMessage() {}
  2091. func (*ResponseCommit) Descriptor() ([]byte, []int) {
  2092. return fileDescriptor_types_8495fed925debe52, []int{24}
  2093. }
  2094. func (m *ResponseCommit) XXX_Unmarshal(b []byte) error {
  2095. return m.Unmarshal(b)
  2096. }
  2097. func (m *ResponseCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2098. if deterministic {
  2099. return xxx_messageInfo_ResponseCommit.Marshal(b, m, deterministic)
  2100. } else {
  2101. b = b[:cap(b)]
  2102. n, err := m.MarshalTo(b)
  2103. if err != nil {
  2104. return nil, err
  2105. }
  2106. return b[:n], nil
  2107. }
  2108. }
  2109. func (dst *ResponseCommit) XXX_Merge(src proto.Message) {
  2110. xxx_messageInfo_ResponseCommit.Merge(dst, src)
  2111. }
  2112. func (m *ResponseCommit) XXX_Size() int {
  2113. return m.Size()
  2114. }
  2115. func (m *ResponseCommit) XXX_DiscardUnknown() {
  2116. xxx_messageInfo_ResponseCommit.DiscardUnknown(m)
  2117. }
  2118. var xxx_messageInfo_ResponseCommit proto.InternalMessageInfo
  2119. func (m *ResponseCommit) GetData() []byte {
  2120. if m != nil {
  2121. return m.Data
  2122. }
  2123. return nil
  2124. }
  2125. // ConsensusParams contains all consensus-relevant parameters
  2126. // that can be adjusted by the abci app
  2127. type ConsensusParams struct {
  2128. BlockSize *BlockSize `protobuf:"bytes,1,opt,name=block_size,json=blockSize" json:"block_size,omitempty"`
  2129. EvidenceParams *EvidenceParams `protobuf:"bytes,2,opt,name=evidence_params,json=evidenceParams" json:"evidence_params,omitempty"`
  2130. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2131. XXX_unrecognized []byte `json:"-"`
  2132. XXX_sizecache int32 `json:"-"`
  2133. }
  2134. func (m *ConsensusParams) Reset() { *m = ConsensusParams{} }
  2135. func (m *ConsensusParams) String() string { return proto.CompactTextString(m) }
  2136. func (*ConsensusParams) ProtoMessage() {}
  2137. func (*ConsensusParams) Descriptor() ([]byte, []int) {
  2138. return fileDescriptor_types_8495fed925debe52, []int{25}
  2139. }
  2140. func (m *ConsensusParams) XXX_Unmarshal(b []byte) error {
  2141. return m.Unmarshal(b)
  2142. }
  2143. func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2144. if deterministic {
  2145. return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic)
  2146. } else {
  2147. b = b[:cap(b)]
  2148. n, err := m.MarshalTo(b)
  2149. if err != nil {
  2150. return nil, err
  2151. }
  2152. return b[:n], nil
  2153. }
  2154. }
  2155. func (dst *ConsensusParams) XXX_Merge(src proto.Message) {
  2156. xxx_messageInfo_ConsensusParams.Merge(dst, src)
  2157. }
  2158. func (m *ConsensusParams) XXX_Size() int {
  2159. return m.Size()
  2160. }
  2161. func (m *ConsensusParams) XXX_DiscardUnknown() {
  2162. xxx_messageInfo_ConsensusParams.DiscardUnknown(m)
  2163. }
  2164. var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo
  2165. func (m *ConsensusParams) GetBlockSize() *BlockSize {
  2166. if m != nil {
  2167. return m.BlockSize
  2168. }
  2169. return nil
  2170. }
  2171. func (m *ConsensusParams) GetEvidenceParams() *EvidenceParams {
  2172. if m != nil {
  2173. return m.EvidenceParams
  2174. }
  2175. return nil
  2176. }
  2177. // BlockSize contains limits on the block size.
  2178. type BlockSize struct {
  2179. // Note: must be greater than 0
  2180. MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
  2181. // Note: must be greater or equal to -1
  2182. MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
  2183. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2184. XXX_unrecognized []byte `json:"-"`
  2185. XXX_sizecache int32 `json:"-"`
  2186. }
  2187. func (m *BlockSize) Reset() { *m = BlockSize{} }
  2188. func (m *BlockSize) String() string { return proto.CompactTextString(m) }
  2189. func (*BlockSize) ProtoMessage() {}
  2190. func (*BlockSize) Descriptor() ([]byte, []int) {
  2191. return fileDescriptor_types_8495fed925debe52, []int{26}
  2192. }
  2193. func (m *BlockSize) XXX_Unmarshal(b []byte) error {
  2194. return m.Unmarshal(b)
  2195. }
  2196. func (m *BlockSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2197. if deterministic {
  2198. return xxx_messageInfo_BlockSize.Marshal(b, m, deterministic)
  2199. } else {
  2200. b = b[:cap(b)]
  2201. n, err := m.MarshalTo(b)
  2202. if err != nil {
  2203. return nil, err
  2204. }
  2205. return b[:n], nil
  2206. }
  2207. }
  2208. func (dst *BlockSize) XXX_Merge(src proto.Message) {
  2209. xxx_messageInfo_BlockSize.Merge(dst, src)
  2210. }
  2211. func (m *BlockSize) XXX_Size() int {
  2212. return m.Size()
  2213. }
  2214. func (m *BlockSize) XXX_DiscardUnknown() {
  2215. xxx_messageInfo_BlockSize.DiscardUnknown(m)
  2216. }
  2217. var xxx_messageInfo_BlockSize proto.InternalMessageInfo
  2218. func (m *BlockSize) GetMaxBytes() int64 {
  2219. if m != nil {
  2220. return m.MaxBytes
  2221. }
  2222. return 0
  2223. }
  2224. func (m *BlockSize) GetMaxGas() int64 {
  2225. if m != nil {
  2226. return m.MaxGas
  2227. }
  2228. return 0
  2229. }
  2230. // EvidenceParams contains limits on the evidence.
  2231. type EvidenceParams struct {
  2232. // Note: must be greater than 0
  2233. MaxAge int64 `protobuf:"varint,1,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
  2234. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2235. XXX_unrecognized []byte `json:"-"`
  2236. XXX_sizecache int32 `json:"-"`
  2237. }
  2238. func (m *EvidenceParams) Reset() { *m = EvidenceParams{} }
  2239. func (m *EvidenceParams) String() string { return proto.CompactTextString(m) }
  2240. func (*EvidenceParams) ProtoMessage() {}
  2241. func (*EvidenceParams) Descriptor() ([]byte, []int) {
  2242. return fileDescriptor_types_8495fed925debe52, []int{27}
  2243. }
  2244. func (m *EvidenceParams) XXX_Unmarshal(b []byte) error {
  2245. return m.Unmarshal(b)
  2246. }
  2247. func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2248. if deterministic {
  2249. return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic)
  2250. } else {
  2251. b = b[:cap(b)]
  2252. n, err := m.MarshalTo(b)
  2253. if err != nil {
  2254. return nil, err
  2255. }
  2256. return b[:n], nil
  2257. }
  2258. }
  2259. func (dst *EvidenceParams) XXX_Merge(src proto.Message) {
  2260. xxx_messageInfo_EvidenceParams.Merge(dst, src)
  2261. }
  2262. func (m *EvidenceParams) XXX_Size() int {
  2263. return m.Size()
  2264. }
  2265. func (m *EvidenceParams) XXX_DiscardUnknown() {
  2266. xxx_messageInfo_EvidenceParams.DiscardUnknown(m)
  2267. }
  2268. var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo
  2269. func (m *EvidenceParams) GetMaxAge() int64 {
  2270. if m != nil {
  2271. return m.MaxAge
  2272. }
  2273. return 0
  2274. }
  2275. type LastCommitInfo struct {
  2276. Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
  2277. Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes" json:"votes"`
  2278. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2279. XXX_unrecognized []byte `json:"-"`
  2280. XXX_sizecache int32 `json:"-"`
  2281. }
  2282. func (m *LastCommitInfo) Reset() { *m = LastCommitInfo{} }
  2283. func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) }
  2284. func (*LastCommitInfo) ProtoMessage() {}
  2285. func (*LastCommitInfo) Descriptor() ([]byte, []int) {
  2286. return fileDescriptor_types_8495fed925debe52, []int{28}
  2287. }
  2288. func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error {
  2289. return m.Unmarshal(b)
  2290. }
  2291. func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2292. if deterministic {
  2293. return xxx_messageInfo_LastCommitInfo.Marshal(b, m, deterministic)
  2294. } else {
  2295. b = b[:cap(b)]
  2296. n, err := m.MarshalTo(b)
  2297. if err != nil {
  2298. return nil, err
  2299. }
  2300. return b[:n], nil
  2301. }
  2302. }
  2303. func (dst *LastCommitInfo) XXX_Merge(src proto.Message) {
  2304. xxx_messageInfo_LastCommitInfo.Merge(dst, src)
  2305. }
  2306. func (m *LastCommitInfo) XXX_Size() int {
  2307. return m.Size()
  2308. }
  2309. func (m *LastCommitInfo) XXX_DiscardUnknown() {
  2310. xxx_messageInfo_LastCommitInfo.DiscardUnknown(m)
  2311. }
  2312. var xxx_messageInfo_LastCommitInfo proto.InternalMessageInfo
  2313. func (m *LastCommitInfo) GetRound() int32 {
  2314. if m != nil {
  2315. return m.Round
  2316. }
  2317. return 0
  2318. }
  2319. func (m *LastCommitInfo) GetVotes() []VoteInfo {
  2320. if m != nil {
  2321. return m.Votes
  2322. }
  2323. return nil
  2324. }
  2325. type Header struct {
  2326. // basic block info
  2327. ChainID string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
  2328. Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
  2329. Time time.Time `protobuf:"bytes,3,opt,name=time,stdtime" json:"time"`
  2330. NumTxs int64 `protobuf:"varint,4,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"`
  2331. TotalTxs int64 `protobuf:"varint,5,opt,name=total_txs,json=totalTxs,proto3" json:"total_txs,omitempty"`
  2332. // prev block info
  2333. LastBlockId BlockID `protobuf:"bytes,6,opt,name=last_block_id,json=lastBlockId" json:"last_block_id"`
  2334. // hashes of block data
  2335. LastCommitHash []byte `protobuf:"bytes,7,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
  2336. DataHash []byte `protobuf:"bytes,8,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
  2337. // hashes from the app output from the prev block
  2338. ValidatorsHash []byte `protobuf:"bytes,9,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`
  2339. NextValidatorsHash []byte `protobuf:"bytes,10,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"`
  2340. ConsensusHash []byte `protobuf:"bytes,11,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
  2341. AppHash []byte `protobuf:"bytes,12,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
  2342. LastResultsHash []byte `protobuf:"bytes,13,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
  2343. // consensus info
  2344. EvidenceHash []byte `protobuf:"bytes,14,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`
  2345. ProposerAddress []byte `protobuf:"bytes,15,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
  2346. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2347. XXX_unrecognized []byte `json:"-"`
  2348. XXX_sizecache int32 `json:"-"`
  2349. }
  2350. func (m *Header) Reset() { *m = Header{} }
  2351. func (m *Header) String() string { return proto.CompactTextString(m) }
  2352. func (*Header) ProtoMessage() {}
  2353. func (*Header) Descriptor() ([]byte, []int) {
  2354. return fileDescriptor_types_8495fed925debe52, []int{29}
  2355. }
  2356. func (m *Header) XXX_Unmarshal(b []byte) error {
  2357. return m.Unmarshal(b)
  2358. }
  2359. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2360. if deterministic {
  2361. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  2362. } else {
  2363. b = b[:cap(b)]
  2364. n, err := m.MarshalTo(b)
  2365. if err != nil {
  2366. return nil, err
  2367. }
  2368. return b[:n], nil
  2369. }
  2370. }
  2371. func (dst *Header) XXX_Merge(src proto.Message) {
  2372. xxx_messageInfo_Header.Merge(dst, src)
  2373. }
  2374. func (m *Header) XXX_Size() int {
  2375. return m.Size()
  2376. }
  2377. func (m *Header) XXX_DiscardUnknown() {
  2378. xxx_messageInfo_Header.DiscardUnknown(m)
  2379. }
  2380. var xxx_messageInfo_Header proto.InternalMessageInfo
  2381. func (m *Header) GetChainID() string {
  2382. if m != nil {
  2383. return m.ChainID
  2384. }
  2385. return ""
  2386. }
  2387. func (m *Header) GetHeight() int64 {
  2388. if m != nil {
  2389. return m.Height
  2390. }
  2391. return 0
  2392. }
  2393. func (m *Header) GetTime() time.Time {
  2394. if m != nil {
  2395. return m.Time
  2396. }
  2397. return time.Time{}
  2398. }
  2399. func (m *Header) GetNumTxs() int64 {
  2400. if m != nil {
  2401. return m.NumTxs
  2402. }
  2403. return 0
  2404. }
  2405. func (m *Header) GetTotalTxs() int64 {
  2406. if m != nil {
  2407. return m.TotalTxs
  2408. }
  2409. return 0
  2410. }
  2411. func (m *Header) GetLastBlockId() BlockID {
  2412. if m != nil {
  2413. return m.LastBlockId
  2414. }
  2415. return BlockID{}
  2416. }
  2417. func (m *Header) GetLastCommitHash() []byte {
  2418. if m != nil {
  2419. return m.LastCommitHash
  2420. }
  2421. return nil
  2422. }
  2423. func (m *Header) GetDataHash() []byte {
  2424. if m != nil {
  2425. return m.DataHash
  2426. }
  2427. return nil
  2428. }
  2429. func (m *Header) GetValidatorsHash() []byte {
  2430. if m != nil {
  2431. return m.ValidatorsHash
  2432. }
  2433. return nil
  2434. }
  2435. func (m *Header) GetNextValidatorsHash() []byte {
  2436. if m != nil {
  2437. return m.NextValidatorsHash
  2438. }
  2439. return nil
  2440. }
  2441. func (m *Header) GetConsensusHash() []byte {
  2442. if m != nil {
  2443. return m.ConsensusHash
  2444. }
  2445. return nil
  2446. }
  2447. func (m *Header) GetAppHash() []byte {
  2448. if m != nil {
  2449. return m.AppHash
  2450. }
  2451. return nil
  2452. }
  2453. func (m *Header) GetLastResultsHash() []byte {
  2454. if m != nil {
  2455. return m.LastResultsHash
  2456. }
  2457. return nil
  2458. }
  2459. func (m *Header) GetEvidenceHash() []byte {
  2460. if m != nil {
  2461. return m.EvidenceHash
  2462. }
  2463. return nil
  2464. }
  2465. func (m *Header) GetProposerAddress() []byte {
  2466. if m != nil {
  2467. return m.ProposerAddress
  2468. }
  2469. return nil
  2470. }
  2471. type BlockID struct {
  2472. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
  2473. PartsHeader PartSetHeader `protobuf:"bytes,2,opt,name=parts_header,json=partsHeader" json:"parts_header"`
  2474. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2475. XXX_unrecognized []byte `json:"-"`
  2476. XXX_sizecache int32 `json:"-"`
  2477. }
  2478. func (m *BlockID) Reset() { *m = BlockID{} }
  2479. func (m *BlockID) String() string { return proto.CompactTextString(m) }
  2480. func (*BlockID) ProtoMessage() {}
  2481. func (*BlockID) Descriptor() ([]byte, []int) {
  2482. return fileDescriptor_types_8495fed925debe52, []int{30}
  2483. }
  2484. func (m *BlockID) XXX_Unmarshal(b []byte) error {
  2485. return m.Unmarshal(b)
  2486. }
  2487. func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2488. if deterministic {
  2489. return xxx_messageInfo_BlockID.Marshal(b, m, deterministic)
  2490. } else {
  2491. b = b[:cap(b)]
  2492. n, err := m.MarshalTo(b)
  2493. if err != nil {
  2494. return nil, err
  2495. }
  2496. return b[:n], nil
  2497. }
  2498. }
  2499. func (dst *BlockID) XXX_Merge(src proto.Message) {
  2500. xxx_messageInfo_BlockID.Merge(dst, src)
  2501. }
  2502. func (m *BlockID) XXX_Size() int {
  2503. return m.Size()
  2504. }
  2505. func (m *BlockID) XXX_DiscardUnknown() {
  2506. xxx_messageInfo_BlockID.DiscardUnknown(m)
  2507. }
  2508. var xxx_messageInfo_BlockID proto.InternalMessageInfo
  2509. func (m *BlockID) GetHash() []byte {
  2510. if m != nil {
  2511. return m.Hash
  2512. }
  2513. return nil
  2514. }
  2515. func (m *BlockID) GetPartsHeader() PartSetHeader {
  2516. if m != nil {
  2517. return m.PartsHeader
  2518. }
  2519. return PartSetHeader{}
  2520. }
  2521. type PartSetHeader struct {
  2522. Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
  2523. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
  2524. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2525. XXX_unrecognized []byte `json:"-"`
  2526. XXX_sizecache int32 `json:"-"`
  2527. }
  2528. func (m *PartSetHeader) Reset() { *m = PartSetHeader{} }
  2529. func (m *PartSetHeader) String() string { return proto.CompactTextString(m) }
  2530. func (*PartSetHeader) ProtoMessage() {}
  2531. func (*PartSetHeader) Descriptor() ([]byte, []int) {
  2532. return fileDescriptor_types_8495fed925debe52, []int{31}
  2533. }
  2534. func (m *PartSetHeader) XXX_Unmarshal(b []byte) error {
  2535. return m.Unmarshal(b)
  2536. }
  2537. func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2538. if deterministic {
  2539. return xxx_messageInfo_PartSetHeader.Marshal(b, m, deterministic)
  2540. } else {
  2541. b = b[:cap(b)]
  2542. n, err := m.MarshalTo(b)
  2543. if err != nil {
  2544. return nil, err
  2545. }
  2546. return b[:n], nil
  2547. }
  2548. }
  2549. func (dst *PartSetHeader) XXX_Merge(src proto.Message) {
  2550. xxx_messageInfo_PartSetHeader.Merge(dst, src)
  2551. }
  2552. func (m *PartSetHeader) XXX_Size() int {
  2553. return m.Size()
  2554. }
  2555. func (m *PartSetHeader) XXX_DiscardUnknown() {
  2556. xxx_messageInfo_PartSetHeader.DiscardUnknown(m)
  2557. }
  2558. var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo
  2559. func (m *PartSetHeader) GetTotal() int32 {
  2560. if m != nil {
  2561. return m.Total
  2562. }
  2563. return 0
  2564. }
  2565. func (m *PartSetHeader) GetHash() []byte {
  2566. if m != nil {
  2567. return m.Hash
  2568. }
  2569. return nil
  2570. }
  2571. // Validator
  2572. type Validator struct {
  2573. Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  2574. // PubKey pub_key = 2 [(gogoproto.nullable)=false];
  2575. Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
  2576. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2577. XXX_unrecognized []byte `json:"-"`
  2578. XXX_sizecache int32 `json:"-"`
  2579. }
  2580. func (m *Validator) Reset() { *m = Validator{} }
  2581. func (m *Validator) String() string { return proto.CompactTextString(m) }
  2582. func (*Validator) ProtoMessage() {}
  2583. func (*Validator) Descriptor() ([]byte, []int) {
  2584. return fileDescriptor_types_8495fed925debe52, []int{32}
  2585. }
  2586. func (m *Validator) XXX_Unmarshal(b []byte) error {
  2587. return m.Unmarshal(b)
  2588. }
  2589. func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2590. if deterministic {
  2591. return xxx_messageInfo_Validator.Marshal(b, m, deterministic)
  2592. } else {
  2593. b = b[:cap(b)]
  2594. n, err := m.MarshalTo(b)
  2595. if err != nil {
  2596. return nil, err
  2597. }
  2598. return b[:n], nil
  2599. }
  2600. }
  2601. func (dst *Validator) XXX_Merge(src proto.Message) {
  2602. xxx_messageInfo_Validator.Merge(dst, src)
  2603. }
  2604. func (m *Validator) XXX_Size() int {
  2605. return m.Size()
  2606. }
  2607. func (m *Validator) XXX_DiscardUnknown() {
  2608. xxx_messageInfo_Validator.DiscardUnknown(m)
  2609. }
  2610. var xxx_messageInfo_Validator proto.InternalMessageInfo
  2611. func (m *Validator) GetAddress() []byte {
  2612. if m != nil {
  2613. return m.Address
  2614. }
  2615. return nil
  2616. }
  2617. func (m *Validator) GetPower() int64 {
  2618. if m != nil {
  2619. return m.Power
  2620. }
  2621. return 0
  2622. }
  2623. // ValidatorUpdate
  2624. type ValidatorUpdate struct {
  2625. PubKey PubKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey" json:"pub_key"`
  2626. Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
  2627. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2628. XXX_unrecognized []byte `json:"-"`
  2629. XXX_sizecache int32 `json:"-"`
  2630. }
  2631. func (m *ValidatorUpdate) Reset() { *m = ValidatorUpdate{} }
  2632. func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) }
  2633. func (*ValidatorUpdate) ProtoMessage() {}
  2634. func (*ValidatorUpdate) Descriptor() ([]byte, []int) {
  2635. return fileDescriptor_types_8495fed925debe52, []int{33}
  2636. }
  2637. func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error {
  2638. return m.Unmarshal(b)
  2639. }
  2640. func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2641. if deterministic {
  2642. return xxx_messageInfo_ValidatorUpdate.Marshal(b, m, deterministic)
  2643. } else {
  2644. b = b[:cap(b)]
  2645. n, err := m.MarshalTo(b)
  2646. if err != nil {
  2647. return nil, err
  2648. }
  2649. return b[:n], nil
  2650. }
  2651. }
  2652. func (dst *ValidatorUpdate) XXX_Merge(src proto.Message) {
  2653. xxx_messageInfo_ValidatorUpdate.Merge(dst, src)
  2654. }
  2655. func (m *ValidatorUpdate) XXX_Size() int {
  2656. return m.Size()
  2657. }
  2658. func (m *ValidatorUpdate) XXX_DiscardUnknown() {
  2659. xxx_messageInfo_ValidatorUpdate.DiscardUnknown(m)
  2660. }
  2661. var xxx_messageInfo_ValidatorUpdate proto.InternalMessageInfo
  2662. func (m *ValidatorUpdate) GetPubKey() PubKey {
  2663. if m != nil {
  2664. return m.PubKey
  2665. }
  2666. return PubKey{}
  2667. }
  2668. func (m *ValidatorUpdate) GetPower() int64 {
  2669. if m != nil {
  2670. return m.Power
  2671. }
  2672. return 0
  2673. }
  2674. // VoteInfo
  2675. type VoteInfo struct {
  2676. Validator Validator `protobuf:"bytes,1,opt,name=validator" json:"validator"`
  2677. SignedLastBlock bool `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"`
  2678. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2679. XXX_unrecognized []byte `json:"-"`
  2680. XXX_sizecache int32 `json:"-"`
  2681. }
  2682. func (m *VoteInfo) Reset() { *m = VoteInfo{} }
  2683. func (m *VoteInfo) String() string { return proto.CompactTextString(m) }
  2684. func (*VoteInfo) ProtoMessage() {}
  2685. func (*VoteInfo) Descriptor() ([]byte, []int) {
  2686. return fileDescriptor_types_8495fed925debe52, []int{34}
  2687. }
  2688. func (m *VoteInfo) XXX_Unmarshal(b []byte) error {
  2689. return m.Unmarshal(b)
  2690. }
  2691. func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2692. if deterministic {
  2693. return xxx_messageInfo_VoteInfo.Marshal(b, m, deterministic)
  2694. } else {
  2695. b = b[:cap(b)]
  2696. n, err := m.MarshalTo(b)
  2697. if err != nil {
  2698. return nil, err
  2699. }
  2700. return b[:n], nil
  2701. }
  2702. }
  2703. func (dst *VoteInfo) XXX_Merge(src proto.Message) {
  2704. xxx_messageInfo_VoteInfo.Merge(dst, src)
  2705. }
  2706. func (m *VoteInfo) XXX_Size() int {
  2707. return m.Size()
  2708. }
  2709. func (m *VoteInfo) XXX_DiscardUnknown() {
  2710. xxx_messageInfo_VoteInfo.DiscardUnknown(m)
  2711. }
  2712. var xxx_messageInfo_VoteInfo proto.InternalMessageInfo
  2713. func (m *VoteInfo) GetValidator() Validator {
  2714. if m != nil {
  2715. return m.Validator
  2716. }
  2717. return Validator{}
  2718. }
  2719. func (m *VoteInfo) GetSignedLastBlock() bool {
  2720. if m != nil {
  2721. return m.SignedLastBlock
  2722. }
  2723. return false
  2724. }
  2725. type PubKey struct {
  2726. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  2727. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  2728. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2729. XXX_unrecognized []byte `json:"-"`
  2730. XXX_sizecache int32 `json:"-"`
  2731. }
  2732. func (m *PubKey) Reset() { *m = PubKey{} }
  2733. func (m *PubKey) String() string { return proto.CompactTextString(m) }
  2734. func (*PubKey) ProtoMessage() {}
  2735. func (*PubKey) Descriptor() ([]byte, []int) {
  2736. return fileDescriptor_types_8495fed925debe52, []int{35}
  2737. }
  2738. func (m *PubKey) XXX_Unmarshal(b []byte) error {
  2739. return m.Unmarshal(b)
  2740. }
  2741. func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2742. if deterministic {
  2743. return xxx_messageInfo_PubKey.Marshal(b, m, deterministic)
  2744. } else {
  2745. b = b[:cap(b)]
  2746. n, err := m.MarshalTo(b)
  2747. if err != nil {
  2748. return nil, err
  2749. }
  2750. return b[:n], nil
  2751. }
  2752. }
  2753. func (dst *PubKey) XXX_Merge(src proto.Message) {
  2754. xxx_messageInfo_PubKey.Merge(dst, src)
  2755. }
  2756. func (m *PubKey) XXX_Size() int {
  2757. return m.Size()
  2758. }
  2759. func (m *PubKey) XXX_DiscardUnknown() {
  2760. xxx_messageInfo_PubKey.DiscardUnknown(m)
  2761. }
  2762. var xxx_messageInfo_PubKey proto.InternalMessageInfo
  2763. func (m *PubKey) GetType() string {
  2764. if m != nil {
  2765. return m.Type
  2766. }
  2767. return ""
  2768. }
  2769. func (m *PubKey) GetData() []byte {
  2770. if m != nil {
  2771. return m.Data
  2772. }
  2773. return nil
  2774. }
  2775. type Evidence struct {
  2776. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  2777. Validator Validator `protobuf:"bytes,2,opt,name=validator" json:"validator"`
  2778. Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
  2779. Time time.Time `protobuf:"bytes,4,opt,name=time,stdtime" json:"time"`
  2780. TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
  2781. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2782. XXX_unrecognized []byte `json:"-"`
  2783. XXX_sizecache int32 `json:"-"`
  2784. }
  2785. func (m *Evidence) Reset() { *m = Evidence{} }
  2786. func (m *Evidence) String() string { return proto.CompactTextString(m) }
  2787. func (*Evidence) ProtoMessage() {}
  2788. func (*Evidence) Descriptor() ([]byte, []int) {
  2789. return fileDescriptor_types_8495fed925debe52, []int{36}
  2790. }
  2791. func (m *Evidence) XXX_Unmarshal(b []byte) error {
  2792. return m.Unmarshal(b)
  2793. }
  2794. func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2795. if deterministic {
  2796. return xxx_messageInfo_Evidence.Marshal(b, m, deterministic)
  2797. } else {
  2798. b = b[:cap(b)]
  2799. n, err := m.MarshalTo(b)
  2800. if err != nil {
  2801. return nil, err
  2802. }
  2803. return b[:n], nil
  2804. }
  2805. }
  2806. func (dst *Evidence) XXX_Merge(src proto.Message) {
  2807. xxx_messageInfo_Evidence.Merge(dst, src)
  2808. }
  2809. func (m *Evidence) XXX_Size() int {
  2810. return m.Size()
  2811. }
  2812. func (m *Evidence) XXX_DiscardUnknown() {
  2813. xxx_messageInfo_Evidence.DiscardUnknown(m)
  2814. }
  2815. var xxx_messageInfo_Evidence proto.InternalMessageInfo
  2816. func (m *Evidence) GetType() string {
  2817. if m != nil {
  2818. return m.Type
  2819. }
  2820. return ""
  2821. }
  2822. func (m *Evidence) GetValidator() Validator {
  2823. if m != nil {
  2824. return m.Validator
  2825. }
  2826. return Validator{}
  2827. }
  2828. func (m *Evidence) GetHeight() int64 {
  2829. if m != nil {
  2830. return m.Height
  2831. }
  2832. return 0
  2833. }
  2834. func (m *Evidence) GetTime() time.Time {
  2835. if m != nil {
  2836. return m.Time
  2837. }
  2838. return time.Time{}
  2839. }
  2840. func (m *Evidence) GetTotalVotingPower() int64 {
  2841. if m != nil {
  2842. return m.TotalVotingPower
  2843. }
  2844. return 0
  2845. }
  2846. func init() {
  2847. proto.RegisterType((*Request)(nil), "types.Request")
  2848. golang_proto.RegisterType((*Request)(nil), "types.Request")
  2849. proto.RegisterType((*RequestEcho)(nil), "types.RequestEcho")
  2850. golang_proto.RegisterType((*RequestEcho)(nil), "types.RequestEcho")
  2851. proto.RegisterType((*RequestFlush)(nil), "types.RequestFlush")
  2852. golang_proto.RegisterType((*RequestFlush)(nil), "types.RequestFlush")
  2853. proto.RegisterType((*RequestInfo)(nil), "types.RequestInfo")
  2854. golang_proto.RegisterType((*RequestInfo)(nil), "types.RequestInfo")
  2855. proto.RegisterType((*RequestSetOption)(nil), "types.RequestSetOption")
  2856. golang_proto.RegisterType((*RequestSetOption)(nil), "types.RequestSetOption")
  2857. proto.RegisterType((*RequestInitChain)(nil), "types.RequestInitChain")
  2858. golang_proto.RegisterType((*RequestInitChain)(nil), "types.RequestInitChain")
  2859. proto.RegisterType((*RequestQuery)(nil), "types.RequestQuery")
  2860. golang_proto.RegisterType((*RequestQuery)(nil), "types.RequestQuery")
  2861. proto.RegisterType((*RequestBeginBlock)(nil), "types.RequestBeginBlock")
  2862. golang_proto.RegisterType((*RequestBeginBlock)(nil), "types.RequestBeginBlock")
  2863. proto.RegisterType((*RequestCheckTx)(nil), "types.RequestCheckTx")
  2864. golang_proto.RegisterType((*RequestCheckTx)(nil), "types.RequestCheckTx")
  2865. proto.RegisterType((*RequestDeliverTx)(nil), "types.RequestDeliverTx")
  2866. golang_proto.RegisterType((*RequestDeliverTx)(nil), "types.RequestDeliverTx")
  2867. proto.RegisterType((*RequestEndBlock)(nil), "types.RequestEndBlock")
  2868. golang_proto.RegisterType((*RequestEndBlock)(nil), "types.RequestEndBlock")
  2869. proto.RegisterType((*RequestCommit)(nil), "types.RequestCommit")
  2870. golang_proto.RegisterType((*RequestCommit)(nil), "types.RequestCommit")
  2871. proto.RegisterType((*Response)(nil), "types.Response")
  2872. golang_proto.RegisterType((*Response)(nil), "types.Response")
  2873. proto.RegisterType((*ResponseException)(nil), "types.ResponseException")
  2874. golang_proto.RegisterType((*ResponseException)(nil), "types.ResponseException")
  2875. proto.RegisterType((*ResponseEcho)(nil), "types.ResponseEcho")
  2876. golang_proto.RegisterType((*ResponseEcho)(nil), "types.ResponseEcho")
  2877. proto.RegisterType((*ResponseFlush)(nil), "types.ResponseFlush")
  2878. golang_proto.RegisterType((*ResponseFlush)(nil), "types.ResponseFlush")
  2879. proto.RegisterType((*ResponseInfo)(nil), "types.ResponseInfo")
  2880. golang_proto.RegisterType((*ResponseInfo)(nil), "types.ResponseInfo")
  2881. proto.RegisterType((*ResponseSetOption)(nil), "types.ResponseSetOption")
  2882. golang_proto.RegisterType((*ResponseSetOption)(nil), "types.ResponseSetOption")
  2883. proto.RegisterType((*ResponseInitChain)(nil), "types.ResponseInitChain")
  2884. golang_proto.RegisterType((*ResponseInitChain)(nil), "types.ResponseInitChain")
  2885. proto.RegisterType((*ResponseQuery)(nil), "types.ResponseQuery")
  2886. golang_proto.RegisterType((*ResponseQuery)(nil), "types.ResponseQuery")
  2887. proto.RegisterType((*ResponseBeginBlock)(nil), "types.ResponseBeginBlock")
  2888. golang_proto.RegisterType((*ResponseBeginBlock)(nil), "types.ResponseBeginBlock")
  2889. proto.RegisterType((*ResponseCheckTx)(nil), "types.ResponseCheckTx")
  2890. golang_proto.RegisterType((*ResponseCheckTx)(nil), "types.ResponseCheckTx")
  2891. proto.RegisterType((*ResponseDeliverTx)(nil), "types.ResponseDeliverTx")
  2892. golang_proto.RegisterType((*ResponseDeliverTx)(nil), "types.ResponseDeliverTx")
  2893. proto.RegisterType((*ResponseEndBlock)(nil), "types.ResponseEndBlock")
  2894. golang_proto.RegisterType((*ResponseEndBlock)(nil), "types.ResponseEndBlock")
  2895. proto.RegisterType((*ResponseCommit)(nil), "types.ResponseCommit")
  2896. golang_proto.RegisterType((*ResponseCommit)(nil), "types.ResponseCommit")
  2897. proto.RegisterType((*ConsensusParams)(nil), "types.ConsensusParams")
  2898. golang_proto.RegisterType((*ConsensusParams)(nil), "types.ConsensusParams")
  2899. proto.RegisterType((*BlockSize)(nil), "types.BlockSize")
  2900. golang_proto.RegisterType((*BlockSize)(nil), "types.BlockSize")
  2901. proto.RegisterType((*EvidenceParams)(nil), "types.EvidenceParams")
  2902. golang_proto.RegisterType((*EvidenceParams)(nil), "types.EvidenceParams")
  2903. proto.RegisterType((*LastCommitInfo)(nil), "types.LastCommitInfo")
  2904. golang_proto.RegisterType((*LastCommitInfo)(nil), "types.LastCommitInfo")
  2905. proto.RegisterType((*Header)(nil), "types.Header")
  2906. golang_proto.RegisterType((*Header)(nil), "types.Header")
  2907. proto.RegisterType((*BlockID)(nil), "types.BlockID")
  2908. golang_proto.RegisterType((*BlockID)(nil), "types.BlockID")
  2909. proto.RegisterType((*PartSetHeader)(nil), "types.PartSetHeader")
  2910. golang_proto.RegisterType((*PartSetHeader)(nil), "types.PartSetHeader")
  2911. proto.RegisterType((*Validator)(nil), "types.Validator")
  2912. golang_proto.RegisterType((*Validator)(nil), "types.Validator")
  2913. proto.RegisterType((*ValidatorUpdate)(nil), "types.ValidatorUpdate")
  2914. golang_proto.RegisterType((*ValidatorUpdate)(nil), "types.ValidatorUpdate")
  2915. proto.RegisterType((*VoteInfo)(nil), "types.VoteInfo")
  2916. golang_proto.RegisterType((*VoteInfo)(nil), "types.VoteInfo")
  2917. proto.RegisterType((*PubKey)(nil), "types.PubKey")
  2918. golang_proto.RegisterType((*PubKey)(nil), "types.PubKey")
  2919. proto.RegisterType((*Evidence)(nil), "types.Evidence")
  2920. golang_proto.RegisterType((*Evidence)(nil), "types.Evidence")
  2921. }
  2922. func (this *Request) Equal(that interface{}) bool {
  2923. if that == nil {
  2924. return this == nil
  2925. }
  2926. that1, ok := that.(*Request)
  2927. if !ok {
  2928. that2, ok := that.(Request)
  2929. if ok {
  2930. that1 = &that2
  2931. } else {
  2932. return false
  2933. }
  2934. }
  2935. if that1 == nil {
  2936. return this == nil
  2937. } else if this == nil {
  2938. return false
  2939. }
  2940. if that1.Value == nil {
  2941. if this.Value != nil {
  2942. return false
  2943. }
  2944. } else if this.Value == nil {
  2945. return false
  2946. } else if !this.Value.Equal(that1.Value) {
  2947. return false
  2948. }
  2949. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  2950. return false
  2951. }
  2952. return true
  2953. }
  2954. func (this *Request_Echo) Equal(that interface{}) bool {
  2955. if that == nil {
  2956. return this == nil
  2957. }
  2958. that1, ok := that.(*Request_Echo)
  2959. if !ok {
  2960. that2, ok := that.(Request_Echo)
  2961. if ok {
  2962. that1 = &that2
  2963. } else {
  2964. return false
  2965. }
  2966. }
  2967. if that1 == nil {
  2968. return this == nil
  2969. } else if this == nil {
  2970. return false
  2971. }
  2972. if !this.Echo.Equal(that1.Echo) {
  2973. return false
  2974. }
  2975. return true
  2976. }
  2977. func (this *Request_Flush) Equal(that interface{}) bool {
  2978. if that == nil {
  2979. return this == nil
  2980. }
  2981. that1, ok := that.(*Request_Flush)
  2982. if !ok {
  2983. that2, ok := that.(Request_Flush)
  2984. if ok {
  2985. that1 = &that2
  2986. } else {
  2987. return false
  2988. }
  2989. }
  2990. if that1 == nil {
  2991. return this == nil
  2992. } else if this == nil {
  2993. return false
  2994. }
  2995. if !this.Flush.Equal(that1.Flush) {
  2996. return false
  2997. }
  2998. return true
  2999. }
  3000. func (this *Request_Info) Equal(that interface{}) bool {
  3001. if that == nil {
  3002. return this == nil
  3003. }
  3004. that1, ok := that.(*Request_Info)
  3005. if !ok {
  3006. that2, ok := that.(Request_Info)
  3007. if ok {
  3008. that1 = &that2
  3009. } else {
  3010. return false
  3011. }
  3012. }
  3013. if that1 == nil {
  3014. return this == nil
  3015. } else if this == nil {
  3016. return false
  3017. }
  3018. if !this.Info.Equal(that1.Info) {
  3019. return false
  3020. }
  3021. return true
  3022. }
  3023. func (this *Request_SetOption) Equal(that interface{}) bool {
  3024. if that == nil {
  3025. return this == nil
  3026. }
  3027. that1, ok := that.(*Request_SetOption)
  3028. if !ok {
  3029. that2, ok := that.(Request_SetOption)
  3030. if ok {
  3031. that1 = &that2
  3032. } else {
  3033. return false
  3034. }
  3035. }
  3036. if that1 == nil {
  3037. return this == nil
  3038. } else if this == nil {
  3039. return false
  3040. }
  3041. if !this.SetOption.Equal(that1.SetOption) {
  3042. return false
  3043. }
  3044. return true
  3045. }
  3046. func (this *Request_InitChain) Equal(that interface{}) bool {
  3047. if that == nil {
  3048. return this == nil
  3049. }
  3050. that1, ok := that.(*Request_InitChain)
  3051. if !ok {
  3052. that2, ok := that.(Request_InitChain)
  3053. if ok {
  3054. that1 = &that2
  3055. } else {
  3056. return false
  3057. }
  3058. }
  3059. if that1 == nil {
  3060. return this == nil
  3061. } else if this == nil {
  3062. return false
  3063. }
  3064. if !this.InitChain.Equal(that1.InitChain) {
  3065. return false
  3066. }
  3067. return true
  3068. }
  3069. func (this *Request_Query) Equal(that interface{}) bool {
  3070. if that == nil {
  3071. return this == nil
  3072. }
  3073. that1, ok := that.(*Request_Query)
  3074. if !ok {
  3075. that2, ok := that.(Request_Query)
  3076. if ok {
  3077. that1 = &that2
  3078. } else {
  3079. return false
  3080. }
  3081. }
  3082. if that1 == nil {
  3083. return this == nil
  3084. } else if this == nil {
  3085. return false
  3086. }
  3087. if !this.Query.Equal(that1.Query) {
  3088. return false
  3089. }
  3090. return true
  3091. }
  3092. func (this *Request_BeginBlock) Equal(that interface{}) bool {
  3093. if that == nil {
  3094. return this == nil
  3095. }
  3096. that1, ok := that.(*Request_BeginBlock)
  3097. if !ok {
  3098. that2, ok := that.(Request_BeginBlock)
  3099. if ok {
  3100. that1 = &that2
  3101. } else {
  3102. return false
  3103. }
  3104. }
  3105. if that1 == nil {
  3106. return this == nil
  3107. } else if this == nil {
  3108. return false
  3109. }
  3110. if !this.BeginBlock.Equal(that1.BeginBlock) {
  3111. return false
  3112. }
  3113. return true
  3114. }
  3115. func (this *Request_CheckTx) Equal(that interface{}) bool {
  3116. if that == nil {
  3117. return this == nil
  3118. }
  3119. that1, ok := that.(*Request_CheckTx)
  3120. if !ok {
  3121. that2, ok := that.(Request_CheckTx)
  3122. if ok {
  3123. that1 = &that2
  3124. } else {
  3125. return false
  3126. }
  3127. }
  3128. if that1 == nil {
  3129. return this == nil
  3130. } else if this == nil {
  3131. return false
  3132. }
  3133. if !this.CheckTx.Equal(that1.CheckTx) {
  3134. return false
  3135. }
  3136. return true
  3137. }
  3138. func (this *Request_DeliverTx) Equal(that interface{}) bool {
  3139. if that == nil {
  3140. return this == nil
  3141. }
  3142. that1, ok := that.(*Request_DeliverTx)
  3143. if !ok {
  3144. that2, ok := that.(Request_DeliverTx)
  3145. if ok {
  3146. that1 = &that2
  3147. } else {
  3148. return false
  3149. }
  3150. }
  3151. if that1 == nil {
  3152. return this == nil
  3153. } else if this == nil {
  3154. return false
  3155. }
  3156. if !this.DeliverTx.Equal(that1.DeliverTx) {
  3157. return false
  3158. }
  3159. return true
  3160. }
  3161. func (this *Request_EndBlock) Equal(that interface{}) bool {
  3162. if that == nil {
  3163. return this == nil
  3164. }
  3165. that1, ok := that.(*Request_EndBlock)
  3166. if !ok {
  3167. that2, ok := that.(Request_EndBlock)
  3168. if ok {
  3169. that1 = &that2
  3170. } else {
  3171. return false
  3172. }
  3173. }
  3174. if that1 == nil {
  3175. return this == nil
  3176. } else if this == nil {
  3177. return false
  3178. }
  3179. if !this.EndBlock.Equal(that1.EndBlock) {
  3180. return false
  3181. }
  3182. return true
  3183. }
  3184. func (this *Request_Commit) Equal(that interface{}) bool {
  3185. if that == nil {
  3186. return this == nil
  3187. }
  3188. that1, ok := that.(*Request_Commit)
  3189. if !ok {
  3190. that2, ok := that.(Request_Commit)
  3191. if ok {
  3192. that1 = &that2
  3193. } else {
  3194. return false
  3195. }
  3196. }
  3197. if that1 == nil {
  3198. return this == nil
  3199. } else if this == nil {
  3200. return false
  3201. }
  3202. if !this.Commit.Equal(that1.Commit) {
  3203. return false
  3204. }
  3205. return true
  3206. }
  3207. func (this *RequestEcho) Equal(that interface{}) bool {
  3208. if that == nil {
  3209. return this == nil
  3210. }
  3211. that1, ok := that.(*RequestEcho)
  3212. if !ok {
  3213. that2, ok := that.(RequestEcho)
  3214. if ok {
  3215. that1 = &that2
  3216. } else {
  3217. return false
  3218. }
  3219. }
  3220. if that1 == nil {
  3221. return this == nil
  3222. } else if this == nil {
  3223. return false
  3224. }
  3225. if this.Message != that1.Message {
  3226. return false
  3227. }
  3228. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3229. return false
  3230. }
  3231. return true
  3232. }
  3233. func (this *RequestFlush) Equal(that interface{}) bool {
  3234. if that == nil {
  3235. return this == nil
  3236. }
  3237. that1, ok := that.(*RequestFlush)
  3238. if !ok {
  3239. that2, ok := that.(RequestFlush)
  3240. if ok {
  3241. that1 = &that2
  3242. } else {
  3243. return false
  3244. }
  3245. }
  3246. if that1 == nil {
  3247. return this == nil
  3248. } else if this == nil {
  3249. return false
  3250. }
  3251. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3252. return false
  3253. }
  3254. return true
  3255. }
  3256. func (this *RequestInfo) Equal(that interface{}) bool {
  3257. if that == nil {
  3258. return this == nil
  3259. }
  3260. that1, ok := that.(*RequestInfo)
  3261. if !ok {
  3262. that2, ok := that.(RequestInfo)
  3263. if ok {
  3264. that1 = &that2
  3265. } else {
  3266. return false
  3267. }
  3268. }
  3269. if that1 == nil {
  3270. return this == nil
  3271. } else if this == nil {
  3272. return false
  3273. }
  3274. if this.Version != that1.Version {
  3275. return false
  3276. }
  3277. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3278. return false
  3279. }
  3280. return true
  3281. }
  3282. func (this *RequestSetOption) Equal(that interface{}) bool {
  3283. if that == nil {
  3284. return this == nil
  3285. }
  3286. that1, ok := that.(*RequestSetOption)
  3287. if !ok {
  3288. that2, ok := that.(RequestSetOption)
  3289. if ok {
  3290. that1 = &that2
  3291. } else {
  3292. return false
  3293. }
  3294. }
  3295. if that1 == nil {
  3296. return this == nil
  3297. } else if this == nil {
  3298. return false
  3299. }
  3300. if this.Key != that1.Key {
  3301. return false
  3302. }
  3303. if this.Value != that1.Value {
  3304. return false
  3305. }
  3306. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3307. return false
  3308. }
  3309. return true
  3310. }
  3311. func (this *RequestInitChain) Equal(that interface{}) bool {
  3312. if that == nil {
  3313. return this == nil
  3314. }
  3315. that1, ok := that.(*RequestInitChain)
  3316. if !ok {
  3317. that2, ok := that.(RequestInitChain)
  3318. if ok {
  3319. that1 = &that2
  3320. } else {
  3321. return false
  3322. }
  3323. }
  3324. if that1 == nil {
  3325. return this == nil
  3326. } else if this == nil {
  3327. return false
  3328. }
  3329. if !this.Time.Equal(that1.Time) {
  3330. return false
  3331. }
  3332. if this.ChainId != that1.ChainId {
  3333. return false
  3334. }
  3335. if !this.ConsensusParams.Equal(that1.ConsensusParams) {
  3336. return false
  3337. }
  3338. if len(this.Validators) != len(that1.Validators) {
  3339. return false
  3340. }
  3341. for i := range this.Validators {
  3342. if !this.Validators[i].Equal(&that1.Validators[i]) {
  3343. return false
  3344. }
  3345. }
  3346. if !bytes.Equal(this.AppStateBytes, that1.AppStateBytes) {
  3347. return false
  3348. }
  3349. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3350. return false
  3351. }
  3352. return true
  3353. }
  3354. func (this *RequestQuery) Equal(that interface{}) bool {
  3355. if that == nil {
  3356. return this == nil
  3357. }
  3358. that1, ok := that.(*RequestQuery)
  3359. if !ok {
  3360. that2, ok := that.(RequestQuery)
  3361. if ok {
  3362. that1 = &that2
  3363. } else {
  3364. return false
  3365. }
  3366. }
  3367. if that1 == nil {
  3368. return this == nil
  3369. } else if this == nil {
  3370. return false
  3371. }
  3372. if !bytes.Equal(this.Data, that1.Data) {
  3373. return false
  3374. }
  3375. if this.Path != that1.Path {
  3376. return false
  3377. }
  3378. if this.Height != that1.Height {
  3379. return false
  3380. }
  3381. if this.Prove != that1.Prove {
  3382. return false
  3383. }
  3384. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3385. return false
  3386. }
  3387. return true
  3388. }
  3389. func (this *RequestBeginBlock) Equal(that interface{}) bool {
  3390. if that == nil {
  3391. return this == nil
  3392. }
  3393. that1, ok := that.(*RequestBeginBlock)
  3394. if !ok {
  3395. that2, ok := that.(RequestBeginBlock)
  3396. if ok {
  3397. that1 = &that2
  3398. } else {
  3399. return false
  3400. }
  3401. }
  3402. if that1 == nil {
  3403. return this == nil
  3404. } else if this == nil {
  3405. return false
  3406. }
  3407. if !bytes.Equal(this.Hash, that1.Hash) {
  3408. return false
  3409. }
  3410. if !this.Header.Equal(&that1.Header) {
  3411. return false
  3412. }
  3413. if !this.LastCommitInfo.Equal(&that1.LastCommitInfo) {
  3414. return false
  3415. }
  3416. if len(this.ByzantineValidators) != len(that1.ByzantineValidators) {
  3417. return false
  3418. }
  3419. for i := range this.ByzantineValidators {
  3420. if !this.ByzantineValidators[i].Equal(&that1.ByzantineValidators[i]) {
  3421. return false
  3422. }
  3423. }
  3424. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3425. return false
  3426. }
  3427. return true
  3428. }
  3429. func (this *RequestCheckTx) Equal(that interface{}) bool {
  3430. if that == nil {
  3431. return this == nil
  3432. }
  3433. that1, ok := that.(*RequestCheckTx)
  3434. if !ok {
  3435. that2, ok := that.(RequestCheckTx)
  3436. if ok {
  3437. that1 = &that2
  3438. } else {
  3439. return false
  3440. }
  3441. }
  3442. if that1 == nil {
  3443. return this == nil
  3444. } else if this == nil {
  3445. return false
  3446. }
  3447. if !bytes.Equal(this.Tx, that1.Tx) {
  3448. return false
  3449. }
  3450. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3451. return false
  3452. }
  3453. return true
  3454. }
  3455. func (this *RequestDeliverTx) Equal(that interface{}) bool {
  3456. if that == nil {
  3457. return this == nil
  3458. }
  3459. that1, ok := that.(*RequestDeliverTx)
  3460. if !ok {
  3461. that2, ok := that.(RequestDeliverTx)
  3462. if ok {
  3463. that1 = &that2
  3464. } else {
  3465. return false
  3466. }
  3467. }
  3468. if that1 == nil {
  3469. return this == nil
  3470. } else if this == nil {
  3471. return false
  3472. }
  3473. if !bytes.Equal(this.Tx, that1.Tx) {
  3474. return false
  3475. }
  3476. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3477. return false
  3478. }
  3479. return true
  3480. }
  3481. func (this *RequestEndBlock) Equal(that interface{}) bool {
  3482. if that == nil {
  3483. return this == nil
  3484. }
  3485. that1, ok := that.(*RequestEndBlock)
  3486. if !ok {
  3487. that2, ok := that.(RequestEndBlock)
  3488. if ok {
  3489. that1 = &that2
  3490. } else {
  3491. return false
  3492. }
  3493. }
  3494. if that1 == nil {
  3495. return this == nil
  3496. } else if this == nil {
  3497. return false
  3498. }
  3499. if this.Height != that1.Height {
  3500. return false
  3501. }
  3502. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3503. return false
  3504. }
  3505. return true
  3506. }
  3507. func (this *RequestCommit) Equal(that interface{}) bool {
  3508. if that == nil {
  3509. return this == nil
  3510. }
  3511. that1, ok := that.(*RequestCommit)
  3512. if !ok {
  3513. that2, ok := that.(RequestCommit)
  3514. if ok {
  3515. that1 = &that2
  3516. } else {
  3517. return false
  3518. }
  3519. }
  3520. if that1 == nil {
  3521. return this == nil
  3522. } else if this == nil {
  3523. return false
  3524. }
  3525. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3526. return false
  3527. }
  3528. return true
  3529. }
  3530. func (this *Response) Equal(that interface{}) bool {
  3531. if that == nil {
  3532. return this == nil
  3533. }
  3534. that1, ok := that.(*Response)
  3535. if !ok {
  3536. that2, ok := that.(Response)
  3537. if ok {
  3538. that1 = &that2
  3539. } else {
  3540. return false
  3541. }
  3542. }
  3543. if that1 == nil {
  3544. return this == nil
  3545. } else if this == nil {
  3546. return false
  3547. }
  3548. if that1.Value == nil {
  3549. if this.Value != nil {
  3550. return false
  3551. }
  3552. } else if this.Value == nil {
  3553. return false
  3554. } else if !this.Value.Equal(that1.Value) {
  3555. return false
  3556. }
  3557. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3558. return false
  3559. }
  3560. return true
  3561. }
  3562. func (this *Response_Exception) Equal(that interface{}) bool {
  3563. if that == nil {
  3564. return this == nil
  3565. }
  3566. that1, ok := that.(*Response_Exception)
  3567. if !ok {
  3568. that2, ok := that.(Response_Exception)
  3569. if ok {
  3570. that1 = &that2
  3571. } else {
  3572. return false
  3573. }
  3574. }
  3575. if that1 == nil {
  3576. return this == nil
  3577. } else if this == nil {
  3578. return false
  3579. }
  3580. if !this.Exception.Equal(that1.Exception) {
  3581. return false
  3582. }
  3583. return true
  3584. }
  3585. func (this *Response_Echo) Equal(that interface{}) bool {
  3586. if that == nil {
  3587. return this == nil
  3588. }
  3589. that1, ok := that.(*Response_Echo)
  3590. if !ok {
  3591. that2, ok := that.(Response_Echo)
  3592. if ok {
  3593. that1 = &that2
  3594. } else {
  3595. return false
  3596. }
  3597. }
  3598. if that1 == nil {
  3599. return this == nil
  3600. } else if this == nil {
  3601. return false
  3602. }
  3603. if !this.Echo.Equal(that1.Echo) {
  3604. return false
  3605. }
  3606. return true
  3607. }
  3608. func (this *Response_Flush) Equal(that interface{}) bool {
  3609. if that == nil {
  3610. return this == nil
  3611. }
  3612. that1, ok := that.(*Response_Flush)
  3613. if !ok {
  3614. that2, ok := that.(Response_Flush)
  3615. if ok {
  3616. that1 = &that2
  3617. } else {
  3618. return false
  3619. }
  3620. }
  3621. if that1 == nil {
  3622. return this == nil
  3623. } else if this == nil {
  3624. return false
  3625. }
  3626. if !this.Flush.Equal(that1.Flush) {
  3627. return false
  3628. }
  3629. return true
  3630. }
  3631. func (this *Response_Info) Equal(that interface{}) bool {
  3632. if that == nil {
  3633. return this == nil
  3634. }
  3635. that1, ok := that.(*Response_Info)
  3636. if !ok {
  3637. that2, ok := that.(Response_Info)
  3638. if ok {
  3639. that1 = &that2
  3640. } else {
  3641. return false
  3642. }
  3643. }
  3644. if that1 == nil {
  3645. return this == nil
  3646. } else if this == nil {
  3647. return false
  3648. }
  3649. if !this.Info.Equal(that1.Info) {
  3650. return false
  3651. }
  3652. return true
  3653. }
  3654. func (this *Response_SetOption) Equal(that interface{}) bool {
  3655. if that == nil {
  3656. return this == nil
  3657. }
  3658. that1, ok := that.(*Response_SetOption)
  3659. if !ok {
  3660. that2, ok := that.(Response_SetOption)
  3661. if ok {
  3662. that1 = &that2
  3663. } else {
  3664. return false
  3665. }
  3666. }
  3667. if that1 == nil {
  3668. return this == nil
  3669. } else if this == nil {
  3670. return false
  3671. }
  3672. if !this.SetOption.Equal(that1.SetOption) {
  3673. return false
  3674. }
  3675. return true
  3676. }
  3677. func (this *Response_InitChain) Equal(that interface{}) bool {
  3678. if that == nil {
  3679. return this == nil
  3680. }
  3681. that1, ok := that.(*Response_InitChain)
  3682. if !ok {
  3683. that2, ok := that.(Response_InitChain)
  3684. if ok {
  3685. that1 = &that2
  3686. } else {
  3687. return false
  3688. }
  3689. }
  3690. if that1 == nil {
  3691. return this == nil
  3692. } else if this == nil {
  3693. return false
  3694. }
  3695. if !this.InitChain.Equal(that1.InitChain) {
  3696. return false
  3697. }
  3698. return true
  3699. }
  3700. func (this *Response_Query) Equal(that interface{}) bool {
  3701. if that == nil {
  3702. return this == nil
  3703. }
  3704. that1, ok := that.(*Response_Query)
  3705. if !ok {
  3706. that2, ok := that.(Response_Query)
  3707. if ok {
  3708. that1 = &that2
  3709. } else {
  3710. return false
  3711. }
  3712. }
  3713. if that1 == nil {
  3714. return this == nil
  3715. } else if this == nil {
  3716. return false
  3717. }
  3718. if !this.Query.Equal(that1.Query) {
  3719. return false
  3720. }
  3721. return true
  3722. }
  3723. func (this *Response_BeginBlock) Equal(that interface{}) bool {
  3724. if that == nil {
  3725. return this == nil
  3726. }
  3727. that1, ok := that.(*Response_BeginBlock)
  3728. if !ok {
  3729. that2, ok := that.(Response_BeginBlock)
  3730. if ok {
  3731. that1 = &that2
  3732. } else {
  3733. return false
  3734. }
  3735. }
  3736. if that1 == nil {
  3737. return this == nil
  3738. } else if this == nil {
  3739. return false
  3740. }
  3741. if !this.BeginBlock.Equal(that1.BeginBlock) {
  3742. return false
  3743. }
  3744. return true
  3745. }
  3746. func (this *Response_CheckTx) Equal(that interface{}) bool {
  3747. if that == nil {
  3748. return this == nil
  3749. }
  3750. that1, ok := that.(*Response_CheckTx)
  3751. if !ok {
  3752. that2, ok := that.(Response_CheckTx)
  3753. if ok {
  3754. that1 = &that2
  3755. } else {
  3756. return false
  3757. }
  3758. }
  3759. if that1 == nil {
  3760. return this == nil
  3761. } else if this == nil {
  3762. return false
  3763. }
  3764. if !this.CheckTx.Equal(that1.CheckTx) {
  3765. return false
  3766. }
  3767. return true
  3768. }
  3769. func (this *Response_DeliverTx) Equal(that interface{}) bool {
  3770. if that == nil {
  3771. return this == nil
  3772. }
  3773. that1, ok := that.(*Response_DeliverTx)
  3774. if !ok {
  3775. that2, ok := that.(Response_DeliverTx)
  3776. if ok {
  3777. that1 = &that2
  3778. } else {
  3779. return false
  3780. }
  3781. }
  3782. if that1 == nil {
  3783. return this == nil
  3784. } else if this == nil {
  3785. return false
  3786. }
  3787. if !this.DeliverTx.Equal(that1.DeliverTx) {
  3788. return false
  3789. }
  3790. return true
  3791. }
  3792. func (this *Response_EndBlock) Equal(that interface{}) bool {
  3793. if that == nil {
  3794. return this == nil
  3795. }
  3796. that1, ok := that.(*Response_EndBlock)
  3797. if !ok {
  3798. that2, ok := that.(Response_EndBlock)
  3799. if ok {
  3800. that1 = &that2
  3801. } else {
  3802. return false
  3803. }
  3804. }
  3805. if that1 == nil {
  3806. return this == nil
  3807. } else if this == nil {
  3808. return false
  3809. }
  3810. if !this.EndBlock.Equal(that1.EndBlock) {
  3811. return false
  3812. }
  3813. return true
  3814. }
  3815. func (this *Response_Commit) Equal(that interface{}) bool {
  3816. if that == nil {
  3817. return this == nil
  3818. }
  3819. that1, ok := that.(*Response_Commit)
  3820. if !ok {
  3821. that2, ok := that.(Response_Commit)
  3822. if ok {
  3823. that1 = &that2
  3824. } else {
  3825. return false
  3826. }
  3827. }
  3828. if that1 == nil {
  3829. return this == nil
  3830. } else if this == nil {
  3831. return false
  3832. }
  3833. if !this.Commit.Equal(that1.Commit) {
  3834. return false
  3835. }
  3836. return true
  3837. }
  3838. func (this *ResponseException) Equal(that interface{}) bool {
  3839. if that == nil {
  3840. return this == nil
  3841. }
  3842. that1, ok := that.(*ResponseException)
  3843. if !ok {
  3844. that2, ok := that.(ResponseException)
  3845. if ok {
  3846. that1 = &that2
  3847. } else {
  3848. return false
  3849. }
  3850. }
  3851. if that1 == nil {
  3852. return this == nil
  3853. } else if this == nil {
  3854. return false
  3855. }
  3856. if this.Error != that1.Error {
  3857. return false
  3858. }
  3859. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3860. return false
  3861. }
  3862. return true
  3863. }
  3864. func (this *ResponseEcho) Equal(that interface{}) bool {
  3865. if that == nil {
  3866. return this == nil
  3867. }
  3868. that1, ok := that.(*ResponseEcho)
  3869. if !ok {
  3870. that2, ok := that.(ResponseEcho)
  3871. if ok {
  3872. that1 = &that2
  3873. } else {
  3874. return false
  3875. }
  3876. }
  3877. if that1 == nil {
  3878. return this == nil
  3879. } else if this == nil {
  3880. return false
  3881. }
  3882. if this.Message != that1.Message {
  3883. return false
  3884. }
  3885. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3886. return false
  3887. }
  3888. return true
  3889. }
  3890. func (this *ResponseFlush) Equal(that interface{}) bool {
  3891. if that == nil {
  3892. return this == nil
  3893. }
  3894. that1, ok := that.(*ResponseFlush)
  3895. if !ok {
  3896. that2, ok := that.(ResponseFlush)
  3897. if ok {
  3898. that1 = &that2
  3899. } else {
  3900. return false
  3901. }
  3902. }
  3903. if that1 == nil {
  3904. return this == nil
  3905. } else if this == nil {
  3906. return false
  3907. }
  3908. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3909. return false
  3910. }
  3911. return true
  3912. }
  3913. func (this *ResponseInfo) Equal(that interface{}) bool {
  3914. if that == nil {
  3915. return this == nil
  3916. }
  3917. that1, ok := that.(*ResponseInfo)
  3918. if !ok {
  3919. that2, ok := that.(ResponseInfo)
  3920. if ok {
  3921. that1 = &that2
  3922. } else {
  3923. return false
  3924. }
  3925. }
  3926. if that1 == nil {
  3927. return this == nil
  3928. } else if this == nil {
  3929. return false
  3930. }
  3931. if this.Data != that1.Data {
  3932. return false
  3933. }
  3934. if this.Version != that1.Version {
  3935. return false
  3936. }
  3937. if this.LastBlockHeight != that1.LastBlockHeight {
  3938. return false
  3939. }
  3940. if !bytes.Equal(this.LastBlockAppHash, that1.LastBlockAppHash) {
  3941. return false
  3942. }
  3943. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3944. return false
  3945. }
  3946. return true
  3947. }
  3948. func (this *ResponseSetOption) Equal(that interface{}) bool {
  3949. if that == nil {
  3950. return this == nil
  3951. }
  3952. that1, ok := that.(*ResponseSetOption)
  3953. if !ok {
  3954. that2, ok := that.(ResponseSetOption)
  3955. if ok {
  3956. that1 = &that2
  3957. } else {
  3958. return false
  3959. }
  3960. }
  3961. if that1 == nil {
  3962. return this == nil
  3963. } else if this == nil {
  3964. return false
  3965. }
  3966. if this.Code != that1.Code {
  3967. return false
  3968. }
  3969. if this.Log != that1.Log {
  3970. return false
  3971. }
  3972. if this.Info != that1.Info {
  3973. return false
  3974. }
  3975. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  3976. return false
  3977. }
  3978. return true
  3979. }
  3980. func (this *ResponseInitChain) Equal(that interface{}) bool {
  3981. if that == nil {
  3982. return this == nil
  3983. }
  3984. that1, ok := that.(*ResponseInitChain)
  3985. if !ok {
  3986. that2, ok := that.(ResponseInitChain)
  3987. if ok {
  3988. that1 = &that2
  3989. } else {
  3990. return false
  3991. }
  3992. }
  3993. if that1 == nil {
  3994. return this == nil
  3995. } else if this == nil {
  3996. return false
  3997. }
  3998. if !this.ConsensusParams.Equal(that1.ConsensusParams) {
  3999. return false
  4000. }
  4001. if len(this.Validators) != len(that1.Validators) {
  4002. return false
  4003. }
  4004. for i := range this.Validators {
  4005. if !this.Validators[i].Equal(&that1.Validators[i]) {
  4006. return false
  4007. }
  4008. }
  4009. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4010. return false
  4011. }
  4012. return true
  4013. }
  4014. func (this *ResponseQuery) Equal(that interface{}) bool {
  4015. if that == nil {
  4016. return this == nil
  4017. }
  4018. that1, ok := that.(*ResponseQuery)
  4019. if !ok {
  4020. that2, ok := that.(ResponseQuery)
  4021. if ok {
  4022. that1 = &that2
  4023. } else {
  4024. return false
  4025. }
  4026. }
  4027. if that1 == nil {
  4028. return this == nil
  4029. } else if this == nil {
  4030. return false
  4031. }
  4032. if this.Code != that1.Code {
  4033. return false
  4034. }
  4035. if this.Log != that1.Log {
  4036. return false
  4037. }
  4038. if this.Info != that1.Info {
  4039. return false
  4040. }
  4041. if this.Index != that1.Index {
  4042. return false
  4043. }
  4044. if !bytes.Equal(this.Key, that1.Key) {
  4045. return false
  4046. }
  4047. if !bytes.Equal(this.Value, that1.Value) {
  4048. return false
  4049. }
  4050. if !bytes.Equal(this.Proof, that1.Proof) {
  4051. return false
  4052. }
  4053. if this.Height != that1.Height {
  4054. return false
  4055. }
  4056. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4057. return false
  4058. }
  4059. return true
  4060. }
  4061. func (this *ResponseBeginBlock) Equal(that interface{}) bool {
  4062. if that == nil {
  4063. return this == nil
  4064. }
  4065. that1, ok := that.(*ResponseBeginBlock)
  4066. if !ok {
  4067. that2, ok := that.(ResponseBeginBlock)
  4068. if ok {
  4069. that1 = &that2
  4070. } else {
  4071. return false
  4072. }
  4073. }
  4074. if that1 == nil {
  4075. return this == nil
  4076. } else if this == nil {
  4077. return false
  4078. }
  4079. if len(this.Tags) != len(that1.Tags) {
  4080. return false
  4081. }
  4082. for i := range this.Tags {
  4083. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4084. return false
  4085. }
  4086. }
  4087. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4088. return false
  4089. }
  4090. return true
  4091. }
  4092. func (this *ResponseCheckTx) Equal(that interface{}) bool {
  4093. if that == nil {
  4094. return this == nil
  4095. }
  4096. that1, ok := that.(*ResponseCheckTx)
  4097. if !ok {
  4098. that2, ok := that.(ResponseCheckTx)
  4099. if ok {
  4100. that1 = &that2
  4101. } else {
  4102. return false
  4103. }
  4104. }
  4105. if that1 == nil {
  4106. return this == nil
  4107. } else if this == nil {
  4108. return false
  4109. }
  4110. if this.Code != that1.Code {
  4111. return false
  4112. }
  4113. if !bytes.Equal(this.Data, that1.Data) {
  4114. return false
  4115. }
  4116. if this.Log != that1.Log {
  4117. return false
  4118. }
  4119. if this.Info != that1.Info {
  4120. return false
  4121. }
  4122. if this.GasWanted != that1.GasWanted {
  4123. return false
  4124. }
  4125. if this.GasUsed != that1.GasUsed {
  4126. return false
  4127. }
  4128. if len(this.Tags) != len(that1.Tags) {
  4129. return false
  4130. }
  4131. for i := range this.Tags {
  4132. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4133. return false
  4134. }
  4135. }
  4136. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4137. return false
  4138. }
  4139. return true
  4140. }
  4141. func (this *ResponseDeliverTx) Equal(that interface{}) bool {
  4142. if that == nil {
  4143. return this == nil
  4144. }
  4145. that1, ok := that.(*ResponseDeliverTx)
  4146. if !ok {
  4147. that2, ok := that.(ResponseDeliverTx)
  4148. if ok {
  4149. that1 = &that2
  4150. } else {
  4151. return false
  4152. }
  4153. }
  4154. if that1 == nil {
  4155. return this == nil
  4156. } else if this == nil {
  4157. return false
  4158. }
  4159. if this.Code != that1.Code {
  4160. return false
  4161. }
  4162. if !bytes.Equal(this.Data, that1.Data) {
  4163. return false
  4164. }
  4165. if this.Log != that1.Log {
  4166. return false
  4167. }
  4168. if this.Info != that1.Info {
  4169. return false
  4170. }
  4171. if this.GasWanted != that1.GasWanted {
  4172. return false
  4173. }
  4174. if this.GasUsed != that1.GasUsed {
  4175. return false
  4176. }
  4177. if len(this.Tags) != len(that1.Tags) {
  4178. return false
  4179. }
  4180. for i := range this.Tags {
  4181. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4182. return false
  4183. }
  4184. }
  4185. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4186. return false
  4187. }
  4188. return true
  4189. }
  4190. func (this *ResponseEndBlock) Equal(that interface{}) bool {
  4191. if that == nil {
  4192. return this == nil
  4193. }
  4194. that1, ok := that.(*ResponseEndBlock)
  4195. if !ok {
  4196. that2, ok := that.(ResponseEndBlock)
  4197. if ok {
  4198. that1 = &that2
  4199. } else {
  4200. return false
  4201. }
  4202. }
  4203. if that1 == nil {
  4204. return this == nil
  4205. } else if this == nil {
  4206. return false
  4207. }
  4208. if len(this.ValidatorUpdates) != len(that1.ValidatorUpdates) {
  4209. return false
  4210. }
  4211. for i := range this.ValidatorUpdates {
  4212. if !this.ValidatorUpdates[i].Equal(&that1.ValidatorUpdates[i]) {
  4213. return false
  4214. }
  4215. }
  4216. if !this.ConsensusParamUpdates.Equal(that1.ConsensusParamUpdates) {
  4217. return false
  4218. }
  4219. if len(this.Tags) != len(that1.Tags) {
  4220. return false
  4221. }
  4222. for i := range this.Tags {
  4223. if !this.Tags[i].Equal(&that1.Tags[i]) {
  4224. return false
  4225. }
  4226. }
  4227. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4228. return false
  4229. }
  4230. return true
  4231. }
  4232. func (this *ResponseCommit) Equal(that interface{}) bool {
  4233. if that == nil {
  4234. return this == nil
  4235. }
  4236. that1, ok := that.(*ResponseCommit)
  4237. if !ok {
  4238. that2, ok := that.(ResponseCommit)
  4239. if ok {
  4240. that1 = &that2
  4241. } else {
  4242. return false
  4243. }
  4244. }
  4245. if that1 == nil {
  4246. return this == nil
  4247. } else if this == nil {
  4248. return false
  4249. }
  4250. if !bytes.Equal(this.Data, that1.Data) {
  4251. return false
  4252. }
  4253. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4254. return false
  4255. }
  4256. return true
  4257. }
  4258. func (this *ConsensusParams) Equal(that interface{}) bool {
  4259. if that == nil {
  4260. return this == nil
  4261. }
  4262. that1, ok := that.(*ConsensusParams)
  4263. if !ok {
  4264. that2, ok := that.(ConsensusParams)
  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.BlockSize.Equal(that1.BlockSize) {
  4277. return false
  4278. }
  4279. if !this.EvidenceParams.Equal(that1.EvidenceParams) {
  4280. return false
  4281. }
  4282. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4283. return false
  4284. }
  4285. return true
  4286. }
  4287. func (this *BlockSize) Equal(that interface{}) bool {
  4288. if that == nil {
  4289. return this == nil
  4290. }
  4291. that1, ok := that.(*BlockSize)
  4292. if !ok {
  4293. that2, ok := that.(BlockSize)
  4294. if ok {
  4295. that1 = &that2
  4296. } else {
  4297. return false
  4298. }
  4299. }
  4300. if that1 == nil {
  4301. return this == nil
  4302. } else if this == nil {
  4303. return false
  4304. }
  4305. if this.MaxBytes != that1.MaxBytes {
  4306. return false
  4307. }
  4308. if this.MaxGas != that1.MaxGas {
  4309. return false
  4310. }
  4311. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4312. return false
  4313. }
  4314. return true
  4315. }
  4316. func (this *EvidenceParams) Equal(that interface{}) bool {
  4317. if that == nil {
  4318. return this == nil
  4319. }
  4320. that1, ok := that.(*EvidenceParams)
  4321. if !ok {
  4322. that2, ok := that.(EvidenceParams)
  4323. if ok {
  4324. that1 = &that2
  4325. } else {
  4326. return false
  4327. }
  4328. }
  4329. if that1 == nil {
  4330. return this == nil
  4331. } else if this == nil {
  4332. return false
  4333. }
  4334. if this.MaxAge != that1.MaxAge {
  4335. return false
  4336. }
  4337. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4338. return false
  4339. }
  4340. return true
  4341. }
  4342. func (this *LastCommitInfo) Equal(that interface{}) bool {
  4343. if that == nil {
  4344. return this == nil
  4345. }
  4346. that1, ok := that.(*LastCommitInfo)
  4347. if !ok {
  4348. that2, ok := that.(LastCommitInfo)
  4349. if ok {
  4350. that1 = &that2
  4351. } else {
  4352. return false
  4353. }
  4354. }
  4355. if that1 == nil {
  4356. return this == nil
  4357. } else if this == nil {
  4358. return false
  4359. }
  4360. if this.Round != that1.Round {
  4361. return false
  4362. }
  4363. if len(this.Votes) != len(that1.Votes) {
  4364. return false
  4365. }
  4366. for i := range this.Votes {
  4367. if !this.Votes[i].Equal(&that1.Votes[i]) {
  4368. return false
  4369. }
  4370. }
  4371. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4372. return false
  4373. }
  4374. return true
  4375. }
  4376. func (this *Header) Equal(that interface{}) bool {
  4377. if that == nil {
  4378. return this == nil
  4379. }
  4380. that1, ok := that.(*Header)
  4381. if !ok {
  4382. that2, ok := that.(Header)
  4383. if ok {
  4384. that1 = &that2
  4385. } else {
  4386. return false
  4387. }
  4388. }
  4389. if that1 == nil {
  4390. return this == nil
  4391. } else if this == nil {
  4392. return false
  4393. }
  4394. if this.ChainID != that1.ChainID {
  4395. return false
  4396. }
  4397. if this.Height != that1.Height {
  4398. return false
  4399. }
  4400. if !this.Time.Equal(that1.Time) {
  4401. return false
  4402. }
  4403. if this.NumTxs != that1.NumTxs {
  4404. return false
  4405. }
  4406. if this.TotalTxs != that1.TotalTxs {
  4407. return false
  4408. }
  4409. if !this.LastBlockId.Equal(&that1.LastBlockId) {
  4410. return false
  4411. }
  4412. if !bytes.Equal(this.LastCommitHash, that1.LastCommitHash) {
  4413. return false
  4414. }
  4415. if !bytes.Equal(this.DataHash, that1.DataHash) {
  4416. return false
  4417. }
  4418. if !bytes.Equal(this.ValidatorsHash, that1.ValidatorsHash) {
  4419. return false
  4420. }
  4421. if !bytes.Equal(this.NextValidatorsHash, that1.NextValidatorsHash) {
  4422. return false
  4423. }
  4424. if !bytes.Equal(this.ConsensusHash, that1.ConsensusHash) {
  4425. return false
  4426. }
  4427. if !bytes.Equal(this.AppHash, that1.AppHash) {
  4428. return false
  4429. }
  4430. if !bytes.Equal(this.LastResultsHash, that1.LastResultsHash) {
  4431. return false
  4432. }
  4433. if !bytes.Equal(this.EvidenceHash, that1.EvidenceHash) {
  4434. return false
  4435. }
  4436. if !bytes.Equal(this.ProposerAddress, that1.ProposerAddress) {
  4437. return false
  4438. }
  4439. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4440. return false
  4441. }
  4442. return true
  4443. }
  4444. func (this *BlockID) Equal(that interface{}) bool {
  4445. if that == nil {
  4446. return this == nil
  4447. }
  4448. that1, ok := that.(*BlockID)
  4449. if !ok {
  4450. that2, ok := that.(BlockID)
  4451. if ok {
  4452. that1 = &that2
  4453. } else {
  4454. return false
  4455. }
  4456. }
  4457. if that1 == nil {
  4458. return this == nil
  4459. } else if this == nil {
  4460. return false
  4461. }
  4462. if !bytes.Equal(this.Hash, that1.Hash) {
  4463. return false
  4464. }
  4465. if !this.PartsHeader.Equal(&that1.PartsHeader) {
  4466. return false
  4467. }
  4468. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4469. return false
  4470. }
  4471. return true
  4472. }
  4473. func (this *PartSetHeader) Equal(that interface{}) bool {
  4474. if that == nil {
  4475. return this == nil
  4476. }
  4477. that1, ok := that.(*PartSetHeader)
  4478. if !ok {
  4479. that2, ok := that.(PartSetHeader)
  4480. if ok {
  4481. that1 = &that2
  4482. } else {
  4483. return false
  4484. }
  4485. }
  4486. if that1 == nil {
  4487. return this == nil
  4488. } else if this == nil {
  4489. return false
  4490. }
  4491. if this.Total != that1.Total {
  4492. return false
  4493. }
  4494. if !bytes.Equal(this.Hash, that1.Hash) {
  4495. return false
  4496. }
  4497. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4498. return false
  4499. }
  4500. return true
  4501. }
  4502. func (this *Validator) Equal(that interface{}) bool {
  4503. if that == nil {
  4504. return this == nil
  4505. }
  4506. that1, ok := that.(*Validator)
  4507. if !ok {
  4508. that2, ok := that.(Validator)
  4509. if ok {
  4510. that1 = &that2
  4511. } else {
  4512. return false
  4513. }
  4514. }
  4515. if that1 == nil {
  4516. return this == nil
  4517. } else if this == nil {
  4518. return false
  4519. }
  4520. if !bytes.Equal(this.Address, that1.Address) {
  4521. return false
  4522. }
  4523. if this.Power != that1.Power {
  4524. return false
  4525. }
  4526. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4527. return false
  4528. }
  4529. return true
  4530. }
  4531. func (this *ValidatorUpdate) Equal(that interface{}) bool {
  4532. if that == nil {
  4533. return this == nil
  4534. }
  4535. that1, ok := that.(*ValidatorUpdate)
  4536. if !ok {
  4537. that2, ok := that.(ValidatorUpdate)
  4538. if ok {
  4539. that1 = &that2
  4540. } else {
  4541. return false
  4542. }
  4543. }
  4544. if that1 == nil {
  4545. return this == nil
  4546. } else if this == nil {
  4547. return false
  4548. }
  4549. if !this.PubKey.Equal(&that1.PubKey) {
  4550. return false
  4551. }
  4552. if this.Power != that1.Power {
  4553. return false
  4554. }
  4555. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4556. return false
  4557. }
  4558. return true
  4559. }
  4560. func (this *VoteInfo) Equal(that interface{}) bool {
  4561. if that == nil {
  4562. return this == nil
  4563. }
  4564. that1, ok := that.(*VoteInfo)
  4565. if !ok {
  4566. that2, ok := that.(VoteInfo)
  4567. if ok {
  4568. that1 = &that2
  4569. } else {
  4570. return false
  4571. }
  4572. }
  4573. if that1 == nil {
  4574. return this == nil
  4575. } else if this == nil {
  4576. return false
  4577. }
  4578. if !this.Validator.Equal(&that1.Validator) {
  4579. return false
  4580. }
  4581. if this.SignedLastBlock != that1.SignedLastBlock {
  4582. return false
  4583. }
  4584. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4585. return false
  4586. }
  4587. return true
  4588. }
  4589. func (this *PubKey) Equal(that interface{}) bool {
  4590. if that == nil {
  4591. return this == nil
  4592. }
  4593. that1, ok := that.(*PubKey)
  4594. if !ok {
  4595. that2, ok := that.(PubKey)
  4596. if ok {
  4597. that1 = &that2
  4598. } else {
  4599. return false
  4600. }
  4601. }
  4602. if that1 == nil {
  4603. return this == nil
  4604. } else if this == nil {
  4605. return false
  4606. }
  4607. if this.Type != that1.Type {
  4608. return false
  4609. }
  4610. if !bytes.Equal(this.Data, that1.Data) {
  4611. return false
  4612. }
  4613. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4614. return false
  4615. }
  4616. return true
  4617. }
  4618. func (this *Evidence) Equal(that interface{}) bool {
  4619. if that == nil {
  4620. return this == nil
  4621. }
  4622. that1, ok := that.(*Evidence)
  4623. if !ok {
  4624. that2, ok := that.(Evidence)
  4625. if ok {
  4626. that1 = &that2
  4627. } else {
  4628. return false
  4629. }
  4630. }
  4631. if that1 == nil {
  4632. return this == nil
  4633. } else if this == nil {
  4634. return false
  4635. }
  4636. if this.Type != that1.Type {
  4637. return false
  4638. }
  4639. if !this.Validator.Equal(&that1.Validator) {
  4640. return false
  4641. }
  4642. if this.Height != that1.Height {
  4643. return false
  4644. }
  4645. if !this.Time.Equal(that1.Time) {
  4646. return false
  4647. }
  4648. if this.TotalVotingPower != that1.TotalVotingPower {
  4649. return false
  4650. }
  4651. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  4652. return false
  4653. }
  4654. return true
  4655. }
  4656. // Reference imports to suppress errors if they are not otherwise used.
  4657. var _ context.Context
  4658. var _ grpc.ClientConn
  4659. // This is a compile-time assertion to ensure that this generated file
  4660. // is compatible with the grpc package it is being compiled against.
  4661. const _ = grpc.SupportPackageIsVersion4
  4662. // ABCIApplicationClient is the client API for ABCIApplication service.
  4663. //
  4664. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4665. type ABCIApplicationClient interface {
  4666. Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error)
  4667. Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error)
  4668. Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error)
  4669. SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error)
  4670. DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error)
  4671. CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error)
  4672. Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error)
  4673. Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error)
  4674. InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error)
  4675. BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error)
  4676. EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error)
  4677. }
  4678. type aBCIApplicationClient struct {
  4679. cc *grpc.ClientConn
  4680. }
  4681. func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient {
  4682. return &aBCIApplicationClient{cc}
  4683. }
  4684. func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) {
  4685. out := new(ResponseEcho)
  4686. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Echo", in, out, opts...)
  4687. if err != nil {
  4688. return nil, err
  4689. }
  4690. return out, nil
  4691. }
  4692. func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) {
  4693. out := new(ResponseFlush)
  4694. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Flush", in, out, opts...)
  4695. if err != nil {
  4696. return nil, err
  4697. }
  4698. return out, nil
  4699. }
  4700. func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) {
  4701. out := new(ResponseInfo)
  4702. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Info", in, out, opts...)
  4703. if err != nil {
  4704. return nil, err
  4705. }
  4706. return out, nil
  4707. }
  4708. func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) {
  4709. out := new(ResponseSetOption)
  4710. err := c.cc.Invoke(ctx, "/types.ABCIApplication/SetOption", in, out, opts...)
  4711. if err != nil {
  4712. return nil, err
  4713. }
  4714. return out, nil
  4715. }
  4716. func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) {
  4717. out := new(ResponseDeliverTx)
  4718. err := c.cc.Invoke(ctx, "/types.ABCIApplication/DeliverTx", in, out, opts...)
  4719. if err != nil {
  4720. return nil, err
  4721. }
  4722. return out, nil
  4723. }
  4724. func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) {
  4725. out := new(ResponseCheckTx)
  4726. err := c.cc.Invoke(ctx, "/types.ABCIApplication/CheckTx", in, out, opts...)
  4727. if err != nil {
  4728. return nil, err
  4729. }
  4730. return out, nil
  4731. }
  4732. func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) {
  4733. out := new(ResponseQuery)
  4734. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Query", in, out, opts...)
  4735. if err != nil {
  4736. return nil, err
  4737. }
  4738. return out, nil
  4739. }
  4740. func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) {
  4741. out := new(ResponseCommit)
  4742. err := c.cc.Invoke(ctx, "/types.ABCIApplication/Commit", in, out, opts...)
  4743. if err != nil {
  4744. return nil, err
  4745. }
  4746. return out, nil
  4747. }
  4748. func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) {
  4749. out := new(ResponseInitChain)
  4750. err := c.cc.Invoke(ctx, "/types.ABCIApplication/InitChain", in, out, opts...)
  4751. if err != nil {
  4752. return nil, err
  4753. }
  4754. return out, nil
  4755. }
  4756. func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) {
  4757. out := new(ResponseBeginBlock)
  4758. err := c.cc.Invoke(ctx, "/types.ABCIApplication/BeginBlock", in, out, opts...)
  4759. if err != nil {
  4760. return nil, err
  4761. }
  4762. return out, nil
  4763. }
  4764. func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) {
  4765. out := new(ResponseEndBlock)
  4766. err := c.cc.Invoke(ctx, "/types.ABCIApplication/EndBlock", in, out, opts...)
  4767. if err != nil {
  4768. return nil, err
  4769. }
  4770. return out, nil
  4771. }
  4772. // ABCIApplicationServer is the server API for ABCIApplication service.
  4773. type ABCIApplicationServer interface {
  4774. Echo(context.Context, *RequestEcho) (*ResponseEcho, error)
  4775. Flush(context.Context, *RequestFlush) (*ResponseFlush, error)
  4776. Info(context.Context, *RequestInfo) (*ResponseInfo, error)
  4777. SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error)
  4778. DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error)
  4779. CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error)
  4780. Query(context.Context, *RequestQuery) (*ResponseQuery, error)
  4781. Commit(context.Context, *RequestCommit) (*ResponseCommit, error)
  4782. InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error)
  4783. BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error)
  4784. EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error)
  4785. }
  4786. func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) {
  4787. s.RegisterService(&_ABCIApplication_serviceDesc, srv)
  4788. }
  4789. func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4790. in := new(RequestEcho)
  4791. if err := dec(in); err != nil {
  4792. return nil, err
  4793. }
  4794. if interceptor == nil {
  4795. return srv.(ABCIApplicationServer).Echo(ctx, in)
  4796. }
  4797. info := &grpc.UnaryServerInfo{
  4798. Server: srv,
  4799. FullMethod: "/types.ABCIApplication/Echo",
  4800. }
  4801. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4802. return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho))
  4803. }
  4804. return interceptor(ctx, in, info, handler)
  4805. }
  4806. func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4807. in := new(RequestFlush)
  4808. if err := dec(in); err != nil {
  4809. return nil, err
  4810. }
  4811. if interceptor == nil {
  4812. return srv.(ABCIApplicationServer).Flush(ctx, in)
  4813. }
  4814. info := &grpc.UnaryServerInfo{
  4815. Server: srv,
  4816. FullMethod: "/types.ABCIApplication/Flush",
  4817. }
  4818. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4819. return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush))
  4820. }
  4821. return interceptor(ctx, in, info, handler)
  4822. }
  4823. func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4824. in := new(RequestInfo)
  4825. if err := dec(in); err != nil {
  4826. return nil, err
  4827. }
  4828. if interceptor == nil {
  4829. return srv.(ABCIApplicationServer).Info(ctx, in)
  4830. }
  4831. info := &grpc.UnaryServerInfo{
  4832. Server: srv,
  4833. FullMethod: "/types.ABCIApplication/Info",
  4834. }
  4835. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4836. return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo))
  4837. }
  4838. return interceptor(ctx, in, info, handler)
  4839. }
  4840. func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4841. in := new(RequestSetOption)
  4842. if err := dec(in); err != nil {
  4843. return nil, err
  4844. }
  4845. if interceptor == nil {
  4846. return srv.(ABCIApplicationServer).SetOption(ctx, in)
  4847. }
  4848. info := &grpc.UnaryServerInfo{
  4849. Server: srv,
  4850. FullMethod: "/types.ABCIApplication/SetOption",
  4851. }
  4852. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4853. return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption))
  4854. }
  4855. return interceptor(ctx, in, info, handler)
  4856. }
  4857. func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4858. in := new(RequestDeliverTx)
  4859. if err := dec(in); err != nil {
  4860. return nil, err
  4861. }
  4862. if interceptor == nil {
  4863. return srv.(ABCIApplicationServer).DeliverTx(ctx, in)
  4864. }
  4865. info := &grpc.UnaryServerInfo{
  4866. Server: srv,
  4867. FullMethod: "/types.ABCIApplication/DeliverTx",
  4868. }
  4869. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4870. return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx))
  4871. }
  4872. return interceptor(ctx, in, info, handler)
  4873. }
  4874. func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4875. in := new(RequestCheckTx)
  4876. if err := dec(in); err != nil {
  4877. return nil, err
  4878. }
  4879. if interceptor == nil {
  4880. return srv.(ABCIApplicationServer).CheckTx(ctx, in)
  4881. }
  4882. info := &grpc.UnaryServerInfo{
  4883. Server: srv,
  4884. FullMethod: "/types.ABCIApplication/CheckTx",
  4885. }
  4886. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4887. return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx))
  4888. }
  4889. return interceptor(ctx, in, info, handler)
  4890. }
  4891. func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4892. in := new(RequestQuery)
  4893. if err := dec(in); err != nil {
  4894. return nil, err
  4895. }
  4896. if interceptor == nil {
  4897. return srv.(ABCIApplicationServer).Query(ctx, in)
  4898. }
  4899. info := &grpc.UnaryServerInfo{
  4900. Server: srv,
  4901. FullMethod: "/types.ABCIApplication/Query",
  4902. }
  4903. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4904. return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery))
  4905. }
  4906. return interceptor(ctx, in, info, handler)
  4907. }
  4908. func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4909. in := new(RequestCommit)
  4910. if err := dec(in); err != nil {
  4911. return nil, err
  4912. }
  4913. if interceptor == nil {
  4914. return srv.(ABCIApplicationServer).Commit(ctx, in)
  4915. }
  4916. info := &grpc.UnaryServerInfo{
  4917. Server: srv,
  4918. FullMethod: "/types.ABCIApplication/Commit",
  4919. }
  4920. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4921. return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit))
  4922. }
  4923. return interceptor(ctx, in, info, handler)
  4924. }
  4925. func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4926. in := new(RequestInitChain)
  4927. if err := dec(in); err != nil {
  4928. return nil, err
  4929. }
  4930. if interceptor == nil {
  4931. return srv.(ABCIApplicationServer).InitChain(ctx, in)
  4932. }
  4933. info := &grpc.UnaryServerInfo{
  4934. Server: srv,
  4935. FullMethod: "/types.ABCIApplication/InitChain",
  4936. }
  4937. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4938. return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain))
  4939. }
  4940. return interceptor(ctx, in, info, handler)
  4941. }
  4942. func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4943. in := new(RequestBeginBlock)
  4944. if err := dec(in); err != nil {
  4945. return nil, err
  4946. }
  4947. if interceptor == nil {
  4948. return srv.(ABCIApplicationServer).BeginBlock(ctx, in)
  4949. }
  4950. info := &grpc.UnaryServerInfo{
  4951. Server: srv,
  4952. FullMethod: "/types.ABCIApplication/BeginBlock",
  4953. }
  4954. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4955. return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock))
  4956. }
  4957. return interceptor(ctx, in, info, handler)
  4958. }
  4959. func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4960. in := new(RequestEndBlock)
  4961. if err := dec(in); err != nil {
  4962. return nil, err
  4963. }
  4964. if interceptor == nil {
  4965. return srv.(ABCIApplicationServer).EndBlock(ctx, in)
  4966. }
  4967. info := &grpc.UnaryServerInfo{
  4968. Server: srv,
  4969. FullMethod: "/types.ABCIApplication/EndBlock",
  4970. }
  4971. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4972. return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock))
  4973. }
  4974. return interceptor(ctx, in, info, handler)
  4975. }
  4976. var _ABCIApplication_serviceDesc = grpc.ServiceDesc{
  4977. ServiceName: "types.ABCIApplication",
  4978. HandlerType: (*ABCIApplicationServer)(nil),
  4979. Methods: []grpc.MethodDesc{
  4980. {
  4981. MethodName: "Echo",
  4982. Handler: _ABCIApplication_Echo_Handler,
  4983. },
  4984. {
  4985. MethodName: "Flush",
  4986. Handler: _ABCIApplication_Flush_Handler,
  4987. },
  4988. {
  4989. MethodName: "Info",
  4990. Handler: _ABCIApplication_Info_Handler,
  4991. },
  4992. {
  4993. MethodName: "SetOption",
  4994. Handler: _ABCIApplication_SetOption_Handler,
  4995. },
  4996. {
  4997. MethodName: "DeliverTx",
  4998. Handler: _ABCIApplication_DeliverTx_Handler,
  4999. },
  5000. {
  5001. MethodName: "CheckTx",
  5002. Handler: _ABCIApplication_CheckTx_Handler,
  5003. },
  5004. {
  5005. MethodName: "Query",
  5006. Handler: _ABCIApplication_Query_Handler,
  5007. },
  5008. {
  5009. MethodName: "Commit",
  5010. Handler: _ABCIApplication_Commit_Handler,
  5011. },
  5012. {
  5013. MethodName: "InitChain",
  5014. Handler: _ABCIApplication_InitChain_Handler,
  5015. },
  5016. {
  5017. MethodName: "BeginBlock",
  5018. Handler: _ABCIApplication_BeginBlock_Handler,
  5019. },
  5020. {
  5021. MethodName: "EndBlock",
  5022. Handler: _ABCIApplication_EndBlock_Handler,
  5023. },
  5024. },
  5025. Streams: []grpc.StreamDesc{},
  5026. Metadata: "abci/types/types.proto",
  5027. }
  5028. func (m *Request) Marshal() (dAtA []byte, err error) {
  5029. size := m.Size()
  5030. dAtA = make([]byte, size)
  5031. n, err := m.MarshalTo(dAtA)
  5032. if err != nil {
  5033. return nil, err
  5034. }
  5035. return dAtA[:n], nil
  5036. }
  5037. func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  5038. var i int
  5039. _ = i
  5040. var l int
  5041. _ = l
  5042. if m.Value != nil {
  5043. nn1, err := m.Value.MarshalTo(dAtA[i:])
  5044. if err != nil {
  5045. return 0, err
  5046. }
  5047. i += nn1
  5048. }
  5049. if m.XXX_unrecognized != nil {
  5050. i += copy(dAtA[i:], m.XXX_unrecognized)
  5051. }
  5052. return i, nil
  5053. }
  5054. func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) {
  5055. i := 0
  5056. if m.Echo != nil {
  5057. dAtA[i] = 0x12
  5058. i++
  5059. i = encodeVarintTypes(dAtA, i, uint64(m.Echo.Size()))
  5060. n2, err := m.Echo.MarshalTo(dAtA[i:])
  5061. if err != nil {
  5062. return 0, err
  5063. }
  5064. i += n2
  5065. }
  5066. return i, nil
  5067. }
  5068. func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) {
  5069. i := 0
  5070. if m.Flush != nil {
  5071. dAtA[i] = 0x1a
  5072. i++
  5073. i = encodeVarintTypes(dAtA, i, uint64(m.Flush.Size()))
  5074. n3, err := m.Flush.MarshalTo(dAtA[i:])
  5075. if err != nil {
  5076. return 0, err
  5077. }
  5078. i += n3
  5079. }
  5080. return i, nil
  5081. }
  5082. func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) {
  5083. i := 0
  5084. if m.Info != nil {
  5085. dAtA[i] = 0x22
  5086. i++
  5087. i = encodeVarintTypes(dAtA, i, uint64(m.Info.Size()))
  5088. n4, err := m.Info.MarshalTo(dAtA[i:])
  5089. if err != nil {
  5090. return 0, err
  5091. }
  5092. i += n4
  5093. }
  5094. return i, nil
  5095. }
  5096. func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) {
  5097. i := 0
  5098. if m.SetOption != nil {
  5099. dAtA[i] = 0x2a
  5100. i++
  5101. i = encodeVarintTypes(dAtA, i, uint64(m.SetOption.Size()))
  5102. n5, err := m.SetOption.MarshalTo(dAtA[i:])
  5103. if err != nil {
  5104. return 0, err
  5105. }
  5106. i += n5
  5107. }
  5108. return i, nil
  5109. }
  5110. func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) {
  5111. i := 0
  5112. if m.InitChain != nil {
  5113. dAtA[i] = 0x32
  5114. i++
  5115. i = encodeVarintTypes(dAtA, i, uint64(m.InitChain.Size()))
  5116. n6, err := m.InitChain.MarshalTo(dAtA[i:])
  5117. if err != nil {
  5118. return 0, err
  5119. }
  5120. i += n6
  5121. }
  5122. return i, nil
  5123. }
  5124. func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) {
  5125. i := 0
  5126. if m.Query != nil {
  5127. dAtA[i] = 0x3a
  5128. i++
  5129. i = encodeVarintTypes(dAtA, i, uint64(m.Query.Size()))
  5130. n7, err := m.Query.MarshalTo(dAtA[i:])
  5131. if err != nil {
  5132. return 0, err
  5133. }
  5134. i += n7
  5135. }
  5136. return i, nil
  5137. }
  5138. func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5139. i := 0
  5140. if m.BeginBlock != nil {
  5141. dAtA[i] = 0x42
  5142. i++
  5143. i = encodeVarintTypes(dAtA, i, uint64(m.BeginBlock.Size()))
  5144. n8, err := m.BeginBlock.MarshalTo(dAtA[i:])
  5145. if err != nil {
  5146. return 0, err
  5147. }
  5148. i += n8
  5149. }
  5150. return i, nil
  5151. }
  5152. func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) {
  5153. i := 0
  5154. if m.CheckTx != nil {
  5155. dAtA[i] = 0x4a
  5156. i++
  5157. i = encodeVarintTypes(dAtA, i, uint64(m.CheckTx.Size()))
  5158. n9, err := m.CheckTx.MarshalTo(dAtA[i:])
  5159. if err != nil {
  5160. return 0, err
  5161. }
  5162. i += n9
  5163. }
  5164. return i, nil
  5165. }
  5166. func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) {
  5167. i := 0
  5168. if m.EndBlock != nil {
  5169. dAtA[i] = 0x5a
  5170. i++
  5171. i = encodeVarintTypes(dAtA, i, uint64(m.EndBlock.Size()))
  5172. n10, err := m.EndBlock.MarshalTo(dAtA[i:])
  5173. if err != nil {
  5174. return 0, err
  5175. }
  5176. i += n10
  5177. }
  5178. return i, nil
  5179. }
  5180. func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) {
  5181. i := 0
  5182. if m.Commit != nil {
  5183. dAtA[i] = 0x62
  5184. i++
  5185. i = encodeVarintTypes(dAtA, i, uint64(m.Commit.Size()))
  5186. n11, err := m.Commit.MarshalTo(dAtA[i:])
  5187. if err != nil {
  5188. return 0, err
  5189. }
  5190. i += n11
  5191. }
  5192. return i, nil
  5193. }
  5194. func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5195. i := 0
  5196. if m.DeliverTx != nil {
  5197. dAtA[i] = 0x9a
  5198. i++
  5199. dAtA[i] = 0x1
  5200. i++
  5201. i = encodeVarintTypes(dAtA, i, uint64(m.DeliverTx.Size()))
  5202. n12, err := m.DeliverTx.MarshalTo(dAtA[i:])
  5203. if err != nil {
  5204. return 0, err
  5205. }
  5206. i += n12
  5207. }
  5208. return i, nil
  5209. }
  5210. func (m *RequestEcho) Marshal() (dAtA []byte, err error) {
  5211. size := m.Size()
  5212. dAtA = make([]byte, size)
  5213. n, err := m.MarshalTo(dAtA)
  5214. if err != nil {
  5215. return nil, err
  5216. }
  5217. return dAtA[:n], nil
  5218. }
  5219. func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) {
  5220. var i int
  5221. _ = i
  5222. var l int
  5223. _ = l
  5224. if len(m.Message) > 0 {
  5225. dAtA[i] = 0xa
  5226. i++
  5227. i = encodeVarintTypes(dAtA, i, uint64(len(m.Message)))
  5228. i += copy(dAtA[i:], m.Message)
  5229. }
  5230. if m.XXX_unrecognized != nil {
  5231. i += copy(dAtA[i:], m.XXX_unrecognized)
  5232. }
  5233. return i, nil
  5234. }
  5235. func (m *RequestFlush) Marshal() (dAtA []byte, err error) {
  5236. size := m.Size()
  5237. dAtA = make([]byte, size)
  5238. n, err := m.MarshalTo(dAtA)
  5239. if err != nil {
  5240. return nil, err
  5241. }
  5242. return dAtA[:n], nil
  5243. }
  5244. func (m *RequestFlush) MarshalTo(dAtA []byte) (int, error) {
  5245. var i int
  5246. _ = i
  5247. var l int
  5248. _ = l
  5249. if m.XXX_unrecognized != nil {
  5250. i += copy(dAtA[i:], m.XXX_unrecognized)
  5251. }
  5252. return i, nil
  5253. }
  5254. func (m *RequestInfo) Marshal() (dAtA []byte, err error) {
  5255. size := m.Size()
  5256. dAtA = make([]byte, size)
  5257. n, err := m.MarshalTo(dAtA)
  5258. if err != nil {
  5259. return nil, err
  5260. }
  5261. return dAtA[:n], nil
  5262. }
  5263. func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) {
  5264. var i int
  5265. _ = i
  5266. var l int
  5267. _ = l
  5268. if len(m.Version) > 0 {
  5269. dAtA[i] = 0xa
  5270. i++
  5271. i = encodeVarintTypes(dAtA, i, uint64(len(m.Version)))
  5272. i += copy(dAtA[i:], m.Version)
  5273. }
  5274. if m.XXX_unrecognized != nil {
  5275. i += copy(dAtA[i:], m.XXX_unrecognized)
  5276. }
  5277. return i, nil
  5278. }
  5279. func (m *RequestSetOption) Marshal() (dAtA []byte, err error) {
  5280. size := m.Size()
  5281. dAtA = make([]byte, size)
  5282. n, err := m.MarshalTo(dAtA)
  5283. if err != nil {
  5284. return nil, err
  5285. }
  5286. return dAtA[:n], nil
  5287. }
  5288. func (m *RequestSetOption) MarshalTo(dAtA []byte) (int, error) {
  5289. var i int
  5290. _ = i
  5291. var l int
  5292. _ = l
  5293. if len(m.Key) > 0 {
  5294. dAtA[i] = 0xa
  5295. i++
  5296. i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  5297. i += copy(dAtA[i:], m.Key)
  5298. }
  5299. if len(m.Value) > 0 {
  5300. dAtA[i] = 0x12
  5301. i++
  5302. i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  5303. i += copy(dAtA[i:], m.Value)
  5304. }
  5305. if m.XXX_unrecognized != nil {
  5306. i += copy(dAtA[i:], m.XXX_unrecognized)
  5307. }
  5308. return i, nil
  5309. }
  5310. func (m *RequestInitChain) Marshal() (dAtA []byte, err error) {
  5311. size := m.Size()
  5312. dAtA = make([]byte, size)
  5313. n, err := m.MarshalTo(dAtA)
  5314. if err != nil {
  5315. return nil, err
  5316. }
  5317. return dAtA[:n], nil
  5318. }
  5319. func (m *RequestInitChain) MarshalTo(dAtA []byte) (int, error) {
  5320. var i int
  5321. _ = i
  5322. var l int
  5323. _ = l
  5324. dAtA[i] = 0xa
  5325. i++
  5326. i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)))
  5327. n13, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i:])
  5328. if err != nil {
  5329. return 0, err
  5330. }
  5331. i += n13
  5332. if len(m.ChainId) > 0 {
  5333. dAtA[i] = 0x12
  5334. i++
  5335. i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId)))
  5336. i += copy(dAtA[i:], m.ChainId)
  5337. }
  5338. if m.ConsensusParams != nil {
  5339. dAtA[i] = 0x1a
  5340. i++
  5341. i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusParams.Size()))
  5342. n14, err := m.ConsensusParams.MarshalTo(dAtA[i:])
  5343. if err != nil {
  5344. return 0, err
  5345. }
  5346. i += n14
  5347. }
  5348. if len(m.Validators) > 0 {
  5349. for _, msg := range m.Validators {
  5350. dAtA[i] = 0x22
  5351. i++
  5352. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  5353. n, err := msg.MarshalTo(dAtA[i:])
  5354. if err != nil {
  5355. return 0, err
  5356. }
  5357. i += n
  5358. }
  5359. }
  5360. if len(m.AppStateBytes) > 0 {
  5361. dAtA[i] = 0x2a
  5362. i++
  5363. i = encodeVarintTypes(dAtA, i, uint64(len(m.AppStateBytes)))
  5364. i += copy(dAtA[i:], m.AppStateBytes)
  5365. }
  5366. if m.XXX_unrecognized != nil {
  5367. i += copy(dAtA[i:], m.XXX_unrecognized)
  5368. }
  5369. return i, nil
  5370. }
  5371. func (m *RequestQuery) Marshal() (dAtA []byte, err error) {
  5372. size := m.Size()
  5373. dAtA = make([]byte, size)
  5374. n, err := m.MarshalTo(dAtA)
  5375. if err != nil {
  5376. return nil, err
  5377. }
  5378. return dAtA[:n], nil
  5379. }
  5380. func (m *RequestQuery) MarshalTo(dAtA []byte) (int, error) {
  5381. var i int
  5382. _ = i
  5383. var l int
  5384. _ = l
  5385. if len(m.Data) > 0 {
  5386. dAtA[i] = 0xa
  5387. i++
  5388. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5389. i += copy(dAtA[i:], m.Data)
  5390. }
  5391. if len(m.Path) > 0 {
  5392. dAtA[i] = 0x12
  5393. i++
  5394. i = encodeVarintTypes(dAtA, i, uint64(len(m.Path)))
  5395. i += copy(dAtA[i:], m.Path)
  5396. }
  5397. if m.Height != 0 {
  5398. dAtA[i] = 0x18
  5399. i++
  5400. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  5401. }
  5402. if m.Prove {
  5403. dAtA[i] = 0x20
  5404. i++
  5405. if m.Prove {
  5406. dAtA[i] = 1
  5407. } else {
  5408. dAtA[i] = 0
  5409. }
  5410. i++
  5411. }
  5412. if m.XXX_unrecognized != nil {
  5413. i += copy(dAtA[i:], m.XXX_unrecognized)
  5414. }
  5415. return i, nil
  5416. }
  5417. func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) {
  5418. size := m.Size()
  5419. dAtA = make([]byte, size)
  5420. n, err := m.MarshalTo(dAtA)
  5421. if err != nil {
  5422. return nil, err
  5423. }
  5424. return dAtA[:n], nil
  5425. }
  5426. func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5427. var i int
  5428. _ = i
  5429. var l int
  5430. _ = l
  5431. if len(m.Hash) > 0 {
  5432. dAtA[i] = 0xa
  5433. i++
  5434. i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  5435. i += copy(dAtA[i:], m.Hash)
  5436. }
  5437. dAtA[i] = 0x12
  5438. i++
  5439. i = encodeVarintTypes(dAtA, i, uint64(m.Header.Size()))
  5440. n15, err := m.Header.MarshalTo(dAtA[i:])
  5441. if err != nil {
  5442. return 0, err
  5443. }
  5444. i += n15
  5445. dAtA[i] = 0x1a
  5446. i++
  5447. i = encodeVarintTypes(dAtA, i, uint64(m.LastCommitInfo.Size()))
  5448. n16, err := m.LastCommitInfo.MarshalTo(dAtA[i:])
  5449. if err != nil {
  5450. return 0, err
  5451. }
  5452. i += n16
  5453. if len(m.ByzantineValidators) > 0 {
  5454. for _, msg := range m.ByzantineValidators {
  5455. dAtA[i] = 0x22
  5456. i++
  5457. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  5458. n, err := msg.MarshalTo(dAtA[i:])
  5459. if err != nil {
  5460. return 0, err
  5461. }
  5462. i += n
  5463. }
  5464. }
  5465. if m.XXX_unrecognized != nil {
  5466. i += copy(dAtA[i:], m.XXX_unrecognized)
  5467. }
  5468. return i, nil
  5469. }
  5470. func (m *RequestCheckTx) Marshal() (dAtA []byte, err error) {
  5471. size := m.Size()
  5472. dAtA = make([]byte, size)
  5473. n, err := m.MarshalTo(dAtA)
  5474. if err != nil {
  5475. return nil, err
  5476. }
  5477. return dAtA[:n], nil
  5478. }
  5479. func (m *RequestCheckTx) MarshalTo(dAtA []byte) (int, error) {
  5480. var i int
  5481. _ = i
  5482. var l int
  5483. _ = l
  5484. if len(m.Tx) > 0 {
  5485. dAtA[i] = 0xa
  5486. i++
  5487. i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  5488. i += copy(dAtA[i:], m.Tx)
  5489. }
  5490. if m.XXX_unrecognized != nil {
  5491. i += copy(dAtA[i:], m.XXX_unrecognized)
  5492. }
  5493. return i, nil
  5494. }
  5495. func (m *RequestDeliverTx) Marshal() (dAtA []byte, err error) {
  5496. size := m.Size()
  5497. dAtA = make([]byte, size)
  5498. n, err := m.MarshalTo(dAtA)
  5499. if err != nil {
  5500. return nil, err
  5501. }
  5502. return dAtA[:n], nil
  5503. }
  5504. func (m *RequestDeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5505. var i int
  5506. _ = i
  5507. var l int
  5508. _ = l
  5509. if len(m.Tx) > 0 {
  5510. dAtA[i] = 0xa
  5511. i++
  5512. i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  5513. i += copy(dAtA[i:], m.Tx)
  5514. }
  5515. if m.XXX_unrecognized != nil {
  5516. i += copy(dAtA[i:], m.XXX_unrecognized)
  5517. }
  5518. return i, nil
  5519. }
  5520. func (m *RequestEndBlock) Marshal() (dAtA []byte, err error) {
  5521. size := m.Size()
  5522. dAtA = make([]byte, size)
  5523. n, err := m.MarshalTo(dAtA)
  5524. if err != nil {
  5525. return nil, err
  5526. }
  5527. return dAtA[:n], nil
  5528. }
  5529. func (m *RequestEndBlock) MarshalTo(dAtA []byte) (int, error) {
  5530. var i int
  5531. _ = i
  5532. var l int
  5533. _ = l
  5534. if m.Height != 0 {
  5535. dAtA[i] = 0x8
  5536. i++
  5537. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  5538. }
  5539. if m.XXX_unrecognized != nil {
  5540. i += copy(dAtA[i:], m.XXX_unrecognized)
  5541. }
  5542. return i, nil
  5543. }
  5544. func (m *RequestCommit) Marshal() (dAtA []byte, err error) {
  5545. size := m.Size()
  5546. dAtA = make([]byte, size)
  5547. n, err := m.MarshalTo(dAtA)
  5548. if err != nil {
  5549. return nil, err
  5550. }
  5551. return dAtA[:n], nil
  5552. }
  5553. func (m *RequestCommit) MarshalTo(dAtA []byte) (int, error) {
  5554. var i int
  5555. _ = i
  5556. var l int
  5557. _ = l
  5558. if m.XXX_unrecognized != nil {
  5559. i += copy(dAtA[i:], m.XXX_unrecognized)
  5560. }
  5561. return i, nil
  5562. }
  5563. func (m *Response) Marshal() (dAtA []byte, err error) {
  5564. size := m.Size()
  5565. dAtA = make([]byte, size)
  5566. n, err := m.MarshalTo(dAtA)
  5567. if err != nil {
  5568. return nil, err
  5569. }
  5570. return dAtA[:n], nil
  5571. }
  5572. func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  5573. var i int
  5574. _ = i
  5575. var l int
  5576. _ = l
  5577. if m.Value != nil {
  5578. nn17, err := m.Value.MarshalTo(dAtA[i:])
  5579. if err != nil {
  5580. return 0, err
  5581. }
  5582. i += nn17
  5583. }
  5584. if m.XXX_unrecognized != nil {
  5585. i += copy(dAtA[i:], m.XXX_unrecognized)
  5586. }
  5587. return i, nil
  5588. }
  5589. func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) {
  5590. i := 0
  5591. if m.Exception != nil {
  5592. dAtA[i] = 0xa
  5593. i++
  5594. i = encodeVarintTypes(dAtA, i, uint64(m.Exception.Size()))
  5595. n18, err := m.Exception.MarshalTo(dAtA[i:])
  5596. if err != nil {
  5597. return 0, err
  5598. }
  5599. i += n18
  5600. }
  5601. return i, nil
  5602. }
  5603. func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) {
  5604. i := 0
  5605. if m.Echo != nil {
  5606. dAtA[i] = 0x12
  5607. i++
  5608. i = encodeVarintTypes(dAtA, i, uint64(m.Echo.Size()))
  5609. n19, err := m.Echo.MarshalTo(dAtA[i:])
  5610. if err != nil {
  5611. return 0, err
  5612. }
  5613. i += n19
  5614. }
  5615. return i, nil
  5616. }
  5617. func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) {
  5618. i := 0
  5619. if m.Flush != nil {
  5620. dAtA[i] = 0x1a
  5621. i++
  5622. i = encodeVarintTypes(dAtA, i, uint64(m.Flush.Size()))
  5623. n20, err := m.Flush.MarshalTo(dAtA[i:])
  5624. if err != nil {
  5625. return 0, err
  5626. }
  5627. i += n20
  5628. }
  5629. return i, nil
  5630. }
  5631. func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) {
  5632. i := 0
  5633. if m.Info != nil {
  5634. dAtA[i] = 0x22
  5635. i++
  5636. i = encodeVarintTypes(dAtA, i, uint64(m.Info.Size()))
  5637. n21, err := m.Info.MarshalTo(dAtA[i:])
  5638. if err != nil {
  5639. return 0, err
  5640. }
  5641. i += n21
  5642. }
  5643. return i, nil
  5644. }
  5645. func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) {
  5646. i := 0
  5647. if m.SetOption != nil {
  5648. dAtA[i] = 0x2a
  5649. i++
  5650. i = encodeVarintTypes(dAtA, i, uint64(m.SetOption.Size()))
  5651. n22, err := m.SetOption.MarshalTo(dAtA[i:])
  5652. if err != nil {
  5653. return 0, err
  5654. }
  5655. i += n22
  5656. }
  5657. return i, nil
  5658. }
  5659. func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) {
  5660. i := 0
  5661. if m.InitChain != nil {
  5662. dAtA[i] = 0x32
  5663. i++
  5664. i = encodeVarintTypes(dAtA, i, uint64(m.InitChain.Size()))
  5665. n23, err := m.InitChain.MarshalTo(dAtA[i:])
  5666. if err != nil {
  5667. return 0, err
  5668. }
  5669. i += n23
  5670. }
  5671. return i, nil
  5672. }
  5673. func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) {
  5674. i := 0
  5675. if m.Query != nil {
  5676. dAtA[i] = 0x3a
  5677. i++
  5678. i = encodeVarintTypes(dAtA, i, uint64(m.Query.Size()))
  5679. n24, err := m.Query.MarshalTo(dAtA[i:])
  5680. if err != nil {
  5681. return 0, err
  5682. }
  5683. i += n24
  5684. }
  5685. return i, nil
  5686. }
  5687. func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) {
  5688. i := 0
  5689. if m.BeginBlock != nil {
  5690. dAtA[i] = 0x42
  5691. i++
  5692. i = encodeVarintTypes(dAtA, i, uint64(m.BeginBlock.Size()))
  5693. n25, err := m.BeginBlock.MarshalTo(dAtA[i:])
  5694. if err != nil {
  5695. return 0, err
  5696. }
  5697. i += n25
  5698. }
  5699. return i, nil
  5700. }
  5701. func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) {
  5702. i := 0
  5703. if m.CheckTx != nil {
  5704. dAtA[i] = 0x4a
  5705. i++
  5706. i = encodeVarintTypes(dAtA, i, uint64(m.CheckTx.Size()))
  5707. n26, err := m.CheckTx.MarshalTo(dAtA[i:])
  5708. if err != nil {
  5709. return 0, err
  5710. }
  5711. i += n26
  5712. }
  5713. return i, nil
  5714. }
  5715. func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) {
  5716. i := 0
  5717. if m.DeliverTx != nil {
  5718. dAtA[i] = 0x52
  5719. i++
  5720. i = encodeVarintTypes(dAtA, i, uint64(m.DeliverTx.Size()))
  5721. n27, err := m.DeliverTx.MarshalTo(dAtA[i:])
  5722. if err != nil {
  5723. return 0, err
  5724. }
  5725. i += n27
  5726. }
  5727. return i, nil
  5728. }
  5729. func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) {
  5730. i := 0
  5731. if m.EndBlock != nil {
  5732. dAtA[i] = 0x5a
  5733. i++
  5734. i = encodeVarintTypes(dAtA, i, uint64(m.EndBlock.Size()))
  5735. n28, err := m.EndBlock.MarshalTo(dAtA[i:])
  5736. if err != nil {
  5737. return 0, err
  5738. }
  5739. i += n28
  5740. }
  5741. return i, nil
  5742. }
  5743. func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) {
  5744. i := 0
  5745. if m.Commit != nil {
  5746. dAtA[i] = 0x62
  5747. i++
  5748. i = encodeVarintTypes(dAtA, i, uint64(m.Commit.Size()))
  5749. n29, err := m.Commit.MarshalTo(dAtA[i:])
  5750. if err != nil {
  5751. return 0, err
  5752. }
  5753. i += n29
  5754. }
  5755. return i, nil
  5756. }
  5757. func (m *ResponseException) Marshal() (dAtA []byte, err error) {
  5758. size := m.Size()
  5759. dAtA = make([]byte, size)
  5760. n, err := m.MarshalTo(dAtA)
  5761. if err != nil {
  5762. return nil, err
  5763. }
  5764. return dAtA[:n], nil
  5765. }
  5766. func (m *ResponseException) MarshalTo(dAtA []byte) (int, error) {
  5767. var i int
  5768. _ = i
  5769. var l int
  5770. _ = l
  5771. if len(m.Error) > 0 {
  5772. dAtA[i] = 0xa
  5773. i++
  5774. i = encodeVarintTypes(dAtA, i, uint64(len(m.Error)))
  5775. i += copy(dAtA[i:], m.Error)
  5776. }
  5777. if m.XXX_unrecognized != nil {
  5778. i += copy(dAtA[i:], m.XXX_unrecognized)
  5779. }
  5780. return i, nil
  5781. }
  5782. func (m *ResponseEcho) Marshal() (dAtA []byte, err error) {
  5783. size := m.Size()
  5784. dAtA = make([]byte, size)
  5785. n, err := m.MarshalTo(dAtA)
  5786. if err != nil {
  5787. return nil, err
  5788. }
  5789. return dAtA[:n], nil
  5790. }
  5791. func (m *ResponseEcho) MarshalTo(dAtA []byte) (int, error) {
  5792. var i int
  5793. _ = i
  5794. var l int
  5795. _ = l
  5796. if len(m.Message) > 0 {
  5797. dAtA[i] = 0xa
  5798. i++
  5799. i = encodeVarintTypes(dAtA, i, uint64(len(m.Message)))
  5800. i += copy(dAtA[i:], m.Message)
  5801. }
  5802. if m.XXX_unrecognized != nil {
  5803. i += copy(dAtA[i:], m.XXX_unrecognized)
  5804. }
  5805. return i, nil
  5806. }
  5807. func (m *ResponseFlush) Marshal() (dAtA []byte, err error) {
  5808. size := m.Size()
  5809. dAtA = make([]byte, size)
  5810. n, err := m.MarshalTo(dAtA)
  5811. if err != nil {
  5812. return nil, err
  5813. }
  5814. return dAtA[:n], nil
  5815. }
  5816. func (m *ResponseFlush) MarshalTo(dAtA []byte) (int, error) {
  5817. var i int
  5818. _ = i
  5819. var l int
  5820. _ = l
  5821. if m.XXX_unrecognized != nil {
  5822. i += copy(dAtA[i:], m.XXX_unrecognized)
  5823. }
  5824. return i, nil
  5825. }
  5826. func (m *ResponseInfo) Marshal() (dAtA []byte, err error) {
  5827. size := m.Size()
  5828. dAtA = make([]byte, size)
  5829. n, err := m.MarshalTo(dAtA)
  5830. if err != nil {
  5831. return nil, err
  5832. }
  5833. return dAtA[:n], nil
  5834. }
  5835. func (m *ResponseInfo) MarshalTo(dAtA []byte) (int, error) {
  5836. var i int
  5837. _ = i
  5838. var l int
  5839. _ = l
  5840. if len(m.Data) > 0 {
  5841. dAtA[i] = 0xa
  5842. i++
  5843. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  5844. i += copy(dAtA[i:], m.Data)
  5845. }
  5846. if len(m.Version) > 0 {
  5847. dAtA[i] = 0x12
  5848. i++
  5849. i = encodeVarintTypes(dAtA, i, uint64(len(m.Version)))
  5850. i += copy(dAtA[i:], m.Version)
  5851. }
  5852. if m.LastBlockHeight != 0 {
  5853. dAtA[i] = 0x18
  5854. i++
  5855. i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight))
  5856. }
  5857. if len(m.LastBlockAppHash) > 0 {
  5858. dAtA[i] = 0x22
  5859. i++
  5860. i = encodeVarintTypes(dAtA, i, uint64(len(m.LastBlockAppHash)))
  5861. i += copy(dAtA[i:], m.LastBlockAppHash)
  5862. }
  5863. if m.XXX_unrecognized != nil {
  5864. i += copy(dAtA[i:], m.XXX_unrecognized)
  5865. }
  5866. return i, nil
  5867. }
  5868. func (m *ResponseSetOption) Marshal() (dAtA []byte, err error) {
  5869. size := m.Size()
  5870. dAtA = make([]byte, size)
  5871. n, err := m.MarshalTo(dAtA)
  5872. if err != nil {
  5873. return nil, err
  5874. }
  5875. return dAtA[:n], nil
  5876. }
  5877. func (m *ResponseSetOption) MarshalTo(dAtA []byte) (int, error) {
  5878. var i int
  5879. _ = i
  5880. var l int
  5881. _ = l
  5882. if m.Code != 0 {
  5883. dAtA[i] = 0x8
  5884. i++
  5885. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  5886. }
  5887. if len(m.Log) > 0 {
  5888. dAtA[i] = 0x1a
  5889. i++
  5890. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  5891. i += copy(dAtA[i:], m.Log)
  5892. }
  5893. if len(m.Info) > 0 {
  5894. dAtA[i] = 0x22
  5895. i++
  5896. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  5897. i += copy(dAtA[i:], m.Info)
  5898. }
  5899. if m.XXX_unrecognized != nil {
  5900. i += copy(dAtA[i:], m.XXX_unrecognized)
  5901. }
  5902. return i, nil
  5903. }
  5904. func (m *ResponseInitChain) Marshal() (dAtA []byte, err error) {
  5905. size := m.Size()
  5906. dAtA = make([]byte, size)
  5907. n, err := m.MarshalTo(dAtA)
  5908. if err != nil {
  5909. return nil, err
  5910. }
  5911. return dAtA[:n], nil
  5912. }
  5913. func (m *ResponseInitChain) MarshalTo(dAtA []byte) (int, error) {
  5914. var i int
  5915. _ = i
  5916. var l int
  5917. _ = l
  5918. if m.ConsensusParams != nil {
  5919. dAtA[i] = 0xa
  5920. i++
  5921. i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusParams.Size()))
  5922. n30, err := m.ConsensusParams.MarshalTo(dAtA[i:])
  5923. if err != nil {
  5924. return 0, err
  5925. }
  5926. i += n30
  5927. }
  5928. if len(m.Validators) > 0 {
  5929. for _, msg := range m.Validators {
  5930. dAtA[i] = 0x12
  5931. i++
  5932. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  5933. n, err := msg.MarshalTo(dAtA[i:])
  5934. if err != nil {
  5935. return 0, err
  5936. }
  5937. i += n
  5938. }
  5939. }
  5940. if m.XXX_unrecognized != nil {
  5941. i += copy(dAtA[i:], m.XXX_unrecognized)
  5942. }
  5943. return i, nil
  5944. }
  5945. func (m *ResponseQuery) Marshal() (dAtA []byte, err error) {
  5946. size := m.Size()
  5947. dAtA = make([]byte, size)
  5948. n, err := m.MarshalTo(dAtA)
  5949. if err != nil {
  5950. return nil, err
  5951. }
  5952. return dAtA[:n], nil
  5953. }
  5954. func (m *ResponseQuery) MarshalTo(dAtA []byte) (int, error) {
  5955. var i int
  5956. _ = i
  5957. var l int
  5958. _ = l
  5959. if m.Code != 0 {
  5960. dAtA[i] = 0x8
  5961. i++
  5962. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  5963. }
  5964. if len(m.Log) > 0 {
  5965. dAtA[i] = 0x1a
  5966. i++
  5967. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  5968. i += copy(dAtA[i:], m.Log)
  5969. }
  5970. if len(m.Info) > 0 {
  5971. dAtA[i] = 0x22
  5972. i++
  5973. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  5974. i += copy(dAtA[i:], m.Info)
  5975. }
  5976. if m.Index != 0 {
  5977. dAtA[i] = 0x28
  5978. i++
  5979. i = encodeVarintTypes(dAtA, i, uint64(m.Index))
  5980. }
  5981. if len(m.Key) > 0 {
  5982. dAtA[i] = 0x32
  5983. i++
  5984. i = encodeVarintTypes(dAtA, i, uint64(len(m.Key)))
  5985. i += copy(dAtA[i:], m.Key)
  5986. }
  5987. if len(m.Value) > 0 {
  5988. dAtA[i] = 0x3a
  5989. i++
  5990. i = encodeVarintTypes(dAtA, i, uint64(len(m.Value)))
  5991. i += copy(dAtA[i:], m.Value)
  5992. }
  5993. if len(m.Proof) > 0 {
  5994. dAtA[i] = 0x42
  5995. i++
  5996. i = encodeVarintTypes(dAtA, i, uint64(len(m.Proof)))
  5997. i += copy(dAtA[i:], m.Proof)
  5998. }
  5999. if m.Height != 0 {
  6000. dAtA[i] = 0x48
  6001. i++
  6002. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6003. }
  6004. if m.XXX_unrecognized != nil {
  6005. i += copy(dAtA[i:], m.XXX_unrecognized)
  6006. }
  6007. return i, nil
  6008. }
  6009. func (m *ResponseBeginBlock) Marshal() (dAtA []byte, err error) {
  6010. size := m.Size()
  6011. dAtA = make([]byte, size)
  6012. n, err := m.MarshalTo(dAtA)
  6013. if err != nil {
  6014. return nil, err
  6015. }
  6016. return dAtA[:n], nil
  6017. }
  6018. func (m *ResponseBeginBlock) MarshalTo(dAtA []byte) (int, error) {
  6019. var i int
  6020. _ = i
  6021. var l int
  6022. _ = l
  6023. if len(m.Tags) > 0 {
  6024. for _, msg := range m.Tags {
  6025. dAtA[i] = 0xa
  6026. i++
  6027. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6028. n, err := msg.MarshalTo(dAtA[i:])
  6029. if err != nil {
  6030. return 0, err
  6031. }
  6032. i += n
  6033. }
  6034. }
  6035. if m.XXX_unrecognized != nil {
  6036. i += copy(dAtA[i:], m.XXX_unrecognized)
  6037. }
  6038. return i, nil
  6039. }
  6040. func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) {
  6041. size := m.Size()
  6042. dAtA = make([]byte, size)
  6043. n, err := m.MarshalTo(dAtA)
  6044. if err != nil {
  6045. return nil, err
  6046. }
  6047. return dAtA[:n], nil
  6048. }
  6049. func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) {
  6050. var i int
  6051. _ = i
  6052. var l int
  6053. _ = l
  6054. if m.Code != 0 {
  6055. dAtA[i] = 0x8
  6056. i++
  6057. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  6058. }
  6059. if len(m.Data) > 0 {
  6060. dAtA[i] = 0x12
  6061. i++
  6062. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6063. i += copy(dAtA[i:], m.Data)
  6064. }
  6065. if len(m.Log) > 0 {
  6066. dAtA[i] = 0x1a
  6067. i++
  6068. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  6069. i += copy(dAtA[i:], m.Log)
  6070. }
  6071. if len(m.Info) > 0 {
  6072. dAtA[i] = 0x22
  6073. i++
  6074. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  6075. i += copy(dAtA[i:], m.Info)
  6076. }
  6077. if m.GasWanted != 0 {
  6078. dAtA[i] = 0x28
  6079. i++
  6080. i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted))
  6081. }
  6082. if m.GasUsed != 0 {
  6083. dAtA[i] = 0x30
  6084. i++
  6085. i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed))
  6086. }
  6087. if len(m.Tags) > 0 {
  6088. for _, msg := range m.Tags {
  6089. dAtA[i] = 0x3a
  6090. i++
  6091. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6092. n, err := msg.MarshalTo(dAtA[i:])
  6093. if err != nil {
  6094. return 0, err
  6095. }
  6096. i += n
  6097. }
  6098. }
  6099. if m.XXX_unrecognized != nil {
  6100. i += copy(dAtA[i:], m.XXX_unrecognized)
  6101. }
  6102. return i, nil
  6103. }
  6104. func (m *ResponseDeliverTx) Marshal() (dAtA []byte, err error) {
  6105. size := m.Size()
  6106. dAtA = make([]byte, size)
  6107. n, err := m.MarshalTo(dAtA)
  6108. if err != nil {
  6109. return nil, err
  6110. }
  6111. return dAtA[:n], nil
  6112. }
  6113. func (m *ResponseDeliverTx) MarshalTo(dAtA []byte) (int, error) {
  6114. var i int
  6115. _ = i
  6116. var l int
  6117. _ = l
  6118. if m.Code != 0 {
  6119. dAtA[i] = 0x8
  6120. i++
  6121. i = encodeVarintTypes(dAtA, i, uint64(m.Code))
  6122. }
  6123. if len(m.Data) > 0 {
  6124. dAtA[i] = 0x12
  6125. i++
  6126. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6127. i += copy(dAtA[i:], m.Data)
  6128. }
  6129. if len(m.Log) > 0 {
  6130. dAtA[i] = 0x1a
  6131. i++
  6132. i = encodeVarintTypes(dAtA, i, uint64(len(m.Log)))
  6133. i += copy(dAtA[i:], m.Log)
  6134. }
  6135. if len(m.Info) > 0 {
  6136. dAtA[i] = 0x22
  6137. i++
  6138. i = encodeVarintTypes(dAtA, i, uint64(len(m.Info)))
  6139. i += copy(dAtA[i:], m.Info)
  6140. }
  6141. if m.GasWanted != 0 {
  6142. dAtA[i] = 0x28
  6143. i++
  6144. i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted))
  6145. }
  6146. if m.GasUsed != 0 {
  6147. dAtA[i] = 0x30
  6148. i++
  6149. i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed))
  6150. }
  6151. if len(m.Tags) > 0 {
  6152. for _, msg := range m.Tags {
  6153. dAtA[i] = 0x3a
  6154. i++
  6155. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6156. n, err := msg.MarshalTo(dAtA[i:])
  6157. if err != nil {
  6158. return 0, err
  6159. }
  6160. i += n
  6161. }
  6162. }
  6163. if m.XXX_unrecognized != nil {
  6164. i += copy(dAtA[i:], m.XXX_unrecognized)
  6165. }
  6166. return i, nil
  6167. }
  6168. func (m *ResponseEndBlock) Marshal() (dAtA []byte, err error) {
  6169. size := m.Size()
  6170. dAtA = make([]byte, size)
  6171. n, err := m.MarshalTo(dAtA)
  6172. if err != nil {
  6173. return nil, err
  6174. }
  6175. return dAtA[:n], nil
  6176. }
  6177. func (m *ResponseEndBlock) MarshalTo(dAtA []byte) (int, error) {
  6178. var i int
  6179. _ = i
  6180. var l int
  6181. _ = l
  6182. if len(m.ValidatorUpdates) > 0 {
  6183. for _, msg := range m.ValidatorUpdates {
  6184. dAtA[i] = 0xa
  6185. i++
  6186. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6187. n, err := msg.MarshalTo(dAtA[i:])
  6188. if err != nil {
  6189. return 0, err
  6190. }
  6191. i += n
  6192. }
  6193. }
  6194. if m.ConsensusParamUpdates != nil {
  6195. dAtA[i] = 0x12
  6196. i++
  6197. i = encodeVarintTypes(dAtA, i, uint64(m.ConsensusParamUpdates.Size()))
  6198. n31, err := m.ConsensusParamUpdates.MarshalTo(dAtA[i:])
  6199. if err != nil {
  6200. return 0, err
  6201. }
  6202. i += n31
  6203. }
  6204. if len(m.Tags) > 0 {
  6205. for _, msg := range m.Tags {
  6206. dAtA[i] = 0x1a
  6207. i++
  6208. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6209. n, err := msg.MarshalTo(dAtA[i:])
  6210. if err != nil {
  6211. return 0, err
  6212. }
  6213. i += n
  6214. }
  6215. }
  6216. if m.XXX_unrecognized != nil {
  6217. i += copy(dAtA[i:], m.XXX_unrecognized)
  6218. }
  6219. return i, nil
  6220. }
  6221. func (m *ResponseCommit) Marshal() (dAtA []byte, err error) {
  6222. size := m.Size()
  6223. dAtA = make([]byte, size)
  6224. n, err := m.MarshalTo(dAtA)
  6225. if err != nil {
  6226. return nil, err
  6227. }
  6228. return dAtA[:n], nil
  6229. }
  6230. func (m *ResponseCommit) MarshalTo(dAtA []byte) (int, error) {
  6231. var i int
  6232. _ = i
  6233. var l int
  6234. _ = l
  6235. if len(m.Data) > 0 {
  6236. dAtA[i] = 0x12
  6237. i++
  6238. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6239. i += copy(dAtA[i:], m.Data)
  6240. }
  6241. if m.XXX_unrecognized != nil {
  6242. i += copy(dAtA[i:], m.XXX_unrecognized)
  6243. }
  6244. return i, nil
  6245. }
  6246. func (m *ConsensusParams) Marshal() (dAtA []byte, err error) {
  6247. size := m.Size()
  6248. dAtA = make([]byte, size)
  6249. n, err := m.MarshalTo(dAtA)
  6250. if err != nil {
  6251. return nil, err
  6252. }
  6253. return dAtA[:n], nil
  6254. }
  6255. func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) {
  6256. var i int
  6257. _ = i
  6258. var l int
  6259. _ = l
  6260. if m.BlockSize != nil {
  6261. dAtA[i] = 0xa
  6262. i++
  6263. i = encodeVarintTypes(dAtA, i, uint64(m.BlockSize.Size()))
  6264. n32, err := m.BlockSize.MarshalTo(dAtA[i:])
  6265. if err != nil {
  6266. return 0, err
  6267. }
  6268. i += n32
  6269. }
  6270. if m.EvidenceParams != nil {
  6271. dAtA[i] = 0x12
  6272. i++
  6273. i = encodeVarintTypes(dAtA, i, uint64(m.EvidenceParams.Size()))
  6274. n33, err := m.EvidenceParams.MarshalTo(dAtA[i:])
  6275. if err != nil {
  6276. return 0, err
  6277. }
  6278. i += n33
  6279. }
  6280. if m.XXX_unrecognized != nil {
  6281. i += copy(dAtA[i:], m.XXX_unrecognized)
  6282. }
  6283. return i, nil
  6284. }
  6285. func (m *BlockSize) Marshal() (dAtA []byte, err error) {
  6286. size := m.Size()
  6287. dAtA = make([]byte, size)
  6288. n, err := m.MarshalTo(dAtA)
  6289. if err != nil {
  6290. return nil, err
  6291. }
  6292. return dAtA[:n], nil
  6293. }
  6294. func (m *BlockSize) MarshalTo(dAtA []byte) (int, error) {
  6295. var i int
  6296. _ = i
  6297. var l int
  6298. _ = l
  6299. if m.MaxBytes != 0 {
  6300. dAtA[i] = 0x8
  6301. i++
  6302. i = encodeVarintTypes(dAtA, i, uint64(m.MaxBytes))
  6303. }
  6304. if m.MaxGas != 0 {
  6305. dAtA[i] = 0x10
  6306. i++
  6307. i = encodeVarintTypes(dAtA, i, uint64(m.MaxGas))
  6308. }
  6309. if m.XXX_unrecognized != nil {
  6310. i += copy(dAtA[i:], m.XXX_unrecognized)
  6311. }
  6312. return i, nil
  6313. }
  6314. func (m *EvidenceParams) Marshal() (dAtA []byte, err error) {
  6315. size := m.Size()
  6316. dAtA = make([]byte, size)
  6317. n, err := m.MarshalTo(dAtA)
  6318. if err != nil {
  6319. return nil, err
  6320. }
  6321. return dAtA[:n], nil
  6322. }
  6323. func (m *EvidenceParams) MarshalTo(dAtA []byte) (int, error) {
  6324. var i int
  6325. _ = i
  6326. var l int
  6327. _ = l
  6328. if m.MaxAge != 0 {
  6329. dAtA[i] = 0x8
  6330. i++
  6331. i = encodeVarintTypes(dAtA, i, uint64(m.MaxAge))
  6332. }
  6333. if m.XXX_unrecognized != nil {
  6334. i += copy(dAtA[i:], m.XXX_unrecognized)
  6335. }
  6336. return i, nil
  6337. }
  6338. func (m *LastCommitInfo) Marshal() (dAtA []byte, err error) {
  6339. size := m.Size()
  6340. dAtA = make([]byte, size)
  6341. n, err := m.MarshalTo(dAtA)
  6342. if err != nil {
  6343. return nil, err
  6344. }
  6345. return dAtA[:n], nil
  6346. }
  6347. func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error) {
  6348. var i int
  6349. _ = i
  6350. var l int
  6351. _ = l
  6352. if m.Round != 0 {
  6353. dAtA[i] = 0x8
  6354. i++
  6355. i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  6356. }
  6357. if len(m.Votes) > 0 {
  6358. for _, msg := range m.Votes {
  6359. dAtA[i] = 0x12
  6360. i++
  6361. i = encodeVarintTypes(dAtA, i, uint64(msg.Size()))
  6362. n, err := msg.MarshalTo(dAtA[i:])
  6363. if err != nil {
  6364. return 0, err
  6365. }
  6366. i += n
  6367. }
  6368. }
  6369. if m.XXX_unrecognized != nil {
  6370. i += copy(dAtA[i:], m.XXX_unrecognized)
  6371. }
  6372. return i, nil
  6373. }
  6374. func (m *Header) Marshal() (dAtA []byte, err error) {
  6375. size := m.Size()
  6376. dAtA = make([]byte, size)
  6377. n, err := m.MarshalTo(dAtA)
  6378. if err != nil {
  6379. return nil, err
  6380. }
  6381. return dAtA[:n], nil
  6382. }
  6383. func (m *Header) MarshalTo(dAtA []byte) (int, error) {
  6384. var i int
  6385. _ = i
  6386. var l int
  6387. _ = l
  6388. if len(m.ChainID) > 0 {
  6389. dAtA[i] = 0xa
  6390. i++
  6391. i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainID)))
  6392. i += copy(dAtA[i:], m.ChainID)
  6393. }
  6394. if m.Height != 0 {
  6395. dAtA[i] = 0x10
  6396. i++
  6397. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6398. }
  6399. dAtA[i] = 0x1a
  6400. i++
  6401. i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)))
  6402. n34, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i:])
  6403. if err != nil {
  6404. return 0, err
  6405. }
  6406. i += n34
  6407. if m.NumTxs != 0 {
  6408. dAtA[i] = 0x20
  6409. i++
  6410. i = encodeVarintTypes(dAtA, i, uint64(m.NumTxs))
  6411. }
  6412. if m.TotalTxs != 0 {
  6413. dAtA[i] = 0x28
  6414. i++
  6415. i = encodeVarintTypes(dAtA, i, uint64(m.TotalTxs))
  6416. }
  6417. dAtA[i] = 0x32
  6418. i++
  6419. i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockId.Size()))
  6420. n35, err := m.LastBlockId.MarshalTo(dAtA[i:])
  6421. if err != nil {
  6422. return 0, err
  6423. }
  6424. i += n35
  6425. if len(m.LastCommitHash) > 0 {
  6426. dAtA[i] = 0x3a
  6427. i++
  6428. i = encodeVarintTypes(dAtA, i, uint64(len(m.LastCommitHash)))
  6429. i += copy(dAtA[i:], m.LastCommitHash)
  6430. }
  6431. if len(m.DataHash) > 0 {
  6432. dAtA[i] = 0x42
  6433. i++
  6434. i = encodeVarintTypes(dAtA, i, uint64(len(m.DataHash)))
  6435. i += copy(dAtA[i:], m.DataHash)
  6436. }
  6437. if len(m.ValidatorsHash) > 0 {
  6438. dAtA[i] = 0x4a
  6439. i++
  6440. i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorsHash)))
  6441. i += copy(dAtA[i:], m.ValidatorsHash)
  6442. }
  6443. if len(m.NextValidatorsHash) > 0 {
  6444. dAtA[i] = 0x52
  6445. i++
  6446. i = encodeVarintTypes(dAtA, i, uint64(len(m.NextValidatorsHash)))
  6447. i += copy(dAtA[i:], m.NextValidatorsHash)
  6448. }
  6449. if len(m.ConsensusHash) > 0 {
  6450. dAtA[i] = 0x5a
  6451. i++
  6452. i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusHash)))
  6453. i += copy(dAtA[i:], m.ConsensusHash)
  6454. }
  6455. if len(m.AppHash) > 0 {
  6456. dAtA[i] = 0x62
  6457. i++
  6458. i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash)))
  6459. i += copy(dAtA[i:], m.AppHash)
  6460. }
  6461. if len(m.LastResultsHash) > 0 {
  6462. dAtA[i] = 0x6a
  6463. i++
  6464. i = encodeVarintTypes(dAtA, i, uint64(len(m.LastResultsHash)))
  6465. i += copy(dAtA[i:], m.LastResultsHash)
  6466. }
  6467. if len(m.EvidenceHash) > 0 {
  6468. dAtA[i] = 0x72
  6469. i++
  6470. i = encodeVarintTypes(dAtA, i, uint64(len(m.EvidenceHash)))
  6471. i += copy(dAtA[i:], m.EvidenceHash)
  6472. }
  6473. if len(m.ProposerAddress) > 0 {
  6474. dAtA[i] = 0x7a
  6475. i++
  6476. i = encodeVarintTypes(dAtA, i, uint64(len(m.ProposerAddress)))
  6477. i += copy(dAtA[i:], m.ProposerAddress)
  6478. }
  6479. if m.XXX_unrecognized != nil {
  6480. i += copy(dAtA[i:], m.XXX_unrecognized)
  6481. }
  6482. return i, nil
  6483. }
  6484. func (m *BlockID) Marshal() (dAtA []byte, err error) {
  6485. size := m.Size()
  6486. dAtA = make([]byte, size)
  6487. n, err := m.MarshalTo(dAtA)
  6488. if err != nil {
  6489. return nil, err
  6490. }
  6491. return dAtA[:n], nil
  6492. }
  6493. func (m *BlockID) MarshalTo(dAtA []byte) (int, error) {
  6494. var i int
  6495. _ = i
  6496. var l int
  6497. _ = l
  6498. if len(m.Hash) > 0 {
  6499. dAtA[i] = 0xa
  6500. i++
  6501. i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  6502. i += copy(dAtA[i:], m.Hash)
  6503. }
  6504. dAtA[i] = 0x12
  6505. i++
  6506. i = encodeVarintTypes(dAtA, i, uint64(m.PartsHeader.Size()))
  6507. n36, err := m.PartsHeader.MarshalTo(dAtA[i:])
  6508. if err != nil {
  6509. return 0, err
  6510. }
  6511. i += n36
  6512. if m.XXX_unrecognized != nil {
  6513. i += copy(dAtA[i:], m.XXX_unrecognized)
  6514. }
  6515. return i, nil
  6516. }
  6517. func (m *PartSetHeader) Marshal() (dAtA []byte, err error) {
  6518. size := m.Size()
  6519. dAtA = make([]byte, size)
  6520. n, err := m.MarshalTo(dAtA)
  6521. if err != nil {
  6522. return nil, err
  6523. }
  6524. return dAtA[:n], nil
  6525. }
  6526. func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error) {
  6527. var i int
  6528. _ = i
  6529. var l int
  6530. _ = l
  6531. if m.Total != 0 {
  6532. dAtA[i] = 0x8
  6533. i++
  6534. i = encodeVarintTypes(dAtA, i, uint64(m.Total))
  6535. }
  6536. if len(m.Hash) > 0 {
  6537. dAtA[i] = 0x12
  6538. i++
  6539. i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
  6540. i += copy(dAtA[i:], m.Hash)
  6541. }
  6542. if m.XXX_unrecognized != nil {
  6543. i += copy(dAtA[i:], m.XXX_unrecognized)
  6544. }
  6545. return i, nil
  6546. }
  6547. func (m *Validator) Marshal() (dAtA []byte, err error) {
  6548. size := m.Size()
  6549. dAtA = make([]byte, size)
  6550. n, err := m.MarshalTo(dAtA)
  6551. if err != nil {
  6552. return nil, err
  6553. }
  6554. return dAtA[:n], nil
  6555. }
  6556. func (m *Validator) MarshalTo(dAtA []byte) (int, error) {
  6557. var i int
  6558. _ = i
  6559. var l int
  6560. _ = l
  6561. if len(m.Address) > 0 {
  6562. dAtA[i] = 0xa
  6563. i++
  6564. i = encodeVarintTypes(dAtA, i, uint64(len(m.Address)))
  6565. i += copy(dAtA[i:], m.Address)
  6566. }
  6567. if m.Power != 0 {
  6568. dAtA[i] = 0x18
  6569. i++
  6570. i = encodeVarintTypes(dAtA, i, uint64(m.Power))
  6571. }
  6572. if m.XXX_unrecognized != nil {
  6573. i += copy(dAtA[i:], m.XXX_unrecognized)
  6574. }
  6575. return i, nil
  6576. }
  6577. func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error) {
  6578. size := m.Size()
  6579. dAtA = make([]byte, size)
  6580. n, err := m.MarshalTo(dAtA)
  6581. if err != nil {
  6582. return nil, err
  6583. }
  6584. return dAtA[:n], nil
  6585. }
  6586. func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error) {
  6587. var i int
  6588. _ = i
  6589. var l int
  6590. _ = l
  6591. dAtA[i] = 0xa
  6592. i++
  6593. i = encodeVarintTypes(dAtA, i, uint64(m.PubKey.Size()))
  6594. n37, err := m.PubKey.MarshalTo(dAtA[i:])
  6595. if err != nil {
  6596. return 0, err
  6597. }
  6598. i += n37
  6599. if m.Power != 0 {
  6600. dAtA[i] = 0x10
  6601. i++
  6602. i = encodeVarintTypes(dAtA, i, uint64(m.Power))
  6603. }
  6604. if m.XXX_unrecognized != nil {
  6605. i += copy(dAtA[i:], m.XXX_unrecognized)
  6606. }
  6607. return i, nil
  6608. }
  6609. func (m *VoteInfo) Marshal() (dAtA []byte, err error) {
  6610. size := m.Size()
  6611. dAtA = make([]byte, size)
  6612. n, err := m.MarshalTo(dAtA)
  6613. if err != nil {
  6614. return nil, err
  6615. }
  6616. return dAtA[:n], nil
  6617. }
  6618. func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error) {
  6619. var i int
  6620. _ = i
  6621. var l int
  6622. _ = l
  6623. dAtA[i] = 0xa
  6624. i++
  6625. i = encodeVarintTypes(dAtA, i, uint64(m.Validator.Size()))
  6626. n38, err := m.Validator.MarshalTo(dAtA[i:])
  6627. if err != nil {
  6628. return 0, err
  6629. }
  6630. i += n38
  6631. if m.SignedLastBlock {
  6632. dAtA[i] = 0x10
  6633. i++
  6634. if m.SignedLastBlock {
  6635. dAtA[i] = 1
  6636. } else {
  6637. dAtA[i] = 0
  6638. }
  6639. i++
  6640. }
  6641. if m.XXX_unrecognized != nil {
  6642. i += copy(dAtA[i:], m.XXX_unrecognized)
  6643. }
  6644. return i, nil
  6645. }
  6646. func (m *PubKey) Marshal() (dAtA []byte, err error) {
  6647. size := m.Size()
  6648. dAtA = make([]byte, size)
  6649. n, err := m.MarshalTo(dAtA)
  6650. if err != nil {
  6651. return nil, err
  6652. }
  6653. return dAtA[:n], nil
  6654. }
  6655. func (m *PubKey) MarshalTo(dAtA []byte) (int, error) {
  6656. var i int
  6657. _ = i
  6658. var l int
  6659. _ = l
  6660. if len(m.Type) > 0 {
  6661. dAtA[i] = 0xa
  6662. i++
  6663. i = encodeVarintTypes(dAtA, i, uint64(len(m.Type)))
  6664. i += copy(dAtA[i:], m.Type)
  6665. }
  6666. if len(m.Data) > 0 {
  6667. dAtA[i] = 0x12
  6668. i++
  6669. i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
  6670. i += copy(dAtA[i:], m.Data)
  6671. }
  6672. if m.XXX_unrecognized != nil {
  6673. i += copy(dAtA[i:], m.XXX_unrecognized)
  6674. }
  6675. return i, nil
  6676. }
  6677. func (m *Evidence) Marshal() (dAtA []byte, err error) {
  6678. size := m.Size()
  6679. dAtA = make([]byte, size)
  6680. n, err := m.MarshalTo(dAtA)
  6681. if err != nil {
  6682. return nil, err
  6683. }
  6684. return dAtA[:n], nil
  6685. }
  6686. func (m *Evidence) MarshalTo(dAtA []byte) (int, error) {
  6687. var i int
  6688. _ = i
  6689. var l int
  6690. _ = l
  6691. if len(m.Type) > 0 {
  6692. dAtA[i] = 0xa
  6693. i++
  6694. i = encodeVarintTypes(dAtA, i, uint64(len(m.Type)))
  6695. i += copy(dAtA[i:], m.Type)
  6696. }
  6697. dAtA[i] = 0x12
  6698. i++
  6699. i = encodeVarintTypes(dAtA, i, uint64(m.Validator.Size()))
  6700. n39, err := m.Validator.MarshalTo(dAtA[i:])
  6701. if err != nil {
  6702. return 0, err
  6703. }
  6704. i += n39
  6705. if m.Height != 0 {
  6706. dAtA[i] = 0x18
  6707. i++
  6708. i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  6709. }
  6710. dAtA[i] = 0x22
  6711. i++
  6712. i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)))
  6713. n40, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i:])
  6714. if err != nil {
  6715. return 0, err
  6716. }
  6717. i += n40
  6718. if m.TotalVotingPower != 0 {
  6719. dAtA[i] = 0x28
  6720. i++
  6721. i = encodeVarintTypes(dAtA, i, uint64(m.TotalVotingPower))
  6722. }
  6723. if m.XXX_unrecognized != nil {
  6724. i += copy(dAtA[i:], m.XXX_unrecognized)
  6725. }
  6726. return i, nil
  6727. }
  6728. func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  6729. for v >= 1<<7 {
  6730. dAtA[offset] = uint8(v&0x7f | 0x80)
  6731. v >>= 7
  6732. offset++
  6733. }
  6734. dAtA[offset] = uint8(v)
  6735. return offset + 1
  6736. }
  6737. func NewPopulatedRequest(r randyTypes, easy bool) *Request {
  6738. this := &Request{}
  6739. oneofNumber_Value := []int32{2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19}[r.Intn(11)]
  6740. switch oneofNumber_Value {
  6741. case 2:
  6742. this.Value = NewPopulatedRequest_Echo(r, easy)
  6743. case 3:
  6744. this.Value = NewPopulatedRequest_Flush(r, easy)
  6745. case 4:
  6746. this.Value = NewPopulatedRequest_Info(r, easy)
  6747. case 5:
  6748. this.Value = NewPopulatedRequest_SetOption(r, easy)
  6749. case 6:
  6750. this.Value = NewPopulatedRequest_InitChain(r, easy)
  6751. case 7:
  6752. this.Value = NewPopulatedRequest_Query(r, easy)
  6753. case 8:
  6754. this.Value = NewPopulatedRequest_BeginBlock(r, easy)
  6755. case 9:
  6756. this.Value = NewPopulatedRequest_CheckTx(r, easy)
  6757. case 11:
  6758. this.Value = NewPopulatedRequest_EndBlock(r, easy)
  6759. case 12:
  6760. this.Value = NewPopulatedRequest_Commit(r, easy)
  6761. case 19:
  6762. this.Value = NewPopulatedRequest_DeliverTx(r, easy)
  6763. }
  6764. if !easy && r.Intn(10) != 0 {
  6765. this.XXX_unrecognized = randUnrecognizedTypes(r, 20)
  6766. }
  6767. return this
  6768. }
  6769. func NewPopulatedRequest_Echo(r randyTypes, easy bool) *Request_Echo {
  6770. this := &Request_Echo{}
  6771. this.Echo = NewPopulatedRequestEcho(r, easy)
  6772. return this
  6773. }
  6774. func NewPopulatedRequest_Flush(r randyTypes, easy bool) *Request_Flush {
  6775. this := &Request_Flush{}
  6776. this.Flush = NewPopulatedRequestFlush(r, easy)
  6777. return this
  6778. }
  6779. func NewPopulatedRequest_Info(r randyTypes, easy bool) *Request_Info {
  6780. this := &Request_Info{}
  6781. this.Info = NewPopulatedRequestInfo(r, easy)
  6782. return this
  6783. }
  6784. func NewPopulatedRequest_SetOption(r randyTypes, easy bool) *Request_SetOption {
  6785. this := &Request_SetOption{}
  6786. this.SetOption = NewPopulatedRequestSetOption(r, easy)
  6787. return this
  6788. }
  6789. func NewPopulatedRequest_InitChain(r randyTypes, easy bool) *Request_InitChain {
  6790. this := &Request_InitChain{}
  6791. this.InitChain = NewPopulatedRequestInitChain(r, easy)
  6792. return this
  6793. }
  6794. func NewPopulatedRequest_Query(r randyTypes, easy bool) *Request_Query {
  6795. this := &Request_Query{}
  6796. this.Query = NewPopulatedRequestQuery(r, easy)
  6797. return this
  6798. }
  6799. func NewPopulatedRequest_BeginBlock(r randyTypes, easy bool) *Request_BeginBlock {
  6800. this := &Request_BeginBlock{}
  6801. this.BeginBlock = NewPopulatedRequestBeginBlock(r, easy)
  6802. return this
  6803. }
  6804. func NewPopulatedRequest_CheckTx(r randyTypes, easy bool) *Request_CheckTx {
  6805. this := &Request_CheckTx{}
  6806. this.CheckTx = NewPopulatedRequestCheckTx(r, easy)
  6807. return this
  6808. }
  6809. func NewPopulatedRequest_EndBlock(r randyTypes, easy bool) *Request_EndBlock {
  6810. this := &Request_EndBlock{}
  6811. this.EndBlock = NewPopulatedRequestEndBlock(r, easy)
  6812. return this
  6813. }
  6814. func NewPopulatedRequest_Commit(r randyTypes, easy bool) *Request_Commit {
  6815. this := &Request_Commit{}
  6816. this.Commit = NewPopulatedRequestCommit(r, easy)
  6817. return this
  6818. }
  6819. func NewPopulatedRequest_DeliverTx(r randyTypes, easy bool) *Request_DeliverTx {
  6820. this := &Request_DeliverTx{}
  6821. this.DeliverTx = NewPopulatedRequestDeliverTx(r, easy)
  6822. return this
  6823. }
  6824. func NewPopulatedRequestEcho(r randyTypes, easy bool) *RequestEcho {
  6825. this := &RequestEcho{}
  6826. this.Message = string(randStringTypes(r))
  6827. if !easy && r.Intn(10) != 0 {
  6828. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  6829. }
  6830. return this
  6831. }
  6832. func NewPopulatedRequestFlush(r randyTypes, easy bool) *RequestFlush {
  6833. this := &RequestFlush{}
  6834. if !easy && r.Intn(10) != 0 {
  6835. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  6836. }
  6837. return this
  6838. }
  6839. func NewPopulatedRequestInfo(r randyTypes, easy bool) *RequestInfo {
  6840. this := &RequestInfo{}
  6841. this.Version = string(randStringTypes(r))
  6842. if !easy && r.Intn(10) != 0 {
  6843. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  6844. }
  6845. return this
  6846. }
  6847. func NewPopulatedRequestSetOption(r randyTypes, easy bool) *RequestSetOption {
  6848. this := &RequestSetOption{}
  6849. this.Key = string(randStringTypes(r))
  6850. this.Value = string(randStringTypes(r))
  6851. if !easy && r.Intn(10) != 0 {
  6852. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  6853. }
  6854. return this
  6855. }
  6856. func NewPopulatedRequestInitChain(r randyTypes, easy bool) *RequestInitChain {
  6857. this := &RequestInitChain{}
  6858. v1 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  6859. this.Time = *v1
  6860. this.ChainId = string(randStringTypes(r))
  6861. if r.Intn(10) != 0 {
  6862. this.ConsensusParams = NewPopulatedConsensusParams(r, easy)
  6863. }
  6864. if r.Intn(10) != 0 {
  6865. v2 := r.Intn(5)
  6866. this.Validators = make([]ValidatorUpdate, v2)
  6867. for i := 0; i < v2; i++ {
  6868. v3 := NewPopulatedValidatorUpdate(r, easy)
  6869. this.Validators[i] = *v3
  6870. }
  6871. }
  6872. v4 := r.Intn(100)
  6873. this.AppStateBytes = make([]byte, v4)
  6874. for i := 0; i < v4; i++ {
  6875. this.AppStateBytes[i] = byte(r.Intn(256))
  6876. }
  6877. if !easy && r.Intn(10) != 0 {
  6878. this.XXX_unrecognized = randUnrecognizedTypes(r, 6)
  6879. }
  6880. return this
  6881. }
  6882. func NewPopulatedRequestQuery(r randyTypes, easy bool) *RequestQuery {
  6883. this := &RequestQuery{}
  6884. v5 := r.Intn(100)
  6885. this.Data = make([]byte, v5)
  6886. for i := 0; i < v5; i++ {
  6887. this.Data[i] = byte(r.Intn(256))
  6888. }
  6889. this.Path = string(randStringTypes(r))
  6890. this.Height = int64(r.Int63())
  6891. if r.Intn(2) == 0 {
  6892. this.Height *= -1
  6893. }
  6894. this.Prove = bool(bool(r.Intn(2) == 0))
  6895. if !easy && r.Intn(10) != 0 {
  6896. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  6897. }
  6898. return this
  6899. }
  6900. func NewPopulatedRequestBeginBlock(r randyTypes, easy bool) *RequestBeginBlock {
  6901. this := &RequestBeginBlock{}
  6902. v6 := r.Intn(100)
  6903. this.Hash = make([]byte, v6)
  6904. for i := 0; i < v6; i++ {
  6905. this.Hash[i] = byte(r.Intn(256))
  6906. }
  6907. v7 := NewPopulatedHeader(r, easy)
  6908. this.Header = *v7
  6909. v8 := NewPopulatedLastCommitInfo(r, easy)
  6910. this.LastCommitInfo = *v8
  6911. if r.Intn(10) != 0 {
  6912. v9 := r.Intn(5)
  6913. this.ByzantineValidators = make([]Evidence, v9)
  6914. for i := 0; i < v9; i++ {
  6915. v10 := NewPopulatedEvidence(r, easy)
  6916. this.ByzantineValidators[i] = *v10
  6917. }
  6918. }
  6919. if !easy && r.Intn(10) != 0 {
  6920. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  6921. }
  6922. return this
  6923. }
  6924. func NewPopulatedRequestCheckTx(r randyTypes, easy bool) *RequestCheckTx {
  6925. this := &RequestCheckTx{}
  6926. v11 := r.Intn(100)
  6927. this.Tx = make([]byte, v11)
  6928. for i := 0; i < v11; i++ {
  6929. this.Tx[i] = byte(r.Intn(256))
  6930. }
  6931. if !easy && r.Intn(10) != 0 {
  6932. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  6933. }
  6934. return this
  6935. }
  6936. func NewPopulatedRequestDeliverTx(r randyTypes, easy bool) *RequestDeliverTx {
  6937. this := &RequestDeliverTx{}
  6938. v12 := r.Intn(100)
  6939. this.Tx = make([]byte, v12)
  6940. for i := 0; i < v12; i++ {
  6941. this.Tx[i] = byte(r.Intn(256))
  6942. }
  6943. if !easy && r.Intn(10) != 0 {
  6944. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  6945. }
  6946. return this
  6947. }
  6948. func NewPopulatedRequestEndBlock(r randyTypes, easy bool) *RequestEndBlock {
  6949. this := &RequestEndBlock{}
  6950. this.Height = int64(r.Int63())
  6951. if r.Intn(2) == 0 {
  6952. this.Height *= -1
  6953. }
  6954. if !easy && r.Intn(10) != 0 {
  6955. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  6956. }
  6957. return this
  6958. }
  6959. func NewPopulatedRequestCommit(r randyTypes, easy bool) *RequestCommit {
  6960. this := &RequestCommit{}
  6961. if !easy && r.Intn(10) != 0 {
  6962. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  6963. }
  6964. return this
  6965. }
  6966. func NewPopulatedResponse(r randyTypes, easy bool) *Response {
  6967. this := &Response{}
  6968. oneofNumber_Value := []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(12)]
  6969. switch oneofNumber_Value {
  6970. case 1:
  6971. this.Value = NewPopulatedResponse_Exception(r, easy)
  6972. case 2:
  6973. this.Value = NewPopulatedResponse_Echo(r, easy)
  6974. case 3:
  6975. this.Value = NewPopulatedResponse_Flush(r, easy)
  6976. case 4:
  6977. this.Value = NewPopulatedResponse_Info(r, easy)
  6978. case 5:
  6979. this.Value = NewPopulatedResponse_SetOption(r, easy)
  6980. case 6:
  6981. this.Value = NewPopulatedResponse_InitChain(r, easy)
  6982. case 7:
  6983. this.Value = NewPopulatedResponse_Query(r, easy)
  6984. case 8:
  6985. this.Value = NewPopulatedResponse_BeginBlock(r, easy)
  6986. case 9:
  6987. this.Value = NewPopulatedResponse_CheckTx(r, easy)
  6988. case 10:
  6989. this.Value = NewPopulatedResponse_DeliverTx(r, easy)
  6990. case 11:
  6991. this.Value = NewPopulatedResponse_EndBlock(r, easy)
  6992. case 12:
  6993. this.Value = NewPopulatedResponse_Commit(r, easy)
  6994. }
  6995. if !easy && r.Intn(10) != 0 {
  6996. this.XXX_unrecognized = randUnrecognizedTypes(r, 13)
  6997. }
  6998. return this
  6999. }
  7000. func NewPopulatedResponse_Exception(r randyTypes, easy bool) *Response_Exception {
  7001. this := &Response_Exception{}
  7002. this.Exception = NewPopulatedResponseException(r, easy)
  7003. return this
  7004. }
  7005. func NewPopulatedResponse_Echo(r randyTypes, easy bool) *Response_Echo {
  7006. this := &Response_Echo{}
  7007. this.Echo = NewPopulatedResponseEcho(r, easy)
  7008. return this
  7009. }
  7010. func NewPopulatedResponse_Flush(r randyTypes, easy bool) *Response_Flush {
  7011. this := &Response_Flush{}
  7012. this.Flush = NewPopulatedResponseFlush(r, easy)
  7013. return this
  7014. }
  7015. func NewPopulatedResponse_Info(r randyTypes, easy bool) *Response_Info {
  7016. this := &Response_Info{}
  7017. this.Info = NewPopulatedResponseInfo(r, easy)
  7018. return this
  7019. }
  7020. func NewPopulatedResponse_SetOption(r randyTypes, easy bool) *Response_SetOption {
  7021. this := &Response_SetOption{}
  7022. this.SetOption = NewPopulatedResponseSetOption(r, easy)
  7023. return this
  7024. }
  7025. func NewPopulatedResponse_InitChain(r randyTypes, easy bool) *Response_InitChain {
  7026. this := &Response_InitChain{}
  7027. this.InitChain = NewPopulatedResponseInitChain(r, easy)
  7028. return this
  7029. }
  7030. func NewPopulatedResponse_Query(r randyTypes, easy bool) *Response_Query {
  7031. this := &Response_Query{}
  7032. this.Query = NewPopulatedResponseQuery(r, easy)
  7033. return this
  7034. }
  7035. func NewPopulatedResponse_BeginBlock(r randyTypes, easy bool) *Response_BeginBlock {
  7036. this := &Response_BeginBlock{}
  7037. this.BeginBlock = NewPopulatedResponseBeginBlock(r, easy)
  7038. return this
  7039. }
  7040. func NewPopulatedResponse_CheckTx(r randyTypes, easy bool) *Response_CheckTx {
  7041. this := &Response_CheckTx{}
  7042. this.CheckTx = NewPopulatedResponseCheckTx(r, easy)
  7043. return this
  7044. }
  7045. func NewPopulatedResponse_DeliverTx(r randyTypes, easy bool) *Response_DeliverTx {
  7046. this := &Response_DeliverTx{}
  7047. this.DeliverTx = NewPopulatedResponseDeliverTx(r, easy)
  7048. return this
  7049. }
  7050. func NewPopulatedResponse_EndBlock(r randyTypes, easy bool) *Response_EndBlock {
  7051. this := &Response_EndBlock{}
  7052. this.EndBlock = NewPopulatedResponseEndBlock(r, easy)
  7053. return this
  7054. }
  7055. func NewPopulatedResponse_Commit(r randyTypes, easy bool) *Response_Commit {
  7056. this := &Response_Commit{}
  7057. this.Commit = NewPopulatedResponseCommit(r, easy)
  7058. return this
  7059. }
  7060. func NewPopulatedResponseException(r randyTypes, easy bool) *ResponseException {
  7061. this := &ResponseException{}
  7062. this.Error = string(randStringTypes(r))
  7063. if !easy && r.Intn(10) != 0 {
  7064. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7065. }
  7066. return this
  7067. }
  7068. func NewPopulatedResponseEcho(r randyTypes, easy bool) *ResponseEcho {
  7069. this := &ResponseEcho{}
  7070. this.Message = string(randStringTypes(r))
  7071. if !easy && r.Intn(10) != 0 {
  7072. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7073. }
  7074. return this
  7075. }
  7076. func NewPopulatedResponseFlush(r randyTypes, easy bool) *ResponseFlush {
  7077. this := &ResponseFlush{}
  7078. if !easy && r.Intn(10) != 0 {
  7079. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  7080. }
  7081. return this
  7082. }
  7083. func NewPopulatedResponseInfo(r randyTypes, easy bool) *ResponseInfo {
  7084. this := &ResponseInfo{}
  7085. this.Data = string(randStringTypes(r))
  7086. this.Version = string(randStringTypes(r))
  7087. this.LastBlockHeight = int64(r.Int63())
  7088. if r.Intn(2) == 0 {
  7089. this.LastBlockHeight *= -1
  7090. }
  7091. v13 := r.Intn(100)
  7092. this.LastBlockAppHash = make([]byte, v13)
  7093. for i := 0; i < v13; i++ {
  7094. this.LastBlockAppHash[i] = byte(r.Intn(256))
  7095. }
  7096. if !easy && r.Intn(10) != 0 {
  7097. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  7098. }
  7099. return this
  7100. }
  7101. func NewPopulatedResponseSetOption(r randyTypes, easy bool) *ResponseSetOption {
  7102. this := &ResponseSetOption{}
  7103. this.Code = uint32(r.Uint32())
  7104. this.Log = string(randStringTypes(r))
  7105. this.Info = string(randStringTypes(r))
  7106. if !easy && r.Intn(10) != 0 {
  7107. this.XXX_unrecognized = randUnrecognizedTypes(r, 5)
  7108. }
  7109. return this
  7110. }
  7111. func NewPopulatedResponseInitChain(r randyTypes, easy bool) *ResponseInitChain {
  7112. this := &ResponseInitChain{}
  7113. if r.Intn(10) != 0 {
  7114. this.ConsensusParams = NewPopulatedConsensusParams(r, easy)
  7115. }
  7116. if r.Intn(10) != 0 {
  7117. v14 := r.Intn(5)
  7118. this.Validators = make([]ValidatorUpdate, v14)
  7119. for i := 0; i < v14; i++ {
  7120. v15 := NewPopulatedValidatorUpdate(r, easy)
  7121. this.Validators[i] = *v15
  7122. }
  7123. }
  7124. if !easy && r.Intn(10) != 0 {
  7125. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7126. }
  7127. return this
  7128. }
  7129. func NewPopulatedResponseQuery(r randyTypes, easy bool) *ResponseQuery {
  7130. this := &ResponseQuery{}
  7131. this.Code = uint32(r.Uint32())
  7132. this.Log = string(randStringTypes(r))
  7133. this.Info = string(randStringTypes(r))
  7134. this.Index = int64(r.Int63())
  7135. if r.Intn(2) == 0 {
  7136. this.Index *= -1
  7137. }
  7138. v16 := r.Intn(100)
  7139. this.Key = make([]byte, v16)
  7140. for i := 0; i < v16; i++ {
  7141. this.Key[i] = byte(r.Intn(256))
  7142. }
  7143. v17 := r.Intn(100)
  7144. this.Value = make([]byte, v17)
  7145. for i := 0; i < v17; i++ {
  7146. this.Value[i] = byte(r.Intn(256))
  7147. }
  7148. v18 := r.Intn(100)
  7149. this.Proof = make([]byte, v18)
  7150. for i := 0; i < v18; i++ {
  7151. this.Proof[i] = byte(r.Intn(256))
  7152. }
  7153. this.Height = int64(r.Int63())
  7154. if r.Intn(2) == 0 {
  7155. this.Height *= -1
  7156. }
  7157. if !easy && r.Intn(10) != 0 {
  7158. this.XXX_unrecognized = randUnrecognizedTypes(r, 10)
  7159. }
  7160. return this
  7161. }
  7162. func NewPopulatedResponseBeginBlock(r randyTypes, easy bool) *ResponseBeginBlock {
  7163. this := &ResponseBeginBlock{}
  7164. if r.Intn(10) != 0 {
  7165. v19 := r.Intn(5)
  7166. this.Tags = make([]common.KVPair, v19)
  7167. for i := 0; i < v19; i++ {
  7168. v20 := common.NewPopulatedKVPair(r, easy)
  7169. this.Tags[i] = *v20
  7170. }
  7171. }
  7172. if !easy && r.Intn(10) != 0 {
  7173. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7174. }
  7175. return this
  7176. }
  7177. func NewPopulatedResponseCheckTx(r randyTypes, easy bool) *ResponseCheckTx {
  7178. this := &ResponseCheckTx{}
  7179. this.Code = uint32(r.Uint32())
  7180. v21 := r.Intn(100)
  7181. this.Data = make([]byte, v21)
  7182. for i := 0; i < v21; i++ {
  7183. this.Data[i] = byte(r.Intn(256))
  7184. }
  7185. this.Log = string(randStringTypes(r))
  7186. this.Info = string(randStringTypes(r))
  7187. this.GasWanted = int64(r.Int63())
  7188. if r.Intn(2) == 0 {
  7189. this.GasWanted *= -1
  7190. }
  7191. this.GasUsed = int64(r.Int63())
  7192. if r.Intn(2) == 0 {
  7193. this.GasUsed *= -1
  7194. }
  7195. if r.Intn(10) != 0 {
  7196. v22 := r.Intn(5)
  7197. this.Tags = make([]common.KVPair, v22)
  7198. for i := 0; i < v22; i++ {
  7199. v23 := common.NewPopulatedKVPair(r, easy)
  7200. this.Tags[i] = *v23
  7201. }
  7202. }
  7203. if !easy && r.Intn(10) != 0 {
  7204. this.XXX_unrecognized = randUnrecognizedTypes(r, 8)
  7205. }
  7206. return this
  7207. }
  7208. func NewPopulatedResponseDeliverTx(r randyTypes, easy bool) *ResponseDeliverTx {
  7209. this := &ResponseDeliverTx{}
  7210. this.Code = uint32(r.Uint32())
  7211. v24 := r.Intn(100)
  7212. this.Data = make([]byte, v24)
  7213. for i := 0; i < v24; i++ {
  7214. this.Data[i] = byte(r.Intn(256))
  7215. }
  7216. this.Log = string(randStringTypes(r))
  7217. this.Info = string(randStringTypes(r))
  7218. this.GasWanted = int64(r.Int63())
  7219. if r.Intn(2) == 0 {
  7220. this.GasWanted *= -1
  7221. }
  7222. this.GasUsed = int64(r.Int63())
  7223. if r.Intn(2) == 0 {
  7224. this.GasUsed *= -1
  7225. }
  7226. if r.Intn(10) != 0 {
  7227. v25 := r.Intn(5)
  7228. this.Tags = make([]common.KVPair, v25)
  7229. for i := 0; i < v25; i++ {
  7230. v26 := common.NewPopulatedKVPair(r, easy)
  7231. this.Tags[i] = *v26
  7232. }
  7233. }
  7234. if !easy && r.Intn(10) != 0 {
  7235. this.XXX_unrecognized = randUnrecognizedTypes(r, 8)
  7236. }
  7237. return this
  7238. }
  7239. func NewPopulatedResponseEndBlock(r randyTypes, easy bool) *ResponseEndBlock {
  7240. this := &ResponseEndBlock{}
  7241. if r.Intn(10) != 0 {
  7242. v27 := r.Intn(5)
  7243. this.ValidatorUpdates = make([]ValidatorUpdate, v27)
  7244. for i := 0; i < v27; i++ {
  7245. v28 := NewPopulatedValidatorUpdate(r, easy)
  7246. this.ValidatorUpdates[i] = *v28
  7247. }
  7248. }
  7249. if r.Intn(10) != 0 {
  7250. this.ConsensusParamUpdates = NewPopulatedConsensusParams(r, easy)
  7251. }
  7252. if r.Intn(10) != 0 {
  7253. v29 := r.Intn(5)
  7254. this.Tags = make([]common.KVPair, v29)
  7255. for i := 0; i < v29; i++ {
  7256. v30 := common.NewPopulatedKVPair(r, easy)
  7257. this.Tags[i] = *v30
  7258. }
  7259. }
  7260. if !easy && r.Intn(10) != 0 {
  7261. this.XXX_unrecognized = randUnrecognizedTypes(r, 4)
  7262. }
  7263. return this
  7264. }
  7265. func NewPopulatedResponseCommit(r randyTypes, easy bool) *ResponseCommit {
  7266. this := &ResponseCommit{}
  7267. v31 := r.Intn(100)
  7268. this.Data = make([]byte, v31)
  7269. for i := 0; i < v31; i++ {
  7270. this.Data[i] = byte(r.Intn(256))
  7271. }
  7272. if !easy && r.Intn(10) != 0 {
  7273. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7274. }
  7275. return this
  7276. }
  7277. func NewPopulatedConsensusParams(r randyTypes, easy bool) *ConsensusParams {
  7278. this := &ConsensusParams{}
  7279. if r.Intn(10) != 0 {
  7280. this.BlockSize = NewPopulatedBlockSize(r, easy)
  7281. }
  7282. if r.Intn(10) != 0 {
  7283. this.EvidenceParams = NewPopulatedEvidenceParams(r, easy)
  7284. }
  7285. if !easy && r.Intn(10) != 0 {
  7286. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7287. }
  7288. return this
  7289. }
  7290. func NewPopulatedBlockSize(r randyTypes, easy bool) *BlockSize {
  7291. this := &BlockSize{}
  7292. this.MaxBytes = int64(r.Int63())
  7293. if r.Intn(2) == 0 {
  7294. this.MaxBytes *= -1
  7295. }
  7296. this.MaxGas = int64(r.Int63())
  7297. if r.Intn(2) == 0 {
  7298. this.MaxGas *= -1
  7299. }
  7300. if !easy && r.Intn(10) != 0 {
  7301. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7302. }
  7303. return this
  7304. }
  7305. func NewPopulatedEvidenceParams(r randyTypes, easy bool) *EvidenceParams {
  7306. this := &EvidenceParams{}
  7307. this.MaxAge = int64(r.Int63())
  7308. if r.Intn(2) == 0 {
  7309. this.MaxAge *= -1
  7310. }
  7311. if !easy && r.Intn(10) != 0 {
  7312. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  7313. }
  7314. return this
  7315. }
  7316. func NewPopulatedLastCommitInfo(r randyTypes, easy bool) *LastCommitInfo {
  7317. this := &LastCommitInfo{}
  7318. this.Round = int32(r.Int31())
  7319. if r.Intn(2) == 0 {
  7320. this.Round *= -1
  7321. }
  7322. if r.Intn(10) != 0 {
  7323. v32 := r.Intn(5)
  7324. this.Votes = make([]VoteInfo, v32)
  7325. for i := 0; i < v32; i++ {
  7326. v33 := NewPopulatedVoteInfo(r, easy)
  7327. this.Votes[i] = *v33
  7328. }
  7329. }
  7330. if !easy && r.Intn(10) != 0 {
  7331. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7332. }
  7333. return this
  7334. }
  7335. func NewPopulatedHeader(r randyTypes, easy bool) *Header {
  7336. this := &Header{}
  7337. this.ChainID = string(randStringTypes(r))
  7338. this.Height = int64(r.Int63())
  7339. if r.Intn(2) == 0 {
  7340. this.Height *= -1
  7341. }
  7342. v34 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  7343. this.Time = *v34
  7344. this.NumTxs = int64(r.Int63())
  7345. if r.Intn(2) == 0 {
  7346. this.NumTxs *= -1
  7347. }
  7348. this.TotalTxs = int64(r.Int63())
  7349. if r.Intn(2) == 0 {
  7350. this.TotalTxs *= -1
  7351. }
  7352. v35 := NewPopulatedBlockID(r, easy)
  7353. this.LastBlockId = *v35
  7354. v36 := r.Intn(100)
  7355. this.LastCommitHash = make([]byte, v36)
  7356. for i := 0; i < v36; i++ {
  7357. this.LastCommitHash[i] = byte(r.Intn(256))
  7358. }
  7359. v37 := r.Intn(100)
  7360. this.DataHash = make([]byte, v37)
  7361. for i := 0; i < v37; i++ {
  7362. this.DataHash[i] = byte(r.Intn(256))
  7363. }
  7364. v38 := r.Intn(100)
  7365. this.ValidatorsHash = make([]byte, v38)
  7366. for i := 0; i < v38; i++ {
  7367. this.ValidatorsHash[i] = byte(r.Intn(256))
  7368. }
  7369. v39 := r.Intn(100)
  7370. this.NextValidatorsHash = make([]byte, v39)
  7371. for i := 0; i < v39; i++ {
  7372. this.NextValidatorsHash[i] = byte(r.Intn(256))
  7373. }
  7374. v40 := r.Intn(100)
  7375. this.ConsensusHash = make([]byte, v40)
  7376. for i := 0; i < v40; i++ {
  7377. this.ConsensusHash[i] = byte(r.Intn(256))
  7378. }
  7379. v41 := r.Intn(100)
  7380. this.AppHash = make([]byte, v41)
  7381. for i := 0; i < v41; i++ {
  7382. this.AppHash[i] = byte(r.Intn(256))
  7383. }
  7384. v42 := r.Intn(100)
  7385. this.LastResultsHash = make([]byte, v42)
  7386. for i := 0; i < v42; i++ {
  7387. this.LastResultsHash[i] = byte(r.Intn(256))
  7388. }
  7389. v43 := r.Intn(100)
  7390. this.EvidenceHash = make([]byte, v43)
  7391. for i := 0; i < v43; i++ {
  7392. this.EvidenceHash[i] = byte(r.Intn(256))
  7393. }
  7394. v44 := r.Intn(100)
  7395. this.ProposerAddress = make([]byte, v44)
  7396. for i := 0; i < v44; i++ {
  7397. this.ProposerAddress[i] = byte(r.Intn(256))
  7398. }
  7399. if !easy && r.Intn(10) != 0 {
  7400. this.XXX_unrecognized = randUnrecognizedTypes(r, 16)
  7401. }
  7402. return this
  7403. }
  7404. func NewPopulatedBlockID(r randyTypes, easy bool) *BlockID {
  7405. this := &BlockID{}
  7406. v45 := r.Intn(100)
  7407. this.Hash = make([]byte, v45)
  7408. for i := 0; i < v45; i++ {
  7409. this.Hash[i] = byte(r.Intn(256))
  7410. }
  7411. v46 := NewPopulatedPartSetHeader(r, easy)
  7412. this.PartsHeader = *v46
  7413. if !easy && r.Intn(10) != 0 {
  7414. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7415. }
  7416. return this
  7417. }
  7418. func NewPopulatedPartSetHeader(r randyTypes, easy bool) *PartSetHeader {
  7419. this := &PartSetHeader{}
  7420. this.Total = int32(r.Int31())
  7421. if r.Intn(2) == 0 {
  7422. this.Total *= -1
  7423. }
  7424. v47 := r.Intn(100)
  7425. this.Hash = make([]byte, v47)
  7426. for i := 0; i < v47; i++ {
  7427. this.Hash[i] = byte(r.Intn(256))
  7428. }
  7429. if !easy && r.Intn(10) != 0 {
  7430. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7431. }
  7432. return this
  7433. }
  7434. func NewPopulatedValidator(r randyTypes, easy bool) *Validator {
  7435. this := &Validator{}
  7436. v48 := r.Intn(100)
  7437. this.Address = make([]byte, v48)
  7438. for i := 0; i < v48; i++ {
  7439. this.Address[i] = byte(r.Intn(256))
  7440. }
  7441. this.Power = int64(r.Int63())
  7442. if r.Intn(2) == 0 {
  7443. this.Power *= -1
  7444. }
  7445. if !easy && r.Intn(10) != 0 {
  7446. this.XXX_unrecognized = randUnrecognizedTypes(r, 4)
  7447. }
  7448. return this
  7449. }
  7450. func NewPopulatedValidatorUpdate(r randyTypes, easy bool) *ValidatorUpdate {
  7451. this := &ValidatorUpdate{}
  7452. v49 := NewPopulatedPubKey(r, easy)
  7453. this.PubKey = *v49
  7454. this.Power = int64(r.Int63())
  7455. if r.Intn(2) == 0 {
  7456. this.Power *= -1
  7457. }
  7458. if !easy && r.Intn(10) != 0 {
  7459. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7460. }
  7461. return this
  7462. }
  7463. func NewPopulatedVoteInfo(r randyTypes, easy bool) *VoteInfo {
  7464. this := &VoteInfo{}
  7465. v50 := NewPopulatedValidator(r, easy)
  7466. this.Validator = *v50
  7467. this.SignedLastBlock = bool(bool(r.Intn(2) == 0))
  7468. if !easy && r.Intn(10) != 0 {
  7469. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7470. }
  7471. return this
  7472. }
  7473. func NewPopulatedPubKey(r randyTypes, easy bool) *PubKey {
  7474. this := &PubKey{}
  7475. this.Type = string(randStringTypes(r))
  7476. v51 := r.Intn(100)
  7477. this.Data = make([]byte, v51)
  7478. for i := 0; i < v51; i++ {
  7479. this.Data[i] = byte(r.Intn(256))
  7480. }
  7481. if !easy && r.Intn(10) != 0 {
  7482. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  7483. }
  7484. return this
  7485. }
  7486. func NewPopulatedEvidence(r randyTypes, easy bool) *Evidence {
  7487. this := &Evidence{}
  7488. this.Type = string(randStringTypes(r))
  7489. v52 := NewPopulatedValidator(r, easy)
  7490. this.Validator = *v52
  7491. this.Height = int64(r.Int63())
  7492. if r.Intn(2) == 0 {
  7493. this.Height *= -1
  7494. }
  7495. v53 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  7496. this.Time = *v53
  7497. this.TotalVotingPower = int64(r.Int63())
  7498. if r.Intn(2) == 0 {
  7499. this.TotalVotingPower *= -1
  7500. }
  7501. if !easy && r.Intn(10) != 0 {
  7502. this.XXX_unrecognized = randUnrecognizedTypes(r, 6)
  7503. }
  7504. return this
  7505. }
  7506. type randyTypes interface {
  7507. Float32() float32
  7508. Float64() float64
  7509. Int63() int64
  7510. Int31() int32
  7511. Uint32() uint32
  7512. Intn(n int) int
  7513. }
  7514. func randUTF8RuneTypes(r randyTypes) rune {
  7515. ru := r.Intn(62)
  7516. if ru < 10 {
  7517. return rune(ru + 48)
  7518. } else if ru < 36 {
  7519. return rune(ru + 55)
  7520. }
  7521. return rune(ru + 61)
  7522. }
  7523. func randStringTypes(r randyTypes) string {
  7524. v54 := r.Intn(100)
  7525. tmps := make([]rune, v54)
  7526. for i := 0; i < v54; i++ {
  7527. tmps[i] = randUTF8RuneTypes(r)
  7528. }
  7529. return string(tmps)
  7530. }
  7531. func randUnrecognizedTypes(r randyTypes, maxFieldNumber int) (dAtA []byte) {
  7532. l := r.Intn(5)
  7533. for i := 0; i < l; i++ {
  7534. wire := r.Intn(4)
  7535. if wire == 3 {
  7536. wire = 5
  7537. }
  7538. fieldNumber := maxFieldNumber + r.Intn(100)
  7539. dAtA = randFieldTypes(dAtA, r, fieldNumber, wire)
  7540. }
  7541. return dAtA
  7542. }
  7543. func randFieldTypes(dAtA []byte, r randyTypes, fieldNumber int, wire int) []byte {
  7544. key := uint32(fieldNumber)<<3 | uint32(wire)
  7545. switch wire {
  7546. case 0:
  7547. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7548. v55 := r.Int63()
  7549. if r.Intn(2) == 0 {
  7550. v55 *= -1
  7551. }
  7552. dAtA = encodeVarintPopulateTypes(dAtA, uint64(v55))
  7553. case 1:
  7554. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7555. 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)))
  7556. case 2:
  7557. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7558. ll := r.Intn(100)
  7559. dAtA = encodeVarintPopulateTypes(dAtA, uint64(ll))
  7560. for j := 0; j < ll; j++ {
  7561. dAtA = append(dAtA, byte(r.Intn(256)))
  7562. }
  7563. default:
  7564. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  7565. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  7566. }
  7567. return dAtA
  7568. }
  7569. func encodeVarintPopulateTypes(dAtA []byte, v uint64) []byte {
  7570. for v >= 1<<7 {
  7571. dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  7572. v >>= 7
  7573. }
  7574. dAtA = append(dAtA, uint8(v))
  7575. return dAtA
  7576. }
  7577. func (m *Request) Size() (n int) {
  7578. if m == nil {
  7579. return 0
  7580. }
  7581. var l int
  7582. _ = l
  7583. if m.Value != nil {
  7584. n += m.Value.Size()
  7585. }
  7586. if m.XXX_unrecognized != nil {
  7587. n += len(m.XXX_unrecognized)
  7588. }
  7589. return n
  7590. }
  7591. func (m *Request_Echo) Size() (n int) {
  7592. if m == nil {
  7593. return 0
  7594. }
  7595. var l int
  7596. _ = l
  7597. if m.Echo != nil {
  7598. l = m.Echo.Size()
  7599. n += 1 + l + sovTypes(uint64(l))
  7600. }
  7601. return n
  7602. }
  7603. func (m *Request_Flush) Size() (n int) {
  7604. if m == nil {
  7605. return 0
  7606. }
  7607. var l int
  7608. _ = l
  7609. if m.Flush != nil {
  7610. l = m.Flush.Size()
  7611. n += 1 + l + sovTypes(uint64(l))
  7612. }
  7613. return n
  7614. }
  7615. func (m *Request_Info) Size() (n int) {
  7616. if m == nil {
  7617. return 0
  7618. }
  7619. var l int
  7620. _ = l
  7621. if m.Info != nil {
  7622. l = m.Info.Size()
  7623. n += 1 + l + sovTypes(uint64(l))
  7624. }
  7625. return n
  7626. }
  7627. func (m *Request_SetOption) Size() (n int) {
  7628. if m == nil {
  7629. return 0
  7630. }
  7631. var l int
  7632. _ = l
  7633. if m.SetOption != nil {
  7634. l = m.SetOption.Size()
  7635. n += 1 + l + sovTypes(uint64(l))
  7636. }
  7637. return n
  7638. }
  7639. func (m *Request_InitChain) Size() (n int) {
  7640. if m == nil {
  7641. return 0
  7642. }
  7643. var l int
  7644. _ = l
  7645. if m.InitChain != nil {
  7646. l = m.InitChain.Size()
  7647. n += 1 + l + sovTypes(uint64(l))
  7648. }
  7649. return n
  7650. }
  7651. func (m *Request_Query) Size() (n int) {
  7652. if m == nil {
  7653. return 0
  7654. }
  7655. var l int
  7656. _ = l
  7657. if m.Query != nil {
  7658. l = m.Query.Size()
  7659. n += 1 + l + sovTypes(uint64(l))
  7660. }
  7661. return n
  7662. }
  7663. func (m *Request_BeginBlock) Size() (n int) {
  7664. if m == nil {
  7665. return 0
  7666. }
  7667. var l int
  7668. _ = l
  7669. if m.BeginBlock != nil {
  7670. l = m.BeginBlock.Size()
  7671. n += 1 + l + sovTypes(uint64(l))
  7672. }
  7673. return n
  7674. }
  7675. func (m *Request_CheckTx) Size() (n int) {
  7676. if m == nil {
  7677. return 0
  7678. }
  7679. var l int
  7680. _ = l
  7681. if m.CheckTx != nil {
  7682. l = m.CheckTx.Size()
  7683. n += 1 + l + sovTypes(uint64(l))
  7684. }
  7685. return n
  7686. }
  7687. func (m *Request_EndBlock) Size() (n int) {
  7688. if m == nil {
  7689. return 0
  7690. }
  7691. var l int
  7692. _ = l
  7693. if m.EndBlock != nil {
  7694. l = m.EndBlock.Size()
  7695. n += 1 + l + sovTypes(uint64(l))
  7696. }
  7697. return n
  7698. }
  7699. func (m *Request_Commit) Size() (n int) {
  7700. if m == nil {
  7701. return 0
  7702. }
  7703. var l int
  7704. _ = l
  7705. if m.Commit != nil {
  7706. l = m.Commit.Size()
  7707. n += 1 + l + sovTypes(uint64(l))
  7708. }
  7709. return n
  7710. }
  7711. func (m *Request_DeliverTx) Size() (n int) {
  7712. if m == nil {
  7713. return 0
  7714. }
  7715. var l int
  7716. _ = l
  7717. if m.DeliverTx != nil {
  7718. l = m.DeliverTx.Size()
  7719. n += 2 + l + sovTypes(uint64(l))
  7720. }
  7721. return n
  7722. }
  7723. func (m *RequestEcho) Size() (n int) {
  7724. if m == nil {
  7725. return 0
  7726. }
  7727. var l int
  7728. _ = l
  7729. l = len(m.Message)
  7730. if l > 0 {
  7731. n += 1 + l + sovTypes(uint64(l))
  7732. }
  7733. if m.XXX_unrecognized != nil {
  7734. n += len(m.XXX_unrecognized)
  7735. }
  7736. return n
  7737. }
  7738. func (m *RequestFlush) Size() (n int) {
  7739. if m == nil {
  7740. return 0
  7741. }
  7742. var l int
  7743. _ = l
  7744. if m.XXX_unrecognized != nil {
  7745. n += len(m.XXX_unrecognized)
  7746. }
  7747. return n
  7748. }
  7749. func (m *RequestInfo) Size() (n int) {
  7750. if m == nil {
  7751. return 0
  7752. }
  7753. var l int
  7754. _ = l
  7755. l = len(m.Version)
  7756. if l > 0 {
  7757. n += 1 + l + sovTypes(uint64(l))
  7758. }
  7759. if m.XXX_unrecognized != nil {
  7760. n += len(m.XXX_unrecognized)
  7761. }
  7762. return n
  7763. }
  7764. func (m *RequestSetOption) Size() (n int) {
  7765. if m == nil {
  7766. return 0
  7767. }
  7768. var l int
  7769. _ = l
  7770. l = len(m.Key)
  7771. if l > 0 {
  7772. n += 1 + l + sovTypes(uint64(l))
  7773. }
  7774. l = len(m.Value)
  7775. if l > 0 {
  7776. n += 1 + l + sovTypes(uint64(l))
  7777. }
  7778. if m.XXX_unrecognized != nil {
  7779. n += len(m.XXX_unrecognized)
  7780. }
  7781. return n
  7782. }
  7783. func (m *RequestInitChain) Size() (n int) {
  7784. if m == nil {
  7785. return 0
  7786. }
  7787. var l int
  7788. _ = l
  7789. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  7790. n += 1 + l + sovTypes(uint64(l))
  7791. l = len(m.ChainId)
  7792. if l > 0 {
  7793. n += 1 + l + sovTypes(uint64(l))
  7794. }
  7795. if m.ConsensusParams != nil {
  7796. l = m.ConsensusParams.Size()
  7797. n += 1 + l + sovTypes(uint64(l))
  7798. }
  7799. if len(m.Validators) > 0 {
  7800. for _, e := range m.Validators {
  7801. l = e.Size()
  7802. n += 1 + l + sovTypes(uint64(l))
  7803. }
  7804. }
  7805. l = len(m.AppStateBytes)
  7806. if l > 0 {
  7807. n += 1 + l + sovTypes(uint64(l))
  7808. }
  7809. if m.XXX_unrecognized != nil {
  7810. n += len(m.XXX_unrecognized)
  7811. }
  7812. return n
  7813. }
  7814. func (m *RequestQuery) Size() (n int) {
  7815. if m == nil {
  7816. return 0
  7817. }
  7818. var l int
  7819. _ = l
  7820. l = len(m.Data)
  7821. if l > 0 {
  7822. n += 1 + l + sovTypes(uint64(l))
  7823. }
  7824. l = len(m.Path)
  7825. if l > 0 {
  7826. n += 1 + l + sovTypes(uint64(l))
  7827. }
  7828. if m.Height != 0 {
  7829. n += 1 + sovTypes(uint64(m.Height))
  7830. }
  7831. if m.Prove {
  7832. n += 2
  7833. }
  7834. if m.XXX_unrecognized != nil {
  7835. n += len(m.XXX_unrecognized)
  7836. }
  7837. return n
  7838. }
  7839. func (m *RequestBeginBlock) Size() (n int) {
  7840. if m == nil {
  7841. return 0
  7842. }
  7843. var l int
  7844. _ = l
  7845. l = len(m.Hash)
  7846. if l > 0 {
  7847. n += 1 + l + sovTypes(uint64(l))
  7848. }
  7849. l = m.Header.Size()
  7850. n += 1 + l + sovTypes(uint64(l))
  7851. l = m.LastCommitInfo.Size()
  7852. n += 1 + l + sovTypes(uint64(l))
  7853. if len(m.ByzantineValidators) > 0 {
  7854. for _, e := range m.ByzantineValidators {
  7855. l = e.Size()
  7856. n += 1 + l + sovTypes(uint64(l))
  7857. }
  7858. }
  7859. if m.XXX_unrecognized != nil {
  7860. n += len(m.XXX_unrecognized)
  7861. }
  7862. return n
  7863. }
  7864. func (m *RequestCheckTx) Size() (n int) {
  7865. if m == nil {
  7866. return 0
  7867. }
  7868. var l int
  7869. _ = l
  7870. l = len(m.Tx)
  7871. if l > 0 {
  7872. n += 1 + l + sovTypes(uint64(l))
  7873. }
  7874. if m.XXX_unrecognized != nil {
  7875. n += len(m.XXX_unrecognized)
  7876. }
  7877. return n
  7878. }
  7879. func (m *RequestDeliverTx) Size() (n int) {
  7880. if m == nil {
  7881. return 0
  7882. }
  7883. var l int
  7884. _ = l
  7885. l = len(m.Tx)
  7886. if l > 0 {
  7887. n += 1 + l + sovTypes(uint64(l))
  7888. }
  7889. if m.XXX_unrecognized != nil {
  7890. n += len(m.XXX_unrecognized)
  7891. }
  7892. return n
  7893. }
  7894. func (m *RequestEndBlock) Size() (n int) {
  7895. if m == nil {
  7896. return 0
  7897. }
  7898. var l int
  7899. _ = l
  7900. if m.Height != 0 {
  7901. n += 1 + sovTypes(uint64(m.Height))
  7902. }
  7903. if m.XXX_unrecognized != nil {
  7904. n += len(m.XXX_unrecognized)
  7905. }
  7906. return n
  7907. }
  7908. func (m *RequestCommit) Size() (n int) {
  7909. if m == nil {
  7910. return 0
  7911. }
  7912. var l int
  7913. _ = l
  7914. if m.XXX_unrecognized != nil {
  7915. n += len(m.XXX_unrecognized)
  7916. }
  7917. return n
  7918. }
  7919. func (m *Response) Size() (n int) {
  7920. if m == nil {
  7921. return 0
  7922. }
  7923. var l int
  7924. _ = l
  7925. if m.Value != nil {
  7926. n += m.Value.Size()
  7927. }
  7928. if m.XXX_unrecognized != nil {
  7929. n += len(m.XXX_unrecognized)
  7930. }
  7931. return n
  7932. }
  7933. func (m *Response_Exception) Size() (n int) {
  7934. if m == nil {
  7935. return 0
  7936. }
  7937. var l int
  7938. _ = l
  7939. if m.Exception != nil {
  7940. l = m.Exception.Size()
  7941. n += 1 + l + sovTypes(uint64(l))
  7942. }
  7943. return n
  7944. }
  7945. func (m *Response_Echo) Size() (n int) {
  7946. if m == nil {
  7947. return 0
  7948. }
  7949. var l int
  7950. _ = l
  7951. if m.Echo != nil {
  7952. l = m.Echo.Size()
  7953. n += 1 + l + sovTypes(uint64(l))
  7954. }
  7955. return n
  7956. }
  7957. func (m *Response_Flush) Size() (n int) {
  7958. if m == nil {
  7959. return 0
  7960. }
  7961. var l int
  7962. _ = l
  7963. if m.Flush != nil {
  7964. l = m.Flush.Size()
  7965. n += 1 + l + sovTypes(uint64(l))
  7966. }
  7967. return n
  7968. }
  7969. func (m *Response_Info) Size() (n int) {
  7970. if m == nil {
  7971. return 0
  7972. }
  7973. var l int
  7974. _ = l
  7975. if m.Info != nil {
  7976. l = m.Info.Size()
  7977. n += 1 + l + sovTypes(uint64(l))
  7978. }
  7979. return n
  7980. }
  7981. func (m *Response_SetOption) Size() (n int) {
  7982. if m == nil {
  7983. return 0
  7984. }
  7985. var l int
  7986. _ = l
  7987. if m.SetOption != nil {
  7988. l = m.SetOption.Size()
  7989. n += 1 + l + sovTypes(uint64(l))
  7990. }
  7991. return n
  7992. }
  7993. func (m *Response_InitChain) Size() (n int) {
  7994. if m == nil {
  7995. return 0
  7996. }
  7997. var l int
  7998. _ = l
  7999. if m.InitChain != nil {
  8000. l = m.InitChain.Size()
  8001. n += 1 + l + sovTypes(uint64(l))
  8002. }
  8003. return n
  8004. }
  8005. func (m *Response_Query) Size() (n int) {
  8006. if m == nil {
  8007. return 0
  8008. }
  8009. var l int
  8010. _ = l
  8011. if m.Query != nil {
  8012. l = m.Query.Size()
  8013. n += 1 + l + sovTypes(uint64(l))
  8014. }
  8015. return n
  8016. }
  8017. func (m *Response_BeginBlock) Size() (n int) {
  8018. if m == nil {
  8019. return 0
  8020. }
  8021. var l int
  8022. _ = l
  8023. if m.BeginBlock != nil {
  8024. l = m.BeginBlock.Size()
  8025. n += 1 + l + sovTypes(uint64(l))
  8026. }
  8027. return n
  8028. }
  8029. func (m *Response_CheckTx) Size() (n int) {
  8030. if m == nil {
  8031. return 0
  8032. }
  8033. var l int
  8034. _ = l
  8035. if m.CheckTx != nil {
  8036. l = m.CheckTx.Size()
  8037. n += 1 + l + sovTypes(uint64(l))
  8038. }
  8039. return n
  8040. }
  8041. func (m *Response_DeliverTx) Size() (n int) {
  8042. if m == nil {
  8043. return 0
  8044. }
  8045. var l int
  8046. _ = l
  8047. if m.DeliverTx != nil {
  8048. l = m.DeliverTx.Size()
  8049. n += 1 + l + sovTypes(uint64(l))
  8050. }
  8051. return n
  8052. }
  8053. func (m *Response_EndBlock) Size() (n int) {
  8054. if m == nil {
  8055. return 0
  8056. }
  8057. var l int
  8058. _ = l
  8059. if m.EndBlock != nil {
  8060. l = m.EndBlock.Size()
  8061. n += 1 + l + sovTypes(uint64(l))
  8062. }
  8063. return n
  8064. }
  8065. func (m *Response_Commit) Size() (n int) {
  8066. if m == nil {
  8067. return 0
  8068. }
  8069. var l int
  8070. _ = l
  8071. if m.Commit != nil {
  8072. l = m.Commit.Size()
  8073. n += 1 + l + sovTypes(uint64(l))
  8074. }
  8075. return n
  8076. }
  8077. func (m *ResponseException) Size() (n int) {
  8078. if m == nil {
  8079. return 0
  8080. }
  8081. var l int
  8082. _ = l
  8083. l = len(m.Error)
  8084. if l > 0 {
  8085. n += 1 + l + sovTypes(uint64(l))
  8086. }
  8087. if m.XXX_unrecognized != nil {
  8088. n += len(m.XXX_unrecognized)
  8089. }
  8090. return n
  8091. }
  8092. func (m *ResponseEcho) Size() (n int) {
  8093. if m == nil {
  8094. return 0
  8095. }
  8096. var l int
  8097. _ = l
  8098. l = len(m.Message)
  8099. if l > 0 {
  8100. n += 1 + l + sovTypes(uint64(l))
  8101. }
  8102. if m.XXX_unrecognized != nil {
  8103. n += len(m.XXX_unrecognized)
  8104. }
  8105. return n
  8106. }
  8107. func (m *ResponseFlush) Size() (n int) {
  8108. if m == nil {
  8109. return 0
  8110. }
  8111. var l int
  8112. _ = l
  8113. if m.XXX_unrecognized != nil {
  8114. n += len(m.XXX_unrecognized)
  8115. }
  8116. return n
  8117. }
  8118. func (m *ResponseInfo) Size() (n int) {
  8119. if m == nil {
  8120. return 0
  8121. }
  8122. var l int
  8123. _ = l
  8124. l = len(m.Data)
  8125. if l > 0 {
  8126. n += 1 + l + sovTypes(uint64(l))
  8127. }
  8128. l = len(m.Version)
  8129. if l > 0 {
  8130. n += 1 + l + sovTypes(uint64(l))
  8131. }
  8132. if m.LastBlockHeight != 0 {
  8133. n += 1 + sovTypes(uint64(m.LastBlockHeight))
  8134. }
  8135. l = len(m.LastBlockAppHash)
  8136. if l > 0 {
  8137. n += 1 + l + sovTypes(uint64(l))
  8138. }
  8139. if m.XXX_unrecognized != nil {
  8140. n += len(m.XXX_unrecognized)
  8141. }
  8142. return n
  8143. }
  8144. func (m *ResponseSetOption) Size() (n int) {
  8145. if m == nil {
  8146. return 0
  8147. }
  8148. var l int
  8149. _ = l
  8150. if m.Code != 0 {
  8151. n += 1 + sovTypes(uint64(m.Code))
  8152. }
  8153. l = len(m.Log)
  8154. if l > 0 {
  8155. n += 1 + l + sovTypes(uint64(l))
  8156. }
  8157. l = len(m.Info)
  8158. if l > 0 {
  8159. n += 1 + l + sovTypes(uint64(l))
  8160. }
  8161. if m.XXX_unrecognized != nil {
  8162. n += len(m.XXX_unrecognized)
  8163. }
  8164. return n
  8165. }
  8166. func (m *ResponseInitChain) Size() (n int) {
  8167. if m == nil {
  8168. return 0
  8169. }
  8170. var l int
  8171. _ = l
  8172. if m.ConsensusParams != nil {
  8173. l = m.ConsensusParams.Size()
  8174. n += 1 + l + sovTypes(uint64(l))
  8175. }
  8176. if len(m.Validators) > 0 {
  8177. for _, e := range m.Validators {
  8178. l = e.Size()
  8179. n += 1 + l + sovTypes(uint64(l))
  8180. }
  8181. }
  8182. if m.XXX_unrecognized != nil {
  8183. n += len(m.XXX_unrecognized)
  8184. }
  8185. return n
  8186. }
  8187. func (m *ResponseQuery) Size() (n int) {
  8188. if m == nil {
  8189. return 0
  8190. }
  8191. var l int
  8192. _ = l
  8193. if m.Code != 0 {
  8194. n += 1 + sovTypes(uint64(m.Code))
  8195. }
  8196. l = len(m.Log)
  8197. if l > 0 {
  8198. n += 1 + l + sovTypes(uint64(l))
  8199. }
  8200. l = len(m.Info)
  8201. if l > 0 {
  8202. n += 1 + l + sovTypes(uint64(l))
  8203. }
  8204. if m.Index != 0 {
  8205. n += 1 + sovTypes(uint64(m.Index))
  8206. }
  8207. l = len(m.Key)
  8208. if l > 0 {
  8209. n += 1 + l + sovTypes(uint64(l))
  8210. }
  8211. l = len(m.Value)
  8212. if l > 0 {
  8213. n += 1 + l + sovTypes(uint64(l))
  8214. }
  8215. l = len(m.Proof)
  8216. if l > 0 {
  8217. n += 1 + l + sovTypes(uint64(l))
  8218. }
  8219. if m.Height != 0 {
  8220. n += 1 + sovTypes(uint64(m.Height))
  8221. }
  8222. if m.XXX_unrecognized != nil {
  8223. n += len(m.XXX_unrecognized)
  8224. }
  8225. return n
  8226. }
  8227. func (m *ResponseBeginBlock) Size() (n int) {
  8228. if m == nil {
  8229. return 0
  8230. }
  8231. var l int
  8232. _ = l
  8233. if len(m.Tags) > 0 {
  8234. for _, e := range m.Tags {
  8235. l = e.Size()
  8236. n += 1 + l + sovTypes(uint64(l))
  8237. }
  8238. }
  8239. if m.XXX_unrecognized != nil {
  8240. n += len(m.XXX_unrecognized)
  8241. }
  8242. return n
  8243. }
  8244. func (m *ResponseCheckTx) Size() (n int) {
  8245. if m == nil {
  8246. return 0
  8247. }
  8248. var l int
  8249. _ = l
  8250. if m.Code != 0 {
  8251. n += 1 + sovTypes(uint64(m.Code))
  8252. }
  8253. l = len(m.Data)
  8254. if l > 0 {
  8255. n += 1 + l + sovTypes(uint64(l))
  8256. }
  8257. l = len(m.Log)
  8258. if l > 0 {
  8259. n += 1 + l + sovTypes(uint64(l))
  8260. }
  8261. l = len(m.Info)
  8262. if l > 0 {
  8263. n += 1 + l + sovTypes(uint64(l))
  8264. }
  8265. if m.GasWanted != 0 {
  8266. n += 1 + sovTypes(uint64(m.GasWanted))
  8267. }
  8268. if m.GasUsed != 0 {
  8269. n += 1 + sovTypes(uint64(m.GasUsed))
  8270. }
  8271. if len(m.Tags) > 0 {
  8272. for _, e := range m.Tags {
  8273. l = e.Size()
  8274. n += 1 + l + sovTypes(uint64(l))
  8275. }
  8276. }
  8277. if m.XXX_unrecognized != nil {
  8278. n += len(m.XXX_unrecognized)
  8279. }
  8280. return n
  8281. }
  8282. func (m *ResponseDeliverTx) Size() (n int) {
  8283. if m == nil {
  8284. return 0
  8285. }
  8286. var l int
  8287. _ = l
  8288. if m.Code != 0 {
  8289. n += 1 + sovTypes(uint64(m.Code))
  8290. }
  8291. l = len(m.Data)
  8292. if l > 0 {
  8293. n += 1 + l + sovTypes(uint64(l))
  8294. }
  8295. l = len(m.Log)
  8296. if l > 0 {
  8297. n += 1 + l + sovTypes(uint64(l))
  8298. }
  8299. l = len(m.Info)
  8300. if l > 0 {
  8301. n += 1 + l + sovTypes(uint64(l))
  8302. }
  8303. if m.GasWanted != 0 {
  8304. n += 1 + sovTypes(uint64(m.GasWanted))
  8305. }
  8306. if m.GasUsed != 0 {
  8307. n += 1 + sovTypes(uint64(m.GasUsed))
  8308. }
  8309. if len(m.Tags) > 0 {
  8310. for _, e := range m.Tags {
  8311. l = e.Size()
  8312. n += 1 + l + sovTypes(uint64(l))
  8313. }
  8314. }
  8315. if m.XXX_unrecognized != nil {
  8316. n += len(m.XXX_unrecognized)
  8317. }
  8318. return n
  8319. }
  8320. func (m *ResponseEndBlock) Size() (n int) {
  8321. if m == nil {
  8322. return 0
  8323. }
  8324. var l int
  8325. _ = l
  8326. if len(m.ValidatorUpdates) > 0 {
  8327. for _, e := range m.ValidatorUpdates {
  8328. l = e.Size()
  8329. n += 1 + l + sovTypes(uint64(l))
  8330. }
  8331. }
  8332. if m.ConsensusParamUpdates != nil {
  8333. l = m.ConsensusParamUpdates.Size()
  8334. n += 1 + l + sovTypes(uint64(l))
  8335. }
  8336. if len(m.Tags) > 0 {
  8337. for _, e := range m.Tags {
  8338. l = e.Size()
  8339. n += 1 + l + sovTypes(uint64(l))
  8340. }
  8341. }
  8342. if m.XXX_unrecognized != nil {
  8343. n += len(m.XXX_unrecognized)
  8344. }
  8345. return n
  8346. }
  8347. func (m *ResponseCommit) Size() (n int) {
  8348. if m == nil {
  8349. return 0
  8350. }
  8351. var l int
  8352. _ = l
  8353. l = len(m.Data)
  8354. if l > 0 {
  8355. n += 1 + l + sovTypes(uint64(l))
  8356. }
  8357. if m.XXX_unrecognized != nil {
  8358. n += len(m.XXX_unrecognized)
  8359. }
  8360. return n
  8361. }
  8362. func (m *ConsensusParams) Size() (n int) {
  8363. if m == nil {
  8364. return 0
  8365. }
  8366. var l int
  8367. _ = l
  8368. if m.BlockSize != nil {
  8369. l = m.BlockSize.Size()
  8370. n += 1 + l + sovTypes(uint64(l))
  8371. }
  8372. if m.EvidenceParams != nil {
  8373. l = m.EvidenceParams.Size()
  8374. n += 1 + l + sovTypes(uint64(l))
  8375. }
  8376. if m.XXX_unrecognized != nil {
  8377. n += len(m.XXX_unrecognized)
  8378. }
  8379. return n
  8380. }
  8381. func (m *BlockSize) Size() (n int) {
  8382. if m == nil {
  8383. return 0
  8384. }
  8385. var l int
  8386. _ = l
  8387. if m.MaxBytes != 0 {
  8388. n += 1 + sovTypes(uint64(m.MaxBytes))
  8389. }
  8390. if m.MaxGas != 0 {
  8391. n += 1 + sovTypes(uint64(m.MaxGas))
  8392. }
  8393. if m.XXX_unrecognized != nil {
  8394. n += len(m.XXX_unrecognized)
  8395. }
  8396. return n
  8397. }
  8398. func (m *EvidenceParams) Size() (n int) {
  8399. if m == nil {
  8400. return 0
  8401. }
  8402. var l int
  8403. _ = l
  8404. if m.MaxAge != 0 {
  8405. n += 1 + sovTypes(uint64(m.MaxAge))
  8406. }
  8407. if m.XXX_unrecognized != nil {
  8408. n += len(m.XXX_unrecognized)
  8409. }
  8410. return n
  8411. }
  8412. func (m *LastCommitInfo) Size() (n int) {
  8413. if m == nil {
  8414. return 0
  8415. }
  8416. var l int
  8417. _ = l
  8418. if m.Round != 0 {
  8419. n += 1 + sovTypes(uint64(m.Round))
  8420. }
  8421. if len(m.Votes) > 0 {
  8422. for _, e := range m.Votes {
  8423. l = e.Size()
  8424. n += 1 + l + sovTypes(uint64(l))
  8425. }
  8426. }
  8427. if m.XXX_unrecognized != nil {
  8428. n += len(m.XXX_unrecognized)
  8429. }
  8430. return n
  8431. }
  8432. func (m *Header) Size() (n int) {
  8433. if m == nil {
  8434. return 0
  8435. }
  8436. var l int
  8437. _ = l
  8438. l = len(m.ChainID)
  8439. if l > 0 {
  8440. n += 1 + l + sovTypes(uint64(l))
  8441. }
  8442. if m.Height != 0 {
  8443. n += 1 + sovTypes(uint64(m.Height))
  8444. }
  8445. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  8446. n += 1 + l + sovTypes(uint64(l))
  8447. if m.NumTxs != 0 {
  8448. n += 1 + sovTypes(uint64(m.NumTxs))
  8449. }
  8450. if m.TotalTxs != 0 {
  8451. n += 1 + sovTypes(uint64(m.TotalTxs))
  8452. }
  8453. l = m.LastBlockId.Size()
  8454. n += 1 + l + sovTypes(uint64(l))
  8455. l = len(m.LastCommitHash)
  8456. if l > 0 {
  8457. n += 1 + l + sovTypes(uint64(l))
  8458. }
  8459. l = len(m.DataHash)
  8460. if l > 0 {
  8461. n += 1 + l + sovTypes(uint64(l))
  8462. }
  8463. l = len(m.ValidatorsHash)
  8464. if l > 0 {
  8465. n += 1 + l + sovTypes(uint64(l))
  8466. }
  8467. l = len(m.NextValidatorsHash)
  8468. if l > 0 {
  8469. n += 1 + l + sovTypes(uint64(l))
  8470. }
  8471. l = len(m.ConsensusHash)
  8472. if l > 0 {
  8473. n += 1 + l + sovTypes(uint64(l))
  8474. }
  8475. l = len(m.AppHash)
  8476. if l > 0 {
  8477. n += 1 + l + sovTypes(uint64(l))
  8478. }
  8479. l = len(m.LastResultsHash)
  8480. if l > 0 {
  8481. n += 1 + l + sovTypes(uint64(l))
  8482. }
  8483. l = len(m.EvidenceHash)
  8484. if l > 0 {
  8485. n += 1 + l + sovTypes(uint64(l))
  8486. }
  8487. l = len(m.ProposerAddress)
  8488. if l > 0 {
  8489. n += 1 + l + sovTypes(uint64(l))
  8490. }
  8491. if m.XXX_unrecognized != nil {
  8492. n += len(m.XXX_unrecognized)
  8493. }
  8494. return n
  8495. }
  8496. func (m *BlockID) Size() (n int) {
  8497. if m == nil {
  8498. return 0
  8499. }
  8500. var l int
  8501. _ = l
  8502. l = len(m.Hash)
  8503. if l > 0 {
  8504. n += 1 + l + sovTypes(uint64(l))
  8505. }
  8506. l = m.PartsHeader.Size()
  8507. n += 1 + l + sovTypes(uint64(l))
  8508. if m.XXX_unrecognized != nil {
  8509. n += len(m.XXX_unrecognized)
  8510. }
  8511. return n
  8512. }
  8513. func (m *PartSetHeader) Size() (n int) {
  8514. if m == nil {
  8515. return 0
  8516. }
  8517. var l int
  8518. _ = l
  8519. if m.Total != 0 {
  8520. n += 1 + sovTypes(uint64(m.Total))
  8521. }
  8522. l = len(m.Hash)
  8523. if l > 0 {
  8524. n += 1 + l + sovTypes(uint64(l))
  8525. }
  8526. if m.XXX_unrecognized != nil {
  8527. n += len(m.XXX_unrecognized)
  8528. }
  8529. return n
  8530. }
  8531. func (m *Validator) Size() (n int) {
  8532. if m == nil {
  8533. return 0
  8534. }
  8535. var l int
  8536. _ = l
  8537. l = len(m.Address)
  8538. if l > 0 {
  8539. n += 1 + l + sovTypes(uint64(l))
  8540. }
  8541. if m.Power != 0 {
  8542. n += 1 + sovTypes(uint64(m.Power))
  8543. }
  8544. if m.XXX_unrecognized != nil {
  8545. n += len(m.XXX_unrecognized)
  8546. }
  8547. return n
  8548. }
  8549. func (m *ValidatorUpdate) Size() (n int) {
  8550. if m == nil {
  8551. return 0
  8552. }
  8553. var l int
  8554. _ = l
  8555. l = m.PubKey.Size()
  8556. n += 1 + l + sovTypes(uint64(l))
  8557. if m.Power != 0 {
  8558. n += 1 + sovTypes(uint64(m.Power))
  8559. }
  8560. if m.XXX_unrecognized != nil {
  8561. n += len(m.XXX_unrecognized)
  8562. }
  8563. return n
  8564. }
  8565. func (m *VoteInfo) Size() (n int) {
  8566. if m == nil {
  8567. return 0
  8568. }
  8569. var l int
  8570. _ = l
  8571. l = m.Validator.Size()
  8572. n += 1 + l + sovTypes(uint64(l))
  8573. if m.SignedLastBlock {
  8574. n += 2
  8575. }
  8576. if m.XXX_unrecognized != nil {
  8577. n += len(m.XXX_unrecognized)
  8578. }
  8579. return n
  8580. }
  8581. func (m *PubKey) Size() (n int) {
  8582. if m == nil {
  8583. return 0
  8584. }
  8585. var l int
  8586. _ = l
  8587. l = len(m.Type)
  8588. if l > 0 {
  8589. n += 1 + l + sovTypes(uint64(l))
  8590. }
  8591. l = len(m.Data)
  8592. if l > 0 {
  8593. n += 1 + l + sovTypes(uint64(l))
  8594. }
  8595. if m.XXX_unrecognized != nil {
  8596. n += len(m.XXX_unrecognized)
  8597. }
  8598. return n
  8599. }
  8600. func (m *Evidence) Size() (n int) {
  8601. if m == nil {
  8602. return 0
  8603. }
  8604. var l int
  8605. _ = l
  8606. l = len(m.Type)
  8607. if l > 0 {
  8608. n += 1 + l + sovTypes(uint64(l))
  8609. }
  8610. l = m.Validator.Size()
  8611. n += 1 + l + sovTypes(uint64(l))
  8612. if m.Height != 0 {
  8613. n += 1 + sovTypes(uint64(m.Height))
  8614. }
  8615. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  8616. n += 1 + l + sovTypes(uint64(l))
  8617. if m.TotalVotingPower != 0 {
  8618. n += 1 + sovTypes(uint64(m.TotalVotingPower))
  8619. }
  8620. if m.XXX_unrecognized != nil {
  8621. n += len(m.XXX_unrecognized)
  8622. }
  8623. return n
  8624. }
  8625. func sovTypes(x uint64) (n int) {
  8626. for {
  8627. n++
  8628. x >>= 7
  8629. if x == 0 {
  8630. break
  8631. }
  8632. }
  8633. return n
  8634. }
  8635. func sozTypes(x uint64) (n int) {
  8636. return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  8637. }
  8638. func (m *Request) Unmarshal(dAtA []byte) error {
  8639. l := len(dAtA)
  8640. iNdEx := 0
  8641. for iNdEx < l {
  8642. preIndex := iNdEx
  8643. var wire uint64
  8644. for shift := uint(0); ; shift += 7 {
  8645. if shift >= 64 {
  8646. return ErrIntOverflowTypes
  8647. }
  8648. if iNdEx >= l {
  8649. return io.ErrUnexpectedEOF
  8650. }
  8651. b := dAtA[iNdEx]
  8652. iNdEx++
  8653. wire |= (uint64(b) & 0x7F) << shift
  8654. if b < 0x80 {
  8655. break
  8656. }
  8657. }
  8658. fieldNum := int32(wire >> 3)
  8659. wireType := int(wire & 0x7)
  8660. if wireType == 4 {
  8661. return fmt.Errorf("proto: Request: wiretype end group for non-group")
  8662. }
  8663. if fieldNum <= 0 {
  8664. return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  8665. }
  8666. switch fieldNum {
  8667. case 2:
  8668. if wireType != 2 {
  8669. return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
  8670. }
  8671. var msglen int
  8672. for shift := uint(0); ; shift += 7 {
  8673. if shift >= 64 {
  8674. return ErrIntOverflowTypes
  8675. }
  8676. if iNdEx >= l {
  8677. return io.ErrUnexpectedEOF
  8678. }
  8679. b := dAtA[iNdEx]
  8680. iNdEx++
  8681. msglen |= (int(b) & 0x7F) << shift
  8682. if b < 0x80 {
  8683. break
  8684. }
  8685. }
  8686. if msglen < 0 {
  8687. return ErrInvalidLengthTypes
  8688. }
  8689. postIndex := iNdEx + msglen
  8690. if postIndex > l {
  8691. return io.ErrUnexpectedEOF
  8692. }
  8693. v := &RequestEcho{}
  8694. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8695. return err
  8696. }
  8697. m.Value = &Request_Echo{v}
  8698. iNdEx = postIndex
  8699. case 3:
  8700. if wireType != 2 {
  8701. return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType)
  8702. }
  8703. var msglen int
  8704. for shift := uint(0); ; shift += 7 {
  8705. if shift >= 64 {
  8706. return ErrIntOverflowTypes
  8707. }
  8708. if iNdEx >= l {
  8709. return io.ErrUnexpectedEOF
  8710. }
  8711. b := dAtA[iNdEx]
  8712. iNdEx++
  8713. msglen |= (int(b) & 0x7F) << shift
  8714. if b < 0x80 {
  8715. break
  8716. }
  8717. }
  8718. if msglen < 0 {
  8719. return ErrInvalidLengthTypes
  8720. }
  8721. postIndex := iNdEx + msglen
  8722. if postIndex > l {
  8723. return io.ErrUnexpectedEOF
  8724. }
  8725. v := &RequestFlush{}
  8726. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8727. return err
  8728. }
  8729. m.Value = &Request_Flush{v}
  8730. iNdEx = postIndex
  8731. case 4:
  8732. if wireType != 2 {
  8733. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  8734. }
  8735. var msglen int
  8736. for shift := uint(0); ; shift += 7 {
  8737. if shift >= 64 {
  8738. return ErrIntOverflowTypes
  8739. }
  8740. if iNdEx >= l {
  8741. return io.ErrUnexpectedEOF
  8742. }
  8743. b := dAtA[iNdEx]
  8744. iNdEx++
  8745. msglen |= (int(b) & 0x7F) << shift
  8746. if b < 0x80 {
  8747. break
  8748. }
  8749. }
  8750. if msglen < 0 {
  8751. return ErrInvalidLengthTypes
  8752. }
  8753. postIndex := iNdEx + msglen
  8754. if postIndex > l {
  8755. return io.ErrUnexpectedEOF
  8756. }
  8757. v := &RequestInfo{}
  8758. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8759. return err
  8760. }
  8761. m.Value = &Request_Info{v}
  8762. iNdEx = postIndex
  8763. case 5:
  8764. if wireType != 2 {
  8765. return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType)
  8766. }
  8767. var msglen int
  8768. for shift := uint(0); ; shift += 7 {
  8769. if shift >= 64 {
  8770. return ErrIntOverflowTypes
  8771. }
  8772. if iNdEx >= l {
  8773. return io.ErrUnexpectedEOF
  8774. }
  8775. b := dAtA[iNdEx]
  8776. iNdEx++
  8777. msglen |= (int(b) & 0x7F) << shift
  8778. if b < 0x80 {
  8779. break
  8780. }
  8781. }
  8782. if msglen < 0 {
  8783. return ErrInvalidLengthTypes
  8784. }
  8785. postIndex := iNdEx + msglen
  8786. if postIndex > l {
  8787. return io.ErrUnexpectedEOF
  8788. }
  8789. v := &RequestSetOption{}
  8790. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8791. return err
  8792. }
  8793. m.Value = &Request_SetOption{v}
  8794. iNdEx = postIndex
  8795. case 6:
  8796. if wireType != 2 {
  8797. return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType)
  8798. }
  8799. var msglen int
  8800. for shift := uint(0); ; shift += 7 {
  8801. if shift >= 64 {
  8802. return ErrIntOverflowTypes
  8803. }
  8804. if iNdEx >= l {
  8805. return io.ErrUnexpectedEOF
  8806. }
  8807. b := dAtA[iNdEx]
  8808. iNdEx++
  8809. msglen |= (int(b) & 0x7F) << shift
  8810. if b < 0x80 {
  8811. break
  8812. }
  8813. }
  8814. if msglen < 0 {
  8815. return ErrInvalidLengthTypes
  8816. }
  8817. postIndex := iNdEx + msglen
  8818. if postIndex > l {
  8819. return io.ErrUnexpectedEOF
  8820. }
  8821. v := &RequestInitChain{}
  8822. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8823. return err
  8824. }
  8825. m.Value = &Request_InitChain{v}
  8826. iNdEx = postIndex
  8827. case 7:
  8828. if wireType != 2 {
  8829. return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  8830. }
  8831. var msglen int
  8832. for shift := uint(0); ; shift += 7 {
  8833. if shift >= 64 {
  8834. return ErrIntOverflowTypes
  8835. }
  8836. if iNdEx >= l {
  8837. return io.ErrUnexpectedEOF
  8838. }
  8839. b := dAtA[iNdEx]
  8840. iNdEx++
  8841. msglen |= (int(b) & 0x7F) << shift
  8842. if b < 0x80 {
  8843. break
  8844. }
  8845. }
  8846. if msglen < 0 {
  8847. return ErrInvalidLengthTypes
  8848. }
  8849. postIndex := iNdEx + msglen
  8850. if postIndex > l {
  8851. return io.ErrUnexpectedEOF
  8852. }
  8853. v := &RequestQuery{}
  8854. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8855. return err
  8856. }
  8857. m.Value = &Request_Query{v}
  8858. iNdEx = postIndex
  8859. case 8:
  8860. if wireType != 2 {
  8861. return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  8862. }
  8863. var msglen int
  8864. for shift := uint(0); ; shift += 7 {
  8865. if shift >= 64 {
  8866. return ErrIntOverflowTypes
  8867. }
  8868. if iNdEx >= l {
  8869. return io.ErrUnexpectedEOF
  8870. }
  8871. b := dAtA[iNdEx]
  8872. iNdEx++
  8873. msglen |= (int(b) & 0x7F) << shift
  8874. if b < 0x80 {
  8875. break
  8876. }
  8877. }
  8878. if msglen < 0 {
  8879. return ErrInvalidLengthTypes
  8880. }
  8881. postIndex := iNdEx + msglen
  8882. if postIndex > l {
  8883. return io.ErrUnexpectedEOF
  8884. }
  8885. v := &RequestBeginBlock{}
  8886. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8887. return err
  8888. }
  8889. m.Value = &Request_BeginBlock{v}
  8890. iNdEx = postIndex
  8891. case 9:
  8892. if wireType != 2 {
  8893. return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
  8894. }
  8895. var msglen int
  8896. for shift := uint(0); ; shift += 7 {
  8897. if shift >= 64 {
  8898. return ErrIntOverflowTypes
  8899. }
  8900. if iNdEx >= l {
  8901. return io.ErrUnexpectedEOF
  8902. }
  8903. b := dAtA[iNdEx]
  8904. iNdEx++
  8905. msglen |= (int(b) & 0x7F) << shift
  8906. if b < 0x80 {
  8907. break
  8908. }
  8909. }
  8910. if msglen < 0 {
  8911. return ErrInvalidLengthTypes
  8912. }
  8913. postIndex := iNdEx + msglen
  8914. if postIndex > l {
  8915. return io.ErrUnexpectedEOF
  8916. }
  8917. v := &RequestCheckTx{}
  8918. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8919. return err
  8920. }
  8921. m.Value = &Request_CheckTx{v}
  8922. iNdEx = postIndex
  8923. case 11:
  8924. if wireType != 2 {
  8925. return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
  8926. }
  8927. var msglen int
  8928. for shift := uint(0); ; shift += 7 {
  8929. if shift >= 64 {
  8930. return ErrIntOverflowTypes
  8931. }
  8932. if iNdEx >= l {
  8933. return io.ErrUnexpectedEOF
  8934. }
  8935. b := dAtA[iNdEx]
  8936. iNdEx++
  8937. msglen |= (int(b) & 0x7F) << shift
  8938. if b < 0x80 {
  8939. break
  8940. }
  8941. }
  8942. if msglen < 0 {
  8943. return ErrInvalidLengthTypes
  8944. }
  8945. postIndex := iNdEx + msglen
  8946. if postIndex > l {
  8947. return io.ErrUnexpectedEOF
  8948. }
  8949. v := &RequestEndBlock{}
  8950. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8951. return err
  8952. }
  8953. m.Value = &Request_EndBlock{v}
  8954. iNdEx = postIndex
  8955. case 12:
  8956. if wireType != 2 {
  8957. return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  8958. }
  8959. var msglen int
  8960. for shift := uint(0); ; shift += 7 {
  8961. if shift >= 64 {
  8962. return ErrIntOverflowTypes
  8963. }
  8964. if iNdEx >= l {
  8965. return io.ErrUnexpectedEOF
  8966. }
  8967. b := dAtA[iNdEx]
  8968. iNdEx++
  8969. msglen |= (int(b) & 0x7F) << shift
  8970. if b < 0x80 {
  8971. break
  8972. }
  8973. }
  8974. if msglen < 0 {
  8975. return ErrInvalidLengthTypes
  8976. }
  8977. postIndex := iNdEx + msglen
  8978. if postIndex > l {
  8979. return io.ErrUnexpectedEOF
  8980. }
  8981. v := &RequestCommit{}
  8982. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8983. return err
  8984. }
  8985. m.Value = &Request_Commit{v}
  8986. iNdEx = postIndex
  8987. case 19:
  8988. if wireType != 2 {
  8989. return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
  8990. }
  8991. var msglen int
  8992. for shift := uint(0); ; shift += 7 {
  8993. if shift >= 64 {
  8994. return ErrIntOverflowTypes
  8995. }
  8996. if iNdEx >= l {
  8997. return io.ErrUnexpectedEOF
  8998. }
  8999. b := dAtA[iNdEx]
  9000. iNdEx++
  9001. msglen |= (int(b) & 0x7F) << shift
  9002. if b < 0x80 {
  9003. break
  9004. }
  9005. }
  9006. if msglen < 0 {
  9007. return ErrInvalidLengthTypes
  9008. }
  9009. postIndex := iNdEx + msglen
  9010. if postIndex > l {
  9011. return io.ErrUnexpectedEOF
  9012. }
  9013. v := &RequestDeliverTx{}
  9014. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9015. return err
  9016. }
  9017. m.Value = &Request_DeliverTx{v}
  9018. iNdEx = postIndex
  9019. default:
  9020. iNdEx = preIndex
  9021. skippy, err := skipTypes(dAtA[iNdEx:])
  9022. if err != nil {
  9023. return err
  9024. }
  9025. if skippy < 0 {
  9026. return ErrInvalidLengthTypes
  9027. }
  9028. if (iNdEx + skippy) > l {
  9029. return io.ErrUnexpectedEOF
  9030. }
  9031. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9032. iNdEx += skippy
  9033. }
  9034. }
  9035. if iNdEx > l {
  9036. return io.ErrUnexpectedEOF
  9037. }
  9038. return nil
  9039. }
  9040. func (m *RequestEcho) Unmarshal(dAtA []byte) error {
  9041. l := len(dAtA)
  9042. iNdEx := 0
  9043. for iNdEx < l {
  9044. preIndex := iNdEx
  9045. var wire uint64
  9046. for shift := uint(0); ; shift += 7 {
  9047. if shift >= 64 {
  9048. return ErrIntOverflowTypes
  9049. }
  9050. if iNdEx >= l {
  9051. return io.ErrUnexpectedEOF
  9052. }
  9053. b := dAtA[iNdEx]
  9054. iNdEx++
  9055. wire |= (uint64(b) & 0x7F) << shift
  9056. if b < 0x80 {
  9057. break
  9058. }
  9059. }
  9060. fieldNum := int32(wire >> 3)
  9061. wireType := int(wire & 0x7)
  9062. if wireType == 4 {
  9063. return fmt.Errorf("proto: RequestEcho: wiretype end group for non-group")
  9064. }
  9065. if fieldNum <= 0 {
  9066. return fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire)
  9067. }
  9068. switch fieldNum {
  9069. case 1:
  9070. if wireType != 2 {
  9071. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  9072. }
  9073. var stringLen uint64
  9074. for shift := uint(0); ; shift += 7 {
  9075. if shift >= 64 {
  9076. return ErrIntOverflowTypes
  9077. }
  9078. if iNdEx >= l {
  9079. return io.ErrUnexpectedEOF
  9080. }
  9081. b := dAtA[iNdEx]
  9082. iNdEx++
  9083. stringLen |= (uint64(b) & 0x7F) << shift
  9084. if b < 0x80 {
  9085. break
  9086. }
  9087. }
  9088. intStringLen := int(stringLen)
  9089. if intStringLen < 0 {
  9090. return ErrInvalidLengthTypes
  9091. }
  9092. postIndex := iNdEx + intStringLen
  9093. if postIndex > l {
  9094. return io.ErrUnexpectedEOF
  9095. }
  9096. m.Message = string(dAtA[iNdEx:postIndex])
  9097. iNdEx = postIndex
  9098. default:
  9099. iNdEx = preIndex
  9100. skippy, err := skipTypes(dAtA[iNdEx:])
  9101. if err != nil {
  9102. return err
  9103. }
  9104. if skippy < 0 {
  9105. return ErrInvalidLengthTypes
  9106. }
  9107. if (iNdEx + skippy) > l {
  9108. return io.ErrUnexpectedEOF
  9109. }
  9110. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9111. iNdEx += skippy
  9112. }
  9113. }
  9114. if iNdEx > l {
  9115. return io.ErrUnexpectedEOF
  9116. }
  9117. return nil
  9118. }
  9119. func (m *RequestFlush) Unmarshal(dAtA []byte) error {
  9120. l := len(dAtA)
  9121. iNdEx := 0
  9122. for iNdEx < l {
  9123. preIndex := iNdEx
  9124. var wire uint64
  9125. for shift := uint(0); ; shift += 7 {
  9126. if shift >= 64 {
  9127. return ErrIntOverflowTypes
  9128. }
  9129. if iNdEx >= l {
  9130. return io.ErrUnexpectedEOF
  9131. }
  9132. b := dAtA[iNdEx]
  9133. iNdEx++
  9134. wire |= (uint64(b) & 0x7F) << shift
  9135. if b < 0x80 {
  9136. break
  9137. }
  9138. }
  9139. fieldNum := int32(wire >> 3)
  9140. wireType := int(wire & 0x7)
  9141. if wireType == 4 {
  9142. return fmt.Errorf("proto: RequestFlush: wiretype end group for non-group")
  9143. }
  9144. if fieldNum <= 0 {
  9145. return fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire)
  9146. }
  9147. switch fieldNum {
  9148. default:
  9149. iNdEx = preIndex
  9150. skippy, err := skipTypes(dAtA[iNdEx:])
  9151. if err != nil {
  9152. return err
  9153. }
  9154. if skippy < 0 {
  9155. return ErrInvalidLengthTypes
  9156. }
  9157. if (iNdEx + skippy) > l {
  9158. return io.ErrUnexpectedEOF
  9159. }
  9160. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9161. iNdEx += skippy
  9162. }
  9163. }
  9164. if iNdEx > l {
  9165. return io.ErrUnexpectedEOF
  9166. }
  9167. return nil
  9168. }
  9169. func (m *RequestInfo) Unmarshal(dAtA []byte) error {
  9170. l := len(dAtA)
  9171. iNdEx := 0
  9172. for iNdEx < l {
  9173. preIndex := iNdEx
  9174. var wire uint64
  9175. for shift := uint(0); ; shift += 7 {
  9176. if shift >= 64 {
  9177. return ErrIntOverflowTypes
  9178. }
  9179. if iNdEx >= l {
  9180. return io.ErrUnexpectedEOF
  9181. }
  9182. b := dAtA[iNdEx]
  9183. iNdEx++
  9184. wire |= (uint64(b) & 0x7F) << shift
  9185. if b < 0x80 {
  9186. break
  9187. }
  9188. }
  9189. fieldNum := int32(wire >> 3)
  9190. wireType := int(wire & 0x7)
  9191. if wireType == 4 {
  9192. return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group")
  9193. }
  9194. if fieldNum <= 0 {
  9195. return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  9196. }
  9197. switch fieldNum {
  9198. case 1:
  9199. if wireType != 2 {
  9200. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  9201. }
  9202. var stringLen uint64
  9203. for shift := uint(0); ; shift += 7 {
  9204. if shift >= 64 {
  9205. return ErrIntOverflowTypes
  9206. }
  9207. if iNdEx >= l {
  9208. return io.ErrUnexpectedEOF
  9209. }
  9210. b := dAtA[iNdEx]
  9211. iNdEx++
  9212. stringLen |= (uint64(b) & 0x7F) << shift
  9213. if b < 0x80 {
  9214. break
  9215. }
  9216. }
  9217. intStringLen := int(stringLen)
  9218. if intStringLen < 0 {
  9219. return ErrInvalidLengthTypes
  9220. }
  9221. postIndex := iNdEx + intStringLen
  9222. if postIndex > l {
  9223. return io.ErrUnexpectedEOF
  9224. }
  9225. m.Version = string(dAtA[iNdEx:postIndex])
  9226. iNdEx = postIndex
  9227. default:
  9228. iNdEx = preIndex
  9229. skippy, err := skipTypes(dAtA[iNdEx:])
  9230. if err != nil {
  9231. return err
  9232. }
  9233. if skippy < 0 {
  9234. return ErrInvalidLengthTypes
  9235. }
  9236. if (iNdEx + skippy) > l {
  9237. return io.ErrUnexpectedEOF
  9238. }
  9239. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9240. iNdEx += skippy
  9241. }
  9242. }
  9243. if iNdEx > l {
  9244. return io.ErrUnexpectedEOF
  9245. }
  9246. return nil
  9247. }
  9248. func (m *RequestSetOption) Unmarshal(dAtA []byte) error {
  9249. l := len(dAtA)
  9250. iNdEx := 0
  9251. for iNdEx < l {
  9252. preIndex := iNdEx
  9253. var wire uint64
  9254. for shift := uint(0); ; shift += 7 {
  9255. if shift >= 64 {
  9256. return ErrIntOverflowTypes
  9257. }
  9258. if iNdEx >= l {
  9259. return io.ErrUnexpectedEOF
  9260. }
  9261. b := dAtA[iNdEx]
  9262. iNdEx++
  9263. wire |= (uint64(b) & 0x7F) << shift
  9264. if b < 0x80 {
  9265. break
  9266. }
  9267. }
  9268. fieldNum := int32(wire >> 3)
  9269. wireType := int(wire & 0x7)
  9270. if wireType == 4 {
  9271. return fmt.Errorf("proto: RequestSetOption: wiretype end group for non-group")
  9272. }
  9273. if fieldNum <= 0 {
  9274. return fmt.Errorf("proto: RequestSetOption: illegal tag %d (wire type %d)", fieldNum, wire)
  9275. }
  9276. switch fieldNum {
  9277. case 1:
  9278. if wireType != 2 {
  9279. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  9280. }
  9281. var stringLen uint64
  9282. for shift := uint(0); ; shift += 7 {
  9283. if shift >= 64 {
  9284. return ErrIntOverflowTypes
  9285. }
  9286. if iNdEx >= l {
  9287. return io.ErrUnexpectedEOF
  9288. }
  9289. b := dAtA[iNdEx]
  9290. iNdEx++
  9291. stringLen |= (uint64(b) & 0x7F) << shift
  9292. if b < 0x80 {
  9293. break
  9294. }
  9295. }
  9296. intStringLen := int(stringLen)
  9297. if intStringLen < 0 {
  9298. return ErrInvalidLengthTypes
  9299. }
  9300. postIndex := iNdEx + intStringLen
  9301. if postIndex > l {
  9302. return io.ErrUnexpectedEOF
  9303. }
  9304. m.Key = string(dAtA[iNdEx:postIndex])
  9305. iNdEx = postIndex
  9306. case 2:
  9307. if wireType != 2 {
  9308. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  9309. }
  9310. var stringLen uint64
  9311. for shift := uint(0); ; shift += 7 {
  9312. if shift >= 64 {
  9313. return ErrIntOverflowTypes
  9314. }
  9315. if iNdEx >= l {
  9316. return io.ErrUnexpectedEOF
  9317. }
  9318. b := dAtA[iNdEx]
  9319. iNdEx++
  9320. stringLen |= (uint64(b) & 0x7F) << shift
  9321. if b < 0x80 {
  9322. break
  9323. }
  9324. }
  9325. intStringLen := int(stringLen)
  9326. if intStringLen < 0 {
  9327. return ErrInvalidLengthTypes
  9328. }
  9329. postIndex := iNdEx + intStringLen
  9330. if postIndex > l {
  9331. return io.ErrUnexpectedEOF
  9332. }
  9333. m.Value = string(dAtA[iNdEx:postIndex])
  9334. iNdEx = postIndex
  9335. default:
  9336. iNdEx = preIndex
  9337. skippy, err := skipTypes(dAtA[iNdEx:])
  9338. if err != nil {
  9339. return err
  9340. }
  9341. if skippy < 0 {
  9342. return ErrInvalidLengthTypes
  9343. }
  9344. if (iNdEx + skippy) > l {
  9345. return io.ErrUnexpectedEOF
  9346. }
  9347. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9348. iNdEx += skippy
  9349. }
  9350. }
  9351. if iNdEx > l {
  9352. return io.ErrUnexpectedEOF
  9353. }
  9354. return nil
  9355. }
  9356. func (m *RequestInitChain) Unmarshal(dAtA []byte) error {
  9357. l := len(dAtA)
  9358. iNdEx := 0
  9359. for iNdEx < l {
  9360. preIndex := iNdEx
  9361. var wire uint64
  9362. for shift := uint(0); ; shift += 7 {
  9363. if shift >= 64 {
  9364. return ErrIntOverflowTypes
  9365. }
  9366. if iNdEx >= l {
  9367. return io.ErrUnexpectedEOF
  9368. }
  9369. b := dAtA[iNdEx]
  9370. iNdEx++
  9371. wire |= (uint64(b) & 0x7F) << shift
  9372. if b < 0x80 {
  9373. break
  9374. }
  9375. }
  9376. fieldNum := int32(wire >> 3)
  9377. wireType := int(wire & 0x7)
  9378. if wireType == 4 {
  9379. return fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group")
  9380. }
  9381. if fieldNum <= 0 {
  9382. return fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire)
  9383. }
  9384. switch fieldNum {
  9385. case 1:
  9386. if wireType != 2 {
  9387. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  9388. }
  9389. var msglen int
  9390. for shift := uint(0); ; shift += 7 {
  9391. if shift >= 64 {
  9392. return ErrIntOverflowTypes
  9393. }
  9394. if iNdEx >= l {
  9395. return io.ErrUnexpectedEOF
  9396. }
  9397. b := dAtA[iNdEx]
  9398. iNdEx++
  9399. msglen |= (int(b) & 0x7F) << shift
  9400. if b < 0x80 {
  9401. break
  9402. }
  9403. }
  9404. if msglen < 0 {
  9405. return ErrInvalidLengthTypes
  9406. }
  9407. postIndex := iNdEx + msglen
  9408. if postIndex > l {
  9409. return io.ErrUnexpectedEOF
  9410. }
  9411. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  9412. return err
  9413. }
  9414. iNdEx = postIndex
  9415. case 2:
  9416. if wireType != 2 {
  9417. return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType)
  9418. }
  9419. var stringLen uint64
  9420. for shift := uint(0); ; shift += 7 {
  9421. if shift >= 64 {
  9422. return ErrIntOverflowTypes
  9423. }
  9424. if iNdEx >= l {
  9425. return io.ErrUnexpectedEOF
  9426. }
  9427. b := dAtA[iNdEx]
  9428. iNdEx++
  9429. stringLen |= (uint64(b) & 0x7F) << shift
  9430. if b < 0x80 {
  9431. break
  9432. }
  9433. }
  9434. intStringLen := int(stringLen)
  9435. if intStringLen < 0 {
  9436. return ErrInvalidLengthTypes
  9437. }
  9438. postIndex := iNdEx + intStringLen
  9439. if postIndex > l {
  9440. return io.ErrUnexpectedEOF
  9441. }
  9442. m.ChainId = string(dAtA[iNdEx:postIndex])
  9443. iNdEx = postIndex
  9444. case 3:
  9445. if wireType != 2 {
  9446. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  9447. }
  9448. var msglen int
  9449. for shift := uint(0); ; shift += 7 {
  9450. if shift >= 64 {
  9451. return ErrIntOverflowTypes
  9452. }
  9453. if iNdEx >= l {
  9454. return io.ErrUnexpectedEOF
  9455. }
  9456. b := dAtA[iNdEx]
  9457. iNdEx++
  9458. msglen |= (int(b) & 0x7F) << shift
  9459. if b < 0x80 {
  9460. break
  9461. }
  9462. }
  9463. if msglen < 0 {
  9464. return ErrInvalidLengthTypes
  9465. }
  9466. postIndex := iNdEx + msglen
  9467. if postIndex > l {
  9468. return io.ErrUnexpectedEOF
  9469. }
  9470. if m.ConsensusParams == nil {
  9471. m.ConsensusParams = &ConsensusParams{}
  9472. }
  9473. if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9474. return err
  9475. }
  9476. iNdEx = postIndex
  9477. case 4:
  9478. if wireType != 2 {
  9479. return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  9480. }
  9481. var msglen int
  9482. for shift := uint(0); ; shift += 7 {
  9483. if shift >= 64 {
  9484. return ErrIntOverflowTypes
  9485. }
  9486. if iNdEx >= l {
  9487. return io.ErrUnexpectedEOF
  9488. }
  9489. b := dAtA[iNdEx]
  9490. iNdEx++
  9491. msglen |= (int(b) & 0x7F) << shift
  9492. if b < 0x80 {
  9493. break
  9494. }
  9495. }
  9496. if msglen < 0 {
  9497. return ErrInvalidLengthTypes
  9498. }
  9499. postIndex := iNdEx + msglen
  9500. if postIndex > l {
  9501. return io.ErrUnexpectedEOF
  9502. }
  9503. m.Validators = append(m.Validators, ValidatorUpdate{})
  9504. if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9505. return err
  9506. }
  9507. iNdEx = postIndex
  9508. case 5:
  9509. if wireType != 2 {
  9510. return fmt.Errorf("proto: wrong wireType = %d for field AppStateBytes", wireType)
  9511. }
  9512. var byteLen int
  9513. for shift := uint(0); ; shift += 7 {
  9514. if shift >= 64 {
  9515. return ErrIntOverflowTypes
  9516. }
  9517. if iNdEx >= l {
  9518. return io.ErrUnexpectedEOF
  9519. }
  9520. b := dAtA[iNdEx]
  9521. iNdEx++
  9522. byteLen |= (int(b) & 0x7F) << shift
  9523. if b < 0x80 {
  9524. break
  9525. }
  9526. }
  9527. if byteLen < 0 {
  9528. return ErrInvalidLengthTypes
  9529. }
  9530. postIndex := iNdEx + byteLen
  9531. if postIndex > l {
  9532. return io.ErrUnexpectedEOF
  9533. }
  9534. m.AppStateBytes = append(m.AppStateBytes[:0], dAtA[iNdEx:postIndex]...)
  9535. if m.AppStateBytes == nil {
  9536. m.AppStateBytes = []byte{}
  9537. }
  9538. iNdEx = postIndex
  9539. default:
  9540. iNdEx = preIndex
  9541. skippy, err := skipTypes(dAtA[iNdEx:])
  9542. if err != nil {
  9543. return err
  9544. }
  9545. if skippy < 0 {
  9546. return ErrInvalidLengthTypes
  9547. }
  9548. if (iNdEx + skippy) > l {
  9549. return io.ErrUnexpectedEOF
  9550. }
  9551. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9552. iNdEx += skippy
  9553. }
  9554. }
  9555. if iNdEx > l {
  9556. return io.ErrUnexpectedEOF
  9557. }
  9558. return nil
  9559. }
  9560. func (m *RequestQuery) Unmarshal(dAtA []byte) error {
  9561. l := len(dAtA)
  9562. iNdEx := 0
  9563. for iNdEx < l {
  9564. preIndex := iNdEx
  9565. var wire uint64
  9566. for shift := uint(0); ; shift += 7 {
  9567. if shift >= 64 {
  9568. return ErrIntOverflowTypes
  9569. }
  9570. if iNdEx >= l {
  9571. return io.ErrUnexpectedEOF
  9572. }
  9573. b := dAtA[iNdEx]
  9574. iNdEx++
  9575. wire |= (uint64(b) & 0x7F) << shift
  9576. if b < 0x80 {
  9577. break
  9578. }
  9579. }
  9580. fieldNum := int32(wire >> 3)
  9581. wireType := int(wire & 0x7)
  9582. if wireType == 4 {
  9583. return fmt.Errorf("proto: RequestQuery: wiretype end group for non-group")
  9584. }
  9585. if fieldNum <= 0 {
  9586. return fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  9587. }
  9588. switch fieldNum {
  9589. case 1:
  9590. if wireType != 2 {
  9591. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  9592. }
  9593. var byteLen int
  9594. for shift := uint(0); ; shift += 7 {
  9595. if shift >= 64 {
  9596. return ErrIntOverflowTypes
  9597. }
  9598. if iNdEx >= l {
  9599. return io.ErrUnexpectedEOF
  9600. }
  9601. b := dAtA[iNdEx]
  9602. iNdEx++
  9603. byteLen |= (int(b) & 0x7F) << shift
  9604. if b < 0x80 {
  9605. break
  9606. }
  9607. }
  9608. if byteLen < 0 {
  9609. return ErrInvalidLengthTypes
  9610. }
  9611. postIndex := iNdEx + byteLen
  9612. if postIndex > l {
  9613. return io.ErrUnexpectedEOF
  9614. }
  9615. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  9616. if m.Data == nil {
  9617. m.Data = []byte{}
  9618. }
  9619. iNdEx = postIndex
  9620. case 2:
  9621. if wireType != 2 {
  9622. return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  9623. }
  9624. var stringLen uint64
  9625. for shift := uint(0); ; shift += 7 {
  9626. if shift >= 64 {
  9627. return ErrIntOverflowTypes
  9628. }
  9629. if iNdEx >= l {
  9630. return io.ErrUnexpectedEOF
  9631. }
  9632. b := dAtA[iNdEx]
  9633. iNdEx++
  9634. stringLen |= (uint64(b) & 0x7F) << shift
  9635. if b < 0x80 {
  9636. break
  9637. }
  9638. }
  9639. intStringLen := int(stringLen)
  9640. if intStringLen < 0 {
  9641. return ErrInvalidLengthTypes
  9642. }
  9643. postIndex := iNdEx + intStringLen
  9644. if postIndex > l {
  9645. return io.ErrUnexpectedEOF
  9646. }
  9647. m.Path = string(dAtA[iNdEx:postIndex])
  9648. iNdEx = postIndex
  9649. case 3:
  9650. if wireType != 0 {
  9651. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  9652. }
  9653. m.Height = 0
  9654. for shift := uint(0); ; shift += 7 {
  9655. if shift >= 64 {
  9656. return ErrIntOverflowTypes
  9657. }
  9658. if iNdEx >= l {
  9659. return io.ErrUnexpectedEOF
  9660. }
  9661. b := dAtA[iNdEx]
  9662. iNdEx++
  9663. m.Height |= (int64(b) & 0x7F) << shift
  9664. if b < 0x80 {
  9665. break
  9666. }
  9667. }
  9668. case 4:
  9669. if wireType != 0 {
  9670. return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType)
  9671. }
  9672. var v int
  9673. for shift := uint(0); ; shift += 7 {
  9674. if shift >= 64 {
  9675. return ErrIntOverflowTypes
  9676. }
  9677. if iNdEx >= l {
  9678. return io.ErrUnexpectedEOF
  9679. }
  9680. b := dAtA[iNdEx]
  9681. iNdEx++
  9682. v |= (int(b) & 0x7F) << shift
  9683. if b < 0x80 {
  9684. break
  9685. }
  9686. }
  9687. m.Prove = bool(v != 0)
  9688. default:
  9689. iNdEx = preIndex
  9690. skippy, err := skipTypes(dAtA[iNdEx:])
  9691. if err != nil {
  9692. return err
  9693. }
  9694. if skippy < 0 {
  9695. return ErrInvalidLengthTypes
  9696. }
  9697. if (iNdEx + skippy) > l {
  9698. return io.ErrUnexpectedEOF
  9699. }
  9700. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9701. iNdEx += skippy
  9702. }
  9703. }
  9704. if iNdEx > l {
  9705. return io.ErrUnexpectedEOF
  9706. }
  9707. return nil
  9708. }
  9709. func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error {
  9710. l := len(dAtA)
  9711. iNdEx := 0
  9712. for iNdEx < l {
  9713. preIndex := iNdEx
  9714. var wire uint64
  9715. for shift := uint(0); ; shift += 7 {
  9716. if shift >= 64 {
  9717. return ErrIntOverflowTypes
  9718. }
  9719. if iNdEx >= l {
  9720. return io.ErrUnexpectedEOF
  9721. }
  9722. b := dAtA[iNdEx]
  9723. iNdEx++
  9724. wire |= (uint64(b) & 0x7F) << shift
  9725. if b < 0x80 {
  9726. break
  9727. }
  9728. }
  9729. fieldNum := int32(wire >> 3)
  9730. wireType := int(wire & 0x7)
  9731. if wireType == 4 {
  9732. return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group")
  9733. }
  9734. if fieldNum <= 0 {
  9735. return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  9736. }
  9737. switch fieldNum {
  9738. case 1:
  9739. if wireType != 2 {
  9740. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  9741. }
  9742. var byteLen int
  9743. for shift := uint(0); ; shift += 7 {
  9744. if shift >= 64 {
  9745. return ErrIntOverflowTypes
  9746. }
  9747. if iNdEx >= l {
  9748. return io.ErrUnexpectedEOF
  9749. }
  9750. b := dAtA[iNdEx]
  9751. iNdEx++
  9752. byteLen |= (int(b) & 0x7F) << shift
  9753. if b < 0x80 {
  9754. break
  9755. }
  9756. }
  9757. if byteLen < 0 {
  9758. return ErrInvalidLengthTypes
  9759. }
  9760. postIndex := iNdEx + byteLen
  9761. if postIndex > l {
  9762. return io.ErrUnexpectedEOF
  9763. }
  9764. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  9765. if m.Hash == nil {
  9766. m.Hash = []byte{}
  9767. }
  9768. iNdEx = postIndex
  9769. case 2:
  9770. if wireType != 2 {
  9771. return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
  9772. }
  9773. var msglen int
  9774. for shift := uint(0); ; shift += 7 {
  9775. if shift >= 64 {
  9776. return ErrIntOverflowTypes
  9777. }
  9778. if iNdEx >= l {
  9779. return io.ErrUnexpectedEOF
  9780. }
  9781. b := dAtA[iNdEx]
  9782. iNdEx++
  9783. msglen |= (int(b) & 0x7F) << shift
  9784. if b < 0x80 {
  9785. break
  9786. }
  9787. }
  9788. if msglen < 0 {
  9789. return ErrInvalidLengthTypes
  9790. }
  9791. postIndex := iNdEx + msglen
  9792. if postIndex > l {
  9793. return io.ErrUnexpectedEOF
  9794. }
  9795. if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9796. return err
  9797. }
  9798. iNdEx = postIndex
  9799. case 3:
  9800. if wireType != 2 {
  9801. return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType)
  9802. }
  9803. var msglen int
  9804. for shift := uint(0); ; shift += 7 {
  9805. if shift >= 64 {
  9806. return ErrIntOverflowTypes
  9807. }
  9808. if iNdEx >= l {
  9809. return io.ErrUnexpectedEOF
  9810. }
  9811. b := dAtA[iNdEx]
  9812. iNdEx++
  9813. msglen |= (int(b) & 0x7F) << shift
  9814. if b < 0x80 {
  9815. break
  9816. }
  9817. }
  9818. if msglen < 0 {
  9819. return ErrInvalidLengthTypes
  9820. }
  9821. postIndex := iNdEx + msglen
  9822. if postIndex > l {
  9823. return io.ErrUnexpectedEOF
  9824. }
  9825. if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9826. return err
  9827. }
  9828. iNdEx = postIndex
  9829. case 4:
  9830. if wireType != 2 {
  9831. return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType)
  9832. }
  9833. var msglen int
  9834. for shift := uint(0); ; shift += 7 {
  9835. if shift >= 64 {
  9836. return ErrIntOverflowTypes
  9837. }
  9838. if iNdEx >= l {
  9839. return io.ErrUnexpectedEOF
  9840. }
  9841. b := dAtA[iNdEx]
  9842. iNdEx++
  9843. msglen |= (int(b) & 0x7F) << shift
  9844. if b < 0x80 {
  9845. break
  9846. }
  9847. }
  9848. if msglen < 0 {
  9849. return ErrInvalidLengthTypes
  9850. }
  9851. postIndex := iNdEx + msglen
  9852. if postIndex > l {
  9853. return io.ErrUnexpectedEOF
  9854. }
  9855. m.ByzantineValidators = append(m.ByzantineValidators, Evidence{})
  9856. if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9857. return err
  9858. }
  9859. iNdEx = postIndex
  9860. default:
  9861. iNdEx = preIndex
  9862. skippy, err := skipTypes(dAtA[iNdEx:])
  9863. if err != nil {
  9864. return err
  9865. }
  9866. if skippy < 0 {
  9867. return ErrInvalidLengthTypes
  9868. }
  9869. if (iNdEx + skippy) > l {
  9870. return io.ErrUnexpectedEOF
  9871. }
  9872. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9873. iNdEx += skippy
  9874. }
  9875. }
  9876. if iNdEx > l {
  9877. return io.ErrUnexpectedEOF
  9878. }
  9879. return nil
  9880. }
  9881. func (m *RequestCheckTx) Unmarshal(dAtA []byte) error {
  9882. l := len(dAtA)
  9883. iNdEx := 0
  9884. for iNdEx < l {
  9885. preIndex := iNdEx
  9886. var wire uint64
  9887. for shift := uint(0); ; shift += 7 {
  9888. if shift >= 64 {
  9889. return ErrIntOverflowTypes
  9890. }
  9891. if iNdEx >= l {
  9892. return io.ErrUnexpectedEOF
  9893. }
  9894. b := dAtA[iNdEx]
  9895. iNdEx++
  9896. wire |= (uint64(b) & 0x7F) << shift
  9897. if b < 0x80 {
  9898. break
  9899. }
  9900. }
  9901. fieldNum := int32(wire >> 3)
  9902. wireType := int(wire & 0x7)
  9903. if wireType == 4 {
  9904. return fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group")
  9905. }
  9906. if fieldNum <= 0 {
  9907. return fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire)
  9908. }
  9909. switch fieldNum {
  9910. case 1:
  9911. if wireType != 2 {
  9912. return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  9913. }
  9914. var byteLen int
  9915. for shift := uint(0); ; shift += 7 {
  9916. if shift >= 64 {
  9917. return ErrIntOverflowTypes
  9918. }
  9919. if iNdEx >= l {
  9920. return io.ErrUnexpectedEOF
  9921. }
  9922. b := dAtA[iNdEx]
  9923. iNdEx++
  9924. byteLen |= (int(b) & 0x7F) << shift
  9925. if b < 0x80 {
  9926. break
  9927. }
  9928. }
  9929. if byteLen < 0 {
  9930. return ErrInvalidLengthTypes
  9931. }
  9932. postIndex := iNdEx + byteLen
  9933. if postIndex > l {
  9934. return io.ErrUnexpectedEOF
  9935. }
  9936. m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  9937. if m.Tx == nil {
  9938. m.Tx = []byte{}
  9939. }
  9940. iNdEx = postIndex
  9941. default:
  9942. iNdEx = preIndex
  9943. skippy, err := skipTypes(dAtA[iNdEx:])
  9944. if err != nil {
  9945. return err
  9946. }
  9947. if skippy < 0 {
  9948. return ErrInvalidLengthTypes
  9949. }
  9950. if (iNdEx + skippy) > l {
  9951. return io.ErrUnexpectedEOF
  9952. }
  9953. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9954. iNdEx += skippy
  9955. }
  9956. }
  9957. if iNdEx > l {
  9958. return io.ErrUnexpectedEOF
  9959. }
  9960. return nil
  9961. }
  9962. func (m *RequestDeliverTx) Unmarshal(dAtA []byte) error {
  9963. l := len(dAtA)
  9964. iNdEx := 0
  9965. for iNdEx < l {
  9966. preIndex := iNdEx
  9967. var wire uint64
  9968. for shift := uint(0); ; shift += 7 {
  9969. if shift >= 64 {
  9970. return ErrIntOverflowTypes
  9971. }
  9972. if iNdEx >= l {
  9973. return io.ErrUnexpectedEOF
  9974. }
  9975. b := dAtA[iNdEx]
  9976. iNdEx++
  9977. wire |= (uint64(b) & 0x7F) << shift
  9978. if b < 0x80 {
  9979. break
  9980. }
  9981. }
  9982. fieldNum := int32(wire >> 3)
  9983. wireType := int(wire & 0x7)
  9984. if wireType == 4 {
  9985. return fmt.Errorf("proto: RequestDeliverTx: wiretype end group for non-group")
  9986. }
  9987. if fieldNum <= 0 {
  9988. return fmt.Errorf("proto: RequestDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire)
  9989. }
  9990. switch fieldNum {
  9991. case 1:
  9992. if wireType != 2 {
  9993. return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  9994. }
  9995. var byteLen int
  9996. for shift := uint(0); ; shift += 7 {
  9997. if shift >= 64 {
  9998. return ErrIntOverflowTypes
  9999. }
  10000. if iNdEx >= l {
  10001. return io.ErrUnexpectedEOF
  10002. }
  10003. b := dAtA[iNdEx]
  10004. iNdEx++
  10005. byteLen |= (int(b) & 0x7F) << shift
  10006. if b < 0x80 {
  10007. break
  10008. }
  10009. }
  10010. if byteLen < 0 {
  10011. return ErrInvalidLengthTypes
  10012. }
  10013. postIndex := iNdEx + byteLen
  10014. if postIndex > l {
  10015. return io.ErrUnexpectedEOF
  10016. }
  10017. m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  10018. if m.Tx == nil {
  10019. m.Tx = []byte{}
  10020. }
  10021. iNdEx = postIndex
  10022. default:
  10023. iNdEx = preIndex
  10024. skippy, err := skipTypes(dAtA[iNdEx:])
  10025. if err != nil {
  10026. return err
  10027. }
  10028. if skippy < 0 {
  10029. return ErrInvalidLengthTypes
  10030. }
  10031. if (iNdEx + skippy) > l {
  10032. return io.ErrUnexpectedEOF
  10033. }
  10034. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10035. iNdEx += skippy
  10036. }
  10037. }
  10038. if iNdEx > l {
  10039. return io.ErrUnexpectedEOF
  10040. }
  10041. return nil
  10042. }
  10043. func (m *RequestEndBlock) Unmarshal(dAtA []byte) error {
  10044. l := len(dAtA)
  10045. iNdEx := 0
  10046. for iNdEx < l {
  10047. preIndex := iNdEx
  10048. var wire uint64
  10049. for shift := uint(0); ; shift += 7 {
  10050. if shift >= 64 {
  10051. return ErrIntOverflowTypes
  10052. }
  10053. if iNdEx >= l {
  10054. return io.ErrUnexpectedEOF
  10055. }
  10056. b := dAtA[iNdEx]
  10057. iNdEx++
  10058. wire |= (uint64(b) & 0x7F) << shift
  10059. if b < 0x80 {
  10060. break
  10061. }
  10062. }
  10063. fieldNum := int32(wire >> 3)
  10064. wireType := int(wire & 0x7)
  10065. if wireType == 4 {
  10066. return fmt.Errorf("proto: RequestEndBlock: wiretype end group for non-group")
  10067. }
  10068. if fieldNum <= 0 {
  10069. return fmt.Errorf("proto: RequestEndBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  10070. }
  10071. switch fieldNum {
  10072. case 1:
  10073. if wireType != 0 {
  10074. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  10075. }
  10076. m.Height = 0
  10077. for shift := uint(0); ; shift += 7 {
  10078. if shift >= 64 {
  10079. return ErrIntOverflowTypes
  10080. }
  10081. if iNdEx >= l {
  10082. return io.ErrUnexpectedEOF
  10083. }
  10084. b := dAtA[iNdEx]
  10085. iNdEx++
  10086. m.Height |= (int64(b) & 0x7F) << shift
  10087. if b < 0x80 {
  10088. break
  10089. }
  10090. }
  10091. default:
  10092. iNdEx = preIndex
  10093. skippy, err := skipTypes(dAtA[iNdEx:])
  10094. if err != nil {
  10095. return err
  10096. }
  10097. if skippy < 0 {
  10098. return ErrInvalidLengthTypes
  10099. }
  10100. if (iNdEx + skippy) > l {
  10101. return io.ErrUnexpectedEOF
  10102. }
  10103. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10104. iNdEx += skippy
  10105. }
  10106. }
  10107. if iNdEx > l {
  10108. return io.ErrUnexpectedEOF
  10109. }
  10110. return nil
  10111. }
  10112. func (m *RequestCommit) Unmarshal(dAtA []byte) error {
  10113. l := len(dAtA)
  10114. iNdEx := 0
  10115. for iNdEx < l {
  10116. preIndex := iNdEx
  10117. var wire uint64
  10118. for shift := uint(0); ; shift += 7 {
  10119. if shift >= 64 {
  10120. return ErrIntOverflowTypes
  10121. }
  10122. if iNdEx >= l {
  10123. return io.ErrUnexpectedEOF
  10124. }
  10125. b := dAtA[iNdEx]
  10126. iNdEx++
  10127. wire |= (uint64(b) & 0x7F) << shift
  10128. if b < 0x80 {
  10129. break
  10130. }
  10131. }
  10132. fieldNum := int32(wire >> 3)
  10133. wireType := int(wire & 0x7)
  10134. if wireType == 4 {
  10135. return fmt.Errorf("proto: RequestCommit: wiretype end group for non-group")
  10136. }
  10137. if fieldNum <= 0 {
  10138. return fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire)
  10139. }
  10140. switch fieldNum {
  10141. default:
  10142. iNdEx = preIndex
  10143. skippy, err := skipTypes(dAtA[iNdEx:])
  10144. if err != nil {
  10145. return err
  10146. }
  10147. if skippy < 0 {
  10148. return ErrInvalidLengthTypes
  10149. }
  10150. if (iNdEx + skippy) > l {
  10151. return io.ErrUnexpectedEOF
  10152. }
  10153. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10154. iNdEx += skippy
  10155. }
  10156. }
  10157. if iNdEx > l {
  10158. return io.ErrUnexpectedEOF
  10159. }
  10160. return nil
  10161. }
  10162. func (m *Response) Unmarshal(dAtA []byte) error {
  10163. l := len(dAtA)
  10164. iNdEx := 0
  10165. for iNdEx < l {
  10166. preIndex := iNdEx
  10167. var wire uint64
  10168. for shift := uint(0); ; shift += 7 {
  10169. if shift >= 64 {
  10170. return ErrIntOverflowTypes
  10171. }
  10172. if iNdEx >= l {
  10173. return io.ErrUnexpectedEOF
  10174. }
  10175. b := dAtA[iNdEx]
  10176. iNdEx++
  10177. wire |= (uint64(b) & 0x7F) << shift
  10178. if b < 0x80 {
  10179. break
  10180. }
  10181. }
  10182. fieldNum := int32(wire >> 3)
  10183. wireType := int(wire & 0x7)
  10184. if wireType == 4 {
  10185. return fmt.Errorf("proto: Response: wiretype end group for non-group")
  10186. }
  10187. if fieldNum <= 0 {
  10188. return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
  10189. }
  10190. switch fieldNum {
  10191. case 1:
  10192. if wireType != 2 {
  10193. return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType)
  10194. }
  10195. var msglen int
  10196. for shift := uint(0); ; shift += 7 {
  10197. if shift >= 64 {
  10198. return ErrIntOverflowTypes
  10199. }
  10200. if iNdEx >= l {
  10201. return io.ErrUnexpectedEOF
  10202. }
  10203. b := dAtA[iNdEx]
  10204. iNdEx++
  10205. msglen |= (int(b) & 0x7F) << shift
  10206. if b < 0x80 {
  10207. break
  10208. }
  10209. }
  10210. if msglen < 0 {
  10211. return ErrInvalidLengthTypes
  10212. }
  10213. postIndex := iNdEx + msglen
  10214. if postIndex > l {
  10215. return io.ErrUnexpectedEOF
  10216. }
  10217. v := &ResponseException{}
  10218. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10219. return err
  10220. }
  10221. m.Value = &Response_Exception{v}
  10222. iNdEx = postIndex
  10223. case 2:
  10224. if wireType != 2 {
  10225. return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType)
  10226. }
  10227. var msglen int
  10228. for shift := uint(0); ; shift += 7 {
  10229. if shift >= 64 {
  10230. return ErrIntOverflowTypes
  10231. }
  10232. if iNdEx >= l {
  10233. return io.ErrUnexpectedEOF
  10234. }
  10235. b := dAtA[iNdEx]
  10236. iNdEx++
  10237. msglen |= (int(b) & 0x7F) << shift
  10238. if b < 0x80 {
  10239. break
  10240. }
  10241. }
  10242. if msglen < 0 {
  10243. return ErrInvalidLengthTypes
  10244. }
  10245. postIndex := iNdEx + msglen
  10246. if postIndex > l {
  10247. return io.ErrUnexpectedEOF
  10248. }
  10249. v := &ResponseEcho{}
  10250. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10251. return err
  10252. }
  10253. m.Value = &Response_Echo{v}
  10254. iNdEx = postIndex
  10255. case 3:
  10256. if wireType != 2 {
  10257. return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType)
  10258. }
  10259. var msglen int
  10260. for shift := uint(0); ; shift += 7 {
  10261. if shift >= 64 {
  10262. return ErrIntOverflowTypes
  10263. }
  10264. if iNdEx >= l {
  10265. return io.ErrUnexpectedEOF
  10266. }
  10267. b := dAtA[iNdEx]
  10268. iNdEx++
  10269. msglen |= (int(b) & 0x7F) << shift
  10270. if b < 0x80 {
  10271. break
  10272. }
  10273. }
  10274. if msglen < 0 {
  10275. return ErrInvalidLengthTypes
  10276. }
  10277. postIndex := iNdEx + msglen
  10278. if postIndex > l {
  10279. return io.ErrUnexpectedEOF
  10280. }
  10281. v := &ResponseFlush{}
  10282. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10283. return err
  10284. }
  10285. m.Value = &Response_Flush{v}
  10286. iNdEx = postIndex
  10287. case 4:
  10288. if wireType != 2 {
  10289. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  10290. }
  10291. var msglen int
  10292. for shift := uint(0); ; shift += 7 {
  10293. if shift >= 64 {
  10294. return ErrIntOverflowTypes
  10295. }
  10296. if iNdEx >= l {
  10297. return io.ErrUnexpectedEOF
  10298. }
  10299. b := dAtA[iNdEx]
  10300. iNdEx++
  10301. msglen |= (int(b) & 0x7F) << shift
  10302. if b < 0x80 {
  10303. break
  10304. }
  10305. }
  10306. if msglen < 0 {
  10307. return ErrInvalidLengthTypes
  10308. }
  10309. postIndex := iNdEx + msglen
  10310. if postIndex > l {
  10311. return io.ErrUnexpectedEOF
  10312. }
  10313. v := &ResponseInfo{}
  10314. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10315. return err
  10316. }
  10317. m.Value = &Response_Info{v}
  10318. iNdEx = postIndex
  10319. case 5:
  10320. if wireType != 2 {
  10321. return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType)
  10322. }
  10323. var msglen int
  10324. for shift := uint(0); ; shift += 7 {
  10325. if shift >= 64 {
  10326. return ErrIntOverflowTypes
  10327. }
  10328. if iNdEx >= l {
  10329. return io.ErrUnexpectedEOF
  10330. }
  10331. b := dAtA[iNdEx]
  10332. iNdEx++
  10333. msglen |= (int(b) & 0x7F) << shift
  10334. if b < 0x80 {
  10335. break
  10336. }
  10337. }
  10338. if msglen < 0 {
  10339. return ErrInvalidLengthTypes
  10340. }
  10341. postIndex := iNdEx + msglen
  10342. if postIndex > l {
  10343. return io.ErrUnexpectedEOF
  10344. }
  10345. v := &ResponseSetOption{}
  10346. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10347. return err
  10348. }
  10349. m.Value = &Response_SetOption{v}
  10350. iNdEx = postIndex
  10351. case 6:
  10352. if wireType != 2 {
  10353. return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType)
  10354. }
  10355. var msglen int
  10356. for shift := uint(0); ; shift += 7 {
  10357. if shift >= 64 {
  10358. return ErrIntOverflowTypes
  10359. }
  10360. if iNdEx >= l {
  10361. return io.ErrUnexpectedEOF
  10362. }
  10363. b := dAtA[iNdEx]
  10364. iNdEx++
  10365. msglen |= (int(b) & 0x7F) << shift
  10366. if b < 0x80 {
  10367. break
  10368. }
  10369. }
  10370. if msglen < 0 {
  10371. return ErrInvalidLengthTypes
  10372. }
  10373. postIndex := iNdEx + msglen
  10374. if postIndex > l {
  10375. return io.ErrUnexpectedEOF
  10376. }
  10377. v := &ResponseInitChain{}
  10378. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10379. return err
  10380. }
  10381. m.Value = &Response_InitChain{v}
  10382. iNdEx = postIndex
  10383. case 7:
  10384. if wireType != 2 {
  10385. return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  10386. }
  10387. var msglen int
  10388. for shift := uint(0); ; shift += 7 {
  10389. if shift >= 64 {
  10390. return ErrIntOverflowTypes
  10391. }
  10392. if iNdEx >= l {
  10393. return io.ErrUnexpectedEOF
  10394. }
  10395. b := dAtA[iNdEx]
  10396. iNdEx++
  10397. msglen |= (int(b) & 0x7F) << shift
  10398. if b < 0x80 {
  10399. break
  10400. }
  10401. }
  10402. if msglen < 0 {
  10403. return ErrInvalidLengthTypes
  10404. }
  10405. postIndex := iNdEx + msglen
  10406. if postIndex > l {
  10407. return io.ErrUnexpectedEOF
  10408. }
  10409. v := &ResponseQuery{}
  10410. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10411. return err
  10412. }
  10413. m.Value = &Response_Query{v}
  10414. iNdEx = postIndex
  10415. case 8:
  10416. if wireType != 2 {
  10417. return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  10418. }
  10419. var msglen int
  10420. for shift := uint(0); ; shift += 7 {
  10421. if shift >= 64 {
  10422. return ErrIntOverflowTypes
  10423. }
  10424. if iNdEx >= l {
  10425. return io.ErrUnexpectedEOF
  10426. }
  10427. b := dAtA[iNdEx]
  10428. iNdEx++
  10429. msglen |= (int(b) & 0x7F) << shift
  10430. if b < 0x80 {
  10431. break
  10432. }
  10433. }
  10434. if msglen < 0 {
  10435. return ErrInvalidLengthTypes
  10436. }
  10437. postIndex := iNdEx + msglen
  10438. if postIndex > l {
  10439. return io.ErrUnexpectedEOF
  10440. }
  10441. v := &ResponseBeginBlock{}
  10442. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10443. return err
  10444. }
  10445. m.Value = &Response_BeginBlock{v}
  10446. iNdEx = postIndex
  10447. case 9:
  10448. if wireType != 2 {
  10449. return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
  10450. }
  10451. var msglen int
  10452. for shift := uint(0); ; shift += 7 {
  10453. if shift >= 64 {
  10454. return ErrIntOverflowTypes
  10455. }
  10456. if iNdEx >= l {
  10457. return io.ErrUnexpectedEOF
  10458. }
  10459. b := dAtA[iNdEx]
  10460. iNdEx++
  10461. msglen |= (int(b) & 0x7F) << shift
  10462. if b < 0x80 {
  10463. break
  10464. }
  10465. }
  10466. if msglen < 0 {
  10467. return ErrInvalidLengthTypes
  10468. }
  10469. postIndex := iNdEx + msglen
  10470. if postIndex > l {
  10471. return io.ErrUnexpectedEOF
  10472. }
  10473. v := &ResponseCheckTx{}
  10474. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10475. return err
  10476. }
  10477. m.Value = &Response_CheckTx{v}
  10478. iNdEx = postIndex
  10479. case 10:
  10480. if wireType != 2 {
  10481. return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
  10482. }
  10483. var msglen int
  10484. for shift := uint(0); ; shift += 7 {
  10485. if shift >= 64 {
  10486. return ErrIntOverflowTypes
  10487. }
  10488. if iNdEx >= l {
  10489. return io.ErrUnexpectedEOF
  10490. }
  10491. b := dAtA[iNdEx]
  10492. iNdEx++
  10493. msglen |= (int(b) & 0x7F) << shift
  10494. if b < 0x80 {
  10495. break
  10496. }
  10497. }
  10498. if msglen < 0 {
  10499. return ErrInvalidLengthTypes
  10500. }
  10501. postIndex := iNdEx + msglen
  10502. if postIndex > l {
  10503. return io.ErrUnexpectedEOF
  10504. }
  10505. v := &ResponseDeliverTx{}
  10506. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10507. return err
  10508. }
  10509. m.Value = &Response_DeliverTx{v}
  10510. iNdEx = postIndex
  10511. case 11:
  10512. if wireType != 2 {
  10513. return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
  10514. }
  10515. var msglen int
  10516. for shift := uint(0); ; shift += 7 {
  10517. if shift >= 64 {
  10518. return ErrIntOverflowTypes
  10519. }
  10520. if iNdEx >= l {
  10521. return io.ErrUnexpectedEOF
  10522. }
  10523. b := dAtA[iNdEx]
  10524. iNdEx++
  10525. msglen |= (int(b) & 0x7F) << shift
  10526. if b < 0x80 {
  10527. break
  10528. }
  10529. }
  10530. if msglen < 0 {
  10531. return ErrInvalidLengthTypes
  10532. }
  10533. postIndex := iNdEx + msglen
  10534. if postIndex > l {
  10535. return io.ErrUnexpectedEOF
  10536. }
  10537. v := &ResponseEndBlock{}
  10538. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10539. return err
  10540. }
  10541. m.Value = &Response_EndBlock{v}
  10542. iNdEx = postIndex
  10543. case 12:
  10544. if wireType != 2 {
  10545. return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  10546. }
  10547. var msglen int
  10548. for shift := uint(0); ; shift += 7 {
  10549. if shift >= 64 {
  10550. return ErrIntOverflowTypes
  10551. }
  10552. if iNdEx >= l {
  10553. return io.ErrUnexpectedEOF
  10554. }
  10555. b := dAtA[iNdEx]
  10556. iNdEx++
  10557. msglen |= (int(b) & 0x7F) << shift
  10558. if b < 0x80 {
  10559. break
  10560. }
  10561. }
  10562. if msglen < 0 {
  10563. return ErrInvalidLengthTypes
  10564. }
  10565. postIndex := iNdEx + msglen
  10566. if postIndex > l {
  10567. return io.ErrUnexpectedEOF
  10568. }
  10569. v := &ResponseCommit{}
  10570. if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10571. return err
  10572. }
  10573. m.Value = &Response_Commit{v}
  10574. iNdEx = postIndex
  10575. default:
  10576. iNdEx = preIndex
  10577. skippy, err := skipTypes(dAtA[iNdEx:])
  10578. if err != nil {
  10579. return err
  10580. }
  10581. if skippy < 0 {
  10582. return ErrInvalidLengthTypes
  10583. }
  10584. if (iNdEx + skippy) > l {
  10585. return io.ErrUnexpectedEOF
  10586. }
  10587. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10588. iNdEx += skippy
  10589. }
  10590. }
  10591. if iNdEx > l {
  10592. return io.ErrUnexpectedEOF
  10593. }
  10594. return nil
  10595. }
  10596. func (m *ResponseException) Unmarshal(dAtA []byte) error {
  10597. l := len(dAtA)
  10598. iNdEx := 0
  10599. for iNdEx < l {
  10600. preIndex := iNdEx
  10601. var wire uint64
  10602. for shift := uint(0); ; shift += 7 {
  10603. if shift >= 64 {
  10604. return ErrIntOverflowTypes
  10605. }
  10606. if iNdEx >= l {
  10607. return io.ErrUnexpectedEOF
  10608. }
  10609. b := dAtA[iNdEx]
  10610. iNdEx++
  10611. wire |= (uint64(b) & 0x7F) << shift
  10612. if b < 0x80 {
  10613. break
  10614. }
  10615. }
  10616. fieldNum := int32(wire >> 3)
  10617. wireType := int(wire & 0x7)
  10618. if wireType == 4 {
  10619. return fmt.Errorf("proto: ResponseException: wiretype end group for non-group")
  10620. }
  10621. if fieldNum <= 0 {
  10622. return fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire)
  10623. }
  10624. switch fieldNum {
  10625. case 1:
  10626. if wireType != 2 {
  10627. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  10628. }
  10629. var stringLen uint64
  10630. for shift := uint(0); ; shift += 7 {
  10631. if shift >= 64 {
  10632. return ErrIntOverflowTypes
  10633. }
  10634. if iNdEx >= l {
  10635. return io.ErrUnexpectedEOF
  10636. }
  10637. b := dAtA[iNdEx]
  10638. iNdEx++
  10639. stringLen |= (uint64(b) & 0x7F) << shift
  10640. if b < 0x80 {
  10641. break
  10642. }
  10643. }
  10644. intStringLen := int(stringLen)
  10645. if intStringLen < 0 {
  10646. return ErrInvalidLengthTypes
  10647. }
  10648. postIndex := iNdEx + intStringLen
  10649. if postIndex > l {
  10650. return io.ErrUnexpectedEOF
  10651. }
  10652. m.Error = string(dAtA[iNdEx:postIndex])
  10653. iNdEx = postIndex
  10654. default:
  10655. iNdEx = preIndex
  10656. skippy, err := skipTypes(dAtA[iNdEx:])
  10657. if err != nil {
  10658. return err
  10659. }
  10660. if skippy < 0 {
  10661. return ErrInvalidLengthTypes
  10662. }
  10663. if (iNdEx + skippy) > l {
  10664. return io.ErrUnexpectedEOF
  10665. }
  10666. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10667. iNdEx += skippy
  10668. }
  10669. }
  10670. if iNdEx > l {
  10671. return io.ErrUnexpectedEOF
  10672. }
  10673. return nil
  10674. }
  10675. func (m *ResponseEcho) Unmarshal(dAtA []byte) error {
  10676. l := len(dAtA)
  10677. iNdEx := 0
  10678. for iNdEx < l {
  10679. preIndex := iNdEx
  10680. var wire uint64
  10681. for shift := uint(0); ; shift += 7 {
  10682. if shift >= 64 {
  10683. return ErrIntOverflowTypes
  10684. }
  10685. if iNdEx >= l {
  10686. return io.ErrUnexpectedEOF
  10687. }
  10688. b := dAtA[iNdEx]
  10689. iNdEx++
  10690. wire |= (uint64(b) & 0x7F) << shift
  10691. if b < 0x80 {
  10692. break
  10693. }
  10694. }
  10695. fieldNum := int32(wire >> 3)
  10696. wireType := int(wire & 0x7)
  10697. if wireType == 4 {
  10698. return fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group")
  10699. }
  10700. if fieldNum <= 0 {
  10701. return fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire)
  10702. }
  10703. switch fieldNum {
  10704. case 1:
  10705. if wireType != 2 {
  10706. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  10707. }
  10708. var stringLen uint64
  10709. for shift := uint(0); ; shift += 7 {
  10710. if shift >= 64 {
  10711. return ErrIntOverflowTypes
  10712. }
  10713. if iNdEx >= l {
  10714. return io.ErrUnexpectedEOF
  10715. }
  10716. b := dAtA[iNdEx]
  10717. iNdEx++
  10718. stringLen |= (uint64(b) & 0x7F) << shift
  10719. if b < 0x80 {
  10720. break
  10721. }
  10722. }
  10723. intStringLen := int(stringLen)
  10724. if intStringLen < 0 {
  10725. return ErrInvalidLengthTypes
  10726. }
  10727. postIndex := iNdEx + intStringLen
  10728. if postIndex > l {
  10729. return io.ErrUnexpectedEOF
  10730. }
  10731. m.Message = string(dAtA[iNdEx:postIndex])
  10732. iNdEx = postIndex
  10733. default:
  10734. iNdEx = preIndex
  10735. skippy, err := skipTypes(dAtA[iNdEx:])
  10736. if err != nil {
  10737. return err
  10738. }
  10739. if skippy < 0 {
  10740. return ErrInvalidLengthTypes
  10741. }
  10742. if (iNdEx + skippy) > l {
  10743. return io.ErrUnexpectedEOF
  10744. }
  10745. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10746. iNdEx += skippy
  10747. }
  10748. }
  10749. if iNdEx > l {
  10750. return io.ErrUnexpectedEOF
  10751. }
  10752. return nil
  10753. }
  10754. func (m *ResponseFlush) Unmarshal(dAtA []byte) error {
  10755. l := len(dAtA)
  10756. iNdEx := 0
  10757. for iNdEx < l {
  10758. preIndex := iNdEx
  10759. var wire uint64
  10760. for shift := uint(0); ; shift += 7 {
  10761. if shift >= 64 {
  10762. return ErrIntOverflowTypes
  10763. }
  10764. if iNdEx >= l {
  10765. return io.ErrUnexpectedEOF
  10766. }
  10767. b := dAtA[iNdEx]
  10768. iNdEx++
  10769. wire |= (uint64(b) & 0x7F) << shift
  10770. if b < 0x80 {
  10771. break
  10772. }
  10773. }
  10774. fieldNum := int32(wire >> 3)
  10775. wireType := int(wire & 0x7)
  10776. if wireType == 4 {
  10777. return fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group")
  10778. }
  10779. if fieldNum <= 0 {
  10780. return fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire)
  10781. }
  10782. switch fieldNum {
  10783. default:
  10784. iNdEx = preIndex
  10785. skippy, err := skipTypes(dAtA[iNdEx:])
  10786. if err != nil {
  10787. return err
  10788. }
  10789. if skippy < 0 {
  10790. return ErrInvalidLengthTypes
  10791. }
  10792. if (iNdEx + skippy) > l {
  10793. return io.ErrUnexpectedEOF
  10794. }
  10795. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10796. iNdEx += skippy
  10797. }
  10798. }
  10799. if iNdEx > l {
  10800. return io.ErrUnexpectedEOF
  10801. }
  10802. return nil
  10803. }
  10804. func (m *ResponseInfo) Unmarshal(dAtA []byte) error {
  10805. l := len(dAtA)
  10806. iNdEx := 0
  10807. for iNdEx < l {
  10808. preIndex := iNdEx
  10809. var wire uint64
  10810. for shift := uint(0); ; shift += 7 {
  10811. if shift >= 64 {
  10812. return ErrIntOverflowTypes
  10813. }
  10814. if iNdEx >= l {
  10815. return io.ErrUnexpectedEOF
  10816. }
  10817. b := dAtA[iNdEx]
  10818. iNdEx++
  10819. wire |= (uint64(b) & 0x7F) << shift
  10820. if b < 0x80 {
  10821. break
  10822. }
  10823. }
  10824. fieldNum := int32(wire >> 3)
  10825. wireType := int(wire & 0x7)
  10826. if wireType == 4 {
  10827. return fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group")
  10828. }
  10829. if fieldNum <= 0 {
  10830. return fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  10831. }
  10832. switch fieldNum {
  10833. case 1:
  10834. if wireType != 2 {
  10835. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  10836. }
  10837. var stringLen uint64
  10838. for shift := uint(0); ; shift += 7 {
  10839. if shift >= 64 {
  10840. return ErrIntOverflowTypes
  10841. }
  10842. if iNdEx >= l {
  10843. return io.ErrUnexpectedEOF
  10844. }
  10845. b := dAtA[iNdEx]
  10846. iNdEx++
  10847. stringLen |= (uint64(b) & 0x7F) << shift
  10848. if b < 0x80 {
  10849. break
  10850. }
  10851. }
  10852. intStringLen := int(stringLen)
  10853. if intStringLen < 0 {
  10854. return ErrInvalidLengthTypes
  10855. }
  10856. postIndex := iNdEx + intStringLen
  10857. if postIndex > l {
  10858. return io.ErrUnexpectedEOF
  10859. }
  10860. m.Data = string(dAtA[iNdEx:postIndex])
  10861. iNdEx = postIndex
  10862. case 2:
  10863. if wireType != 2 {
  10864. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  10865. }
  10866. var stringLen uint64
  10867. for shift := uint(0); ; shift += 7 {
  10868. if shift >= 64 {
  10869. return ErrIntOverflowTypes
  10870. }
  10871. if iNdEx >= l {
  10872. return io.ErrUnexpectedEOF
  10873. }
  10874. b := dAtA[iNdEx]
  10875. iNdEx++
  10876. stringLen |= (uint64(b) & 0x7F) << shift
  10877. if b < 0x80 {
  10878. break
  10879. }
  10880. }
  10881. intStringLen := int(stringLen)
  10882. if intStringLen < 0 {
  10883. return ErrInvalidLengthTypes
  10884. }
  10885. postIndex := iNdEx + intStringLen
  10886. if postIndex > l {
  10887. return io.ErrUnexpectedEOF
  10888. }
  10889. m.Version = string(dAtA[iNdEx:postIndex])
  10890. iNdEx = postIndex
  10891. case 3:
  10892. if wireType != 0 {
  10893. return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType)
  10894. }
  10895. m.LastBlockHeight = 0
  10896. for shift := uint(0); ; shift += 7 {
  10897. if shift >= 64 {
  10898. return ErrIntOverflowTypes
  10899. }
  10900. if iNdEx >= l {
  10901. return io.ErrUnexpectedEOF
  10902. }
  10903. b := dAtA[iNdEx]
  10904. iNdEx++
  10905. m.LastBlockHeight |= (int64(b) & 0x7F) << shift
  10906. if b < 0x80 {
  10907. break
  10908. }
  10909. }
  10910. case 4:
  10911. if wireType != 2 {
  10912. return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType)
  10913. }
  10914. var byteLen int
  10915. for shift := uint(0); ; shift += 7 {
  10916. if shift >= 64 {
  10917. return ErrIntOverflowTypes
  10918. }
  10919. if iNdEx >= l {
  10920. return io.ErrUnexpectedEOF
  10921. }
  10922. b := dAtA[iNdEx]
  10923. iNdEx++
  10924. byteLen |= (int(b) & 0x7F) << shift
  10925. if b < 0x80 {
  10926. break
  10927. }
  10928. }
  10929. if byteLen < 0 {
  10930. return ErrInvalidLengthTypes
  10931. }
  10932. postIndex := iNdEx + byteLen
  10933. if postIndex > l {
  10934. return io.ErrUnexpectedEOF
  10935. }
  10936. m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...)
  10937. if m.LastBlockAppHash == nil {
  10938. m.LastBlockAppHash = []byte{}
  10939. }
  10940. iNdEx = postIndex
  10941. default:
  10942. iNdEx = preIndex
  10943. skippy, err := skipTypes(dAtA[iNdEx:])
  10944. if err != nil {
  10945. return err
  10946. }
  10947. if skippy < 0 {
  10948. return ErrInvalidLengthTypes
  10949. }
  10950. if (iNdEx + skippy) > l {
  10951. return io.ErrUnexpectedEOF
  10952. }
  10953. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10954. iNdEx += skippy
  10955. }
  10956. }
  10957. if iNdEx > l {
  10958. return io.ErrUnexpectedEOF
  10959. }
  10960. return nil
  10961. }
  10962. func (m *ResponseSetOption) Unmarshal(dAtA []byte) error {
  10963. l := len(dAtA)
  10964. iNdEx := 0
  10965. for iNdEx < l {
  10966. preIndex := iNdEx
  10967. var wire uint64
  10968. for shift := uint(0); ; shift += 7 {
  10969. if shift >= 64 {
  10970. return ErrIntOverflowTypes
  10971. }
  10972. if iNdEx >= l {
  10973. return io.ErrUnexpectedEOF
  10974. }
  10975. b := dAtA[iNdEx]
  10976. iNdEx++
  10977. wire |= (uint64(b) & 0x7F) << shift
  10978. if b < 0x80 {
  10979. break
  10980. }
  10981. }
  10982. fieldNum := int32(wire >> 3)
  10983. wireType := int(wire & 0x7)
  10984. if wireType == 4 {
  10985. return fmt.Errorf("proto: ResponseSetOption: wiretype end group for non-group")
  10986. }
  10987. if fieldNum <= 0 {
  10988. return fmt.Errorf("proto: ResponseSetOption: illegal tag %d (wire type %d)", fieldNum, wire)
  10989. }
  10990. switch fieldNum {
  10991. case 1:
  10992. if wireType != 0 {
  10993. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  10994. }
  10995. m.Code = 0
  10996. for shift := uint(0); ; shift += 7 {
  10997. if shift >= 64 {
  10998. return ErrIntOverflowTypes
  10999. }
  11000. if iNdEx >= l {
  11001. return io.ErrUnexpectedEOF
  11002. }
  11003. b := dAtA[iNdEx]
  11004. iNdEx++
  11005. m.Code |= (uint32(b) & 0x7F) << shift
  11006. if b < 0x80 {
  11007. break
  11008. }
  11009. }
  11010. case 3:
  11011. if wireType != 2 {
  11012. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11013. }
  11014. var stringLen uint64
  11015. for shift := uint(0); ; shift += 7 {
  11016. if shift >= 64 {
  11017. return ErrIntOverflowTypes
  11018. }
  11019. if iNdEx >= l {
  11020. return io.ErrUnexpectedEOF
  11021. }
  11022. b := dAtA[iNdEx]
  11023. iNdEx++
  11024. stringLen |= (uint64(b) & 0x7F) << shift
  11025. if b < 0x80 {
  11026. break
  11027. }
  11028. }
  11029. intStringLen := int(stringLen)
  11030. if intStringLen < 0 {
  11031. return ErrInvalidLengthTypes
  11032. }
  11033. postIndex := iNdEx + intStringLen
  11034. if postIndex > l {
  11035. return io.ErrUnexpectedEOF
  11036. }
  11037. m.Log = string(dAtA[iNdEx:postIndex])
  11038. iNdEx = postIndex
  11039. case 4:
  11040. if wireType != 2 {
  11041. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  11042. }
  11043. var stringLen uint64
  11044. for shift := uint(0); ; shift += 7 {
  11045. if shift >= 64 {
  11046. return ErrIntOverflowTypes
  11047. }
  11048. if iNdEx >= l {
  11049. return io.ErrUnexpectedEOF
  11050. }
  11051. b := dAtA[iNdEx]
  11052. iNdEx++
  11053. stringLen |= (uint64(b) & 0x7F) << shift
  11054. if b < 0x80 {
  11055. break
  11056. }
  11057. }
  11058. intStringLen := int(stringLen)
  11059. if intStringLen < 0 {
  11060. return ErrInvalidLengthTypes
  11061. }
  11062. postIndex := iNdEx + intStringLen
  11063. if postIndex > l {
  11064. return io.ErrUnexpectedEOF
  11065. }
  11066. m.Info = string(dAtA[iNdEx:postIndex])
  11067. iNdEx = postIndex
  11068. default:
  11069. iNdEx = preIndex
  11070. skippy, err := skipTypes(dAtA[iNdEx:])
  11071. if err != nil {
  11072. return err
  11073. }
  11074. if skippy < 0 {
  11075. return ErrInvalidLengthTypes
  11076. }
  11077. if (iNdEx + skippy) > l {
  11078. return io.ErrUnexpectedEOF
  11079. }
  11080. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11081. iNdEx += skippy
  11082. }
  11083. }
  11084. if iNdEx > l {
  11085. return io.ErrUnexpectedEOF
  11086. }
  11087. return nil
  11088. }
  11089. func (m *ResponseInitChain) Unmarshal(dAtA []byte) error {
  11090. l := len(dAtA)
  11091. iNdEx := 0
  11092. for iNdEx < l {
  11093. preIndex := iNdEx
  11094. var wire uint64
  11095. for shift := uint(0); ; shift += 7 {
  11096. if shift >= 64 {
  11097. return ErrIntOverflowTypes
  11098. }
  11099. if iNdEx >= l {
  11100. return io.ErrUnexpectedEOF
  11101. }
  11102. b := dAtA[iNdEx]
  11103. iNdEx++
  11104. wire |= (uint64(b) & 0x7F) << shift
  11105. if b < 0x80 {
  11106. break
  11107. }
  11108. }
  11109. fieldNum := int32(wire >> 3)
  11110. wireType := int(wire & 0x7)
  11111. if wireType == 4 {
  11112. return fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group")
  11113. }
  11114. if fieldNum <= 0 {
  11115. return fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire)
  11116. }
  11117. switch fieldNum {
  11118. case 1:
  11119. if wireType != 2 {
  11120. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  11121. }
  11122. var msglen int
  11123. for shift := uint(0); ; shift += 7 {
  11124. if shift >= 64 {
  11125. return ErrIntOverflowTypes
  11126. }
  11127. if iNdEx >= l {
  11128. return io.ErrUnexpectedEOF
  11129. }
  11130. b := dAtA[iNdEx]
  11131. iNdEx++
  11132. msglen |= (int(b) & 0x7F) << shift
  11133. if b < 0x80 {
  11134. break
  11135. }
  11136. }
  11137. if msglen < 0 {
  11138. return ErrInvalidLengthTypes
  11139. }
  11140. postIndex := iNdEx + msglen
  11141. if postIndex > l {
  11142. return io.ErrUnexpectedEOF
  11143. }
  11144. if m.ConsensusParams == nil {
  11145. m.ConsensusParams = &ConsensusParams{}
  11146. }
  11147. if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11148. return err
  11149. }
  11150. iNdEx = postIndex
  11151. case 2:
  11152. if wireType != 2 {
  11153. return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  11154. }
  11155. var msglen int
  11156. for shift := uint(0); ; shift += 7 {
  11157. if shift >= 64 {
  11158. return ErrIntOverflowTypes
  11159. }
  11160. if iNdEx >= l {
  11161. return io.ErrUnexpectedEOF
  11162. }
  11163. b := dAtA[iNdEx]
  11164. iNdEx++
  11165. msglen |= (int(b) & 0x7F) << shift
  11166. if b < 0x80 {
  11167. break
  11168. }
  11169. }
  11170. if msglen < 0 {
  11171. return ErrInvalidLengthTypes
  11172. }
  11173. postIndex := iNdEx + msglen
  11174. if postIndex > l {
  11175. return io.ErrUnexpectedEOF
  11176. }
  11177. m.Validators = append(m.Validators, ValidatorUpdate{})
  11178. if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11179. return err
  11180. }
  11181. iNdEx = postIndex
  11182. default:
  11183. iNdEx = preIndex
  11184. skippy, err := skipTypes(dAtA[iNdEx:])
  11185. if err != nil {
  11186. return err
  11187. }
  11188. if skippy < 0 {
  11189. return ErrInvalidLengthTypes
  11190. }
  11191. if (iNdEx + skippy) > l {
  11192. return io.ErrUnexpectedEOF
  11193. }
  11194. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11195. iNdEx += skippy
  11196. }
  11197. }
  11198. if iNdEx > l {
  11199. return io.ErrUnexpectedEOF
  11200. }
  11201. return nil
  11202. }
  11203. func (m *ResponseQuery) Unmarshal(dAtA []byte) error {
  11204. l := len(dAtA)
  11205. iNdEx := 0
  11206. for iNdEx < l {
  11207. preIndex := iNdEx
  11208. var wire uint64
  11209. for shift := uint(0); ; shift += 7 {
  11210. if shift >= 64 {
  11211. return ErrIntOverflowTypes
  11212. }
  11213. if iNdEx >= l {
  11214. return io.ErrUnexpectedEOF
  11215. }
  11216. b := dAtA[iNdEx]
  11217. iNdEx++
  11218. wire |= (uint64(b) & 0x7F) << shift
  11219. if b < 0x80 {
  11220. break
  11221. }
  11222. }
  11223. fieldNum := int32(wire >> 3)
  11224. wireType := int(wire & 0x7)
  11225. if wireType == 4 {
  11226. return fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group")
  11227. }
  11228. if fieldNum <= 0 {
  11229. return fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  11230. }
  11231. switch fieldNum {
  11232. case 1:
  11233. if wireType != 0 {
  11234. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  11235. }
  11236. m.Code = 0
  11237. for shift := uint(0); ; shift += 7 {
  11238. if shift >= 64 {
  11239. return ErrIntOverflowTypes
  11240. }
  11241. if iNdEx >= l {
  11242. return io.ErrUnexpectedEOF
  11243. }
  11244. b := dAtA[iNdEx]
  11245. iNdEx++
  11246. m.Code |= (uint32(b) & 0x7F) << shift
  11247. if b < 0x80 {
  11248. break
  11249. }
  11250. }
  11251. case 3:
  11252. if wireType != 2 {
  11253. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11254. }
  11255. var stringLen uint64
  11256. for shift := uint(0); ; shift += 7 {
  11257. if shift >= 64 {
  11258. return ErrIntOverflowTypes
  11259. }
  11260. if iNdEx >= l {
  11261. return io.ErrUnexpectedEOF
  11262. }
  11263. b := dAtA[iNdEx]
  11264. iNdEx++
  11265. stringLen |= (uint64(b) & 0x7F) << shift
  11266. if b < 0x80 {
  11267. break
  11268. }
  11269. }
  11270. intStringLen := int(stringLen)
  11271. if intStringLen < 0 {
  11272. return ErrInvalidLengthTypes
  11273. }
  11274. postIndex := iNdEx + intStringLen
  11275. if postIndex > l {
  11276. return io.ErrUnexpectedEOF
  11277. }
  11278. m.Log = string(dAtA[iNdEx:postIndex])
  11279. iNdEx = postIndex
  11280. case 4:
  11281. if wireType != 2 {
  11282. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  11283. }
  11284. var stringLen uint64
  11285. for shift := uint(0); ; shift += 7 {
  11286. if shift >= 64 {
  11287. return ErrIntOverflowTypes
  11288. }
  11289. if iNdEx >= l {
  11290. return io.ErrUnexpectedEOF
  11291. }
  11292. b := dAtA[iNdEx]
  11293. iNdEx++
  11294. stringLen |= (uint64(b) & 0x7F) << shift
  11295. if b < 0x80 {
  11296. break
  11297. }
  11298. }
  11299. intStringLen := int(stringLen)
  11300. if intStringLen < 0 {
  11301. return ErrInvalidLengthTypes
  11302. }
  11303. postIndex := iNdEx + intStringLen
  11304. if postIndex > l {
  11305. return io.ErrUnexpectedEOF
  11306. }
  11307. m.Info = string(dAtA[iNdEx:postIndex])
  11308. iNdEx = postIndex
  11309. case 5:
  11310. if wireType != 0 {
  11311. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  11312. }
  11313. m.Index = 0
  11314. for shift := uint(0); ; shift += 7 {
  11315. if shift >= 64 {
  11316. return ErrIntOverflowTypes
  11317. }
  11318. if iNdEx >= l {
  11319. return io.ErrUnexpectedEOF
  11320. }
  11321. b := dAtA[iNdEx]
  11322. iNdEx++
  11323. m.Index |= (int64(b) & 0x7F) << shift
  11324. if b < 0x80 {
  11325. break
  11326. }
  11327. }
  11328. case 6:
  11329. if wireType != 2 {
  11330. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  11331. }
  11332. var byteLen int
  11333. for shift := uint(0); ; shift += 7 {
  11334. if shift >= 64 {
  11335. return ErrIntOverflowTypes
  11336. }
  11337. if iNdEx >= l {
  11338. return io.ErrUnexpectedEOF
  11339. }
  11340. b := dAtA[iNdEx]
  11341. iNdEx++
  11342. byteLen |= (int(b) & 0x7F) << shift
  11343. if b < 0x80 {
  11344. break
  11345. }
  11346. }
  11347. if byteLen < 0 {
  11348. return ErrInvalidLengthTypes
  11349. }
  11350. postIndex := iNdEx + byteLen
  11351. if postIndex > l {
  11352. return io.ErrUnexpectedEOF
  11353. }
  11354. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  11355. if m.Key == nil {
  11356. m.Key = []byte{}
  11357. }
  11358. iNdEx = postIndex
  11359. case 7:
  11360. if wireType != 2 {
  11361. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  11362. }
  11363. var byteLen int
  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. byteLen |= (int(b) & 0x7F) << shift
  11374. if b < 0x80 {
  11375. break
  11376. }
  11377. }
  11378. if byteLen < 0 {
  11379. return ErrInvalidLengthTypes
  11380. }
  11381. postIndex := iNdEx + byteLen
  11382. if postIndex > l {
  11383. return io.ErrUnexpectedEOF
  11384. }
  11385. m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  11386. if m.Value == nil {
  11387. m.Value = []byte{}
  11388. }
  11389. iNdEx = postIndex
  11390. case 8:
  11391. if wireType != 2 {
  11392. return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType)
  11393. }
  11394. var byteLen int
  11395. for shift := uint(0); ; shift += 7 {
  11396. if shift >= 64 {
  11397. return ErrIntOverflowTypes
  11398. }
  11399. if iNdEx >= l {
  11400. return io.ErrUnexpectedEOF
  11401. }
  11402. b := dAtA[iNdEx]
  11403. iNdEx++
  11404. byteLen |= (int(b) & 0x7F) << shift
  11405. if b < 0x80 {
  11406. break
  11407. }
  11408. }
  11409. if byteLen < 0 {
  11410. return ErrInvalidLengthTypes
  11411. }
  11412. postIndex := iNdEx + byteLen
  11413. if postIndex > l {
  11414. return io.ErrUnexpectedEOF
  11415. }
  11416. m.Proof = append(m.Proof[:0], dAtA[iNdEx:postIndex]...)
  11417. if m.Proof == nil {
  11418. m.Proof = []byte{}
  11419. }
  11420. iNdEx = postIndex
  11421. case 9:
  11422. if wireType != 0 {
  11423. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  11424. }
  11425. m.Height = 0
  11426. for shift := uint(0); ; shift += 7 {
  11427. if shift >= 64 {
  11428. return ErrIntOverflowTypes
  11429. }
  11430. if iNdEx >= l {
  11431. return io.ErrUnexpectedEOF
  11432. }
  11433. b := dAtA[iNdEx]
  11434. iNdEx++
  11435. m.Height |= (int64(b) & 0x7F) << shift
  11436. if b < 0x80 {
  11437. break
  11438. }
  11439. }
  11440. default:
  11441. iNdEx = preIndex
  11442. skippy, err := skipTypes(dAtA[iNdEx:])
  11443. if err != nil {
  11444. return err
  11445. }
  11446. if skippy < 0 {
  11447. return ErrInvalidLengthTypes
  11448. }
  11449. if (iNdEx + skippy) > l {
  11450. return io.ErrUnexpectedEOF
  11451. }
  11452. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11453. iNdEx += skippy
  11454. }
  11455. }
  11456. if iNdEx > l {
  11457. return io.ErrUnexpectedEOF
  11458. }
  11459. return nil
  11460. }
  11461. func (m *ResponseBeginBlock) Unmarshal(dAtA []byte) error {
  11462. l := len(dAtA)
  11463. iNdEx := 0
  11464. for iNdEx < l {
  11465. preIndex := iNdEx
  11466. var wire uint64
  11467. for shift := uint(0); ; shift += 7 {
  11468. if shift >= 64 {
  11469. return ErrIntOverflowTypes
  11470. }
  11471. if iNdEx >= l {
  11472. return io.ErrUnexpectedEOF
  11473. }
  11474. b := dAtA[iNdEx]
  11475. iNdEx++
  11476. wire |= (uint64(b) & 0x7F) << shift
  11477. if b < 0x80 {
  11478. break
  11479. }
  11480. }
  11481. fieldNum := int32(wire >> 3)
  11482. wireType := int(wire & 0x7)
  11483. if wireType == 4 {
  11484. return fmt.Errorf("proto: ResponseBeginBlock: wiretype end group for non-group")
  11485. }
  11486. if fieldNum <= 0 {
  11487. return fmt.Errorf("proto: ResponseBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  11488. }
  11489. switch fieldNum {
  11490. case 1:
  11491. if wireType != 2 {
  11492. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  11493. }
  11494. var msglen int
  11495. for shift := uint(0); ; shift += 7 {
  11496. if shift >= 64 {
  11497. return ErrIntOverflowTypes
  11498. }
  11499. if iNdEx >= l {
  11500. return io.ErrUnexpectedEOF
  11501. }
  11502. b := dAtA[iNdEx]
  11503. iNdEx++
  11504. msglen |= (int(b) & 0x7F) << shift
  11505. if b < 0x80 {
  11506. break
  11507. }
  11508. }
  11509. if msglen < 0 {
  11510. return ErrInvalidLengthTypes
  11511. }
  11512. postIndex := iNdEx + msglen
  11513. if postIndex > l {
  11514. return io.ErrUnexpectedEOF
  11515. }
  11516. m.Tags = append(m.Tags, common.KVPair{})
  11517. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11518. return err
  11519. }
  11520. iNdEx = postIndex
  11521. default:
  11522. iNdEx = preIndex
  11523. skippy, err := skipTypes(dAtA[iNdEx:])
  11524. if err != nil {
  11525. return err
  11526. }
  11527. if skippy < 0 {
  11528. return ErrInvalidLengthTypes
  11529. }
  11530. if (iNdEx + skippy) > l {
  11531. return io.ErrUnexpectedEOF
  11532. }
  11533. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11534. iNdEx += skippy
  11535. }
  11536. }
  11537. if iNdEx > l {
  11538. return io.ErrUnexpectedEOF
  11539. }
  11540. return nil
  11541. }
  11542. func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error {
  11543. l := len(dAtA)
  11544. iNdEx := 0
  11545. for iNdEx < l {
  11546. preIndex := iNdEx
  11547. var wire uint64
  11548. for shift := uint(0); ; shift += 7 {
  11549. if shift >= 64 {
  11550. return ErrIntOverflowTypes
  11551. }
  11552. if iNdEx >= l {
  11553. return io.ErrUnexpectedEOF
  11554. }
  11555. b := dAtA[iNdEx]
  11556. iNdEx++
  11557. wire |= (uint64(b) & 0x7F) << shift
  11558. if b < 0x80 {
  11559. break
  11560. }
  11561. }
  11562. fieldNum := int32(wire >> 3)
  11563. wireType := int(wire & 0x7)
  11564. if wireType == 4 {
  11565. return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group")
  11566. }
  11567. if fieldNum <= 0 {
  11568. return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire)
  11569. }
  11570. switch fieldNum {
  11571. case 1:
  11572. if wireType != 0 {
  11573. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  11574. }
  11575. m.Code = 0
  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. m.Code |= (uint32(b) & 0x7F) << shift
  11586. if b < 0x80 {
  11587. break
  11588. }
  11589. }
  11590. case 2:
  11591. if wireType != 2 {
  11592. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  11593. }
  11594. var byteLen int
  11595. for shift := uint(0); ; shift += 7 {
  11596. if shift >= 64 {
  11597. return ErrIntOverflowTypes
  11598. }
  11599. if iNdEx >= l {
  11600. return io.ErrUnexpectedEOF
  11601. }
  11602. b := dAtA[iNdEx]
  11603. iNdEx++
  11604. byteLen |= (int(b) & 0x7F) << shift
  11605. if b < 0x80 {
  11606. break
  11607. }
  11608. }
  11609. if byteLen < 0 {
  11610. return ErrInvalidLengthTypes
  11611. }
  11612. postIndex := iNdEx + byteLen
  11613. if postIndex > l {
  11614. return io.ErrUnexpectedEOF
  11615. }
  11616. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  11617. if m.Data == nil {
  11618. m.Data = []byte{}
  11619. }
  11620. iNdEx = postIndex
  11621. case 3:
  11622. if wireType != 2 {
  11623. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11624. }
  11625. var stringLen uint64
  11626. for shift := uint(0); ; shift += 7 {
  11627. if shift >= 64 {
  11628. return ErrIntOverflowTypes
  11629. }
  11630. if iNdEx >= l {
  11631. return io.ErrUnexpectedEOF
  11632. }
  11633. b := dAtA[iNdEx]
  11634. iNdEx++
  11635. stringLen |= (uint64(b) & 0x7F) << shift
  11636. if b < 0x80 {
  11637. break
  11638. }
  11639. }
  11640. intStringLen := int(stringLen)
  11641. if intStringLen < 0 {
  11642. return ErrInvalidLengthTypes
  11643. }
  11644. postIndex := iNdEx + intStringLen
  11645. if postIndex > l {
  11646. return io.ErrUnexpectedEOF
  11647. }
  11648. m.Log = string(dAtA[iNdEx:postIndex])
  11649. iNdEx = postIndex
  11650. case 4:
  11651. if wireType != 2 {
  11652. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  11653. }
  11654. var stringLen uint64
  11655. for shift := uint(0); ; shift += 7 {
  11656. if shift >= 64 {
  11657. return ErrIntOverflowTypes
  11658. }
  11659. if iNdEx >= l {
  11660. return io.ErrUnexpectedEOF
  11661. }
  11662. b := dAtA[iNdEx]
  11663. iNdEx++
  11664. stringLen |= (uint64(b) & 0x7F) << shift
  11665. if b < 0x80 {
  11666. break
  11667. }
  11668. }
  11669. intStringLen := int(stringLen)
  11670. if intStringLen < 0 {
  11671. return ErrInvalidLengthTypes
  11672. }
  11673. postIndex := iNdEx + intStringLen
  11674. if postIndex > l {
  11675. return io.ErrUnexpectedEOF
  11676. }
  11677. m.Info = string(dAtA[iNdEx:postIndex])
  11678. iNdEx = postIndex
  11679. case 5:
  11680. if wireType != 0 {
  11681. return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
  11682. }
  11683. m.GasWanted = 0
  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. m.GasWanted |= (int64(b) & 0x7F) << shift
  11694. if b < 0x80 {
  11695. break
  11696. }
  11697. }
  11698. case 6:
  11699. if wireType != 0 {
  11700. return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
  11701. }
  11702. m.GasUsed = 0
  11703. for shift := uint(0); ; shift += 7 {
  11704. if shift >= 64 {
  11705. return ErrIntOverflowTypes
  11706. }
  11707. if iNdEx >= l {
  11708. return io.ErrUnexpectedEOF
  11709. }
  11710. b := dAtA[iNdEx]
  11711. iNdEx++
  11712. m.GasUsed |= (int64(b) & 0x7F) << shift
  11713. if b < 0x80 {
  11714. break
  11715. }
  11716. }
  11717. case 7:
  11718. if wireType != 2 {
  11719. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  11720. }
  11721. var msglen int
  11722. for shift := uint(0); ; shift += 7 {
  11723. if shift >= 64 {
  11724. return ErrIntOverflowTypes
  11725. }
  11726. if iNdEx >= l {
  11727. return io.ErrUnexpectedEOF
  11728. }
  11729. b := dAtA[iNdEx]
  11730. iNdEx++
  11731. msglen |= (int(b) & 0x7F) << shift
  11732. if b < 0x80 {
  11733. break
  11734. }
  11735. }
  11736. if msglen < 0 {
  11737. return ErrInvalidLengthTypes
  11738. }
  11739. postIndex := iNdEx + msglen
  11740. if postIndex > l {
  11741. return io.ErrUnexpectedEOF
  11742. }
  11743. m.Tags = append(m.Tags, common.KVPair{})
  11744. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11745. return err
  11746. }
  11747. iNdEx = postIndex
  11748. default:
  11749. iNdEx = preIndex
  11750. skippy, err := skipTypes(dAtA[iNdEx:])
  11751. if err != nil {
  11752. return err
  11753. }
  11754. if skippy < 0 {
  11755. return ErrInvalidLengthTypes
  11756. }
  11757. if (iNdEx + skippy) > l {
  11758. return io.ErrUnexpectedEOF
  11759. }
  11760. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11761. iNdEx += skippy
  11762. }
  11763. }
  11764. if iNdEx > l {
  11765. return io.ErrUnexpectedEOF
  11766. }
  11767. return nil
  11768. }
  11769. func (m *ResponseDeliverTx) Unmarshal(dAtA []byte) error {
  11770. l := len(dAtA)
  11771. iNdEx := 0
  11772. for iNdEx < l {
  11773. preIndex := iNdEx
  11774. var wire uint64
  11775. for shift := uint(0); ; shift += 7 {
  11776. if shift >= 64 {
  11777. return ErrIntOverflowTypes
  11778. }
  11779. if iNdEx >= l {
  11780. return io.ErrUnexpectedEOF
  11781. }
  11782. b := dAtA[iNdEx]
  11783. iNdEx++
  11784. wire |= (uint64(b) & 0x7F) << shift
  11785. if b < 0x80 {
  11786. break
  11787. }
  11788. }
  11789. fieldNum := int32(wire >> 3)
  11790. wireType := int(wire & 0x7)
  11791. if wireType == 4 {
  11792. return fmt.Errorf("proto: ResponseDeliverTx: wiretype end group for non-group")
  11793. }
  11794. if fieldNum <= 0 {
  11795. return fmt.Errorf("proto: ResponseDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire)
  11796. }
  11797. switch fieldNum {
  11798. case 1:
  11799. if wireType != 0 {
  11800. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  11801. }
  11802. m.Code = 0
  11803. for shift := uint(0); ; shift += 7 {
  11804. if shift >= 64 {
  11805. return ErrIntOverflowTypes
  11806. }
  11807. if iNdEx >= l {
  11808. return io.ErrUnexpectedEOF
  11809. }
  11810. b := dAtA[iNdEx]
  11811. iNdEx++
  11812. m.Code |= (uint32(b) & 0x7F) << shift
  11813. if b < 0x80 {
  11814. break
  11815. }
  11816. }
  11817. case 2:
  11818. if wireType != 2 {
  11819. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  11820. }
  11821. var byteLen int
  11822. for shift := uint(0); ; shift += 7 {
  11823. if shift >= 64 {
  11824. return ErrIntOverflowTypes
  11825. }
  11826. if iNdEx >= l {
  11827. return io.ErrUnexpectedEOF
  11828. }
  11829. b := dAtA[iNdEx]
  11830. iNdEx++
  11831. byteLen |= (int(b) & 0x7F) << shift
  11832. if b < 0x80 {
  11833. break
  11834. }
  11835. }
  11836. if byteLen < 0 {
  11837. return ErrInvalidLengthTypes
  11838. }
  11839. postIndex := iNdEx + byteLen
  11840. if postIndex > l {
  11841. return io.ErrUnexpectedEOF
  11842. }
  11843. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  11844. if m.Data == nil {
  11845. m.Data = []byte{}
  11846. }
  11847. iNdEx = postIndex
  11848. case 3:
  11849. if wireType != 2 {
  11850. return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType)
  11851. }
  11852. var stringLen uint64
  11853. for shift := uint(0); ; shift += 7 {
  11854. if shift >= 64 {
  11855. return ErrIntOverflowTypes
  11856. }
  11857. if iNdEx >= l {
  11858. return io.ErrUnexpectedEOF
  11859. }
  11860. b := dAtA[iNdEx]
  11861. iNdEx++
  11862. stringLen |= (uint64(b) & 0x7F) << shift
  11863. if b < 0x80 {
  11864. break
  11865. }
  11866. }
  11867. intStringLen := int(stringLen)
  11868. if intStringLen < 0 {
  11869. return ErrInvalidLengthTypes
  11870. }
  11871. postIndex := iNdEx + intStringLen
  11872. if postIndex > l {
  11873. return io.ErrUnexpectedEOF
  11874. }
  11875. m.Log = string(dAtA[iNdEx:postIndex])
  11876. iNdEx = postIndex
  11877. case 4:
  11878. if wireType != 2 {
  11879. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  11880. }
  11881. var stringLen uint64
  11882. for shift := uint(0); ; shift += 7 {
  11883. if shift >= 64 {
  11884. return ErrIntOverflowTypes
  11885. }
  11886. if iNdEx >= l {
  11887. return io.ErrUnexpectedEOF
  11888. }
  11889. b := dAtA[iNdEx]
  11890. iNdEx++
  11891. stringLen |= (uint64(b) & 0x7F) << shift
  11892. if b < 0x80 {
  11893. break
  11894. }
  11895. }
  11896. intStringLen := int(stringLen)
  11897. if intStringLen < 0 {
  11898. return ErrInvalidLengthTypes
  11899. }
  11900. postIndex := iNdEx + intStringLen
  11901. if postIndex > l {
  11902. return io.ErrUnexpectedEOF
  11903. }
  11904. m.Info = string(dAtA[iNdEx:postIndex])
  11905. iNdEx = postIndex
  11906. case 5:
  11907. if wireType != 0 {
  11908. return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType)
  11909. }
  11910. m.GasWanted = 0
  11911. for shift := uint(0); ; shift += 7 {
  11912. if shift >= 64 {
  11913. return ErrIntOverflowTypes
  11914. }
  11915. if iNdEx >= l {
  11916. return io.ErrUnexpectedEOF
  11917. }
  11918. b := dAtA[iNdEx]
  11919. iNdEx++
  11920. m.GasWanted |= (int64(b) & 0x7F) << shift
  11921. if b < 0x80 {
  11922. break
  11923. }
  11924. }
  11925. case 6:
  11926. if wireType != 0 {
  11927. return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType)
  11928. }
  11929. m.GasUsed = 0
  11930. for shift := uint(0); ; shift += 7 {
  11931. if shift >= 64 {
  11932. return ErrIntOverflowTypes
  11933. }
  11934. if iNdEx >= l {
  11935. return io.ErrUnexpectedEOF
  11936. }
  11937. b := dAtA[iNdEx]
  11938. iNdEx++
  11939. m.GasUsed |= (int64(b) & 0x7F) << shift
  11940. if b < 0x80 {
  11941. break
  11942. }
  11943. }
  11944. case 7:
  11945. if wireType != 2 {
  11946. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  11947. }
  11948. var msglen int
  11949. for shift := uint(0); ; shift += 7 {
  11950. if shift >= 64 {
  11951. return ErrIntOverflowTypes
  11952. }
  11953. if iNdEx >= l {
  11954. return io.ErrUnexpectedEOF
  11955. }
  11956. b := dAtA[iNdEx]
  11957. iNdEx++
  11958. msglen |= (int(b) & 0x7F) << shift
  11959. if b < 0x80 {
  11960. break
  11961. }
  11962. }
  11963. if msglen < 0 {
  11964. return ErrInvalidLengthTypes
  11965. }
  11966. postIndex := iNdEx + msglen
  11967. if postIndex > l {
  11968. return io.ErrUnexpectedEOF
  11969. }
  11970. m.Tags = append(m.Tags, common.KVPair{})
  11971. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11972. return err
  11973. }
  11974. iNdEx = postIndex
  11975. default:
  11976. iNdEx = preIndex
  11977. skippy, err := skipTypes(dAtA[iNdEx:])
  11978. if err != nil {
  11979. return err
  11980. }
  11981. if skippy < 0 {
  11982. return ErrInvalidLengthTypes
  11983. }
  11984. if (iNdEx + skippy) > l {
  11985. return io.ErrUnexpectedEOF
  11986. }
  11987. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11988. iNdEx += skippy
  11989. }
  11990. }
  11991. if iNdEx > l {
  11992. return io.ErrUnexpectedEOF
  11993. }
  11994. return nil
  11995. }
  11996. func (m *ResponseEndBlock) Unmarshal(dAtA []byte) error {
  11997. l := len(dAtA)
  11998. iNdEx := 0
  11999. for iNdEx < l {
  12000. preIndex := iNdEx
  12001. var wire uint64
  12002. for shift := uint(0); ; shift += 7 {
  12003. if shift >= 64 {
  12004. return ErrIntOverflowTypes
  12005. }
  12006. if iNdEx >= l {
  12007. return io.ErrUnexpectedEOF
  12008. }
  12009. b := dAtA[iNdEx]
  12010. iNdEx++
  12011. wire |= (uint64(b) & 0x7F) << shift
  12012. if b < 0x80 {
  12013. break
  12014. }
  12015. }
  12016. fieldNum := int32(wire >> 3)
  12017. wireType := int(wire & 0x7)
  12018. if wireType == 4 {
  12019. return fmt.Errorf("proto: ResponseEndBlock: wiretype end group for non-group")
  12020. }
  12021. if fieldNum <= 0 {
  12022. return fmt.Errorf("proto: ResponseEndBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  12023. }
  12024. switch fieldNum {
  12025. case 1:
  12026. if wireType != 2 {
  12027. return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdates", wireType)
  12028. }
  12029. var msglen int
  12030. for shift := uint(0); ; shift += 7 {
  12031. if shift >= 64 {
  12032. return ErrIntOverflowTypes
  12033. }
  12034. if iNdEx >= l {
  12035. return io.ErrUnexpectedEOF
  12036. }
  12037. b := dAtA[iNdEx]
  12038. iNdEx++
  12039. msglen |= (int(b) & 0x7F) << shift
  12040. if b < 0x80 {
  12041. break
  12042. }
  12043. }
  12044. if msglen < 0 {
  12045. return ErrInvalidLengthTypes
  12046. }
  12047. postIndex := iNdEx + msglen
  12048. if postIndex > l {
  12049. return io.ErrUnexpectedEOF
  12050. }
  12051. m.ValidatorUpdates = append(m.ValidatorUpdates, ValidatorUpdate{})
  12052. if err := m.ValidatorUpdates[len(m.ValidatorUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12053. return err
  12054. }
  12055. iNdEx = postIndex
  12056. case 2:
  12057. if wireType != 2 {
  12058. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParamUpdates", wireType)
  12059. }
  12060. var msglen int
  12061. for shift := uint(0); ; shift += 7 {
  12062. if shift >= 64 {
  12063. return ErrIntOverflowTypes
  12064. }
  12065. if iNdEx >= l {
  12066. return io.ErrUnexpectedEOF
  12067. }
  12068. b := dAtA[iNdEx]
  12069. iNdEx++
  12070. msglen |= (int(b) & 0x7F) << shift
  12071. if b < 0x80 {
  12072. break
  12073. }
  12074. }
  12075. if msglen < 0 {
  12076. return ErrInvalidLengthTypes
  12077. }
  12078. postIndex := iNdEx + msglen
  12079. if postIndex > l {
  12080. return io.ErrUnexpectedEOF
  12081. }
  12082. if m.ConsensusParamUpdates == nil {
  12083. m.ConsensusParamUpdates = &ConsensusParams{}
  12084. }
  12085. if err := m.ConsensusParamUpdates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12086. return err
  12087. }
  12088. iNdEx = postIndex
  12089. case 3:
  12090. if wireType != 2 {
  12091. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  12092. }
  12093. var msglen int
  12094. for shift := uint(0); ; shift += 7 {
  12095. if shift >= 64 {
  12096. return ErrIntOverflowTypes
  12097. }
  12098. if iNdEx >= l {
  12099. return io.ErrUnexpectedEOF
  12100. }
  12101. b := dAtA[iNdEx]
  12102. iNdEx++
  12103. msglen |= (int(b) & 0x7F) << shift
  12104. if b < 0x80 {
  12105. break
  12106. }
  12107. }
  12108. if msglen < 0 {
  12109. return ErrInvalidLengthTypes
  12110. }
  12111. postIndex := iNdEx + msglen
  12112. if postIndex > l {
  12113. return io.ErrUnexpectedEOF
  12114. }
  12115. m.Tags = append(m.Tags, common.KVPair{})
  12116. if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12117. return err
  12118. }
  12119. iNdEx = postIndex
  12120. default:
  12121. iNdEx = preIndex
  12122. skippy, err := skipTypes(dAtA[iNdEx:])
  12123. if err != nil {
  12124. return err
  12125. }
  12126. if skippy < 0 {
  12127. return ErrInvalidLengthTypes
  12128. }
  12129. if (iNdEx + skippy) > l {
  12130. return io.ErrUnexpectedEOF
  12131. }
  12132. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12133. iNdEx += skippy
  12134. }
  12135. }
  12136. if iNdEx > l {
  12137. return io.ErrUnexpectedEOF
  12138. }
  12139. return nil
  12140. }
  12141. func (m *ResponseCommit) Unmarshal(dAtA []byte) error {
  12142. l := len(dAtA)
  12143. iNdEx := 0
  12144. for iNdEx < l {
  12145. preIndex := iNdEx
  12146. var wire uint64
  12147. for shift := uint(0); ; shift += 7 {
  12148. if shift >= 64 {
  12149. return ErrIntOverflowTypes
  12150. }
  12151. if iNdEx >= l {
  12152. return io.ErrUnexpectedEOF
  12153. }
  12154. b := dAtA[iNdEx]
  12155. iNdEx++
  12156. wire |= (uint64(b) & 0x7F) << shift
  12157. if b < 0x80 {
  12158. break
  12159. }
  12160. }
  12161. fieldNum := int32(wire >> 3)
  12162. wireType := int(wire & 0x7)
  12163. if wireType == 4 {
  12164. return fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group")
  12165. }
  12166. if fieldNum <= 0 {
  12167. return fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire)
  12168. }
  12169. switch fieldNum {
  12170. case 2:
  12171. if wireType != 2 {
  12172. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  12173. }
  12174. var byteLen int
  12175. for shift := uint(0); ; shift += 7 {
  12176. if shift >= 64 {
  12177. return ErrIntOverflowTypes
  12178. }
  12179. if iNdEx >= l {
  12180. return io.ErrUnexpectedEOF
  12181. }
  12182. b := dAtA[iNdEx]
  12183. iNdEx++
  12184. byteLen |= (int(b) & 0x7F) << shift
  12185. if b < 0x80 {
  12186. break
  12187. }
  12188. }
  12189. if byteLen < 0 {
  12190. return ErrInvalidLengthTypes
  12191. }
  12192. postIndex := iNdEx + byteLen
  12193. if postIndex > l {
  12194. return io.ErrUnexpectedEOF
  12195. }
  12196. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  12197. if m.Data == nil {
  12198. m.Data = []byte{}
  12199. }
  12200. iNdEx = postIndex
  12201. default:
  12202. iNdEx = preIndex
  12203. skippy, err := skipTypes(dAtA[iNdEx:])
  12204. if err != nil {
  12205. return err
  12206. }
  12207. if skippy < 0 {
  12208. return ErrInvalidLengthTypes
  12209. }
  12210. if (iNdEx + skippy) > l {
  12211. return io.ErrUnexpectedEOF
  12212. }
  12213. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12214. iNdEx += skippy
  12215. }
  12216. }
  12217. if iNdEx > l {
  12218. return io.ErrUnexpectedEOF
  12219. }
  12220. return nil
  12221. }
  12222. func (m *ConsensusParams) Unmarshal(dAtA []byte) error {
  12223. l := len(dAtA)
  12224. iNdEx := 0
  12225. for iNdEx < l {
  12226. preIndex := iNdEx
  12227. var wire uint64
  12228. for shift := uint(0); ; shift += 7 {
  12229. if shift >= 64 {
  12230. return ErrIntOverflowTypes
  12231. }
  12232. if iNdEx >= l {
  12233. return io.ErrUnexpectedEOF
  12234. }
  12235. b := dAtA[iNdEx]
  12236. iNdEx++
  12237. wire |= (uint64(b) & 0x7F) << shift
  12238. if b < 0x80 {
  12239. break
  12240. }
  12241. }
  12242. fieldNum := int32(wire >> 3)
  12243. wireType := int(wire & 0x7)
  12244. if wireType == 4 {
  12245. return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group")
  12246. }
  12247. if fieldNum <= 0 {
  12248. return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire)
  12249. }
  12250. switch fieldNum {
  12251. case 1:
  12252. if wireType != 2 {
  12253. return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType)
  12254. }
  12255. var msglen int
  12256. for shift := uint(0); ; shift += 7 {
  12257. if shift >= 64 {
  12258. return ErrIntOverflowTypes
  12259. }
  12260. if iNdEx >= l {
  12261. return io.ErrUnexpectedEOF
  12262. }
  12263. b := dAtA[iNdEx]
  12264. iNdEx++
  12265. msglen |= (int(b) & 0x7F) << shift
  12266. if b < 0x80 {
  12267. break
  12268. }
  12269. }
  12270. if msglen < 0 {
  12271. return ErrInvalidLengthTypes
  12272. }
  12273. postIndex := iNdEx + msglen
  12274. if postIndex > l {
  12275. return io.ErrUnexpectedEOF
  12276. }
  12277. if m.BlockSize == nil {
  12278. m.BlockSize = &BlockSize{}
  12279. }
  12280. if err := m.BlockSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12281. return err
  12282. }
  12283. iNdEx = postIndex
  12284. case 2:
  12285. if wireType != 2 {
  12286. return fmt.Errorf("proto: wrong wireType = %d for field EvidenceParams", wireType)
  12287. }
  12288. var msglen int
  12289. for shift := uint(0); ; shift += 7 {
  12290. if shift >= 64 {
  12291. return ErrIntOverflowTypes
  12292. }
  12293. if iNdEx >= l {
  12294. return io.ErrUnexpectedEOF
  12295. }
  12296. b := dAtA[iNdEx]
  12297. iNdEx++
  12298. msglen |= (int(b) & 0x7F) << shift
  12299. if b < 0x80 {
  12300. break
  12301. }
  12302. }
  12303. if msglen < 0 {
  12304. return ErrInvalidLengthTypes
  12305. }
  12306. postIndex := iNdEx + msglen
  12307. if postIndex > l {
  12308. return io.ErrUnexpectedEOF
  12309. }
  12310. if m.EvidenceParams == nil {
  12311. m.EvidenceParams = &EvidenceParams{}
  12312. }
  12313. if err := m.EvidenceParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12314. return err
  12315. }
  12316. iNdEx = postIndex
  12317. default:
  12318. iNdEx = preIndex
  12319. skippy, err := skipTypes(dAtA[iNdEx:])
  12320. if err != nil {
  12321. return err
  12322. }
  12323. if skippy < 0 {
  12324. return ErrInvalidLengthTypes
  12325. }
  12326. if (iNdEx + skippy) > l {
  12327. return io.ErrUnexpectedEOF
  12328. }
  12329. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12330. iNdEx += skippy
  12331. }
  12332. }
  12333. if iNdEx > l {
  12334. return io.ErrUnexpectedEOF
  12335. }
  12336. return nil
  12337. }
  12338. func (m *BlockSize) Unmarshal(dAtA []byte) error {
  12339. l := len(dAtA)
  12340. iNdEx := 0
  12341. for iNdEx < l {
  12342. preIndex := iNdEx
  12343. var wire uint64
  12344. for shift := uint(0); ; shift += 7 {
  12345. if shift >= 64 {
  12346. return ErrIntOverflowTypes
  12347. }
  12348. if iNdEx >= l {
  12349. return io.ErrUnexpectedEOF
  12350. }
  12351. b := dAtA[iNdEx]
  12352. iNdEx++
  12353. wire |= (uint64(b) & 0x7F) << shift
  12354. if b < 0x80 {
  12355. break
  12356. }
  12357. }
  12358. fieldNum := int32(wire >> 3)
  12359. wireType := int(wire & 0x7)
  12360. if wireType == 4 {
  12361. return fmt.Errorf("proto: BlockSize: wiretype end group for non-group")
  12362. }
  12363. if fieldNum <= 0 {
  12364. return fmt.Errorf("proto: BlockSize: illegal tag %d (wire type %d)", fieldNum, wire)
  12365. }
  12366. switch fieldNum {
  12367. case 1:
  12368. if wireType != 0 {
  12369. return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType)
  12370. }
  12371. m.MaxBytes = 0
  12372. for shift := uint(0); ; shift += 7 {
  12373. if shift >= 64 {
  12374. return ErrIntOverflowTypes
  12375. }
  12376. if iNdEx >= l {
  12377. return io.ErrUnexpectedEOF
  12378. }
  12379. b := dAtA[iNdEx]
  12380. iNdEx++
  12381. m.MaxBytes |= (int64(b) & 0x7F) << shift
  12382. if b < 0x80 {
  12383. break
  12384. }
  12385. }
  12386. case 2:
  12387. if wireType != 0 {
  12388. return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType)
  12389. }
  12390. m.MaxGas = 0
  12391. for shift := uint(0); ; shift += 7 {
  12392. if shift >= 64 {
  12393. return ErrIntOverflowTypes
  12394. }
  12395. if iNdEx >= l {
  12396. return io.ErrUnexpectedEOF
  12397. }
  12398. b := dAtA[iNdEx]
  12399. iNdEx++
  12400. m.MaxGas |= (int64(b) & 0x7F) << shift
  12401. if b < 0x80 {
  12402. break
  12403. }
  12404. }
  12405. default:
  12406. iNdEx = preIndex
  12407. skippy, err := skipTypes(dAtA[iNdEx:])
  12408. if err != nil {
  12409. return err
  12410. }
  12411. if skippy < 0 {
  12412. return ErrInvalidLengthTypes
  12413. }
  12414. if (iNdEx + skippy) > l {
  12415. return io.ErrUnexpectedEOF
  12416. }
  12417. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12418. iNdEx += skippy
  12419. }
  12420. }
  12421. if iNdEx > l {
  12422. return io.ErrUnexpectedEOF
  12423. }
  12424. return nil
  12425. }
  12426. func (m *EvidenceParams) Unmarshal(dAtA []byte) error {
  12427. l := len(dAtA)
  12428. iNdEx := 0
  12429. for iNdEx < l {
  12430. preIndex := iNdEx
  12431. var wire uint64
  12432. for shift := uint(0); ; shift += 7 {
  12433. if shift >= 64 {
  12434. return ErrIntOverflowTypes
  12435. }
  12436. if iNdEx >= l {
  12437. return io.ErrUnexpectedEOF
  12438. }
  12439. b := dAtA[iNdEx]
  12440. iNdEx++
  12441. wire |= (uint64(b) & 0x7F) << shift
  12442. if b < 0x80 {
  12443. break
  12444. }
  12445. }
  12446. fieldNum := int32(wire >> 3)
  12447. wireType := int(wire & 0x7)
  12448. if wireType == 4 {
  12449. return fmt.Errorf("proto: EvidenceParams: wiretype end group for non-group")
  12450. }
  12451. if fieldNum <= 0 {
  12452. return fmt.Errorf("proto: EvidenceParams: illegal tag %d (wire type %d)", fieldNum, wire)
  12453. }
  12454. switch fieldNum {
  12455. case 1:
  12456. if wireType != 0 {
  12457. return fmt.Errorf("proto: wrong wireType = %d for field MaxAge", wireType)
  12458. }
  12459. m.MaxAge = 0
  12460. for shift := uint(0); ; shift += 7 {
  12461. if shift >= 64 {
  12462. return ErrIntOverflowTypes
  12463. }
  12464. if iNdEx >= l {
  12465. return io.ErrUnexpectedEOF
  12466. }
  12467. b := dAtA[iNdEx]
  12468. iNdEx++
  12469. m.MaxAge |= (int64(b) & 0x7F) << shift
  12470. if b < 0x80 {
  12471. break
  12472. }
  12473. }
  12474. default:
  12475. iNdEx = preIndex
  12476. skippy, err := skipTypes(dAtA[iNdEx:])
  12477. if err != nil {
  12478. return err
  12479. }
  12480. if skippy < 0 {
  12481. return ErrInvalidLengthTypes
  12482. }
  12483. if (iNdEx + skippy) > l {
  12484. return io.ErrUnexpectedEOF
  12485. }
  12486. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12487. iNdEx += skippy
  12488. }
  12489. }
  12490. if iNdEx > l {
  12491. return io.ErrUnexpectedEOF
  12492. }
  12493. return nil
  12494. }
  12495. func (m *LastCommitInfo) Unmarshal(dAtA []byte) error {
  12496. l := len(dAtA)
  12497. iNdEx := 0
  12498. for iNdEx < l {
  12499. preIndex := iNdEx
  12500. var wire uint64
  12501. for shift := uint(0); ; shift += 7 {
  12502. if shift >= 64 {
  12503. return ErrIntOverflowTypes
  12504. }
  12505. if iNdEx >= l {
  12506. return io.ErrUnexpectedEOF
  12507. }
  12508. b := dAtA[iNdEx]
  12509. iNdEx++
  12510. wire |= (uint64(b) & 0x7F) << shift
  12511. if b < 0x80 {
  12512. break
  12513. }
  12514. }
  12515. fieldNum := int32(wire >> 3)
  12516. wireType := int(wire & 0x7)
  12517. if wireType == 4 {
  12518. return fmt.Errorf("proto: LastCommitInfo: wiretype end group for non-group")
  12519. }
  12520. if fieldNum <= 0 {
  12521. return fmt.Errorf("proto: LastCommitInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  12522. }
  12523. switch fieldNum {
  12524. case 1:
  12525. if wireType != 0 {
  12526. return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  12527. }
  12528. m.Round = 0
  12529. for shift := uint(0); ; shift += 7 {
  12530. if shift >= 64 {
  12531. return ErrIntOverflowTypes
  12532. }
  12533. if iNdEx >= l {
  12534. return io.ErrUnexpectedEOF
  12535. }
  12536. b := dAtA[iNdEx]
  12537. iNdEx++
  12538. m.Round |= (int32(b) & 0x7F) << shift
  12539. if b < 0x80 {
  12540. break
  12541. }
  12542. }
  12543. case 2:
  12544. if wireType != 2 {
  12545. return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
  12546. }
  12547. var msglen int
  12548. for shift := uint(0); ; shift += 7 {
  12549. if shift >= 64 {
  12550. return ErrIntOverflowTypes
  12551. }
  12552. if iNdEx >= l {
  12553. return io.ErrUnexpectedEOF
  12554. }
  12555. b := dAtA[iNdEx]
  12556. iNdEx++
  12557. msglen |= (int(b) & 0x7F) << shift
  12558. if b < 0x80 {
  12559. break
  12560. }
  12561. }
  12562. if msglen < 0 {
  12563. return ErrInvalidLengthTypes
  12564. }
  12565. postIndex := iNdEx + msglen
  12566. if postIndex > l {
  12567. return io.ErrUnexpectedEOF
  12568. }
  12569. m.Votes = append(m.Votes, VoteInfo{})
  12570. if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12571. return err
  12572. }
  12573. iNdEx = postIndex
  12574. default:
  12575. iNdEx = preIndex
  12576. skippy, err := skipTypes(dAtA[iNdEx:])
  12577. if err != nil {
  12578. return err
  12579. }
  12580. if skippy < 0 {
  12581. return ErrInvalidLengthTypes
  12582. }
  12583. if (iNdEx + skippy) > l {
  12584. return io.ErrUnexpectedEOF
  12585. }
  12586. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12587. iNdEx += skippy
  12588. }
  12589. }
  12590. if iNdEx > l {
  12591. return io.ErrUnexpectedEOF
  12592. }
  12593. return nil
  12594. }
  12595. func (m *Header) Unmarshal(dAtA []byte) error {
  12596. l := len(dAtA)
  12597. iNdEx := 0
  12598. for iNdEx < l {
  12599. preIndex := iNdEx
  12600. var wire uint64
  12601. for shift := uint(0); ; shift += 7 {
  12602. if shift >= 64 {
  12603. return ErrIntOverflowTypes
  12604. }
  12605. if iNdEx >= l {
  12606. return io.ErrUnexpectedEOF
  12607. }
  12608. b := dAtA[iNdEx]
  12609. iNdEx++
  12610. wire |= (uint64(b) & 0x7F) << shift
  12611. if b < 0x80 {
  12612. break
  12613. }
  12614. }
  12615. fieldNum := int32(wire >> 3)
  12616. wireType := int(wire & 0x7)
  12617. if wireType == 4 {
  12618. return fmt.Errorf("proto: Header: wiretype end group for non-group")
  12619. }
  12620. if fieldNum <= 0 {
  12621. return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
  12622. }
  12623. switch fieldNum {
  12624. case 1:
  12625. if wireType != 2 {
  12626. return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType)
  12627. }
  12628. var stringLen uint64
  12629. for shift := uint(0); ; shift += 7 {
  12630. if shift >= 64 {
  12631. return ErrIntOverflowTypes
  12632. }
  12633. if iNdEx >= l {
  12634. return io.ErrUnexpectedEOF
  12635. }
  12636. b := dAtA[iNdEx]
  12637. iNdEx++
  12638. stringLen |= (uint64(b) & 0x7F) << shift
  12639. if b < 0x80 {
  12640. break
  12641. }
  12642. }
  12643. intStringLen := int(stringLen)
  12644. if intStringLen < 0 {
  12645. return ErrInvalidLengthTypes
  12646. }
  12647. postIndex := iNdEx + intStringLen
  12648. if postIndex > l {
  12649. return io.ErrUnexpectedEOF
  12650. }
  12651. m.ChainID = string(dAtA[iNdEx:postIndex])
  12652. iNdEx = postIndex
  12653. case 2:
  12654. if wireType != 0 {
  12655. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  12656. }
  12657. m.Height = 0
  12658. for shift := uint(0); ; shift += 7 {
  12659. if shift >= 64 {
  12660. return ErrIntOverflowTypes
  12661. }
  12662. if iNdEx >= l {
  12663. return io.ErrUnexpectedEOF
  12664. }
  12665. b := dAtA[iNdEx]
  12666. iNdEx++
  12667. m.Height |= (int64(b) & 0x7F) << shift
  12668. if b < 0x80 {
  12669. break
  12670. }
  12671. }
  12672. case 3:
  12673. if wireType != 2 {
  12674. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  12675. }
  12676. var msglen int
  12677. for shift := uint(0); ; shift += 7 {
  12678. if shift >= 64 {
  12679. return ErrIntOverflowTypes
  12680. }
  12681. if iNdEx >= l {
  12682. return io.ErrUnexpectedEOF
  12683. }
  12684. b := dAtA[iNdEx]
  12685. iNdEx++
  12686. msglen |= (int(b) & 0x7F) << shift
  12687. if b < 0x80 {
  12688. break
  12689. }
  12690. }
  12691. if msglen < 0 {
  12692. return ErrInvalidLengthTypes
  12693. }
  12694. postIndex := iNdEx + msglen
  12695. if postIndex > l {
  12696. return io.ErrUnexpectedEOF
  12697. }
  12698. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  12699. return err
  12700. }
  12701. iNdEx = postIndex
  12702. case 4:
  12703. if wireType != 0 {
  12704. return fmt.Errorf("proto: wrong wireType = %d for field NumTxs", wireType)
  12705. }
  12706. m.NumTxs = 0
  12707. for shift := uint(0); ; shift += 7 {
  12708. if shift >= 64 {
  12709. return ErrIntOverflowTypes
  12710. }
  12711. if iNdEx >= l {
  12712. return io.ErrUnexpectedEOF
  12713. }
  12714. b := dAtA[iNdEx]
  12715. iNdEx++
  12716. m.NumTxs |= (int64(b) & 0x7F) << shift
  12717. if b < 0x80 {
  12718. break
  12719. }
  12720. }
  12721. case 5:
  12722. if wireType != 0 {
  12723. return fmt.Errorf("proto: wrong wireType = %d for field TotalTxs", wireType)
  12724. }
  12725. m.TotalTxs = 0
  12726. for shift := uint(0); ; shift += 7 {
  12727. if shift >= 64 {
  12728. return ErrIntOverflowTypes
  12729. }
  12730. if iNdEx >= l {
  12731. return io.ErrUnexpectedEOF
  12732. }
  12733. b := dAtA[iNdEx]
  12734. iNdEx++
  12735. m.TotalTxs |= (int64(b) & 0x7F) << shift
  12736. if b < 0x80 {
  12737. break
  12738. }
  12739. }
  12740. case 6:
  12741. if wireType != 2 {
  12742. return fmt.Errorf("proto: wrong wireType = %d for field LastBlockId", wireType)
  12743. }
  12744. var msglen int
  12745. for shift := uint(0); ; shift += 7 {
  12746. if shift >= 64 {
  12747. return ErrIntOverflowTypes
  12748. }
  12749. if iNdEx >= l {
  12750. return io.ErrUnexpectedEOF
  12751. }
  12752. b := dAtA[iNdEx]
  12753. iNdEx++
  12754. msglen |= (int(b) & 0x7F) << shift
  12755. if b < 0x80 {
  12756. break
  12757. }
  12758. }
  12759. if msglen < 0 {
  12760. return ErrInvalidLengthTypes
  12761. }
  12762. postIndex := iNdEx + msglen
  12763. if postIndex > l {
  12764. return io.ErrUnexpectedEOF
  12765. }
  12766. if err := m.LastBlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12767. return err
  12768. }
  12769. iNdEx = postIndex
  12770. case 7:
  12771. if wireType != 2 {
  12772. return fmt.Errorf("proto: wrong wireType = %d for field LastCommitHash", wireType)
  12773. }
  12774. var byteLen int
  12775. for shift := uint(0); ; shift += 7 {
  12776. if shift >= 64 {
  12777. return ErrIntOverflowTypes
  12778. }
  12779. if iNdEx >= l {
  12780. return io.ErrUnexpectedEOF
  12781. }
  12782. b := dAtA[iNdEx]
  12783. iNdEx++
  12784. byteLen |= (int(b) & 0x7F) << shift
  12785. if b < 0x80 {
  12786. break
  12787. }
  12788. }
  12789. if byteLen < 0 {
  12790. return ErrInvalidLengthTypes
  12791. }
  12792. postIndex := iNdEx + byteLen
  12793. if postIndex > l {
  12794. return io.ErrUnexpectedEOF
  12795. }
  12796. m.LastCommitHash = append(m.LastCommitHash[:0], dAtA[iNdEx:postIndex]...)
  12797. if m.LastCommitHash == nil {
  12798. m.LastCommitHash = []byte{}
  12799. }
  12800. iNdEx = postIndex
  12801. case 8:
  12802. if wireType != 2 {
  12803. return fmt.Errorf("proto: wrong wireType = %d for field DataHash", wireType)
  12804. }
  12805. var byteLen int
  12806. for shift := uint(0); ; shift += 7 {
  12807. if shift >= 64 {
  12808. return ErrIntOverflowTypes
  12809. }
  12810. if iNdEx >= l {
  12811. return io.ErrUnexpectedEOF
  12812. }
  12813. b := dAtA[iNdEx]
  12814. iNdEx++
  12815. byteLen |= (int(b) & 0x7F) << shift
  12816. if b < 0x80 {
  12817. break
  12818. }
  12819. }
  12820. if byteLen < 0 {
  12821. return ErrInvalidLengthTypes
  12822. }
  12823. postIndex := iNdEx + byteLen
  12824. if postIndex > l {
  12825. return io.ErrUnexpectedEOF
  12826. }
  12827. m.DataHash = append(m.DataHash[:0], dAtA[iNdEx:postIndex]...)
  12828. if m.DataHash == nil {
  12829. m.DataHash = []byte{}
  12830. }
  12831. iNdEx = postIndex
  12832. case 9:
  12833. if wireType != 2 {
  12834. return fmt.Errorf("proto: wrong wireType = %d for field ValidatorsHash", wireType)
  12835. }
  12836. var byteLen int
  12837. for shift := uint(0); ; shift += 7 {
  12838. if shift >= 64 {
  12839. return ErrIntOverflowTypes
  12840. }
  12841. if iNdEx >= l {
  12842. return io.ErrUnexpectedEOF
  12843. }
  12844. b := dAtA[iNdEx]
  12845. iNdEx++
  12846. byteLen |= (int(b) & 0x7F) << shift
  12847. if b < 0x80 {
  12848. break
  12849. }
  12850. }
  12851. if byteLen < 0 {
  12852. return ErrInvalidLengthTypes
  12853. }
  12854. postIndex := iNdEx + byteLen
  12855. if postIndex > l {
  12856. return io.ErrUnexpectedEOF
  12857. }
  12858. m.ValidatorsHash = append(m.ValidatorsHash[:0], dAtA[iNdEx:postIndex]...)
  12859. if m.ValidatorsHash == nil {
  12860. m.ValidatorsHash = []byte{}
  12861. }
  12862. iNdEx = postIndex
  12863. case 10:
  12864. if wireType != 2 {
  12865. return fmt.Errorf("proto: wrong wireType = %d for field NextValidatorsHash", wireType)
  12866. }
  12867. var byteLen int
  12868. for shift := uint(0); ; shift += 7 {
  12869. if shift >= 64 {
  12870. return ErrIntOverflowTypes
  12871. }
  12872. if iNdEx >= l {
  12873. return io.ErrUnexpectedEOF
  12874. }
  12875. b := dAtA[iNdEx]
  12876. iNdEx++
  12877. byteLen |= (int(b) & 0x7F) << shift
  12878. if b < 0x80 {
  12879. break
  12880. }
  12881. }
  12882. if byteLen < 0 {
  12883. return ErrInvalidLengthTypes
  12884. }
  12885. postIndex := iNdEx + byteLen
  12886. if postIndex > l {
  12887. return io.ErrUnexpectedEOF
  12888. }
  12889. m.NextValidatorsHash = append(m.NextValidatorsHash[:0], dAtA[iNdEx:postIndex]...)
  12890. if m.NextValidatorsHash == nil {
  12891. m.NextValidatorsHash = []byte{}
  12892. }
  12893. iNdEx = postIndex
  12894. case 11:
  12895. if wireType != 2 {
  12896. return fmt.Errorf("proto: wrong wireType = %d for field ConsensusHash", wireType)
  12897. }
  12898. var byteLen int
  12899. for shift := uint(0); ; shift += 7 {
  12900. if shift >= 64 {
  12901. return ErrIntOverflowTypes
  12902. }
  12903. if iNdEx >= l {
  12904. return io.ErrUnexpectedEOF
  12905. }
  12906. b := dAtA[iNdEx]
  12907. iNdEx++
  12908. byteLen |= (int(b) & 0x7F) << shift
  12909. if b < 0x80 {
  12910. break
  12911. }
  12912. }
  12913. if byteLen < 0 {
  12914. return ErrInvalidLengthTypes
  12915. }
  12916. postIndex := iNdEx + byteLen
  12917. if postIndex > l {
  12918. return io.ErrUnexpectedEOF
  12919. }
  12920. m.ConsensusHash = append(m.ConsensusHash[:0], dAtA[iNdEx:postIndex]...)
  12921. if m.ConsensusHash == nil {
  12922. m.ConsensusHash = []byte{}
  12923. }
  12924. iNdEx = postIndex
  12925. case 12:
  12926. if wireType != 2 {
  12927. return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType)
  12928. }
  12929. var byteLen int
  12930. for shift := uint(0); ; shift += 7 {
  12931. if shift >= 64 {
  12932. return ErrIntOverflowTypes
  12933. }
  12934. if iNdEx >= l {
  12935. return io.ErrUnexpectedEOF
  12936. }
  12937. b := dAtA[iNdEx]
  12938. iNdEx++
  12939. byteLen |= (int(b) & 0x7F) << shift
  12940. if b < 0x80 {
  12941. break
  12942. }
  12943. }
  12944. if byteLen < 0 {
  12945. return ErrInvalidLengthTypes
  12946. }
  12947. postIndex := iNdEx + byteLen
  12948. if postIndex > l {
  12949. return io.ErrUnexpectedEOF
  12950. }
  12951. m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...)
  12952. if m.AppHash == nil {
  12953. m.AppHash = []byte{}
  12954. }
  12955. iNdEx = postIndex
  12956. case 13:
  12957. if wireType != 2 {
  12958. return fmt.Errorf("proto: wrong wireType = %d for field LastResultsHash", wireType)
  12959. }
  12960. var byteLen int
  12961. for shift := uint(0); ; shift += 7 {
  12962. if shift >= 64 {
  12963. return ErrIntOverflowTypes
  12964. }
  12965. if iNdEx >= l {
  12966. return io.ErrUnexpectedEOF
  12967. }
  12968. b := dAtA[iNdEx]
  12969. iNdEx++
  12970. byteLen |= (int(b) & 0x7F) << shift
  12971. if b < 0x80 {
  12972. break
  12973. }
  12974. }
  12975. if byteLen < 0 {
  12976. return ErrInvalidLengthTypes
  12977. }
  12978. postIndex := iNdEx + byteLen
  12979. if postIndex > l {
  12980. return io.ErrUnexpectedEOF
  12981. }
  12982. m.LastResultsHash = append(m.LastResultsHash[:0], dAtA[iNdEx:postIndex]...)
  12983. if m.LastResultsHash == nil {
  12984. m.LastResultsHash = []byte{}
  12985. }
  12986. iNdEx = postIndex
  12987. case 14:
  12988. if wireType != 2 {
  12989. return fmt.Errorf("proto: wrong wireType = %d for field EvidenceHash", wireType)
  12990. }
  12991. var byteLen int
  12992. for shift := uint(0); ; shift += 7 {
  12993. if shift >= 64 {
  12994. return ErrIntOverflowTypes
  12995. }
  12996. if iNdEx >= l {
  12997. return io.ErrUnexpectedEOF
  12998. }
  12999. b := dAtA[iNdEx]
  13000. iNdEx++
  13001. byteLen |= (int(b) & 0x7F) << shift
  13002. if b < 0x80 {
  13003. break
  13004. }
  13005. }
  13006. if byteLen < 0 {
  13007. return ErrInvalidLengthTypes
  13008. }
  13009. postIndex := iNdEx + byteLen
  13010. if postIndex > l {
  13011. return io.ErrUnexpectedEOF
  13012. }
  13013. m.EvidenceHash = append(m.EvidenceHash[:0], dAtA[iNdEx:postIndex]...)
  13014. if m.EvidenceHash == nil {
  13015. m.EvidenceHash = []byte{}
  13016. }
  13017. iNdEx = postIndex
  13018. case 15:
  13019. if wireType != 2 {
  13020. return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType)
  13021. }
  13022. var byteLen int
  13023. for shift := uint(0); ; shift += 7 {
  13024. if shift >= 64 {
  13025. return ErrIntOverflowTypes
  13026. }
  13027. if iNdEx >= l {
  13028. return io.ErrUnexpectedEOF
  13029. }
  13030. b := dAtA[iNdEx]
  13031. iNdEx++
  13032. byteLen |= (int(b) & 0x7F) << shift
  13033. if b < 0x80 {
  13034. break
  13035. }
  13036. }
  13037. if byteLen < 0 {
  13038. return ErrInvalidLengthTypes
  13039. }
  13040. postIndex := iNdEx + byteLen
  13041. if postIndex > l {
  13042. return io.ErrUnexpectedEOF
  13043. }
  13044. m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...)
  13045. if m.ProposerAddress == nil {
  13046. m.ProposerAddress = []byte{}
  13047. }
  13048. iNdEx = postIndex
  13049. default:
  13050. iNdEx = preIndex
  13051. skippy, err := skipTypes(dAtA[iNdEx:])
  13052. if err != nil {
  13053. return err
  13054. }
  13055. if skippy < 0 {
  13056. return ErrInvalidLengthTypes
  13057. }
  13058. if (iNdEx + skippy) > l {
  13059. return io.ErrUnexpectedEOF
  13060. }
  13061. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13062. iNdEx += skippy
  13063. }
  13064. }
  13065. if iNdEx > l {
  13066. return io.ErrUnexpectedEOF
  13067. }
  13068. return nil
  13069. }
  13070. func (m *BlockID) Unmarshal(dAtA []byte) error {
  13071. l := len(dAtA)
  13072. iNdEx := 0
  13073. for iNdEx < l {
  13074. preIndex := iNdEx
  13075. var wire uint64
  13076. for shift := uint(0); ; shift += 7 {
  13077. if shift >= 64 {
  13078. return ErrIntOverflowTypes
  13079. }
  13080. if iNdEx >= l {
  13081. return io.ErrUnexpectedEOF
  13082. }
  13083. b := dAtA[iNdEx]
  13084. iNdEx++
  13085. wire |= (uint64(b) & 0x7F) << shift
  13086. if b < 0x80 {
  13087. break
  13088. }
  13089. }
  13090. fieldNum := int32(wire >> 3)
  13091. wireType := int(wire & 0x7)
  13092. if wireType == 4 {
  13093. return fmt.Errorf("proto: BlockID: wiretype end group for non-group")
  13094. }
  13095. if fieldNum <= 0 {
  13096. return fmt.Errorf("proto: BlockID: illegal tag %d (wire type %d)", fieldNum, wire)
  13097. }
  13098. switch fieldNum {
  13099. case 1:
  13100. if wireType != 2 {
  13101. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  13102. }
  13103. var byteLen int
  13104. for shift := uint(0); ; shift += 7 {
  13105. if shift >= 64 {
  13106. return ErrIntOverflowTypes
  13107. }
  13108. if iNdEx >= l {
  13109. return io.ErrUnexpectedEOF
  13110. }
  13111. b := dAtA[iNdEx]
  13112. iNdEx++
  13113. byteLen |= (int(b) & 0x7F) << shift
  13114. if b < 0x80 {
  13115. break
  13116. }
  13117. }
  13118. if byteLen < 0 {
  13119. return ErrInvalidLengthTypes
  13120. }
  13121. postIndex := iNdEx + byteLen
  13122. if postIndex > l {
  13123. return io.ErrUnexpectedEOF
  13124. }
  13125. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  13126. if m.Hash == nil {
  13127. m.Hash = []byte{}
  13128. }
  13129. iNdEx = postIndex
  13130. case 2:
  13131. if wireType != 2 {
  13132. return fmt.Errorf("proto: wrong wireType = %d for field PartsHeader", wireType)
  13133. }
  13134. var msglen int
  13135. for shift := uint(0); ; shift += 7 {
  13136. if shift >= 64 {
  13137. return ErrIntOverflowTypes
  13138. }
  13139. if iNdEx >= l {
  13140. return io.ErrUnexpectedEOF
  13141. }
  13142. b := dAtA[iNdEx]
  13143. iNdEx++
  13144. msglen |= (int(b) & 0x7F) << shift
  13145. if b < 0x80 {
  13146. break
  13147. }
  13148. }
  13149. if msglen < 0 {
  13150. return ErrInvalidLengthTypes
  13151. }
  13152. postIndex := iNdEx + msglen
  13153. if postIndex > l {
  13154. return io.ErrUnexpectedEOF
  13155. }
  13156. if err := m.PartsHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13157. return err
  13158. }
  13159. iNdEx = postIndex
  13160. default:
  13161. iNdEx = preIndex
  13162. skippy, err := skipTypes(dAtA[iNdEx:])
  13163. if err != nil {
  13164. return err
  13165. }
  13166. if skippy < 0 {
  13167. return ErrInvalidLengthTypes
  13168. }
  13169. if (iNdEx + skippy) > l {
  13170. return io.ErrUnexpectedEOF
  13171. }
  13172. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13173. iNdEx += skippy
  13174. }
  13175. }
  13176. if iNdEx > l {
  13177. return io.ErrUnexpectedEOF
  13178. }
  13179. return nil
  13180. }
  13181. func (m *PartSetHeader) Unmarshal(dAtA []byte) error {
  13182. l := len(dAtA)
  13183. iNdEx := 0
  13184. for iNdEx < l {
  13185. preIndex := iNdEx
  13186. var wire uint64
  13187. for shift := uint(0); ; shift += 7 {
  13188. if shift >= 64 {
  13189. return ErrIntOverflowTypes
  13190. }
  13191. if iNdEx >= l {
  13192. return io.ErrUnexpectedEOF
  13193. }
  13194. b := dAtA[iNdEx]
  13195. iNdEx++
  13196. wire |= (uint64(b) & 0x7F) << shift
  13197. if b < 0x80 {
  13198. break
  13199. }
  13200. }
  13201. fieldNum := int32(wire >> 3)
  13202. wireType := int(wire & 0x7)
  13203. if wireType == 4 {
  13204. return fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group")
  13205. }
  13206. if fieldNum <= 0 {
  13207. return fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire)
  13208. }
  13209. switch fieldNum {
  13210. case 1:
  13211. if wireType != 0 {
  13212. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  13213. }
  13214. m.Total = 0
  13215. for shift := uint(0); ; shift += 7 {
  13216. if shift >= 64 {
  13217. return ErrIntOverflowTypes
  13218. }
  13219. if iNdEx >= l {
  13220. return io.ErrUnexpectedEOF
  13221. }
  13222. b := dAtA[iNdEx]
  13223. iNdEx++
  13224. m.Total |= (int32(b) & 0x7F) << shift
  13225. if b < 0x80 {
  13226. break
  13227. }
  13228. }
  13229. case 2:
  13230. if wireType != 2 {
  13231. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  13232. }
  13233. var byteLen int
  13234. for shift := uint(0); ; shift += 7 {
  13235. if shift >= 64 {
  13236. return ErrIntOverflowTypes
  13237. }
  13238. if iNdEx >= l {
  13239. return io.ErrUnexpectedEOF
  13240. }
  13241. b := dAtA[iNdEx]
  13242. iNdEx++
  13243. byteLen |= (int(b) & 0x7F) << shift
  13244. if b < 0x80 {
  13245. break
  13246. }
  13247. }
  13248. if byteLen < 0 {
  13249. return ErrInvalidLengthTypes
  13250. }
  13251. postIndex := iNdEx + byteLen
  13252. if postIndex > l {
  13253. return io.ErrUnexpectedEOF
  13254. }
  13255. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  13256. if m.Hash == nil {
  13257. m.Hash = []byte{}
  13258. }
  13259. iNdEx = postIndex
  13260. default:
  13261. iNdEx = preIndex
  13262. skippy, err := skipTypes(dAtA[iNdEx:])
  13263. if err != nil {
  13264. return err
  13265. }
  13266. if skippy < 0 {
  13267. return ErrInvalidLengthTypes
  13268. }
  13269. if (iNdEx + skippy) > l {
  13270. return io.ErrUnexpectedEOF
  13271. }
  13272. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13273. iNdEx += skippy
  13274. }
  13275. }
  13276. if iNdEx > l {
  13277. return io.ErrUnexpectedEOF
  13278. }
  13279. return nil
  13280. }
  13281. func (m *Validator) Unmarshal(dAtA []byte) error {
  13282. l := len(dAtA)
  13283. iNdEx := 0
  13284. for iNdEx < l {
  13285. preIndex := iNdEx
  13286. var wire uint64
  13287. for shift := uint(0); ; shift += 7 {
  13288. if shift >= 64 {
  13289. return ErrIntOverflowTypes
  13290. }
  13291. if iNdEx >= l {
  13292. return io.ErrUnexpectedEOF
  13293. }
  13294. b := dAtA[iNdEx]
  13295. iNdEx++
  13296. wire |= (uint64(b) & 0x7F) << shift
  13297. if b < 0x80 {
  13298. break
  13299. }
  13300. }
  13301. fieldNum := int32(wire >> 3)
  13302. wireType := int(wire & 0x7)
  13303. if wireType == 4 {
  13304. return fmt.Errorf("proto: Validator: wiretype end group for non-group")
  13305. }
  13306. if fieldNum <= 0 {
  13307. return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire)
  13308. }
  13309. switch fieldNum {
  13310. case 1:
  13311. if wireType != 2 {
  13312. return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  13313. }
  13314. var byteLen int
  13315. for shift := uint(0); ; shift += 7 {
  13316. if shift >= 64 {
  13317. return ErrIntOverflowTypes
  13318. }
  13319. if iNdEx >= l {
  13320. return io.ErrUnexpectedEOF
  13321. }
  13322. b := dAtA[iNdEx]
  13323. iNdEx++
  13324. byteLen |= (int(b) & 0x7F) << shift
  13325. if b < 0x80 {
  13326. break
  13327. }
  13328. }
  13329. if byteLen < 0 {
  13330. return ErrInvalidLengthTypes
  13331. }
  13332. postIndex := iNdEx + byteLen
  13333. if postIndex > l {
  13334. return io.ErrUnexpectedEOF
  13335. }
  13336. m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...)
  13337. if m.Address == nil {
  13338. m.Address = []byte{}
  13339. }
  13340. iNdEx = postIndex
  13341. case 3:
  13342. if wireType != 0 {
  13343. return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
  13344. }
  13345. m.Power = 0
  13346. for shift := uint(0); ; shift += 7 {
  13347. if shift >= 64 {
  13348. return ErrIntOverflowTypes
  13349. }
  13350. if iNdEx >= l {
  13351. return io.ErrUnexpectedEOF
  13352. }
  13353. b := dAtA[iNdEx]
  13354. iNdEx++
  13355. m.Power |= (int64(b) & 0x7F) << shift
  13356. if b < 0x80 {
  13357. break
  13358. }
  13359. }
  13360. default:
  13361. iNdEx = preIndex
  13362. skippy, err := skipTypes(dAtA[iNdEx:])
  13363. if err != nil {
  13364. return err
  13365. }
  13366. if skippy < 0 {
  13367. return ErrInvalidLengthTypes
  13368. }
  13369. if (iNdEx + skippy) > l {
  13370. return io.ErrUnexpectedEOF
  13371. }
  13372. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13373. iNdEx += skippy
  13374. }
  13375. }
  13376. if iNdEx > l {
  13377. return io.ErrUnexpectedEOF
  13378. }
  13379. return nil
  13380. }
  13381. func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error {
  13382. l := len(dAtA)
  13383. iNdEx := 0
  13384. for iNdEx < l {
  13385. preIndex := iNdEx
  13386. var wire uint64
  13387. for shift := uint(0); ; shift += 7 {
  13388. if shift >= 64 {
  13389. return ErrIntOverflowTypes
  13390. }
  13391. if iNdEx >= l {
  13392. return io.ErrUnexpectedEOF
  13393. }
  13394. b := dAtA[iNdEx]
  13395. iNdEx++
  13396. wire |= (uint64(b) & 0x7F) << shift
  13397. if b < 0x80 {
  13398. break
  13399. }
  13400. }
  13401. fieldNum := int32(wire >> 3)
  13402. wireType := int(wire & 0x7)
  13403. if wireType == 4 {
  13404. return fmt.Errorf("proto: ValidatorUpdate: wiretype end group for non-group")
  13405. }
  13406. if fieldNum <= 0 {
  13407. return fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  13408. }
  13409. switch fieldNum {
  13410. case 1:
  13411. if wireType != 2 {
  13412. return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
  13413. }
  13414. var msglen int
  13415. for shift := uint(0); ; shift += 7 {
  13416. if shift >= 64 {
  13417. return ErrIntOverflowTypes
  13418. }
  13419. if iNdEx >= l {
  13420. return io.ErrUnexpectedEOF
  13421. }
  13422. b := dAtA[iNdEx]
  13423. iNdEx++
  13424. msglen |= (int(b) & 0x7F) << shift
  13425. if b < 0x80 {
  13426. break
  13427. }
  13428. }
  13429. if msglen < 0 {
  13430. return ErrInvalidLengthTypes
  13431. }
  13432. postIndex := iNdEx + msglen
  13433. if postIndex > l {
  13434. return io.ErrUnexpectedEOF
  13435. }
  13436. if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13437. return err
  13438. }
  13439. iNdEx = postIndex
  13440. case 2:
  13441. if wireType != 0 {
  13442. return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
  13443. }
  13444. m.Power = 0
  13445. for shift := uint(0); ; shift += 7 {
  13446. if shift >= 64 {
  13447. return ErrIntOverflowTypes
  13448. }
  13449. if iNdEx >= l {
  13450. return io.ErrUnexpectedEOF
  13451. }
  13452. b := dAtA[iNdEx]
  13453. iNdEx++
  13454. m.Power |= (int64(b) & 0x7F) << shift
  13455. if b < 0x80 {
  13456. break
  13457. }
  13458. }
  13459. default:
  13460. iNdEx = preIndex
  13461. skippy, err := skipTypes(dAtA[iNdEx:])
  13462. if err != nil {
  13463. return err
  13464. }
  13465. if skippy < 0 {
  13466. return ErrInvalidLengthTypes
  13467. }
  13468. if (iNdEx + skippy) > l {
  13469. return io.ErrUnexpectedEOF
  13470. }
  13471. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13472. iNdEx += skippy
  13473. }
  13474. }
  13475. if iNdEx > l {
  13476. return io.ErrUnexpectedEOF
  13477. }
  13478. return nil
  13479. }
  13480. func (m *VoteInfo) Unmarshal(dAtA []byte) error {
  13481. l := len(dAtA)
  13482. iNdEx := 0
  13483. for iNdEx < l {
  13484. preIndex := iNdEx
  13485. var wire uint64
  13486. for shift := uint(0); ; shift += 7 {
  13487. if shift >= 64 {
  13488. return ErrIntOverflowTypes
  13489. }
  13490. if iNdEx >= l {
  13491. return io.ErrUnexpectedEOF
  13492. }
  13493. b := dAtA[iNdEx]
  13494. iNdEx++
  13495. wire |= (uint64(b) & 0x7F) << shift
  13496. if b < 0x80 {
  13497. break
  13498. }
  13499. }
  13500. fieldNum := int32(wire >> 3)
  13501. wireType := int(wire & 0x7)
  13502. if wireType == 4 {
  13503. return fmt.Errorf("proto: VoteInfo: wiretype end group for non-group")
  13504. }
  13505. if fieldNum <= 0 {
  13506. return fmt.Errorf("proto: VoteInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  13507. }
  13508. switch fieldNum {
  13509. case 1:
  13510. if wireType != 2 {
  13511. return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  13512. }
  13513. var msglen int
  13514. for shift := uint(0); ; shift += 7 {
  13515. if shift >= 64 {
  13516. return ErrIntOverflowTypes
  13517. }
  13518. if iNdEx >= l {
  13519. return io.ErrUnexpectedEOF
  13520. }
  13521. b := dAtA[iNdEx]
  13522. iNdEx++
  13523. msglen |= (int(b) & 0x7F) << shift
  13524. if b < 0x80 {
  13525. break
  13526. }
  13527. }
  13528. if msglen < 0 {
  13529. return ErrInvalidLengthTypes
  13530. }
  13531. postIndex := iNdEx + msglen
  13532. if postIndex > l {
  13533. return io.ErrUnexpectedEOF
  13534. }
  13535. if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13536. return err
  13537. }
  13538. iNdEx = postIndex
  13539. case 2:
  13540. if wireType != 0 {
  13541. return fmt.Errorf("proto: wrong wireType = %d for field SignedLastBlock", wireType)
  13542. }
  13543. var v int
  13544. for shift := uint(0); ; shift += 7 {
  13545. if shift >= 64 {
  13546. return ErrIntOverflowTypes
  13547. }
  13548. if iNdEx >= l {
  13549. return io.ErrUnexpectedEOF
  13550. }
  13551. b := dAtA[iNdEx]
  13552. iNdEx++
  13553. v |= (int(b) & 0x7F) << shift
  13554. if b < 0x80 {
  13555. break
  13556. }
  13557. }
  13558. m.SignedLastBlock = bool(v != 0)
  13559. default:
  13560. iNdEx = preIndex
  13561. skippy, err := skipTypes(dAtA[iNdEx:])
  13562. if err != nil {
  13563. return err
  13564. }
  13565. if skippy < 0 {
  13566. return ErrInvalidLengthTypes
  13567. }
  13568. if (iNdEx + skippy) > l {
  13569. return io.ErrUnexpectedEOF
  13570. }
  13571. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13572. iNdEx += skippy
  13573. }
  13574. }
  13575. if iNdEx > l {
  13576. return io.ErrUnexpectedEOF
  13577. }
  13578. return nil
  13579. }
  13580. func (m *PubKey) Unmarshal(dAtA []byte) error {
  13581. l := len(dAtA)
  13582. iNdEx := 0
  13583. for iNdEx < l {
  13584. preIndex := iNdEx
  13585. var wire uint64
  13586. for shift := uint(0); ; shift += 7 {
  13587. if shift >= 64 {
  13588. return ErrIntOverflowTypes
  13589. }
  13590. if iNdEx >= l {
  13591. return io.ErrUnexpectedEOF
  13592. }
  13593. b := dAtA[iNdEx]
  13594. iNdEx++
  13595. wire |= (uint64(b) & 0x7F) << shift
  13596. if b < 0x80 {
  13597. break
  13598. }
  13599. }
  13600. fieldNum := int32(wire >> 3)
  13601. wireType := int(wire & 0x7)
  13602. if wireType == 4 {
  13603. return fmt.Errorf("proto: PubKey: wiretype end group for non-group")
  13604. }
  13605. if fieldNum <= 0 {
  13606. return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire)
  13607. }
  13608. switch fieldNum {
  13609. case 1:
  13610. if wireType != 2 {
  13611. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  13612. }
  13613. var stringLen uint64
  13614. for shift := uint(0); ; shift += 7 {
  13615. if shift >= 64 {
  13616. return ErrIntOverflowTypes
  13617. }
  13618. if iNdEx >= l {
  13619. return io.ErrUnexpectedEOF
  13620. }
  13621. b := dAtA[iNdEx]
  13622. iNdEx++
  13623. stringLen |= (uint64(b) & 0x7F) << shift
  13624. if b < 0x80 {
  13625. break
  13626. }
  13627. }
  13628. intStringLen := int(stringLen)
  13629. if intStringLen < 0 {
  13630. return ErrInvalidLengthTypes
  13631. }
  13632. postIndex := iNdEx + intStringLen
  13633. if postIndex > l {
  13634. return io.ErrUnexpectedEOF
  13635. }
  13636. m.Type = string(dAtA[iNdEx:postIndex])
  13637. iNdEx = postIndex
  13638. case 2:
  13639. if wireType != 2 {
  13640. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  13641. }
  13642. var byteLen int
  13643. for shift := uint(0); ; shift += 7 {
  13644. if shift >= 64 {
  13645. return ErrIntOverflowTypes
  13646. }
  13647. if iNdEx >= l {
  13648. return io.ErrUnexpectedEOF
  13649. }
  13650. b := dAtA[iNdEx]
  13651. iNdEx++
  13652. byteLen |= (int(b) & 0x7F) << shift
  13653. if b < 0x80 {
  13654. break
  13655. }
  13656. }
  13657. if byteLen < 0 {
  13658. return ErrInvalidLengthTypes
  13659. }
  13660. postIndex := iNdEx + byteLen
  13661. if postIndex > l {
  13662. return io.ErrUnexpectedEOF
  13663. }
  13664. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  13665. if m.Data == nil {
  13666. m.Data = []byte{}
  13667. }
  13668. iNdEx = postIndex
  13669. default:
  13670. iNdEx = preIndex
  13671. skippy, err := skipTypes(dAtA[iNdEx:])
  13672. if err != nil {
  13673. return err
  13674. }
  13675. if skippy < 0 {
  13676. return ErrInvalidLengthTypes
  13677. }
  13678. if (iNdEx + skippy) > l {
  13679. return io.ErrUnexpectedEOF
  13680. }
  13681. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13682. iNdEx += skippy
  13683. }
  13684. }
  13685. if iNdEx > l {
  13686. return io.ErrUnexpectedEOF
  13687. }
  13688. return nil
  13689. }
  13690. func (m *Evidence) Unmarshal(dAtA []byte) error {
  13691. l := len(dAtA)
  13692. iNdEx := 0
  13693. for iNdEx < l {
  13694. preIndex := iNdEx
  13695. var wire uint64
  13696. for shift := uint(0); ; shift += 7 {
  13697. if shift >= 64 {
  13698. return ErrIntOverflowTypes
  13699. }
  13700. if iNdEx >= l {
  13701. return io.ErrUnexpectedEOF
  13702. }
  13703. b := dAtA[iNdEx]
  13704. iNdEx++
  13705. wire |= (uint64(b) & 0x7F) << shift
  13706. if b < 0x80 {
  13707. break
  13708. }
  13709. }
  13710. fieldNum := int32(wire >> 3)
  13711. wireType := int(wire & 0x7)
  13712. if wireType == 4 {
  13713. return fmt.Errorf("proto: Evidence: wiretype end group for non-group")
  13714. }
  13715. if fieldNum <= 0 {
  13716. return fmt.Errorf("proto: Evidence: illegal tag %d (wire type %d)", fieldNum, wire)
  13717. }
  13718. switch fieldNum {
  13719. case 1:
  13720. if wireType != 2 {
  13721. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  13722. }
  13723. var stringLen uint64
  13724. for shift := uint(0); ; shift += 7 {
  13725. if shift >= 64 {
  13726. return ErrIntOverflowTypes
  13727. }
  13728. if iNdEx >= l {
  13729. return io.ErrUnexpectedEOF
  13730. }
  13731. b := dAtA[iNdEx]
  13732. iNdEx++
  13733. stringLen |= (uint64(b) & 0x7F) << shift
  13734. if b < 0x80 {
  13735. break
  13736. }
  13737. }
  13738. intStringLen := int(stringLen)
  13739. if intStringLen < 0 {
  13740. return ErrInvalidLengthTypes
  13741. }
  13742. postIndex := iNdEx + intStringLen
  13743. if postIndex > l {
  13744. return io.ErrUnexpectedEOF
  13745. }
  13746. m.Type = string(dAtA[iNdEx:postIndex])
  13747. iNdEx = postIndex
  13748. case 2:
  13749. if wireType != 2 {
  13750. return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  13751. }
  13752. var msglen int
  13753. for shift := uint(0); ; shift += 7 {
  13754. if shift >= 64 {
  13755. return ErrIntOverflowTypes
  13756. }
  13757. if iNdEx >= l {
  13758. return io.ErrUnexpectedEOF
  13759. }
  13760. b := dAtA[iNdEx]
  13761. iNdEx++
  13762. msglen |= (int(b) & 0x7F) << shift
  13763. if b < 0x80 {
  13764. break
  13765. }
  13766. }
  13767. if msglen < 0 {
  13768. return ErrInvalidLengthTypes
  13769. }
  13770. postIndex := iNdEx + msglen
  13771. if postIndex > l {
  13772. return io.ErrUnexpectedEOF
  13773. }
  13774. if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13775. return err
  13776. }
  13777. iNdEx = postIndex
  13778. case 3:
  13779. if wireType != 0 {
  13780. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  13781. }
  13782. m.Height = 0
  13783. for shift := uint(0); ; shift += 7 {
  13784. if shift >= 64 {
  13785. return ErrIntOverflowTypes
  13786. }
  13787. if iNdEx >= l {
  13788. return io.ErrUnexpectedEOF
  13789. }
  13790. b := dAtA[iNdEx]
  13791. iNdEx++
  13792. m.Height |= (int64(b) & 0x7F) << shift
  13793. if b < 0x80 {
  13794. break
  13795. }
  13796. }
  13797. case 4:
  13798. if wireType != 2 {
  13799. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  13800. }
  13801. var msglen int
  13802. for shift := uint(0); ; shift += 7 {
  13803. if shift >= 64 {
  13804. return ErrIntOverflowTypes
  13805. }
  13806. if iNdEx >= l {
  13807. return io.ErrUnexpectedEOF
  13808. }
  13809. b := dAtA[iNdEx]
  13810. iNdEx++
  13811. msglen |= (int(b) & 0x7F) << shift
  13812. if b < 0x80 {
  13813. break
  13814. }
  13815. }
  13816. if msglen < 0 {
  13817. return ErrInvalidLengthTypes
  13818. }
  13819. postIndex := iNdEx + msglen
  13820. if postIndex > l {
  13821. return io.ErrUnexpectedEOF
  13822. }
  13823. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  13824. return err
  13825. }
  13826. iNdEx = postIndex
  13827. case 5:
  13828. if wireType != 0 {
  13829. return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType)
  13830. }
  13831. m.TotalVotingPower = 0
  13832. for shift := uint(0); ; shift += 7 {
  13833. if shift >= 64 {
  13834. return ErrIntOverflowTypes
  13835. }
  13836. if iNdEx >= l {
  13837. return io.ErrUnexpectedEOF
  13838. }
  13839. b := dAtA[iNdEx]
  13840. iNdEx++
  13841. m.TotalVotingPower |= (int64(b) & 0x7F) << shift
  13842. if b < 0x80 {
  13843. break
  13844. }
  13845. }
  13846. default:
  13847. iNdEx = preIndex
  13848. skippy, err := skipTypes(dAtA[iNdEx:])
  13849. if err != nil {
  13850. return err
  13851. }
  13852. if skippy < 0 {
  13853. return ErrInvalidLengthTypes
  13854. }
  13855. if (iNdEx + skippy) > l {
  13856. return io.ErrUnexpectedEOF
  13857. }
  13858. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13859. iNdEx += skippy
  13860. }
  13861. }
  13862. if iNdEx > l {
  13863. return io.ErrUnexpectedEOF
  13864. }
  13865. return nil
  13866. }
  13867. func skipTypes(dAtA []byte) (n int, err error) {
  13868. l := len(dAtA)
  13869. iNdEx := 0
  13870. for iNdEx < l {
  13871. var wire uint64
  13872. for shift := uint(0); ; shift += 7 {
  13873. if shift >= 64 {
  13874. return 0, ErrIntOverflowTypes
  13875. }
  13876. if iNdEx >= l {
  13877. return 0, io.ErrUnexpectedEOF
  13878. }
  13879. b := dAtA[iNdEx]
  13880. iNdEx++
  13881. wire |= (uint64(b) & 0x7F) << shift
  13882. if b < 0x80 {
  13883. break
  13884. }
  13885. }
  13886. wireType := int(wire & 0x7)
  13887. switch wireType {
  13888. case 0:
  13889. for shift := uint(0); ; shift += 7 {
  13890. if shift >= 64 {
  13891. return 0, ErrIntOverflowTypes
  13892. }
  13893. if iNdEx >= l {
  13894. return 0, io.ErrUnexpectedEOF
  13895. }
  13896. iNdEx++
  13897. if dAtA[iNdEx-1] < 0x80 {
  13898. break
  13899. }
  13900. }
  13901. return iNdEx, nil
  13902. case 1:
  13903. iNdEx += 8
  13904. return iNdEx, nil
  13905. case 2:
  13906. var length int
  13907. for shift := uint(0); ; shift += 7 {
  13908. if shift >= 64 {
  13909. return 0, ErrIntOverflowTypes
  13910. }
  13911. if iNdEx >= l {
  13912. return 0, io.ErrUnexpectedEOF
  13913. }
  13914. b := dAtA[iNdEx]
  13915. iNdEx++
  13916. length |= (int(b) & 0x7F) << shift
  13917. if b < 0x80 {
  13918. break
  13919. }
  13920. }
  13921. iNdEx += length
  13922. if length < 0 {
  13923. return 0, ErrInvalidLengthTypes
  13924. }
  13925. return iNdEx, nil
  13926. case 3:
  13927. for {
  13928. var innerWire uint64
  13929. var start int = iNdEx
  13930. for shift := uint(0); ; shift += 7 {
  13931. if shift >= 64 {
  13932. return 0, ErrIntOverflowTypes
  13933. }
  13934. if iNdEx >= l {
  13935. return 0, io.ErrUnexpectedEOF
  13936. }
  13937. b := dAtA[iNdEx]
  13938. iNdEx++
  13939. innerWire |= (uint64(b) & 0x7F) << shift
  13940. if b < 0x80 {
  13941. break
  13942. }
  13943. }
  13944. innerWireType := int(innerWire & 0x7)
  13945. if innerWireType == 4 {
  13946. break
  13947. }
  13948. next, err := skipTypes(dAtA[start:])
  13949. if err != nil {
  13950. return 0, err
  13951. }
  13952. iNdEx = start + next
  13953. }
  13954. return iNdEx, nil
  13955. case 4:
  13956. return iNdEx, nil
  13957. case 5:
  13958. iNdEx += 4
  13959. return iNdEx, nil
  13960. default:
  13961. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  13962. }
  13963. }
  13964. panic("unreachable")
  13965. }
  13966. var (
  13967. ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
  13968. ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
  13969. )
  13970. func init() { proto.RegisterFile("abci/types/types.proto", fileDescriptor_types_8495fed925debe52) }
  13971. func init() {
  13972. golang_proto.RegisterFile("abci/types/types.proto", fileDescriptor_types_8495fed925debe52)
  13973. }
  13974. var fileDescriptor_types_8495fed925debe52 = []byte{
  13975. // 2062 bytes of a gzipped FileDescriptorProto
  13976. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x4f, 0x6f, 0x23, 0x49,
  13977. 0x15, 0x4f, 0xdb, 0x8e, 0xed, 0x7e, 0x49, 0xec, 0x4c, 0x25, 0x93, 0x78, 0x0c, 0x24, 0xa3, 0x06,
  13978. 0x76, 0x13, 0x36, 0x9b, 0xac, 0xb2, 0x2c, 0xca, 0xec, 0x2c, 0x2b, 0xc5, 0x33, 0x03, 0x89, 0x76,
  13979. 0x81, 0xd0, 0x33, 0x13, 0x2e, 0x48, 0xad, 0xb2, 0xbb, 0x62, 0xb7, 0xc6, 0xee, 0xee, 0xed, 0x2e,
  13980. 0x67, 0x9d, 0x39, 0x72, 0xde, 0xc3, 0x1e, 0x90, 0xf8, 0x0a, 0x7c, 0x01, 0x24, 0x8e, 0x9c, 0xd0,
  13981. 0x1e, 0x11, 0x02, 0x71, 0x1b, 0x20, 0x88, 0x03, 0x7c, 0x02, 0x8e, 0xa8, 0x5e, 0x55, 0xf5, 0xbf,
  13982. 0xb4, 0x47, 0x33, 0xc3, 0x8d, 0x4b, 0xab, 0xab, 0xde, 0x7b, 0x55, 0xf5, 0x5e, 0xbd, 0xf7, 0x7e,
  13983. 0xef, 0x15, 0x6c, 0xd0, 0xfe, 0xc0, 0x3b, 0xe0, 0x57, 0x21, 0x8b, 0xe5, 0x77, 0x3f, 0x8c, 0x02,
  13984. 0x1e, 0x90, 0x45, 0x1c, 0x74, 0xdf, 0x1d, 0x7a, 0x7c, 0x34, 0xed, 0xef, 0x0f, 0x82, 0xc9, 0xc1,
  13985. 0x30, 0x18, 0x06, 0x07, 0x48, 0xed, 0x4f, 0x2f, 0x70, 0x84, 0x03, 0xfc, 0x93, 0x52, 0xdd, 0xed,
  13986. 0x61, 0x10, 0x0c, 0xc7, 0x2c, 0xe5, 0xe2, 0xde, 0x84, 0xc5, 0x9c, 0x4e, 0x42, 0xc5, 0x70, 0x94,
  13987. 0x59, 0x8f, 0x33, 0xdf, 0x65, 0xd1, 0xc4, 0xf3, 0x79, 0xf6, 0x77, 0xec, 0xf5, 0xe3, 0x83, 0x41,
  13988. 0x30, 0x99, 0x04, 0x7e, 0xf6, 0x40, 0xd6, 0xef, 0x6b, 0xd0, 0xb0, 0xd9, 0x67, 0x53, 0x16, 0x73,
  13989. 0xb2, 0x03, 0x35, 0x36, 0x18, 0x05, 0x9d, 0xca, 0x5d, 0x63, 0x67, 0xe9, 0x90, 0xec, 0x4b, 0x3e,
  13990. 0x45, 0x7d, 0x34, 0x18, 0x05, 0x27, 0x0b, 0x36, 0x72, 0x90, 0x77, 0x60, 0xf1, 0x62, 0x3c, 0x8d,
  13991. 0x47, 0x9d, 0x2a, 0xb2, 0xae, 0xe5, 0x59, 0x7f, 0x20, 0x48, 0x27, 0x0b, 0xb6, 0xe4, 0x11, 0xcb,
  13992. 0x7a, 0xfe, 0x45, 0xd0, 0xa9, 0x95, 0x2d, 0x7b, 0xea, 0x5f, 0xe0, 0xb2, 0x82, 0x83, 0x1c, 0x01,
  13993. 0xc4, 0x8c, 0x3b, 0x41, 0xc8, 0xbd, 0xc0, 0xef, 0x2c, 0x22, 0xff, 0x66, 0x9e, 0xff, 0x31, 0xe3,
  13994. 0x3f, 0x41, 0xf2, 0xc9, 0x82, 0x6d, 0xc6, 0x7a, 0x20, 0x24, 0x3d, 0xdf, 0xe3, 0xce, 0x60, 0x44,
  13995. 0x3d, 0xbf, 0x53, 0x2f, 0x93, 0x3c, 0xf5, 0x3d, 0xfe, 0x40, 0x90, 0x85, 0xa4, 0xa7, 0x07, 0x42,
  13996. 0x95, 0xcf, 0xa6, 0x2c, 0xba, 0xea, 0x34, 0xca, 0x54, 0xf9, 0xa9, 0x20, 0x09, 0x55, 0x90, 0x87,
  13997. 0xdc, 0x87, 0xa5, 0x3e, 0x1b, 0x7a, 0xbe, 0xd3, 0x1f, 0x07, 0x83, 0x67, 0x9d, 0x26, 0x8a, 0x74,
  13998. 0xf2, 0x22, 0x3d, 0xc1, 0xd0, 0x13, 0xf4, 0x93, 0x05, 0x1b, 0xfa, 0xc9, 0x88, 0x1c, 0x42, 0x73,
  13999. 0x30, 0x62, 0x83, 0x67, 0x0e, 0x9f, 0x75, 0x4c, 0x94, 0xbc, 0x9d, 0x97, 0x7c, 0x20, 0xa8, 0x4f,
  14000. 0x66, 0x27, 0x0b, 0x76, 0x63, 0x20, 0x7f, 0xc9, 0x07, 0x60, 0x32, 0xdf, 0x55, 0xdb, 0x2d, 0xa1,
  14001. 0xd0, 0x46, 0xe1, 0x5e, 0x7c, 0x57, 0x6f, 0xd6, 0x64, 0xea, 0x9f, 0xec, 0x43, 0x5d, 0xdc, 0xb5,
  14002. 0xc7, 0x3b, 0xcb, 0x28, 0xb3, 0x5e, 0xd8, 0x08, 0x69, 0x27, 0x0b, 0xb6, 0xe2, 0x12, 0xe6, 0x73,
  14003. 0xd9, 0xd8, 0xbb, 0x64, 0x91, 0x38, 0xdc, 0x5a, 0x99, 0xf9, 0x1e, 0x4a, 0x3a, 0x1e, 0xcf, 0x74,
  14004. 0xf5, 0xa0, 0xd7, 0x80, 0xc5, 0x4b, 0x3a, 0x9e, 0x32, 0xeb, 0x6d, 0x58, 0xca, 0x78, 0x0a, 0xe9,
  14005. 0x40, 0x63, 0xc2, 0xe2, 0x98, 0x0e, 0x59, 0xc7, 0xb8, 0x6b, 0xec, 0x98, 0xb6, 0x1e, 0x5a, 0x2d,
  14006. 0x58, 0xce, 0xfa, 0x49, 0x46, 0x50, 0xf8, 0x82, 0x10, 0xbc, 0x64, 0x51, 0x2c, 0x1c, 0x40, 0x09,
  14007. 0xaa, 0xa1, 0xf5, 0x21, 0xac, 0x16, 0x9d, 0x80, 0xac, 0x42, 0xf5, 0x19, 0xbb, 0x52, 0x9c, 0xe2,
  14008. 0x97, 0xac, 0xab, 0x03, 0xa1, 0x17, 0x9b, 0xb6, 0x3a, 0xdd, 0x97, 0x95, 0x44, 0x38, 0xf1, 0x03,
  14009. 0x72, 0x04, 0x35, 0x11, 0x48, 0x28, 0xbd, 0x74, 0xd8, 0xdd, 0x97, 0x51, 0xb6, 0xaf, 0xa3, 0x6c,
  14010. 0xff, 0x89, 0x8e, 0xb2, 0x5e, 0xf3, 0xab, 0x17, 0xdb, 0x0b, 0x5f, 0xfe, 0x75, 0xdb, 0xb0, 0x51,
  14011. 0x82, 0xdc, 0x11, 0x57, 0x49, 0x3d, 0xdf, 0xf1, 0x5c, 0xb5, 0x4f, 0x03, 0xc7, 0xa7, 0x2e, 0x39,
  14012. 0x86, 0xd5, 0x41, 0xe0, 0xc7, 0xcc, 0x8f, 0xa7, 0xb1, 0x13, 0xd2, 0x88, 0x4e, 0x62, 0x15, 0x25,
  14013. 0xfa, 0xe2, 0x1e, 0x68, 0xf2, 0x19, 0x52, 0xed, 0xf6, 0x20, 0x3f, 0x41, 0x3e, 0x02, 0xb8, 0xa4,
  14014. 0x63, 0xcf, 0xa5, 0x3c, 0x88, 0xe2, 0x4e, 0xed, 0x6e, 0x35, 0x23, 0x7c, 0xae, 0x09, 0x4f, 0x43,
  14015. 0x97, 0x72, 0xd6, 0xab, 0x89, 0x93, 0xd9, 0x19, 0x7e, 0xf2, 0x16, 0xb4, 0x69, 0x18, 0x3a, 0x31,
  14016. 0xa7, 0x9c, 0x39, 0xfd, 0x2b, 0xce, 0x62, 0x8c, 0xa4, 0x65, 0x7b, 0x85, 0x86, 0xe1, 0x63, 0x31,
  14017. 0xdb, 0x13, 0x93, 0x96, 0x9b, 0xdc, 0x03, 0x3a, 0x39, 0x21, 0x50, 0x73, 0x29, 0xa7, 0x68, 0x8d,
  14018. 0x65, 0x1b, 0xff, 0xc5, 0x5c, 0x48, 0xf9, 0x48, 0xe9, 0x88, 0xff, 0x64, 0x03, 0xea, 0x23, 0xe6,
  14019. 0x0d, 0x47, 0x1c, 0xd5, 0xaa, 0xda, 0x6a, 0x24, 0x0c, 0x1f, 0x46, 0xc1, 0x25, 0xc3, 0x38, 0x6f,
  14020. 0xda, 0x72, 0x60, 0xfd, 0xd3, 0x80, 0x5b, 0x37, 0x02, 0x43, 0xac, 0x3b, 0xa2, 0xf1, 0x48, 0xef,
  14021. 0x25, 0xfe, 0xc9, 0x3b, 0x62, 0x5d, 0xea, 0xb2, 0x48, 0xe5, 0x9f, 0x15, 0xa5, 0xf1, 0x09, 0x4e,
  14022. 0x2a, 0x45, 0x15, 0x0b, 0x79, 0x04, 0xab, 0x63, 0x1a, 0x73, 0x47, 0xfa, 0xaf, 0x83, 0xf9, 0xa5,
  14023. 0x9a, 0x8b, 0xa9, 0x4f, 0xa9, 0xf6, 0x73, 0xe1, 0x56, 0x4a, 0xbc, 0x35, 0xce, 0xcd, 0x92, 0x13,
  14024. 0x58, 0xef, 0x5f, 0x3d, 0xa7, 0x3e, 0xf7, 0x7c, 0xe6, 0xdc, 0xb0, 0x79, 0x5b, 0x2d, 0xf5, 0xe8,
  14025. 0xd2, 0x73, 0x99, 0x3f, 0xd0, 0xc6, 0x5e, 0x4b, 0x44, 0x92, 0xcb, 0x88, 0xad, 0xbb, 0xd0, 0xca,
  14026. 0x47, 0x31, 0x69, 0x41, 0x85, 0xcf, 0x94, 0x86, 0x15, 0x3e, 0xb3, 0xac, 0xc4, 0x03, 0x93, 0x50,
  14027. 0xba, 0xc1, 0xb3, 0x0b, 0xed, 0x42, 0x58, 0x67, 0xcc, 0x6d, 0x64, 0xcd, 0x6d, 0xb5, 0x61, 0x25,
  14028. 0x17, 0xcd, 0xd6, 0x17, 0x8b, 0xd0, 0xb4, 0x59, 0x1c, 0x0a, 0x67, 0x22, 0x47, 0x60, 0xb2, 0xd9,
  14029. 0x80, 0xc9, 0x44, 0x6a, 0x14, 0xd2, 0x94, 0xe4, 0x79, 0xa4, 0xe9, 0x22, 0xa0, 0x13, 0x66, 0xb2,
  14030. 0x9b, 0x03, 0x81, 0xb5, 0xa2, 0x50, 0x16, 0x05, 0xf6, 0xf2, 0x28, 0xb0, 0x5e, 0xe0, 0x2d, 0xc0,
  14031. 0xc0, 0x6e, 0x0e, 0x06, 0x8a, 0x0b, 0xe7, 0x70, 0xe0, 0x5e, 0x09, 0x0e, 0x14, 0x8f, 0x3f, 0x07,
  14032. 0x08, 0xee, 0x95, 0x00, 0x41, 0xe7, 0xc6, 0x5e, 0xa5, 0x48, 0xb0, 0x97, 0x47, 0x82, 0xa2, 0x3a,
  14033. 0x05, 0x28, 0xf8, 0xa8, 0x0c, 0x0a, 0xee, 0x14, 0x64, 0xe6, 0x62, 0xc1, 0xfb, 0x37, 0xb0, 0x60,
  14034. 0xa3, 0x20, 0x5a, 0x02, 0x06, 0xf7, 0x72, 0x59, 0x1a, 0x4a, 0x75, 0x2b, 0x4f, 0xd3, 0xe4, 0x7b,
  14035. 0x37, 0x71, 0x64, 0xb3, 0x78, 0xb5, 0x65, 0x40, 0x72, 0x50, 0x00, 0x92, 0xdb, 0xc5, 0x53, 0x16,
  14036. 0x90, 0x24, 0xc5, 0x83, 0x5d, 0x11, 0xf7, 0x05, 0x4f, 0x13, 0x39, 0x82, 0x45, 0x51, 0x10, 0xa9,
  14037. 0x84, 0x2d, 0x07, 0xd6, 0x8e, 0xc8, 0x44, 0xa9, 0x7f, 0xbd, 0x04, 0x3b, 0xd0, 0xe9, 0x33, 0xde,
  14038. 0x65, 0xfd, 0xca, 0x48, 0x65, 0x31, 0xa2, 0xb3, 0x59, 0xcc, 0x54, 0x59, 0x2c, 0x03, 0x29, 0x95,
  14039. 0x1c, 0xa4, 0x90, 0xef, 0xc0, 0x2d, 0x4c, 0x23, 0x68, 0x17, 0x27, 0x97, 0xd6, 0xda, 0x82, 0x20,
  14040. 0x0d, 0x22, 0xf3, 0xdb, 0xbb, 0xb0, 0x96, 0xe1, 0x15, 0x29, 0x16, 0x53, 0x58, 0x0d, 0x83, 0x77,
  14041. 0x35, 0xe1, 0x3e, 0x0e, 0xc3, 0x13, 0x1a, 0x8f, 0xac, 0x1f, 0xa5, 0xfa, 0xa7, 0x70, 0x45, 0xa0,
  14042. 0x36, 0x08, 0x5c, 0xa9, 0xd6, 0x8a, 0x8d, 0xff, 0x02, 0xc2, 0xc6, 0xc1, 0x10, 0x77, 0x35, 0x6d,
  14043. 0xf1, 0x2b, 0xb8, 0x92, 0x48, 0x31, 0x65, 0x48, 0x58, 0xbf, 0x34, 0xd2, 0xf5, 0x52, 0x04, 0x2b,
  14044. 0x03, 0x1b, 0xe3, 0x7f, 0x01, 0x9b, 0xca, 0xeb, 0x81, 0x8d, 0xf5, 0x1b, 0x23, 0xbd, 0x91, 0x04,
  14045. 0x46, 0xde, 0x4c, 0x45, 0xe1, 0x1c, 0x9e, 0xef, 0xb2, 0x19, 0x06, 0x7c, 0xd5, 0x96, 0x03, 0x8d,
  14046. 0xf0, 0x75, 0x34, 0x73, 0x1e, 0xe1, 0x1b, 0x38, 0x27, 0x07, 0x0a, 0x7e, 0x82, 0x0b, 0x8c, 0xc4,
  14047. 0x65, 0x5b, 0x0e, 0x32, 0xd9, 0xd3, 0xcc, 0x65, 0xcf, 0x33, 0x20, 0x37, 0x63, 0x94, 0x7c, 0x08,
  14048. 0x35, 0x4e, 0x87, 0xc2, 0x84, 0xc2, 0x0a, 0xad, 0x7d, 0x59, 0x2f, 0xef, 0x7f, 0x72, 0x7e, 0x46,
  14049. 0xbd, 0xa8, 0xb7, 0x21, 0xb4, 0xff, 0xf7, 0x8b, 0xed, 0x96, 0xe0, 0xd9, 0x0b, 0x26, 0x1e, 0x67,
  14050. 0x93, 0x90, 0x5f, 0xd9, 0x28, 0x63, 0xfd, 0xd9, 0x10, 0xb9, 0x3b, 0x17, 0xbb, 0xa5, 0xb6, 0xd0,
  14051. 0x0e, 0x5a, 0xc9, 0xc0, 0xec, 0xab, 0xd9, 0xe7, 0x1b, 0x00, 0x43, 0x1a, 0x3b, 0x9f, 0x53, 0x9f,
  14052. 0x33, 0x57, 0x19, 0xc9, 0x1c, 0xd2, 0xf8, 0x67, 0x38, 0x21, 0x6a, 0x12, 0x41, 0x9e, 0xc6, 0xcc,
  14053. 0x45, 0x6b, 0x55, 0xed, 0xc6, 0x90, 0xc6, 0x4f, 0x63, 0xe6, 0x26, 0x7a, 0x35, 0xde, 0x40, 0xaf,
  14054. 0xbf, 0x64, 0x1c, 0x2f, 0x05, 0xae, 0xff, 0x07, 0xcd, 0xfe, 0x65, 0x08, 0x44, 0xce, 0x27, 0x3f,
  14055. 0x72, 0x0a, 0xb7, 0x12, 0xf7, 0x76, 0xa6, 0xe8, 0xf6, 0xda, 0x1f, 0x5e, 0x1e, 0x15, 0xab, 0x97,
  14056. 0xf9, 0xe9, 0x98, 0xfc, 0x18, 0x36, 0x0b, 0xc1, 0x99, 0x2c, 0x58, 0x79, 0x69, 0x8c, 0xde, 0xce,
  14057. 0xc7, 0xa8, 0x5e, 0x4f, 0xeb, 0x5a, 0x7d, 0x03, 0x5d, 0xbf, 0x25, 0xca, 0x93, 0x6c, 0xca, 0x2e,
  14058. 0xbb, 0x2d, 0xeb, 0x17, 0x06, 0xb4, 0x0b, 0x87, 0x21, 0x07, 0x00, 0x32, 0xe3, 0xc5, 0xde, 0x73,
  14059. 0x5d, 0x2a, 0xaf, 0xaa, 0x83, 0xa3, 0xc9, 0x1e, 0x7b, 0xcf, 0x99, 0x6d, 0xf6, 0xf5, 0x2f, 0xf9,
  14060. 0x18, 0xda, 0x4c, 0x15, 0x4c, 0x3a, 0x25, 0x55, 0x72, 0xd8, 0xa1, 0xcb, 0x29, 0xa5, 0x6d, 0x8b,
  14061. 0xe5, 0xc6, 0xd6, 0x31, 0x98, 0xc9, 0xba, 0xe4, 0x6b, 0x60, 0x4e, 0xe8, 0x4c, 0x95, 0xb1, 0xb2,
  14062. 0x00, 0x6a, 0x4e, 0xe8, 0x0c, 0x2b, 0x58, 0xb2, 0x09, 0x0d, 0x41, 0x1c, 0x52, 0xb9, 0x43, 0xd5,
  14063. 0xae, 0x4f, 0xe8, 0xec, 0x87, 0x34, 0xb6, 0x76, 0xa1, 0x95, 0xdf, 0x44, 0xb3, 0x6a, 0x48, 0x91,
  14064. 0xac, 0xc7, 0x43, 0x66, 0x3d, 0x86, 0x56, 0xbe, 0x52, 0x14, 0x89, 0x24, 0x0a, 0xa6, 0xbe, 0x8b,
  14065. 0x8c, 0x8b, 0xb6, 0x1c, 0x88, 0x36, 0xf1, 0x32, 0x90, 0x57, 0x97, 0x2d, 0x0d, 0xcf, 0x03, 0xce,
  14066. 0x32, 0xf5, 0xa5, 0xe4, 0xb1, 0xfe, 0x58, 0x83, 0xba, 0x2c, 0x5b, 0xc9, 0x5b, 0x99, 0x4e, 0x01,
  14067. 0x31, 0xa9, 0xb7, 0x74, 0xfd, 0x62, 0xbb, 0x81, 0xe9, 0xfb, 0xf4, 0x61, 0xda, 0x36, 0xa4, 0x89,
  14068. 0xaa, 0x92, 0xab, 0xaa, 0x75, 0x8f, 0x52, 0x7d, 0xed, 0x1e, 0x65, 0x13, 0x1a, 0xfe, 0x74, 0xe2,
  14069. 0xf0, 0x59, 0x8c, 0xb1, 0x56, 0xb5, 0xeb, 0xfe, 0x74, 0xf2, 0x64, 0x16, 0x0b, 0x9b, 0xf2, 0x80,
  14070. 0xd3, 0x31, 0x92, 0x64, 0xb0, 0x35, 0x71, 0x42, 0x10, 0x8f, 0x60, 0x25, 0x83, 0x72, 0x9e, 0xab,
  14071. 0x4a, 0xa8, 0x56, 0xf6, 0xc6, 0x4f, 0x1f, 0x2a, 0x75, 0x97, 0x12, 0xd4, 0x3b, 0x75, 0xc9, 0x4e,
  14072. 0xbe, 0x24, 0x47, 0x70, 0x94, 0x19, 0x3a, 0x53, 0x75, 0x0b, 0x68, 0x14, 0x07, 0x10, 0xee, 0x26,
  14073. 0x59, 0x64, 0xba, 0x6e, 0x8a, 0x09, 0x24, 0xbe, 0x0d, 0xed, 0x14, 0x5f, 0x24, 0x8b, 0x29, 0x57,
  14074. 0x49, 0xa7, 0x91, 0xf1, 0x3d, 0x58, 0xf7, 0xd9, 0x8c, 0x3b, 0x45, 0x6e, 0x40, 0x6e, 0x22, 0x68,
  14075. 0xe7, 0x79, 0x89, 0x6f, 0x43, 0x2b, 0x0d, 0x48, 0xe4, 0x5d, 0x92, 0x8d, 0x51, 0x32, 0x8b, 0x6c,
  14076. 0x77, 0xa0, 0x99, 0xa0, 0xfb, 0x32, 0x32, 0x34, 0xa8, 0x04, 0xf5, 0xa4, 0x5e, 0x88, 0x58, 0x3c,
  14077. 0x1d, 0x73, 0xb5, 0xc8, 0x0a, 0xf2, 0x60, 0xbd, 0x60, 0xcb, 0x79, 0xe4, 0xfd, 0x26, 0xac, 0x24,
  14078. 0x71, 0x80, 0x7c, 0x2d, 0xe4, 0x5b, 0xd6, 0x93, 0xc8, 0xb4, 0x0b, 0xab, 0x61, 0x14, 0x84, 0x41,
  14079. 0xcc, 0x22, 0x87, 0xba, 0x6e, 0xc4, 0xe2, 0xb8, 0xd3, 0x96, 0xeb, 0xe9, 0xf9, 0x63, 0x39, 0x6d,
  14080. 0xfd, 0x1c, 0x1a, 0xca, 0xfa, 0xa5, 0xed, 0xd3, 0xf7, 0x61, 0x39, 0xa4, 0x91, 0x38, 0x53, 0xb6,
  14081. 0x89, 0xd2, 0x45, 0xec, 0x19, 0x8d, 0x44, 0xd7, 0x9c, 0xeb, 0xa5, 0x96, 0x90, 0x5f, 0x4e, 0x59,
  14082. 0xf7, 0x60, 0x25, 0xc7, 0x23, 0xc2, 0x00, 0x9d, 0x42, 0x87, 0x01, 0x0e, 0x92, 0x9d, 0x2b, 0xe9,
  14083. 0xce, 0xd6, 0x7d, 0x30, 0x13, 0x43, 0x8b, 0x5a, 0x4b, 0xeb, 0x61, 0x28, 0xdb, 0xc9, 0x21, 0x02,
  14084. 0x74, 0xf0, 0x39, 0x8b, 0x54, 0x7d, 0x25, 0x07, 0xd6, 0x53, 0x68, 0x17, 0xf2, 0x29, 0xd9, 0x83,
  14085. 0x46, 0x38, 0xed, 0x3b, 0xba, 0xaf, 0x4f, 0x3b, 0xc1, 0xb3, 0x69, 0xff, 0x13, 0x76, 0xa5, 0x3b,
  14086. 0xc1, 0x10, 0x47, 0xe9, 0xb2, 0x95, 0xec, 0xb2, 0x63, 0x68, 0xea, 0xd0, 0x24, 0xdf, 0x05, 0x33,
  14087. 0xf1, 0x91, 0x42, 0x02, 0x4b, 0xb6, 0x56, 0x8b, 0xa6, 0x8c, 0xe2, 0xaa, 0x63, 0x6f, 0xe8, 0x33,
  14088. 0xd7, 0x49, 0xe3, 0x01, 0xf7, 0x68, 0xda, 0x6d, 0x49, 0xf8, 0x54, 0x3b, 0xbf, 0xf5, 0x1e, 0xd4,
  14089. 0xe5, 0xd9, 0x84, 0x7d, 0xc4, 0xca, 0xba, 0xfc, 0x14, 0xff, 0xa5, 0x99, 0xf6, 0x4f, 0x06, 0x34,
  14090. 0x75, 0x8a, 0x2a, 0x15, 0xca, 0x1d, 0xba, 0xf2, 0xaa, 0x87, 0x9e, 0xd7, 0x9b, 0xeb, 0x2c, 0x52,
  14091. 0x7b, 0xed, 0x2c, 0xb2, 0x07, 0x44, 0x26, 0x8b, 0xcb, 0x80, 0x7b, 0xfe, 0xd0, 0x91, 0xb6, 0x96,
  14092. 0x59, 0x63, 0x15, 0x29, 0xe7, 0x48, 0x38, 0x13, 0xf3, 0x87, 0x5f, 0x2c, 0x42, 0xfb, 0xb8, 0xf7,
  14093. 0xe0, 0xf4, 0x38, 0x0c, 0xc7, 0xde, 0x80, 0x62, 0xcd, 0x7b, 0x00, 0x35, 0xac, 0xea, 0x4b, 0xde,
  14094. 0x13, 0xbb, 0x65, 0xed, 0x25, 0x39, 0x84, 0x45, 0x2c, 0xee, 0x49, 0xd9, 0xb3, 0x62, 0xb7, 0xb4,
  14095. 0xcb, 0x14, 0x9b, 0xc8, 0xf2, 0xff, 0xe6, 0xeb, 0x62, 0xb7, 0xac, 0xd5, 0x24, 0x1f, 0x83, 0x99,
  14096. 0x96, 0xe5, 0xf3, 0xde, 0x18, 0xbb, 0x73, 0x9b, 0x4e, 0x21, 0x9f, 0x56, 0x43, 0xf3, 0x9e, 0xca,
  14097. 0xba, 0x73, 0xbb, 0x33, 0x72, 0x04, 0x0d, 0x5d, 0x25, 0x96, 0xbf, 0x02, 0x76, 0xe7, 0x34, 0x84,
  14098. 0xc2, 0x3c, 0xb2, 0xd2, 0x2e, 0x7b, 0xaa, 0xec, 0x96, 0x76, 0xad, 0xe4, 0x03, 0xa8, 0x2b, 0xd8,
  14099. 0x2f, 0x7d, 0x09, 0xec, 0x96, 0xb7, 0x75, 0x42, 0xc9, 0xb4, 0xd7, 0x98, 0xf7, 0x9c, 0xda, 0x9d,
  14100. 0xdb, 0x5e, 0x93, 0x63, 0x80, 0x4c, 0x75, 0x3d, 0xf7, 0x9d, 0xb4, 0x3b, 0xbf, 0x6d, 0x26, 0xf7,
  14101. 0xa1, 0x99, 0x3e, 0x85, 0x94, 0xbf, 0x7c, 0x76, 0xe7, 0x75, 0xb2, 0xbd, 0xaf, 0xff, 0xe7, 0xef,
  14102. 0x5b, 0xc6, 0xaf, 0xaf, 0xb7, 0x8c, 0xdf, 0x5e, 0x6f, 0x19, 0x5f, 0x5d, 0x6f, 0x19, 0x7f, 0xb8,
  14103. 0xde, 0x32, 0xfe, 0x76, 0xbd, 0x65, 0xfc, 0xee, 0x1f, 0x5b, 0x46, 0xbf, 0x8e, 0xee, 0xff, 0xfe,
  14104. 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xef, 0x95, 0x6c, 0x08, 0xac, 0x17, 0x00, 0x00,
  14105. }