github.com/okex/exchain@v1.8.0/libs/tendermint/abci/types/types.pb.go (about) 1 package types 2 3 import ( 4 bytes "bytes" 5 context "context" 6 fmt "fmt" 7 io "io" 8 math "math" 9 math_bits "math/bits" 10 time "time" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 15 golang_proto "github.com/golang/protobuf/proto" 16 _ "github.com/golang/protobuf/ptypes/duration" 17 _ "github.com/golang/protobuf/ptypes/timestamp" 18 merkle "github.com/okex/exchain/libs/tendermint/crypto/merkle" 19 kv "github.com/okex/exchain/libs/tendermint/libs/kv" 20 grpc "google.golang.org/grpc" 21 codes "google.golang.org/grpc/codes" 22 status "google.golang.org/grpc/status" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = golang_proto.Marshal 28 var _ = fmt.Errorf 29 var _ = math.Inf 30 var _ = time.Kitchen 31 32 // This is a compile-time assertion to ensure that this generated file 33 // is compatible with the proto package it is being compiled against. 34 // A compilation error at this line likely means your copy of the 35 // proto package needs to be updated. 36 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 37 38 type CheckTxType int32 39 40 const ( 41 CheckTxType_New CheckTxType = 0 42 CheckTxType_Recheck CheckTxType = 1 43 CheckTxType_WrappedCheck CheckTxType = 2 44 ) 45 46 var CheckTxType_name = map[int32]string{ 47 0: "New", 48 1: "Recheck", 49 2: "WrappedCheck", 50 } 51 52 var CheckTxType_value = map[string]int32{ 53 "New": 0, 54 "Recheck": 1, 55 "WrappedCheck": 2, 56 } 57 58 func (x CheckTxType) String() string { 59 return proto.EnumName(CheckTxType_name, int32(x)) 60 } 61 62 func (CheckTxType) EnumDescriptor() ([]byte, []int) { 63 return fileDescriptor_9f1eaa49c51fa1ac, []int{0} 64 } 65 66 type Request struct { 67 // Types that are valid to be assigned to Value: 68 // *Request_Echo 69 // *Request_Flush 70 // *Request_Info 71 // *Request_SetOption 72 // *Request_InitChain 73 // *Request_Query 74 // *Request_BeginBlock 75 // *Request_CheckTx 76 // *Request_DeliverTx 77 // *Request_EndBlock 78 // *Request_Commit 79 Value isRequest_Value `protobuf_oneof:"value"` 80 XXX_NoUnkeyedLiteral struct{} `json:"-"` 81 XXX_unrecognized []byte `json:"-"` 82 XXX_sizecache int32 `json:"-"` 83 } 84 85 func (m *Request) Reset() { *m = Request{} } 86 func (m *Request) String() string { return proto.CompactTextString(m) } 87 func (*Request) ProtoMessage() {} 88 func (*Request) Descriptor() ([]byte, []int) { 89 return fileDescriptor_9f1eaa49c51fa1ac, []int{0} 90 } 91 func (m *Request) XXX_Unmarshal(b []byte) error { 92 return m.Unmarshal(b) 93 } 94 func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 95 if deterministic { 96 return xxx_messageInfo_Request.Marshal(b, m, deterministic) 97 } else { 98 b = b[:cap(b)] 99 n, err := m.MarshalToSizedBuffer(b) 100 if err != nil { 101 return nil, err 102 } 103 return b[:n], nil 104 } 105 } 106 func (m *Request) XXX_Merge(src proto.Message) { 107 xxx_messageInfo_Request.Merge(m, src) 108 } 109 func (m *Request) XXX_Size() int { 110 return m.Size() 111 } 112 func (m *Request) XXX_DiscardUnknown() { 113 xxx_messageInfo_Request.DiscardUnknown(m) 114 } 115 116 var xxx_messageInfo_Request proto.InternalMessageInfo 117 118 type isRequest_Value interface { 119 isRequest_Value() 120 Equal(interface{}) bool 121 MarshalTo([]byte) (int, error) 122 Size() int 123 } 124 125 type Request_Echo struct { 126 Echo *RequestEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 127 } 128 type Request_Flush struct { 129 Flush *RequestFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 130 } 131 type Request_Info struct { 132 Info *RequestInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof" json:"info,omitempty"` 133 } 134 type Request_SetOption struct { 135 SetOption *RequestSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 136 } 137 type Request_InitChain struct { 138 InitChain *RequestInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 139 } 140 type Request_Query struct { 141 Query *RequestQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof" json:"query,omitempty"` 142 } 143 type Request_BeginBlock struct { 144 BeginBlock *RequestBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 145 } 146 type Request_CheckTx struct { 147 CheckTx *RequestCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 148 } 149 type Request_DeliverTx struct { 150 DeliverTx *RequestDeliverTx `protobuf:"bytes,19,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 151 } 152 type Request_EndBlock struct { 153 EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 154 } 155 type Request_Commit struct { 156 Commit *RequestCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 157 } 158 159 func (*Request_Echo) isRequest_Value() {} 160 func (*Request_Flush) isRequest_Value() {} 161 func (*Request_Info) isRequest_Value() {} 162 func (*Request_SetOption) isRequest_Value() {} 163 func (*Request_InitChain) isRequest_Value() {} 164 func (*Request_Query) isRequest_Value() {} 165 func (*Request_BeginBlock) isRequest_Value() {} 166 func (*Request_CheckTx) isRequest_Value() {} 167 func (*Request_DeliverTx) isRequest_Value() {} 168 func (*Request_EndBlock) isRequest_Value() {} 169 func (*Request_Commit) isRequest_Value() {} 170 171 func (m *Request) GetValue() isRequest_Value { 172 if m != nil { 173 return m.Value 174 } 175 return nil 176 } 177 178 func (m *Request) GetEcho() *RequestEcho { 179 if x, ok := m.GetValue().(*Request_Echo); ok { 180 return x.Echo 181 } 182 return nil 183 } 184 185 func (m *Request) GetFlush() *RequestFlush { 186 if x, ok := m.GetValue().(*Request_Flush); ok { 187 return x.Flush 188 } 189 return nil 190 } 191 192 func (m *Request) GetInfo() *RequestInfo { 193 if x, ok := m.GetValue().(*Request_Info); ok { 194 return x.Info 195 } 196 return nil 197 } 198 199 func (m *Request) GetSetOption() *RequestSetOption { 200 if x, ok := m.GetValue().(*Request_SetOption); ok { 201 return x.SetOption 202 } 203 return nil 204 } 205 206 func (m *Request) GetInitChain() *RequestInitChain { 207 if x, ok := m.GetValue().(*Request_InitChain); ok { 208 return x.InitChain 209 } 210 return nil 211 } 212 213 func (m *Request) GetQuery() *RequestQuery { 214 if x, ok := m.GetValue().(*Request_Query); ok { 215 return x.Query 216 } 217 return nil 218 } 219 220 func (m *Request) GetBeginBlock() *RequestBeginBlock { 221 if x, ok := m.GetValue().(*Request_BeginBlock); ok { 222 return x.BeginBlock 223 } 224 return nil 225 } 226 227 func (m *Request) GetCheckTx() *RequestCheckTx { 228 if x, ok := m.GetValue().(*Request_CheckTx); ok { 229 return x.CheckTx 230 } 231 return nil 232 } 233 234 func (m *Request) GetDeliverTx() *RequestDeliverTx { 235 if x, ok := m.GetValue().(*Request_DeliverTx); ok { 236 return x.DeliverTx 237 } 238 return nil 239 } 240 241 func (m *Request) GetEndBlock() *RequestEndBlock { 242 if x, ok := m.GetValue().(*Request_EndBlock); ok { 243 return x.EndBlock 244 } 245 return nil 246 } 247 248 func (m *Request) GetCommit() *RequestCommit { 249 if x, ok := m.GetValue().(*Request_Commit); ok { 250 return x.Commit 251 } 252 return nil 253 } 254 255 // XXX_OneofWrappers is for the internal use of the proto package. 256 func (*Request) XXX_OneofWrappers() []interface{} { 257 return []interface{}{ 258 (*Request_Echo)(nil), 259 (*Request_Flush)(nil), 260 (*Request_Info)(nil), 261 (*Request_SetOption)(nil), 262 (*Request_InitChain)(nil), 263 (*Request_Query)(nil), 264 (*Request_BeginBlock)(nil), 265 (*Request_CheckTx)(nil), 266 (*Request_DeliverTx)(nil), 267 (*Request_EndBlock)(nil), 268 (*Request_Commit)(nil), 269 } 270 } 271 272 type RequestEcho struct { 273 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 274 XXX_NoUnkeyedLiteral struct{} `json:"-"` 275 XXX_unrecognized []byte `json:"-"` 276 XXX_sizecache int32 `json:"-"` 277 } 278 279 func (m *RequestEcho) Reset() { *m = RequestEcho{} } 280 func (m *RequestEcho) String() string { return proto.CompactTextString(m) } 281 func (*RequestEcho) ProtoMessage() {} 282 func (*RequestEcho) Descriptor() ([]byte, []int) { 283 return fileDescriptor_9f1eaa49c51fa1ac, []int{1} 284 } 285 func (m *RequestEcho) XXX_Unmarshal(b []byte) error { 286 return m.Unmarshal(b) 287 } 288 func (m *RequestEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 289 if deterministic { 290 return xxx_messageInfo_RequestEcho.Marshal(b, m, deterministic) 291 } else { 292 b = b[:cap(b)] 293 n, err := m.MarshalToSizedBuffer(b) 294 if err != nil { 295 return nil, err 296 } 297 return b[:n], nil 298 } 299 } 300 func (m *RequestEcho) XXX_Merge(src proto.Message) { 301 xxx_messageInfo_RequestEcho.Merge(m, src) 302 } 303 func (m *RequestEcho) XXX_Size() int { 304 return m.Size() 305 } 306 func (m *RequestEcho) XXX_DiscardUnknown() { 307 xxx_messageInfo_RequestEcho.DiscardUnknown(m) 308 } 309 310 var xxx_messageInfo_RequestEcho proto.InternalMessageInfo 311 312 func (m *RequestEcho) GetMessage() string { 313 if m != nil { 314 return m.Message 315 } 316 return "" 317 } 318 319 type RequestFlush struct { 320 XXX_NoUnkeyedLiteral struct{} `json:"-"` 321 XXX_unrecognized []byte `json:"-"` 322 XXX_sizecache int32 `json:"-"` 323 } 324 325 func (m *RequestFlush) Reset() { *m = RequestFlush{} } 326 func (m *RequestFlush) String() string { return proto.CompactTextString(m) } 327 func (*RequestFlush) ProtoMessage() {} 328 func (*RequestFlush) Descriptor() ([]byte, []int) { 329 return fileDescriptor_9f1eaa49c51fa1ac, []int{2} 330 } 331 func (m *RequestFlush) XXX_Unmarshal(b []byte) error { 332 return m.Unmarshal(b) 333 } 334 func (m *RequestFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 335 if deterministic { 336 return xxx_messageInfo_RequestFlush.Marshal(b, m, deterministic) 337 } else { 338 b = b[:cap(b)] 339 n, err := m.MarshalToSizedBuffer(b) 340 if err != nil { 341 return nil, err 342 } 343 return b[:n], nil 344 } 345 } 346 func (m *RequestFlush) XXX_Merge(src proto.Message) { 347 xxx_messageInfo_RequestFlush.Merge(m, src) 348 } 349 func (m *RequestFlush) XXX_Size() int { 350 return m.Size() 351 } 352 func (m *RequestFlush) XXX_DiscardUnknown() { 353 xxx_messageInfo_RequestFlush.DiscardUnknown(m) 354 } 355 356 var xxx_messageInfo_RequestFlush proto.InternalMessageInfo 357 358 type RequestInfo struct { 359 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 360 BlockVersion uint64 `protobuf:"varint,2,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"` 361 P2PVersion uint64 `protobuf:"varint,3,opt,name=p2p_version,json=p2pVersion,proto3" json:"p2p_version,omitempty"` 362 XXX_NoUnkeyedLiteral struct{} `json:"-"` 363 XXX_unrecognized []byte `json:"-"` 364 XXX_sizecache int32 `json:"-"` 365 } 366 367 func (m *RequestInfo) Reset() { *m = RequestInfo{} } 368 func (m *RequestInfo) String() string { return proto.CompactTextString(m) } 369 func (*RequestInfo) ProtoMessage() {} 370 func (*RequestInfo) Descriptor() ([]byte, []int) { 371 return fileDescriptor_9f1eaa49c51fa1ac, []int{3} 372 } 373 func (m *RequestInfo) XXX_Unmarshal(b []byte) error { 374 return m.Unmarshal(b) 375 } 376 func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 377 if deterministic { 378 return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic) 379 } else { 380 b = b[:cap(b)] 381 n, err := m.MarshalToSizedBuffer(b) 382 if err != nil { 383 return nil, err 384 } 385 return b[:n], nil 386 } 387 } 388 func (m *RequestInfo) XXX_Merge(src proto.Message) { 389 xxx_messageInfo_RequestInfo.Merge(m, src) 390 } 391 func (m *RequestInfo) XXX_Size() int { 392 return m.Size() 393 } 394 func (m *RequestInfo) XXX_DiscardUnknown() { 395 xxx_messageInfo_RequestInfo.DiscardUnknown(m) 396 } 397 398 var xxx_messageInfo_RequestInfo proto.InternalMessageInfo 399 400 func (m *RequestInfo) GetVersion() string { 401 if m != nil { 402 return m.Version 403 } 404 return "" 405 } 406 407 func (m *RequestInfo) GetBlockVersion() uint64 { 408 if m != nil { 409 return m.BlockVersion 410 } 411 return 0 412 } 413 414 func (m *RequestInfo) GetP2PVersion() uint64 { 415 if m != nil { 416 return m.P2PVersion 417 } 418 return 0 419 } 420 421 // nondeterministic 422 type RequestSetOption struct { 423 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 424 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 425 XXX_NoUnkeyedLiteral struct{} `json:"-"` 426 XXX_unrecognized []byte `json:"-"` 427 XXX_sizecache int32 `json:"-"` 428 } 429 430 func (m *RequestSetOption) Reset() { *m = RequestSetOption{} } 431 func (m *RequestSetOption) String() string { return proto.CompactTextString(m) } 432 func (*RequestSetOption) ProtoMessage() {} 433 func (*RequestSetOption) Descriptor() ([]byte, []int) { 434 return fileDescriptor_9f1eaa49c51fa1ac, []int{4} 435 } 436 func (m *RequestSetOption) XXX_Unmarshal(b []byte) error { 437 return m.Unmarshal(b) 438 } 439 func (m *RequestSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 440 if deterministic { 441 return xxx_messageInfo_RequestSetOption.Marshal(b, m, deterministic) 442 } else { 443 b = b[:cap(b)] 444 n, err := m.MarshalToSizedBuffer(b) 445 if err != nil { 446 return nil, err 447 } 448 return b[:n], nil 449 } 450 } 451 func (m *RequestSetOption) XXX_Merge(src proto.Message) { 452 xxx_messageInfo_RequestSetOption.Merge(m, src) 453 } 454 func (m *RequestSetOption) XXX_Size() int { 455 return m.Size() 456 } 457 func (m *RequestSetOption) XXX_DiscardUnknown() { 458 xxx_messageInfo_RequestSetOption.DiscardUnknown(m) 459 } 460 461 var xxx_messageInfo_RequestSetOption proto.InternalMessageInfo 462 463 func (m *RequestSetOption) GetKey() string { 464 if m != nil { 465 return m.Key 466 } 467 return "" 468 } 469 470 func (m *RequestSetOption) GetValue() string { 471 if m != nil { 472 return m.Value 473 } 474 return "" 475 } 476 477 type RequestInitChain struct { 478 Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"` 479 ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 480 ConsensusParams *ConsensusParams `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` 481 Validators []ValidatorUpdate `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"` 482 AppStateBytes []byte `protobuf:"bytes,5,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"` 483 XXX_NoUnkeyedLiteral struct{} `json:"-"` 484 XXX_unrecognized []byte `json:"-"` 485 XXX_sizecache int32 `json:"-"` 486 } 487 488 func (m *RequestInitChain) Reset() { *m = RequestInitChain{} } 489 func (m *RequestInitChain) String() string { return proto.CompactTextString(m) } 490 func (*RequestInitChain) ProtoMessage() {} 491 func (*RequestInitChain) Descriptor() ([]byte, []int) { 492 return fileDescriptor_9f1eaa49c51fa1ac, []int{5} 493 } 494 func (m *RequestInitChain) XXX_Unmarshal(b []byte) error { 495 return m.Unmarshal(b) 496 } 497 func (m *RequestInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 498 if deterministic { 499 return xxx_messageInfo_RequestInitChain.Marshal(b, m, deterministic) 500 } else { 501 b = b[:cap(b)] 502 n, err := m.MarshalToSizedBuffer(b) 503 if err != nil { 504 return nil, err 505 } 506 return b[:n], nil 507 } 508 } 509 func (m *RequestInitChain) XXX_Merge(src proto.Message) { 510 xxx_messageInfo_RequestInitChain.Merge(m, src) 511 } 512 func (m *RequestInitChain) XXX_Size() int { 513 return m.Size() 514 } 515 func (m *RequestInitChain) XXX_DiscardUnknown() { 516 xxx_messageInfo_RequestInitChain.DiscardUnknown(m) 517 } 518 519 var xxx_messageInfo_RequestInitChain proto.InternalMessageInfo 520 521 func (m *RequestInitChain) GetTime() time.Time { 522 if m != nil { 523 return m.Time 524 } 525 return time.Time{} 526 } 527 528 func (m *RequestInitChain) GetChainId() string { 529 if m != nil { 530 return m.ChainId 531 } 532 return "" 533 } 534 535 func (m *RequestInitChain) GetConsensusParams() *ConsensusParams { 536 if m != nil { 537 return m.ConsensusParams 538 } 539 return nil 540 } 541 542 func (m *RequestInitChain) GetValidators() []ValidatorUpdate { 543 if m != nil { 544 return m.Validators 545 } 546 return nil 547 } 548 549 func (m *RequestInitChain) GetAppStateBytes() []byte { 550 if m != nil { 551 return m.AppStateBytes 552 } 553 return nil 554 } 555 556 type RequestQuery struct { 557 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 558 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 559 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 560 Prove bool `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"` 561 XXX_NoUnkeyedLiteral struct{} `json:"-"` 562 XXX_unrecognized []byte `json:"-"` 563 XXX_sizecache int32 `json:"-"` 564 } 565 566 func (m *RequestQuery) Reset() { *m = RequestQuery{} } 567 func (m *RequestQuery) String() string { return proto.CompactTextString(m) } 568 func (*RequestQuery) ProtoMessage() {} 569 func (*RequestQuery) Descriptor() ([]byte, []int) { 570 return fileDescriptor_9f1eaa49c51fa1ac, []int{6} 571 } 572 func (m *RequestQuery) XXX_Unmarshal(b []byte) error { 573 return m.Unmarshal(b) 574 } 575 func (m *RequestQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 576 if deterministic { 577 return xxx_messageInfo_RequestQuery.Marshal(b, m, deterministic) 578 } else { 579 b = b[:cap(b)] 580 n, err := m.MarshalToSizedBuffer(b) 581 if err != nil { 582 return nil, err 583 } 584 return b[:n], nil 585 } 586 } 587 func (m *RequestQuery) XXX_Merge(src proto.Message) { 588 xxx_messageInfo_RequestQuery.Merge(m, src) 589 } 590 func (m *RequestQuery) XXX_Size() int { 591 return m.Size() 592 } 593 func (m *RequestQuery) XXX_DiscardUnknown() { 594 xxx_messageInfo_RequestQuery.DiscardUnknown(m) 595 } 596 597 var xxx_messageInfo_RequestQuery proto.InternalMessageInfo 598 599 func (m *RequestQuery) GetData() []byte { 600 if m != nil { 601 return m.Data 602 } 603 return nil 604 } 605 606 func (m *RequestQuery) GetPath() string { 607 if m != nil { 608 return m.Path 609 } 610 return "" 611 } 612 613 func (m *RequestQuery) GetHeight() int64 { 614 if m != nil { 615 return m.Height 616 } 617 return 0 618 } 619 620 func (m *RequestQuery) GetProve() bool { 621 if m != nil { 622 return m.Prove 623 } 624 return false 625 } 626 627 type RequestBeginBlock struct { 628 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 629 Header Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header"` 630 LastCommitInfo LastCommitInfo `protobuf:"bytes,3,opt,name=last_commit_info,json=lastCommitInfo,proto3" json:"last_commit_info"` 631 ByzantineValidators []Evidence `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators"` 632 XXX_NoUnkeyedLiteral struct{} `json:"-"` 633 XXX_unrecognized []byte `json:"-"` 634 XXX_sizecache int32 `json:"-"` 635 } 636 637 func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} } 638 func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) } 639 func (*RequestBeginBlock) ProtoMessage() {} 640 func (*RequestBeginBlock) Descriptor() ([]byte, []int) { 641 return fileDescriptor_9f1eaa49c51fa1ac, []int{7} 642 } 643 func (m *RequestBeginBlock) XXX_Unmarshal(b []byte) error { 644 return m.Unmarshal(b) 645 } 646 func (m *RequestBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 647 if deterministic { 648 return xxx_messageInfo_RequestBeginBlock.Marshal(b, m, deterministic) 649 } else { 650 b = b[:cap(b)] 651 n, err := m.MarshalToSizedBuffer(b) 652 if err != nil { 653 return nil, err 654 } 655 return b[:n], nil 656 } 657 } 658 func (m *RequestBeginBlock) XXX_Merge(src proto.Message) { 659 xxx_messageInfo_RequestBeginBlock.Merge(m, src) 660 } 661 func (m *RequestBeginBlock) XXX_Size() int { 662 return m.Size() 663 } 664 func (m *RequestBeginBlock) XXX_DiscardUnknown() { 665 xxx_messageInfo_RequestBeginBlock.DiscardUnknown(m) 666 } 667 668 var xxx_messageInfo_RequestBeginBlock proto.InternalMessageInfo 669 670 func (m *RequestBeginBlock) GetHash() []byte { 671 if m != nil { 672 return m.Hash 673 } 674 return nil 675 } 676 677 func (m *RequestBeginBlock) GetHeader() Header { 678 if m != nil { 679 return m.Header 680 } 681 return Header{} 682 } 683 684 func (m *RequestBeginBlock) GetLastCommitInfo() LastCommitInfo { 685 if m != nil { 686 return m.LastCommitInfo 687 } 688 return LastCommitInfo{} 689 } 690 691 func (m *RequestBeginBlock) GetByzantineValidators() []Evidence { 692 if m != nil { 693 return m.ByzantineValidators 694 } 695 return nil 696 } 697 698 type RequestCheckTx struct { 699 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 700 Type CheckTxType `protobuf:"varint,2,opt,name=type,proto3,enum=tendermint.abci.types.CheckTxType" json:"type,omitempty"` 701 From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` 702 Nonce uint64 `protobuf:"uint64,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 703 XXX_NoUnkeyedLiteral struct{} `json:"-"` 704 XXX_unrecognized []byte `json:"-"` 705 XXX_sizecache int32 `json:"-"` 706 } 707 708 func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} } 709 func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) } 710 func (*RequestCheckTx) ProtoMessage() {} 711 func (*RequestCheckTx) Descriptor() ([]byte, []int) { 712 return fileDescriptor_9f1eaa49c51fa1ac, []int{8} 713 } 714 func (m *RequestCheckTx) XXX_Unmarshal(b []byte) error { 715 return m.Unmarshal(b) 716 } 717 func (m *RequestCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 718 if deterministic { 719 return xxx_messageInfo_RequestCheckTx.Marshal(b, m, deterministic) 720 } else { 721 b = b[:cap(b)] 722 n, err := m.MarshalToSizedBuffer(b) 723 if err != nil { 724 return nil, err 725 } 726 return b[:n], nil 727 } 728 } 729 func (m *RequestCheckTx) XXX_Merge(src proto.Message) { 730 xxx_messageInfo_RequestCheckTx.Merge(m, src) 731 } 732 func (m *RequestCheckTx) XXX_Size() int { 733 return m.Size() 734 } 735 func (m *RequestCheckTx) XXX_DiscardUnknown() { 736 xxx_messageInfo_RequestCheckTx.DiscardUnknown(m) 737 } 738 739 var xxx_messageInfo_RequestCheckTx proto.InternalMessageInfo 740 741 func (m *RequestCheckTx) GetTx() []byte { 742 if m != nil { 743 return m.Tx 744 } 745 return nil 746 } 747 748 func (m *RequestCheckTx) GetType() CheckTxType { 749 if m != nil { 750 return m.Type 751 } 752 return CheckTxType_New 753 } 754 755 func (m *RequestCheckTx) GetFrom() string { 756 if m != nil { 757 return m.From 758 } 759 return "" 760 } 761 762 func (m *RequestCheckTx) GetNonce() uint64 { 763 if m != nil { 764 return m.Nonce 765 } 766 return 0 767 } 768 769 type RequestDeliverTx struct { 770 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 771 XXX_NoUnkeyedLiteral struct{} `json:"-"` 772 XXX_unrecognized []byte `json:"-"` 773 XXX_sizecache int32 `json:"-"` 774 } 775 776 func (m *RequestDeliverTx) Reset() { *m = RequestDeliverTx{} } 777 func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) } 778 func (*RequestDeliverTx) ProtoMessage() {} 779 func (*RequestDeliverTx) Descriptor() ([]byte, []int) { 780 return fileDescriptor_9f1eaa49c51fa1ac, []int{9} 781 } 782 func (m *RequestDeliverTx) XXX_Unmarshal(b []byte) error { 783 return m.Unmarshal(b) 784 } 785 func (m *RequestDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 786 if deterministic { 787 return xxx_messageInfo_RequestDeliverTx.Marshal(b, m, deterministic) 788 } else { 789 b = b[:cap(b)] 790 n, err := m.MarshalToSizedBuffer(b) 791 if err != nil { 792 return nil, err 793 } 794 return b[:n], nil 795 } 796 } 797 func (m *RequestDeliverTx) XXX_Merge(src proto.Message) { 798 xxx_messageInfo_RequestDeliverTx.Merge(m, src) 799 } 800 func (m *RequestDeliverTx) XXX_Size() int { 801 return m.Size() 802 } 803 func (m *RequestDeliverTx) XXX_DiscardUnknown() { 804 xxx_messageInfo_RequestDeliverTx.DiscardUnknown(m) 805 } 806 807 var xxx_messageInfo_RequestDeliverTx proto.InternalMessageInfo 808 809 func (m *RequestDeliverTx) GetTx() []byte { 810 if m != nil { 811 return m.Tx 812 } 813 return nil 814 } 815 816 type RequestEndBlock struct { 817 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 818 XXX_NoUnkeyedLiteral struct{} `json:"-"` 819 XXX_unrecognized []byte `json:"-"` 820 XXX_sizecache int32 `json:"-"` 821 } 822 823 func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} } 824 func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) } 825 func (*RequestEndBlock) ProtoMessage() {} 826 func (*RequestEndBlock) Descriptor() ([]byte, []int) { 827 return fileDescriptor_9f1eaa49c51fa1ac, []int{10} 828 } 829 func (m *RequestEndBlock) XXX_Unmarshal(b []byte) error { 830 return m.Unmarshal(b) 831 } 832 func (m *RequestEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 833 if deterministic { 834 return xxx_messageInfo_RequestEndBlock.Marshal(b, m, deterministic) 835 } else { 836 b = b[:cap(b)] 837 n, err := m.MarshalToSizedBuffer(b) 838 if err != nil { 839 return nil, err 840 } 841 return b[:n], nil 842 } 843 } 844 func (m *RequestEndBlock) XXX_Merge(src proto.Message) { 845 xxx_messageInfo_RequestEndBlock.Merge(m, src) 846 } 847 func (m *RequestEndBlock) XXX_Size() int { 848 return m.Size() 849 } 850 func (m *RequestEndBlock) XXX_DiscardUnknown() { 851 xxx_messageInfo_RequestEndBlock.DiscardUnknown(m) 852 } 853 854 var xxx_messageInfo_RequestEndBlock proto.InternalMessageInfo 855 856 func (m *RequestEndBlock) GetHeight() int64 { 857 if m != nil { 858 return m.Height 859 } 860 return 0 861 } 862 863 func (m *RequestCommit) Reset() { *m = RequestCommit{} } 864 func (m *RequestCommit) String() string { return proto.CompactTextString(m) } 865 func (*RequestCommit) ProtoMessage() {} 866 func (*RequestCommit) Descriptor() ([]byte, []int) { 867 return fileDescriptor_9f1eaa49c51fa1ac, []int{12} 868 } 869 func (m *RequestCommit) XXX_Unmarshal(b []byte) error { 870 return m.Unmarshal(b) 871 } 872 func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 873 if deterministic { 874 return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic) 875 } else { 876 b = b[:cap(b)] 877 n, err := m.MarshalToSizedBuffer(b) 878 if err != nil { 879 return nil, err 880 } 881 return b[:n], nil 882 } 883 } 884 func (m *RequestCommit) XXX_Merge(src proto.Message) { 885 xxx_messageInfo_RequestCommit.Merge(m, src) 886 } 887 func (m *RequestCommit) XXX_Size() int { 888 return m.Size() 889 } 890 func (m *RequestCommit) XXX_DiscardUnknown() { 891 xxx_messageInfo_RequestCommit.DiscardUnknown(m) 892 } 893 894 var xxx_messageInfo_RequestCommit proto.InternalMessageInfo 895 896 type Response struct { 897 // Types that are valid to be assigned to Value: 898 // *Response_Exception 899 // *Response_Echo 900 // *Response_Flush 901 // *Response_Info 902 // *Response_SetOption 903 // *Response_InitChain 904 // *Response_Query 905 // *Response_BeginBlock 906 // *Response_CheckTx 907 // *Response_DeliverTx 908 // *Response_EndBlock 909 // *Response_Commit 910 Value isResponse_Value `protobuf_oneof:"value"` 911 XXX_NoUnkeyedLiteral struct{} `json:"-"` 912 XXX_unrecognized []byte `json:"-"` 913 XXX_sizecache int32 `json:"-"` 914 } 915 916 func (m *Response) Reset() { *m = Response{} } 917 func (m *Response) String() string { return proto.CompactTextString(m) } 918 func (*Response) ProtoMessage() {} 919 func (*Response) Descriptor() ([]byte, []int) { 920 return fileDescriptor_9f1eaa49c51fa1ac, []int{13} 921 } 922 func (m *Response) XXX_Unmarshal(b []byte) error { 923 return m.Unmarshal(b) 924 } 925 func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 926 if deterministic { 927 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 928 } else { 929 b = b[:cap(b)] 930 n, err := m.MarshalToSizedBuffer(b) 931 if err != nil { 932 return nil, err 933 } 934 return b[:n], nil 935 } 936 } 937 func (m *Response) XXX_Merge(src proto.Message) { 938 xxx_messageInfo_Response.Merge(m, src) 939 } 940 func (m *Response) XXX_Size() int { 941 return m.Size() 942 } 943 func (m *Response) XXX_DiscardUnknown() { 944 xxx_messageInfo_Response.DiscardUnknown(m) 945 } 946 947 var xxx_messageInfo_Response proto.InternalMessageInfo 948 949 type isResponse_Value interface { 950 isResponse_Value() 951 Equal(interface{}) bool 952 MarshalTo([]byte) (int, error) 953 Size() int 954 } 955 956 type Response_Exception struct { 957 Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,proto3,oneof" json:"exception,omitempty"` 958 } 959 type Response_Echo struct { 960 Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 961 } 962 type Response_Flush struct { 963 Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 964 } 965 type Response_Info struct { 966 Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof" json:"info,omitempty"` 967 } 968 type Response_SetOption struct { 969 SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 970 } 971 type Response_InitChain struct { 972 InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 973 } 974 type Response_Query struct { 975 Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof" json:"query,omitempty"` 976 } 977 type Response_BeginBlock struct { 978 BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 979 } 980 type Response_CheckTx struct { 981 CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 982 } 983 type Response_DeliverTx struct { 984 DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 985 } 986 type Response_EndBlock struct { 987 EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 988 } 989 type Response_Commit struct { 990 Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 991 } 992 993 func (*Response_Exception) isResponse_Value() {} 994 func (*Response_Echo) isResponse_Value() {} 995 func (*Response_Flush) isResponse_Value() {} 996 func (*Response_Info) isResponse_Value() {} 997 func (*Response_SetOption) isResponse_Value() {} 998 func (*Response_InitChain) isResponse_Value() {} 999 func (*Response_Query) isResponse_Value() {} 1000 func (*Response_BeginBlock) isResponse_Value() {} 1001 func (*Response_CheckTx) isResponse_Value() {} 1002 func (*Response_DeliverTx) isResponse_Value() {} 1003 func (*Response_EndBlock) isResponse_Value() {} 1004 func (*Response_Commit) isResponse_Value() {} 1005 1006 func (m *Response) GetValue() isResponse_Value { 1007 if m != nil { 1008 return m.Value 1009 } 1010 return nil 1011 } 1012 1013 func (m *Response) GetException() *ResponseException { 1014 if x, ok := m.GetValue().(*Response_Exception); ok { 1015 return x.Exception 1016 } 1017 return nil 1018 } 1019 1020 func (m *Response) GetEcho() *ResponseEcho { 1021 if x, ok := m.GetValue().(*Response_Echo); ok { 1022 return x.Echo 1023 } 1024 return nil 1025 } 1026 1027 func (m *Response) GetFlush() *ResponseFlush { 1028 if x, ok := m.GetValue().(*Response_Flush); ok { 1029 return x.Flush 1030 } 1031 return nil 1032 } 1033 1034 func (m *Response) GetInfo() *ResponseInfo { 1035 if x, ok := m.GetValue().(*Response_Info); ok { 1036 return x.Info 1037 } 1038 return nil 1039 } 1040 1041 func (m *Response) GetSetOption() *ResponseSetOption { 1042 if x, ok := m.GetValue().(*Response_SetOption); ok { 1043 return x.SetOption 1044 } 1045 return nil 1046 } 1047 1048 func (m *Response) GetInitChain() *ResponseInitChain { 1049 if x, ok := m.GetValue().(*Response_InitChain); ok { 1050 return x.InitChain 1051 } 1052 return nil 1053 } 1054 1055 func (m *Response) GetQuery() *ResponseQuery { 1056 if x, ok := m.GetValue().(*Response_Query); ok { 1057 return x.Query 1058 } 1059 return nil 1060 } 1061 1062 func (m *Response) GetBeginBlock() *ResponseBeginBlock { 1063 if x, ok := m.GetValue().(*Response_BeginBlock); ok { 1064 return x.BeginBlock 1065 } 1066 return nil 1067 } 1068 1069 func (m *Response) GetCheckTx() *ResponseCheckTx { 1070 if x, ok := m.GetValue().(*Response_CheckTx); ok { 1071 return x.CheckTx 1072 } 1073 return nil 1074 } 1075 1076 func (m *Response) GetDeliverTx() *ResponseDeliverTx { 1077 if x, ok := m.GetValue().(*Response_DeliverTx); ok { 1078 return x.DeliverTx 1079 } 1080 return nil 1081 } 1082 1083 func (m *Response) GetEndBlock() *ResponseEndBlock { 1084 if x, ok := m.GetValue().(*Response_EndBlock); ok { 1085 return x.EndBlock 1086 } 1087 return nil 1088 } 1089 1090 func (m *Response) GetCommit() *ResponseCommit { 1091 if x, ok := m.GetValue().(*Response_Commit); ok { 1092 return x.Commit 1093 } 1094 return nil 1095 } 1096 1097 // XXX_OneofWrappers is for the internal use of the proto package. 1098 func (*Response) XXX_OneofWrappers() []interface{} { 1099 return []interface{}{ 1100 (*Response_Exception)(nil), 1101 (*Response_Echo)(nil), 1102 (*Response_Flush)(nil), 1103 (*Response_Info)(nil), 1104 (*Response_SetOption)(nil), 1105 (*Response_InitChain)(nil), 1106 (*Response_Query)(nil), 1107 (*Response_BeginBlock)(nil), 1108 (*Response_CheckTx)(nil), 1109 (*Response_DeliverTx)(nil), 1110 (*Response_EndBlock)(nil), 1111 (*Response_Commit)(nil), 1112 } 1113 } 1114 1115 // nondeterministic 1116 type ResponseException struct { 1117 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` 1118 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1119 XXX_unrecognized []byte `json:"-"` 1120 XXX_sizecache int32 `json:"-"` 1121 } 1122 1123 func (m *ResponseException) Reset() { *m = ResponseException{} } 1124 func (m *ResponseException) String() string { return proto.CompactTextString(m) } 1125 func (*ResponseException) ProtoMessage() {} 1126 func (*ResponseException) Descriptor() ([]byte, []int) { 1127 return fileDescriptor_9f1eaa49c51fa1ac, []int{14} 1128 } 1129 func (m *ResponseException) XXX_Unmarshal(b []byte) error { 1130 return m.Unmarshal(b) 1131 } 1132 func (m *ResponseException) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1133 if deterministic { 1134 return xxx_messageInfo_ResponseException.Marshal(b, m, deterministic) 1135 } else { 1136 b = b[:cap(b)] 1137 n, err := m.MarshalToSizedBuffer(b) 1138 if err != nil { 1139 return nil, err 1140 } 1141 return b[:n], nil 1142 } 1143 } 1144 func (m *ResponseException) XXX_Merge(src proto.Message) { 1145 xxx_messageInfo_ResponseException.Merge(m, src) 1146 } 1147 func (m *ResponseException) XXX_Size() int { 1148 return m.Size() 1149 } 1150 func (m *ResponseException) XXX_DiscardUnknown() { 1151 xxx_messageInfo_ResponseException.DiscardUnknown(m) 1152 } 1153 1154 var xxx_messageInfo_ResponseException proto.InternalMessageInfo 1155 1156 func (m *ResponseException) GetError() string { 1157 if m != nil { 1158 return m.Error 1159 } 1160 return "" 1161 } 1162 1163 type ResponseEcho struct { 1164 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 1165 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1166 XXX_unrecognized []byte `json:"-"` 1167 XXX_sizecache int32 `json:"-"` 1168 } 1169 1170 func (m *ResponseEcho) Reset() { *m = ResponseEcho{} } 1171 func (m *ResponseEcho) String() string { return proto.CompactTextString(m) } 1172 func (*ResponseEcho) ProtoMessage() {} 1173 func (*ResponseEcho) Descriptor() ([]byte, []int) { 1174 return fileDescriptor_9f1eaa49c51fa1ac, []int{15} 1175 } 1176 func (m *ResponseEcho) XXX_Unmarshal(b []byte) error { 1177 return m.Unmarshal(b) 1178 } 1179 func (m *ResponseEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1180 if deterministic { 1181 return xxx_messageInfo_ResponseEcho.Marshal(b, m, deterministic) 1182 } else { 1183 b = b[:cap(b)] 1184 n, err := m.MarshalToSizedBuffer(b) 1185 if err != nil { 1186 return nil, err 1187 } 1188 return b[:n], nil 1189 } 1190 } 1191 func (m *ResponseEcho) XXX_Merge(src proto.Message) { 1192 xxx_messageInfo_ResponseEcho.Merge(m, src) 1193 } 1194 func (m *ResponseEcho) XXX_Size() int { 1195 return m.Size() 1196 } 1197 func (m *ResponseEcho) XXX_DiscardUnknown() { 1198 xxx_messageInfo_ResponseEcho.DiscardUnknown(m) 1199 } 1200 1201 var xxx_messageInfo_ResponseEcho proto.InternalMessageInfo 1202 1203 func (m *ResponseEcho) GetMessage() string { 1204 if m != nil { 1205 return m.Message 1206 } 1207 return "" 1208 } 1209 1210 type ResponseFlush struct { 1211 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1212 XXX_unrecognized []byte `json:"-"` 1213 XXX_sizecache int32 `json:"-"` 1214 } 1215 1216 func (m *ResponseFlush) Reset() { *m = ResponseFlush{} } 1217 func (m *ResponseFlush) String() string { return proto.CompactTextString(m) } 1218 func (*ResponseFlush) ProtoMessage() {} 1219 func (*ResponseFlush) Descriptor() ([]byte, []int) { 1220 return fileDescriptor_9f1eaa49c51fa1ac, []int{16} 1221 } 1222 func (m *ResponseFlush) XXX_Unmarshal(b []byte) error { 1223 return m.Unmarshal(b) 1224 } 1225 func (m *ResponseFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1226 if deterministic { 1227 return xxx_messageInfo_ResponseFlush.Marshal(b, m, deterministic) 1228 } else { 1229 b = b[:cap(b)] 1230 n, err := m.MarshalToSizedBuffer(b) 1231 if err != nil { 1232 return nil, err 1233 } 1234 return b[:n], nil 1235 } 1236 } 1237 func (m *ResponseFlush) XXX_Merge(src proto.Message) { 1238 xxx_messageInfo_ResponseFlush.Merge(m, src) 1239 } 1240 func (m *ResponseFlush) XXX_Size() int { 1241 return m.Size() 1242 } 1243 func (m *ResponseFlush) XXX_DiscardUnknown() { 1244 xxx_messageInfo_ResponseFlush.DiscardUnknown(m) 1245 } 1246 1247 var xxx_messageInfo_ResponseFlush proto.InternalMessageInfo 1248 1249 type ResponseInfo struct { 1250 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 1251 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 1252 AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` 1253 LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` 1254 LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"` 1255 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1256 XXX_unrecognized []byte `json:"-"` 1257 XXX_sizecache int32 `json:"-"` 1258 } 1259 1260 func (m *ResponseInfo) Reset() { *m = ResponseInfo{} } 1261 func (m *ResponseInfo) String() string { return proto.CompactTextString(m) } 1262 func (*ResponseInfo) ProtoMessage() {} 1263 func (*ResponseInfo) Descriptor() ([]byte, []int) { 1264 return fileDescriptor_9f1eaa49c51fa1ac, []int{17} 1265 } 1266 func (m *ResponseInfo) XXX_Unmarshal(b []byte) error { 1267 return m.Unmarshal(b) 1268 } 1269 func (m *ResponseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1270 if deterministic { 1271 return xxx_messageInfo_ResponseInfo.Marshal(b, m, deterministic) 1272 } else { 1273 b = b[:cap(b)] 1274 n, err := m.MarshalToSizedBuffer(b) 1275 if err != nil { 1276 return nil, err 1277 } 1278 return b[:n], nil 1279 } 1280 } 1281 func (m *ResponseInfo) XXX_Merge(src proto.Message) { 1282 xxx_messageInfo_ResponseInfo.Merge(m, src) 1283 } 1284 func (m *ResponseInfo) XXX_Size() int { 1285 return m.Size() 1286 } 1287 func (m *ResponseInfo) XXX_DiscardUnknown() { 1288 xxx_messageInfo_ResponseInfo.DiscardUnknown(m) 1289 } 1290 1291 var xxx_messageInfo_ResponseInfo proto.InternalMessageInfo 1292 1293 func (m *ResponseInfo) GetData() string { 1294 if m != nil { 1295 return m.Data 1296 } 1297 return "" 1298 } 1299 1300 func (m *ResponseInfo) GetVersion() string { 1301 if m != nil { 1302 return m.Version 1303 } 1304 return "" 1305 } 1306 1307 func (m *ResponseInfo) GetAppVersion() uint64 { 1308 if m != nil { 1309 return m.AppVersion 1310 } 1311 return 0 1312 } 1313 1314 func (m *ResponseInfo) GetLastBlockHeight() int64 { 1315 if m != nil { 1316 return m.LastBlockHeight 1317 } 1318 return 0 1319 } 1320 1321 func (m *ResponseInfo) GetLastBlockAppHash() []byte { 1322 if m != nil { 1323 return m.LastBlockAppHash 1324 } 1325 return nil 1326 } 1327 1328 // nondeterministic 1329 type ResponseSetOption struct { 1330 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1331 // bytes data = 2; 1332 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1333 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1334 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1335 XXX_unrecognized []byte `json:"-"` 1336 XXX_sizecache int32 `json:"-"` 1337 } 1338 1339 func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} } 1340 func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) } 1341 func (*ResponseSetOption) ProtoMessage() {} 1342 func (*ResponseSetOption) Descriptor() ([]byte, []int) { 1343 return fileDescriptor_9f1eaa49c51fa1ac, []int{18} 1344 } 1345 func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error { 1346 return m.Unmarshal(b) 1347 } 1348 func (m *ResponseSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1349 if deterministic { 1350 return xxx_messageInfo_ResponseSetOption.Marshal(b, m, deterministic) 1351 } else { 1352 b = b[:cap(b)] 1353 n, err := m.MarshalToSizedBuffer(b) 1354 if err != nil { 1355 return nil, err 1356 } 1357 return b[:n], nil 1358 } 1359 } 1360 func (m *ResponseSetOption) XXX_Merge(src proto.Message) { 1361 xxx_messageInfo_ResponseSetOption.Merge(m, src) 1362 } 1363 func (m *ResponseSetOption) XXX_Size() int { 1364 return m.Size() 1365 } 1366 func (m *ResponseSetOption) XXX_DiscardUnknown() { 1367 xxx_messageInfo_ResponseSetOption.DiscardUnknown(m) 1368 } 1369 1370 var xxx_messageInfo_ResponseSetOption proto.InternalMessageInfo 1371 1372 func (m *ResponseSetOption) GetCode() uint32 { 1373 if m != nil { 1374 return m.Code 1375 } 1376 return 0 1377 } 1378 1379 func (m *ResponseSetOption) GetLog() string { 1380 if m != nil { 1381 return m.Log 1382 } 1383 return "" 1384 } 1385 1386 func (m *ResponseSetOption) GetInfo() string { 1387 if m != nil { 1388 return m.Info 1389 } 1390 return "" 1391 } 1392 1393 type ResponseInitChain struct { 1394 ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` 1395 Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators"` 1396 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1397 XXX_unrecognized []byte `json:"-"` 1398 XXX_sizecache int32 `json:"-"` 1399 } 1400 1401 func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} } 1402 func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) } 1403 func (*ResponseInitChain) ProtoMessage() {} 1404 func (*ResponseInitChain) Descriptor() ([]byte, []int) { 1405 return fileDescriptor_9f1eaa49c51fa1ac, []int{19} 1406 } 1407 func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error { 1408 return m.Unmarshal(b) 1409 } 1410 func (m *ResponseInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1411 if deterministic { 1412 return xxx_messageInfo_ResponseInitChain.Marshal(b, m, deterministic) 1413 } else { 1414 b = b[:cap(b)] 1415 n, err := m.MarshalToSizedBuffer(b) 1416 if err != nil { 1417 return nil, err 1418 } 1419 return b[:n], nil 1420 } 1421 } 1422 func (m *ResponseInitChain) XXX_Merge(src proto.Message) { 1423 xxx_messageInfo_ResponseInitChain.Merge(m, src) 1424 } 1425 func (m *ResponseInitChain) XXX_Size() int { 1426 return m.Size() 1427 } 1428 func (m *ResponseInitChain) XXX_DiscardUnknown() { 1429 xxx_messageInfo_ResponseInitChain.DiscardUnknown(m) 1430 } 1431 1432 var xxx_messageInfo_ResponseInitChain proto.InternalMessageInfo 1433 1434 func (m *ResponseInitChain) GetConsensusParams() *ConsensusParams { 1435 if m != nil { 1436 return m.ConsensusParams 1437 } 1438 return nil 1439 } 1440 1441 func (m *ResponseInitChain) GetValidators() []ValidatorUpdate { 1442 if m != nil { 1443 return m.Validators 1444 } 1445 return nil 1446 } 1447 1448 type ResponseQuery struct { 1449 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1450 // bytes data = 2; // use "value" instead. 1451 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1452 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1453 Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` 1454 Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` 1455 Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` 1456 Proof *merkle.Proof `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` 1457 Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` 1458 Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"` 1459 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1460 XXX_unrecognized []byte `json:"-"` 1461 XXX_sizecache int32 `json:"-"` 1462 } 1463 1464 func (m *ResponseQuery) Reset() { *m = ResponseQuery{} } 1465 func (m *ResponseQuery) String() string { return proto.CompactTextString(m) } 1466 func (*ResponseQuery) ProtoMessage() {} 1467 func (*ResponseQuery) Descriptor() ([]byte, []int) { 1468 return fileDescriptor_9f1eaa49c51fa1ac, []int{20} 1469 } 1470 func (m *ResponseQuery) XXX_Unmarshal(b []byte) error { 1471 return m.Unmarshal(b) 1472 } 1473 func (m *ResponseQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1474 if deterministic { 1475 return xxx_messageInfo_ResponseQuery.Marshal(b, m, deterministic) 1476 } else { 1477 b = b[:cap(b)] 1478 n, err := m.MarshalToSizedBuffer(b) 1479 if err != nil { 1480 return nil, err 1481 } 1482 return b[:n], nil 1483 } 1484 } 1485 func (m *ResponseQuery) XXX_Merge(src proto.Message) { 1486 xxx_messageInfo_ResponseQuery.Merge(m, src) 1487 } 1488 func (m *ResponseQuery) XXX_Size() int { 1489 return m.Size() 1490 } 1491 func (m *ResponseQuery) XXX_DiscardUnknown() { 1492 xxx_messageInfo_ResponseQuery.DiscardUnknown(m) 1493 } 1494 1495 var xxx_messageInfo_ResponseQuery proto.InternalMessageInfo 1496 1497 func (m *ResponseQuery) GetCode() uint32 { 1498 if m != nil { 1499 return m.Code 1500 } 1501 return 0 1502 } 1503 1504 func (m *ResponseQuery) GetLog() string { 1505 if m != nil { 1506 return m.Log 1507 } 1508 return "" 1509 } 1510 1511 func (m *ResponseQuery) GetInfo() string { 1512 if m != nil { 1513 return m.Info 1514 } 1515 return "" 1516 } 1517 1518 func (m *ResponseQuery) GetIndex() int64 { 1519 if m != nil { 1520 return m.Index 1521 } 1522 return 0 1523 } 1524 1525 func (m *ResponseQuery) GetKey() []byte { 1526 if m != nil { 1527 return m.Key 1528 } 1529 return nil 1530 } 1531 1532 func (m *ResponseQuery) GetValue() []byte { 1533 if m != nil { 1534 return m.Value 1535 } 1536 return nil 1537 } 1538 1539 func (m *ResponseQuery) GetProof() *merkle.Proof { 1540 if m != nil { 1541 return m.Proof 1542 } 1543 return nil 1544 } 1545 1546 func (m *ResponseQuery) GetHeight() int64 { 1547 if m != nil { 1548 return m.Height 1549 } 1550 return 0 1551 } 1552 1553 func (m *ResponseQuery) GetCodespace() string { 1554 if m != nil { 1555 return m.Codespace 1556 } 1557 return "" 1558 } 1559 1560 type ResponseBeginBlock struct { 1561 Events []Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` 1562 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1563 XXX_unrecognized []byte `json:"-"` 1564 XXX_sizecache int32 `json:"-"` 1565 } 1566 1567 func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} } 1568 func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) } 1569 func (*ResponseBeginBlock) ProtoMessage() {} 1570 func (*ResponseBeginBlock) Descriptor() ([]byte, []int) { 1571 return fileDescriptor_9f1eaa49c51fa1ac, []int{21} 1572 } 1573 func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error { 1574 return m.Unmarshal(b) 1575 } 1576 func (m *ResponseBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1577 if deterministic { 1578 return xxx_messageInfo_ResponseBeginBlock.Marshal(b, m, deterministic) 1579 } else { 1580 b = b[:cap(b)] 1581 n, err := m.MarshalToSizedBuffer(b) 1582 if err != nil { 1583 return nil, err 1584 } 1585 return b[:n], nil 1586 } 1587 } 1588 func (m *ResponseBeginBlock) XXX_Merge(src proto.Message) { 1589 xxx_messageInfo_ResponseBeginBlock.Merge(m, src) 1590 } 1591 func (m *ResponseBeginBlock) XXX_Size() int { 1592 return m.Size() 1593 } 1594 func (m *ResponseBeginBlock) XXX_DiscardUnknown() { 1595 xxx_messageInfo_ResponseBeginBlock.DiscardUnknown(m) 1596 } 1597 1598 var xxx_messageInfo_ResponseBeginBlock proto.InternalMessageInfo 1599 1600 func (m *ResponseBeginBlock) GetEvents() []Event { 1601 if m != nil { 1602 return m.Events 1603 } 1604 return nil 1605 } 1606 1607 type ResponseCheckTx struct { 1608 Tx TxEssentials 1609 SenderNonce uint64 1610 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1611 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1612 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1613 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1614 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` 1615 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` 1616 Events []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 1617 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 1618 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1619 XXX_unrecognized []byte `json:"-"` 1620 XXX_sizecache int32 `json:"-"` 1621 } 1622 1623 func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} } 1624 func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) } 1625 func (*ResponseCheckTx) ProtoMessage() {} 1626 func (*ResponseCheckTx) Descriptor() ([]byte, []int) { 1627 return fileDescriptor_9f1eaa49c51fa1ac, []int{22} 1628 } 1629 func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error { 1630 return m.Unmarshal(b) 1631 } 1632 func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1633 if deterministic { 1634 return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic) 1635 } else { 1636 b = b[:cap(b)] 1637 n, err := m.MarshalToSizedBuffer(b) 1638 if err != nil { 1639 return nil, err 1640 } 1641 return b[:n], nil 1642 } 1643 } 1644 func (m *ResponseCheckTx) XXX_Merge(src proto.Message) { 1645 xxx_messageInfo_ResponseCheckTx.Merge(m, src) 1646 } 1647 func (m *ResponseCheckTx) XXX_Size() int { 1648 return m.Size() 1649 } 1650 func (m *ResponseCheckTx) XXX_DiscardUnknown() { 1651 xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m) 1652 } 1653 1654 var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo 1655 1656 func (m *ResponseCheckTx) GetCode() uint32 { 1657 if m != nil { 1658 return m.Code 1659 } 1660 return 0 1661 } 1662 1663 func (m *ResponseCheckTx) GetData() []byte { 1664 if m != nil { 1665 return m.Data 1666 } 1667 return nil 1668 } 1669 1670 func (m *ResponseCheckTx) GetLog() string { 1671 if m != nil { 1672 return m.Log 1673 } 1674 return "" 1675 } 1676 1677 func (m *ResponseCheckTx) GetInfo() string { 1678 if m != nil { 1679 return m.Info 1680 } 1681 return "" 1682 } 1683 1684 func (m *ResponseCheckTx) GetGasWanted() int64 { 1685 if m != nil { 1686 return m.GasWanted 1687 } 1688 return 0 1689 } 1690 1691 func (m *ResponseCheckTx) GetGasUsed() int64 { 1692 if m != nil { 1693 return m.GasUsed 1694 } 1695 return 0 1696 } 1697 1698 func (m *ResponseCheckTx) GetEvents() []Event { 1699 if m != nil { 1700 return m.Events 1701 } 1702 return nil 1703 } 1704 1705 func (m *ResponseCheckTx) GetCodespace() string { 1706 if m != nil { 1707 return m.Codespace 1708 } 1709 return "" 1710 } 1711 1712 type ResponseDeliverTx struct { 1713 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1714 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1715 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1716 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1717 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gas_wanted,proto3" json:"gas_wanted,omitempty"` 1718 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gas_used,proto3" json:"gas_used,omitempty"` 1719 Events []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 1720 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 1721 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1722 XXX_unrecognized []byte `json:"-"` 1723 XXX_sizecache int32 `json:"-"` 1724 } 1725 1726 func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} } 1727 func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) } 1728 func (*ResponseDeliverTx) ProtoMessage() {} 1729 func (*ResponseDeliverTx) Descriptor() ([]byte, []int) { 1730 return fileDescriptor_9f1eaa49c51fa1ac, []int{23} 1731 } 1732 func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error { 1733 return m.Unmarshal(b) 1734 } 1735 func (m *ResponseDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1736 if deterministic { 1737 return xxx_messageInfo_ResponseDeliverTx.Marshal(b, m, deterministic) 1738 } else { 1739 b = b[:cap(b)] 1740 n, err := m.MarshalToSizedBuffer(b) 1741 if err != nil { 1742 return nil, err 1743 } 1744 return b[:n], nil 1745 } 1746 } 1747 func (m *ResponseDeliverTx) XXX_Merge(src proto.Message) { 1748 xxx_messageInfo_ResponseDeliverTx.Merge(m, src) 1749 } 1750 func (m *ResponseDeliverTx) XXX_Size() int { 1751 return m.Size() 1752 } 1753 func (m *ResponseDeliverTx) XXX_DiscardUnknown() { 1754 xxx_messageInfo_ResponseDeliverTx.DiscardUnknown(m) 1755 } 1756 1757 var xxx_messageInfo_ResponseDeliverTx proto.InternalMessageInfo 1758 1759 func (m *ResponseDeliverTx) GetCode() uint32 { 1760 if m != nil { 1761 return m.Code 1762 } 1763 return 0 1764 } 1765 1766 func (m *ResponseDeliverTx) GetData() []byte { 1767 if m != nil { 1768 return m.Data 1769 } 1770 return nil 1771 } 1772 1773 func (m *ResponseDeliverTx) GetLog() string { 1774 if m != nil { 1775 return m.Log 1776 } 1777 return "" 1778 } 1779 1780 func (m *ResponseDeliverTx) GetInfo() string { 1781 if m != nil { 1782 return m.Info 1783 } 1784 return "" 1785 } 1786 1787 func (m *ResponseDeliverTx) GetGasWanted() int64 { 1788 if m != nil { 1789 return m.GasWanted 1790 } 1791 return 0 1792 } 1793 1794 func (m *ResponseDeliverTx) GetGasUsed() int64 { 1795 if m != nil { 1796 return m.GasUsed 1797 } 1798 return 0 1799 } 1800 1801 func (m *ResponseDeliverTx) GetEvents() []Event { 1802 if m != nil { 1803 return m.Events 1804 } 1805 return nil 1806 } 1807 1808 func (m *ResponseDeliverTx) GetCodespace() string { 1809 if m != nil { 1810 return m.Codespace 1811 } 1812 return "" 1813 } 1814 1815 type ResponseEndBlock struct { 1816 ValidatorUpdates []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates"` 1817 ConsensusParamUpdates *ConsensusParams `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates,proto3" json:"consensus_param_updates,omitempty"` 1818 Events []Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` 1819 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1820 XXX_unrecognized []byte `json:"-"` 1821 XXX_sizecache int32 `json:"-"` 1822 } 1823 1824 func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} } 1825 func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) } 1826 func (*ResponseEndBlock) ProtoMessage() {} 1827 func (*ResponseEndBlock) Descriptor() ([]byte, []int) { 1828 return fileDescriptor_9f1eaa49c51fa1ac, []int{24} 1829 } 1830 func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error { 1831 return m.Unmarshal(b) 1832 } 1833 func (m *ResponseEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1834 if deterministic { 1835 return xxx_messageInfo_ResponseEndBlock.Marshal(b, m, deterministic) 1836 } else { 1837 b = b[:cap(b)] 1838 n, err := m.MarshalToSizedBuffer(b) 1839 if err != nil { 1840 return nil, err 1841 } 1842 return b[:n], nil 1843 } 1844 } 1845 func (m *ResponseEndBlock) XXX_Merge(src proto.Message) { 1846 xxx_messageInfo_ResponseEndBlock.Merge(m, src) 1847 } 1848 func (m *ResponseEndBlock) XXX_Size() int { 1849 return m.Size() 1850 } 1851 func (m *ResponseEndBlock) XXX_DiscardUnknown() { 1852 xxx_messageInfo_ResponseEndBlock.DiscardUnknown(m) 1853 } 1854 1855 var xxx_messageInfo_ResponseEndBlock proto.InternalMessageInfo 1856 1857 func (m *ResponseEndBlock) GetValidatorUpdates() []ValidatorUpdate { 1858 if m != nil { 1859 return m.ValidatorUpdates 1860 } 1861 return nil 1862 } 1863 1864 func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams { 1865 if m != nil { 1866 return m.ConsensusParamUpdates 1867 } 1868 return nil 1869 } 1870 1871 func (m *ResponseEndBlock) GetEvents() []Event { 1872 if m != nil { 1873 return m.Events 1874 } 1875 return nil 1876 } 1877 1878 func (m *ResponseCommit) Reset() { *m = ResponseCommit{} } 1879 func (m *ResponseCommit) String() string { return proto.CompactTextString(m) } 1880 func (*ResponseCommit) ProtoMessage() {} 1881 func (*ResponseCommit) Descriptor() ([]byte, []int) { 1882 return fileDescriptor_9f1eaa49c51fa1ac, []int{25} 1883 } 1884 func (m *ResponseCommit) XXX_Unmarshal(b []byte) error { 1885 return m.Unmarshal(b) 1886 } 1887 func (m *ResponseCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1888 if deterministic { 1889 return xxx_messageInfo_ResponseCommit.Marshal(b, m, deterministic) 1890 } else { 1891 b = b[:cap(b)] 1892 n, err := m.MarshalToSizedBuffer(b) 1893 if err != nil { 1894 return nil, err 1895 } 1896 return b[:n], nil 1897 } 1898 } 1899 func (m *ResponseCommit) XXX_Merge(src proto.Message) { 1900 xxx_messageInfo_ResponseCommit.Merge(m, src) 1901 } 1902 func (m *ResponseCommit) XXX_Size() int { 1903 return m.Size() 1904 } 1905 func (m *ResponseCommit) XXX_DiscardUnknown() { 1906 xxx_messageInfo_ResponseCommit.DiscardUnknown(m) 1907 } 1908 1909 var xxx_messageInfo_ResponseCommit proto.InternalMessageInfo 1910 1911 func (m *ResponseCommit) GetData() []byte { 1912 if m != nil { 1913 return m.Data 1914 } 1915 return nil 1916 } 1917 1918 func (m *ResponseCommit) GetRetainHeight() int64 { 1919 if m != nil { 1920 return m.RetainHeight 1921 } 1922 return 0 1923 } 1924 1925 // ConsensusParams contains all consensus-relevant parameters 1926 // that can be adjusted by the abci app 1927 type ConsensusParams struct { 1928 Block *BlockParams `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` 1929 Evidence *EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"` 1930 Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` 1931 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1932 XXX_unrecognized []byte `json:"-"` 1933 XXX_sizecache int32 `json:"-"` 1934 } 1935 1936 func (m *ConsensusParams) Reset() { *m = ConsensusParams{} } 1937 func (m *ConsensusParams) String() string { return proto.CompactTextString(m) } 1938 func (*ConsensusParams) ProtoMessage() {} 1939 func (*ConsensusParams) Descriptor() ([]byte, []int) { 1940 return fileDescriptor_9f1eaa49c51fa1ac, []int{26} 1941 } 1942 func (m *ConsensusParams) XXX_Unmarshal(b []byte) error { 1943 return m.Unmarshal(b) 1944 } 1945 func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1946 if deterministic { 1947 return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic) 1948 } else { 1949 b = b[:cap(b)] 1950 n, err := m.MarshalToSizedBuffer(b) 1951 if err != nil { 1952 return nil, err 1953 } 1954 return b[:n], nil 1955 } 1956 } 1957 func (m *ConsensusParams) XXX_Merge(src proto.Message) { 1958 xxx_messageInfo_ConsensusParams.Merge(m, src) 1959 } 1960 func (m *ConsensusParams) XXX_Size() int { 1961 return m.Size() 1962 } 1963 func (m *ConsensusParams) XXX_DiscardUnknown() { 1964 xxx_messageInfo_ConsensusParams.DiscardUnknown(m) 1965 } 1966 1967 var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo 1968 1969 func (m *ConsensusParams) GetBlock() *BlockParams { 1970 if m != nil { 1971 return m.Block 1972 } 1973 return nil 1974 } 1975 1976 func (m *ConsensusParams) GetEvidence() *EvidenceParams { 1977 if m != nil { 1978 return m.Evidence 1979 } 1980 return nil 1981 } 1982 1983 func (m *ConsensusParams) GetValidator() *ValidatorParams { 1984 if m != nil { 1985 return m.Validator 1986 } 1987 return nil 1988 } 1989 1990 // BlockParams contains limits on the block size. 1991 type BlockParams struct { 1992 // Note: must be greater than 0 1993 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` 1994 // Note: must be greater or equal to -1 1995 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` 1996 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1997 XXX_unrecognized []byte `json:"-"` 1998 XXX_sizecache int32 `json:"-"` 1999 } 2000 2001 func (m *BlockParams) Reset() { *m = BlockParams{} } 2002 func (m *BlockParams) String() string { return proto.CompactTextString(m) } 2003 func (*BlockParams) ProtoMessage() {} 2004 func (*BlockParams) Descriptor() ([]byte, []int) { 2005 return fileDescriptor_9f1eaa49c51fa1ac, []int{27} 2006 } 2007 func (m *BlockParams) XXX_Unmarshal(b []byte) error { 2008 return m.Unmarshal(b) 2009 } 2010 func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2011 if deterministic { 2012 return xxx_messageInfo_BlockParams.Marshal(b, m, deterministic) 2013 } else { 2014 b = b[:cap(b)] 2015 n, err := m.MarshalToSizedBuffer(b) 2016 if err != nil { 2017 return nil, err 2018 } 2019 return b[:n], nil 2020 } 2021 } 2022 func (m *BlockParams) XXX_Merge(src proto.Message) { 2023 xxx_messageInfo_BlockParams.Merge(m, src) 2024 } 2025 func (m *BlockParams) XXX_Size() int { 2026 return m.Size() 2027 } 2028 func (m *BlockParams) XXX_DiscardUnknown() { 2029 xxx_messageInfo_BlockParams.DiscardUnknown(m) 2030 } 2031 2032 var xxx_messageInfo_BlockParams proto.InternalMessageInfo 2033 2034 func (m *BlockParams) GetMaxBytes() int64 { 2035 if m != nil { 2036 return m.MaxBytes 2037 } 2038 return 0 2039 } 2040 2041 func (m *BlockParams) GetMaxGas() int64 { 2042 if m != nil { 2043 return m.MaxGas 2044 } 2045 return 0 2046 } 2047 2048 type EvidenceParams struct { 2049 // Note: must be greater than 0 2050 MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"` 2051 MaxAgeDuration time.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3,stdduration" json:"max_age_duration"` 2052 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2053 XXX_unrecognized []byte `json:"-"` 2054 XXX_sizecache int32 `json:"-"` 2055 } 2056 2057 func (m *EvidenceParams) Reset() { *m = EvidenceParams{} } 2058 func (m *EvidenceParams) String() string { return proto.CompactTextString(m) } 2059 func (*EvidenceParams) ProtoMessage() {} 2060 func (*EvidenceParams) Descriptor() ([]byte, []int) { 2061 return fileDescriptor_9f1eaa49c51fa1ac, []int{28} 2062 } 2063 func (m *EvidenceParams) XXX_Unmarshal(b []byte) error { 2064 return m.Unmarshal(b) 2065 } 2066 func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2067 if deterministic { 2068 return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic) 2069 } else { 2070 b = b[:cap(b)] 2071 n, err := m.MarshalToSizedBuffer(b) 2072 if err != nil { 2073 return nil, err 2074 } 2075 return b[:n], nil 2076 } 2077 } 2078 func (m *EvidenceParams) XXX_Merge(src proto.Message) { 2079 xxx_messageInfo_EvidenceParams.Merge(m, src) 2080 } 2081 func (m *EvidenceParams) XXX_Size() int { 2082 return m.Size() 2083 } 2084 func (m *EvidenceParams) XXX_DiscardUnknown() { 2085 xxx_messageInfo_EvidenceParams.DiscardUnknown(m) 2086 } 2087 2088 var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo 2089 2090 func (m *EvidenceParams) GetMaxAgeNumBlocks() int64 { 2091 if m != nil { 2092 return m.MaxAgeNumBlocks 2093 } 2094 return 0 2095 } 2096 2097 func (m *EvidenceParams) GetMaxAgeDuration() time.Duration { 2098 if m != nil { 2099 return m.MaxAgeDuration 2100 } 2101 return 0 2102 } 2103 2104 // ValidatorParams contains limits on validators. 2105 type ValidatorParams struct { 2106 PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"` 2107 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2108 XXX_unrecognized []byte `json:"-"` 2109 XXX_sizecache int32 `json:"-"` 2110 } 2111 2112 func (m *ValidatorParams) Reset() { *m = ValidatorParams{} } 2113 func (m *ValidatorParams) String() string { return proto.CompactTextString(m) } 2114 func (*ValidatorParams) ProtoMessage() {} 2115 func (*ValidatorParams) Descriptor() ([]byte, []int) { 2116 return fileDescriptor_9f1eaa49c51fa1ac, []int{29} 2117 } 2118 func (m *ValidatorParams) XXX_Unmarshal(b []byte) error { 2119 return m.Unmarshal(b) 2120 } 2121 func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2122 if deterministic { 2123 return xxx_messageInfo_ValidatorParams.Marshal(b, m, deterministic) 2124 } else { 2125 b = b[:cap(b)] 2126 n, err := m.MarshalToSizedBuffer(b) 2127 if err != nil { 2128 return nil, err 2129 } 2130 return b[:n], nil 2131 } 2132 } 2133 func (m *ValidatorParams) XXX_Merge(src proto.Message) { 2134 xxx_messageInfo_ValidatorParams.Merge(m, src) 2135 } 2136 func (m *ValidatorParams) XXX_Size() int { 2137 return m.Size() 2138 } 2139 func (m *ValidatorParams) XXX_DiscardUnknown() { 2140 xxx_messageInfo_ValidatorParams.DiscardUnknown(m) 2141 } 2142 2143 var xxx_messageInfo_ValidatorParams proto.InternalMessageInfo 2144 2145 func (m *ValidatorParams) GetPubKeyTypes() []string { 2146 if m != nil { 2147 return m.PubKeyTypes 2148 } 2149 return nil 2150 } 2151 2152 type LastCommitInfo struct { 2153 Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` 2154 Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes"` 2155 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2156 XXX_unrecognized []byte `json:"-"` 2157 XXX_sizecache int32 `json:"-"` 2158 } 2159 2160 func (m *LastCommitInfo) Reset() { *m = LastCommitInfo{} } 2161 func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) } 2162 func (*LastCommitInfo) ProtoMessage() {} 2163 func (*LastCommitInfo) Descriptor() ([]byte, []int) { 2164 return fileDescriptor_9f1eaa49c51fa1ac, []int{30} 2165 } 2166 func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error { 2167 return m.Unmarshal(b) 2168 } 2169 func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2170 if deterministic { 2171 return xxx_messageInfo_LastCommitInfo.Marshal(b, m, deterministic) 2172 } else { 2173 b = b[:cap(b)] 2174 n, err := m.MarshalToSizedBuffer(b) 2175 if err != nil { 2176 return nil, err 2177 } 2178 return b[:n], nil 2179 } 2180 } 2181 func (m *LastCommitInfo) XXX_Merge(src proto.Message) { 2182 xxx_messageInfo_LastCommitInfo.Merge(m, src) 2183 } 2184 func (m *LastCommitInfo) XXX_Size() int { 2185 return m.Size() 2186 } 2187 func (m *LastCommitInfo) XXX_DiscardUnknown() { 2188 xxx_messageInfo_LastCommitInfo.DiscardUnknown(m) 2189 } 2190 2191 var xxx_messageInfo_LastCommitInfo proto.InternalMessageInfo 2192 2193 func (m *LastCommitInfo) GetRound() int32 { 2194 if m != nil { 2195 return m.Round 2196 } 2197 return 0 2198 } 2199 2200 func (m *LastCommitInfo) GetVotes() []VoteInfo { 2201 if m != nil { 2202 return m.Votes 2203 } 2204 return nil 2205 } 2206 2207 type Event struct { 2208 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2209 Attributes []kv.Pair `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` 2210 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2211 XXX_unrecognized []byte `json:"-"` 2212 XXX_sizecache int32 `json:"-"` 2213 } 2214 2215 func (m *Event) Reset() { *m = Event{} } 2216 func (m *Event) String() string { return proto.CompactTextString(m) } 2217 func (*Event) ProtoMessage() {} 2218 func (*Event) Descriptor() ([]byte, []int) { 2219 return fileDescriptor_9f1eaa49c51fa1ac, []int{31} 2220 } 2221 func (m *Event) XXX_Unmarshal(b []byte) error { 2222 return m.Unmarshal(b) 2223 } 2224 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2225 if deterministic { 2226 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 2227 } else { 2228 b = b[:cap(b)] 2229 n, err := m.MarshalToSizedBuffer(b) 2230 if err != nil { 2231 return nil, err 2232 } 2233 return b[:n], nil 2234 } 2235 } 2236 func (m *Event) XXX_Merge(src proto.Message) { 2237 xxx_messageInfo_Event.Merge(m, src) 2238 } 2239 func (m *Event) XXX_Size() int { 2240 return m.Size() 2241 } 2242 func (m *Event) XXX_DiscardUnknown() { 2243 xxx_messageInfo_Event.DiscardUnknown(m) 2244 } 2245 2246 var xxx_messageInfo_Event proto.InternalMessageInfo 2247 2248 func (m *Event) GetType() string { 2249 if m != nil { 2250 return m.Type 2251 } 2252 return "" 2253 } 2254 2255 func (m *Event) GetAttributes() []kv.Pair { 2256 if m != nil { 2257 return m.Attributes 2258 } 2259 return nil 2260 } 2261 2262 type Header struct { 2263 // basic block info 2264 Version Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` 2265 ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 2266 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 2267 Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` 2268 // prev block info 2269 LastBlockId BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"` 2270 // hashes of block data 2271 LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` 2272 DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` 2273 // hashes from the app output from the prev block 2274 ValidatorsHash []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"` 2275 NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` 2276 ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"` 2277 AppHash []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` 2278 LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` 2279 // consensus info 2280 EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"` 2281 ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` 2282 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2283 XXX_unrecognized []byte `json:"-"` 2284 XXX_sizecache int32 `json:"-"` 2285 } 2286 2287 func (m *Header) Reset() { *m = Header{} } 2288 func (m *Header) String() string { return proto.CompactTextString(m) } 2289 func (*Header) ProtoMessage() {} 2290 func (*Header) Descriptor() ([]byte, []int) { 2291 return fileDescriptor_9f1eaa49c51fa1ac, []int{32} 2292 } 2293 func (m *Header) XXX_Unmarshal(b []byte) error { 2294 return m.Unmarshal(b) 2295 } 2296 func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2297 if deterministic { 2298 return xxx_messageInfo_Header.Marshal(b, m, deterministic) 2299 } else { 2300 b = b[:cap(b)] 2301 n, err := m.MarshalToSizedBuffer(b) 2302 if err != nil { 2303 return nil, err 2304 } 2305 return b[:n], nil 2306 } 2307 } 2308 func (m *Header) XXX_Merge(src proto.Message) { 2309 xxx_messageInfo_Header.Merge(m, src) 2310 } 2311 func (m *Header) XXX_Size() int { 2312 return m.Size() 2313 } 2314 func (m *Header) XXX_DiscardUnknown() { 2315 xxx_messageInfo_Header.DiscardUnknown(m) 2316 } 2317 2318 var xxx_messageInfo_Header proto.InternalMessageInfo 2319 2320 func (m *Header) GetVersion() Version { 2321 if m != nil { 2322 return m.Version 2323 } 2324 return Version{} 2325 } 2326 2327 func (m *Header) GetChainID() string { 2328 if m != nil { 2329 return m.ChainID 2330 } 2331 return "" 2332 } 2333 2334 func (m *Header) GetHeight() int64 { 2335 if m != nil { 2336 return m.Height 2337 } 2338 return 0 2339 } 2340 2341 func (m *Header) GetTime() time.Time { 2342 if m != nil { 2343 return m.Time 2344 } 2345 return time.Time{} 2346 } 2347 2348 func (m *Header) GetLastBlockId() BlockID { 2349 if m != nil { 2350 return m.LastBlockId 2351 } 2352 return BlockID{} 2353 } 2354 2355 func (m *Header) GetLastCommitHash() []byte { 2356 if m != nil { 2357 return m.LastCommitHash 2358 } 2359 return nil 2360 } 2361 2362 func (m *Header) GetDataHash() []byte { 2363 if m != nil { 2364 return m.DataHash 2365 } 2366 return nil 2367 } 2368 2369 func (m *Header) GetValidatorsHash() []byte { 2370 if m != nil { 2371 return m.ValidatorsHash 2372 } 2373 return nil 2374 } 2375 2376 func (m *Header) GetNextValidatorsHash() []byte { 2377 if m != nil { 2378 return m.NextValidatorsHash 2379 } 2380 return nil 2381 } 2382 2383 func (m *Header) GetConsensusHash() []byte { 2384 if m != nil { 2385 return m.ConsensusHash 2386 } 2387 return nil 2388 } 2389 2390 func (m *Header) GetAppHash() []byte { 2391 if m != nil { 2392 return m.AppHash 2393 } 2394 return nil 2395 } 2396 2397 func (m *Header) GetLastResultsHash() []byte { 2398 if m != nil { 2399 return m.LastResultsHash 2400 } 2401 return nil 2402 } 2403 2404 func (m *Header) GetEvidenceHash() []byte { 2405 if m != nil { 2406 return m.EvidenceHash 2407 } 2408 return nil 2409 } 2410 2411 func (m *Header) GetProposerAddress() []byte { 2412 if m != nil { 2413 return m.ProposerAddress 2414 } 2415 return nil 2416 } 2417 2418 type Version struct { 2419 Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"` 2420 App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"` 2421 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2422 XXX_unrecognized []byte `json:"-"` 2423 XXX_sizecache int32 `json:"-"` 2424 } 2425 2426 func (m *Version) Reset() { *m = Version{} } 2427 func (m *Version) String() string { return proto.CompactTextString(m) } 2428 func (*Version) ProtoMessage() {} 2429 func (*Version) Descriptor() ([]byte, []int) { 2430 return fileDescriptor_9f1eaa49c51fa1ac, []int{33} 2431 } 2432 func (m *Version) XXX_Unmarshal(b []byte) error { 2433 return m.Unmarshal(b) 2434 } 2435 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2436 if deterministic { 2437 return xxx_messageInfo_Version.Marshal(b, m, deterministic) 2438 } else { 2439 b = b[:cap(b)] 2440 n, err := m.MarshalToSizedBuffer(b) 2441 if err != nil { 2442 return nil, err 2443 } 2444 return b[:n], nil 2445 } 2446 } 2447 func (m *Version) XXX_Merge(src proto.Message) { 2448 xxx_messageInfo_Version.Merge(m, src) 2449 } 2450 func (m *Version) XXX_Size() int { 2451 return m.Size() 2452 } 2453 func (m *Version) XXX_DiscardUnknown() { 2454 xxx_messageInfo_Version.DiscardUnknown(m) 2455 } 2456 2457 var xxx_messageInfo_Version proto.InternalMessageInfo 2458 2459 func (m *Version) GetBlock() uint64 { 2460 if m != nil { 2461 return m.Block 2462 } 2463 return 0 2464 } 2465 2466 func (m *Version) GetApp() uint64 { 2467 if m != nil { 2468 return m.App 2469 } 2470 return 0 2471 } 2472 2473 type BlockID struct { 2474 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 2475 PartsHeader PartSetHeader `protobuf:"bytes,2,opt,name=parts_header,json=partsHeader,proto3" json:"parts_header"` 2476 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2477 XXX_unrecognized []byte `json:"-"` 2478 XXX_sizecache int32 `json:"-"` 2479 } 2480 2481 func (m *BlockID) Reset() { *m = BlockID{} } 2482 func (m *BlockID) String() string { return proto.CompactTextString(m) } 2483 func (*BlockID) ProtoMessage() {} 2484 func (*BlockID) Descriptor() ([]byte, []int) { 2485 return fileDescriptor_9f1eaa49c51fa1ac, []int{34} 2486 } 2487 func (m *BlockID) XXX_Unmarshal(b []byte) error { 2488 return m.Unmarshal(b) 2489 } 2490 func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2491 if deterministic { 2492 return xxx_messageInfo_BlockID.Marshal(b, m, deterministic) 2493 } else { 2494 b = b[:cap(b)] 2495 n, err := m.MarshalToSizedBuffer(b) 2496 if err != nil { 2497 return nil, err 2498 } 2499 return b[:n], nil 2500 } 2501 } 2502 func (m *BlockID) XXX_Merge(src proto.Message) { 2503 xxx_messageInfo_BlockID.Merge(m, src) 2504 } 2505 func (m *BlockID) XXX_Size() int { 2506 return m.Size() 2507 } 2508 func (m *BlockID) XXX_DiscardUnknown() { 2509 xxx_messageInfo_BlockID.DiscardUnknown(m) 2510 } 2511 2512 var xxx_messageInfo_BlockID proto.InternalMessageInfo 2513 2514 func (m *BlockID) GetHash() []byte { 2515 if m != nil { 2516 return m.Hash 2517 } 2518 return nil 2519 } 2520 2521 func (m *BlockID) GetPartsHeader() PartSetHeader { 2522 if m != nil { 2523 return m.PartsHeader 2524 } 2525 return PartSetHeader{} 2526 } 2527 2528 type PartSetHeader struct { 2529 Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` 2530 Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 2531 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2532 XXX_unrecognized []byte `json:"-"` 2533 XXX_sizecache int32 `json:"-"` 2534 } 2535 2536 func (m *PartSetHeader) Reset() { *m = PartSetHeader{} } 2537 func (m *PartSetHeader) String() string { return proto.CompactTextString(m) } 2538 func (*PartSetHeader) ProtoMessage() {} 2539 func (*PartSetHeader) Descriptor() ([]byte, []int) { 2540 return fileDescriptor_9f1eaa49c51fa1ac, []int{35} 2541 } 2542 func (m *PartSetHeader) XXX_Unmarshal(b []byte) error { 2543 return m.Unmarshal(b) 2544 } 2545 func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2546 if deterministic { 2547 return xxx_messageInfo_PartSetHeader.Marshal(b, m, deterministic) 2548 } else { 2549 b = b[:cap(b)] 2550 n, err := m.MarshalToSizedBuffer(b) 2551 if err != nil { 2552 return nil, err 2553 } 2554 return b[:n], nil 2555 } 2556 } 2557 func (m *PartSetHeader) XXX_Merge(src proto.Message) { 2558 xxx_messageInfo_PartSetHeader.Merge(m, src) 2559 } 2560 func (m *PartSetHeader) XXX_Size() int { 2561 return m.Size() 2562 } 2563 func (m *PartSetHeader) XXX_DiscardUnknown() { 2564 xxx_messageInfo_PartSetHeader.DiscardUnknown(m) 2565 } 2566 2567 var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo 2568 2569 func (m *PartSetHeader) GetTotal() int32 { 2570 if m != nil { 2571 return m.Total 2572 } 2573 return 0 2574 } 2575 2576 func (m *PartSetHeader) GetHash() []byte { 2577 if m != nil { 2578 return m.Hash 2579 } 2580 return nil 2581 } 2582 2583 // Validator 2584 type Validator struct { 2585 Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 2586 // PubKey pub_key = 2 [(gogoproto.nullable)=false]; 2587 Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` 2588 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2589 XXX_unrecognized []byte `json:"-"` 2590 XXX_sizecache int32 `json:"-"` 2591 } 2592 2593 func (m *Validator) Reset() { *m = Validator{} } 2594 func (m *Validator) String() string { return proto.CompactTextString(m) } 2595 func (*Validator) ProtoMessage() {} 2596 func (*Validator) Descriptor() ([]byte, []int) { 2597 return fileDescriptor_9f1eaa49c51fa1ac, []int{36} 2598 } 2599 func (m *Validator) XXX_Unmarshal(b []byte) error { 2600 return m.Unmarshal(b) 2601 } 2602 func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2603 if deterministic { 2604 return xxx_messageInfo_Validator.Marshal(b, m, deterministic) 2605 } else { 2606 b = b[:cap(b)] 2607 n, err := m.MarshalToSizedBuffer(b) 2608 if err != nil { 2609 return nil, err 2610 } 2611 return b[:n], nil 2612 } 2613 } 2614 func (m *Validator) XXX_Merge(src proto.Message) { 2615 xxx_messageInfo_Validator.Merge(m, src) 2616 } 2617 func (m *Validator) XXX_Size() int { 2618 return m.Size() 2619 } 2620 func (m *Validator) XXX_DiscardUnknown() { 2621 xxx_messageInfo_Validator.DiscardUnknown(m) 2622 } 2623 2624 var xxx_messageInfo_Validator proto.InternalMessageInfo 2625 2626 func (m *Validator) GetAddress() []byte { 2627 if m != nil { 2628 return m.Address 2629 } 2630 return nil 2631 } 2632 2633 func (m *Validator) GetPower() int64 { 2634 if m != nil { 2635 return m.Power 2636 } 2637 return 0 2638 } 2639 2640 // ValidatorUpdate 2641 type ValidatorUpdate struct { 2642 PubKey PubKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` 2643 Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` 2644 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2645 XXX_unrecognized []byte `json:"-"` 2646 XXX_sizecache int32 `json:"-"` 2647 } 2648 2649 func (m *ValidatorUpdate) Reset() { *m = ValidatorUpdate{} } 2650 func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) } 2651 func (*ValidatorUpdate) ProtoMessage() {} 2652 func (*ValidatorUpdate) Descriptor() ([]byte, []int) { 2653 return fileDescriptor_9f1eaa49c51fa1ac, []int{37} 2654 } 2655 func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error { 2656 return m.Unmarshal(b) 2657 } 2658 func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2659 if deterministic { 2660 return xxx_messageInfo_ValidatorUpdate.Marshal(b, m, deterministic) 2661 } else { 2662 b = b[:cap(b)] 2663 n, err := m.MarshalToSizedBuffer(b) 2664 if err != nil { 2665 return nil, err 2666 } 2667 return b[:n], nil 2668 } 2669 } 2670 func (m *ValidatorUpdate) XXX_Merge(src proto.Message) { 2671 xxx_messageInfo_ValidatorUpdate.Merge(m, src) 2672 } 2673 func (m *ValidatorUpdate) XXX_Size() int { 2674 return m.Size() 2675 } 2676 func (m *ValidatorUpdate) XXX_DiscardUnknown() { 2677 xxx_messageInfo_ValidatorUpdate.DiscardUnknown(m) 2678 } 2679 2680 var xxx_messageInfo_ValidatorUpdate proto.InternalMessageInfo 2681 2682 func (m *ValidatorUpdate) GetPubKey() PubKey { 2683 if m != nil { 2684 return m.PubKey 2685 } 2686 return PubKey{} 2687 } 2688 2689 func (m *ValidatorUpdate) GetPower() int64 { 2690 if m != nil { 2691 return m.Power 2692 } 2693 return 0 2694 } 2695 2696 // VoteInfo 2697 type VoteInfo struct { 2698 Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"` 2699 SignedLastBlock bool `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"` 2700 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2701 XXX_unrecognized []byte `json:"-"` 2702 XXX_sizecache int32 `json:"-"` 2703 } 2704 2705 func (m *VoteInfo) Reset() { *m = VoteInfo{} } 2706 func (m *VoteInfo) String() string { return proto.CompactTextString(m) } 2707 func (*VoteInfo) ProtoMessage() {} 2708 func (*VoteInfo) Descriptor() ([]byte, []int) { 2709 return fileDescriptor_9f1eaa49c51fa1ac, []int{38} 2710 } 2711 func (m *VoteInfo) XXX_Unmarshal(b []byte) error { 2712 return m.Unmarshal(b) 2713 } 2714 func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2715 if deterministic { 2716 return xxx_messageInfo_VoteInfo.Marshal(b, m, deterministic) 2717 } else { 2718 b = b[:cap(b)] 2719 n, err := m.MarshalToSizedBuffer(b) 2720 if err != nil { 2721 return nil, err 2722 } 2723 return b[:n], nil 2724 } 2725 } 2726 func (m *VoteInfo) XXX_Merge(src proto.Message) { 2727 xxx_messageInfo_VoteInfo.Merge(m, src) 2728 } 2729 func (m *VoteInfo) XXX_Size() int { 2730 return m.Size() 2731 } 2732 func (m *VoteInfo) XXX_DiscardUnknown() { 2733 xxx_messageInfo_VoteInfo.DiscardUnknown(m) 2734 } 2735 2736 var xxx_messageInfo_VoteInfo proto.InternalMessageInfo 2737 2738 func (m *VoteInfo) GetValidator() Validator { 2739 if m != nil { 2740 return m.Validator 2741 } 2742 return Validator{} 2743 } 2744 2745 func (m *VoteInfo) GetSignedLastBlock() bool { 2746 if m != nil { 2747 return m.SignedLastBlock 2748 } 2749 return false 2750 } 2751 2752 type PubKey struct { 2753 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2754 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 2755 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2756 XXX_unrecognized []byte `json:"-"` 2757 XXX_sizecache int32 `json:"-"` 2758 } 2759 2760 func (m *PubKey) Reset() { *m = PubKey{} } 2761 func (m *PubKey) String() string { return proto.CompactTextString(m) } 2762 func (*PubKey) ProtoMessage() {} 2763 func (*PubKey) Descriptor() ([]byte, []int) { 2764 return fileDescriptor_9f1eaa49c51fa1ac, []int{39} 2765 } 2766 func (m *PubKey) XXX_Unmarshal(b []byte) error { 2767 return m.Unmarshal(b) 2768 } 2769 func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2770 if deterministic { 2771 return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) 2772 } else { 2773 b = b[:cap(b)] 2774 n, err := m.MarshalToSizedBuffer(b) 2775 if err != nil { 2776 return nil, err 2777 } 2778 return b[:n], nil 2779 } 2780 } 2781 func (m *PubKey) XXX_Merge(src proto.Message) { 2782 xxx_messageInfo_PubKey.Merge(m, src) 2783 } 2784 func (m *PubKey) XXX_Size() int { 2785 return m.Size() 2786 } 2787 func (m *PubKey) XXX_DiscardUnknown() { 2788 xxx_messageInfo_PubKey.DiscardUnknown(m) 2789 } 2790 2791 var xxx_messageInfo_PubKey proto.InternalMessageInfo 2792 2793 func (m *PubKey) GetType() string { 2794 if m != nil { 2795 return m.Type 2796 } 2797 return "" 2798 } 2799 2800 func (m *PubKey) GetData() []byte { 2801 if m != nil { 2802 return m.Data 2803 } 2804 return nil 2805 } 2806 2807 type Evidence struct { 2808 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2809 Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"` 2810 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 2811 Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` 2812 TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` 2813 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2814 XXX_unrecognized []byte `json:"-"` 2815 XXX_sizecache int32 `json:"-"` 2816 } 2817 2818 func (m *Evidence) Reset() { *m = Evidence{} } 2819 func (m *Evidence) String() string { return proto.CompactTextString(m) } 2820 func (*Evidence) ProtoMessage() {} 2821 func (*Evidence) Descriptor() ([]byte, []int) { 2822 return fileDescriptor_9f1eaa49c51fa1ac, []int{40} 2823 } 2824 func (m *Evidence) XXX_Unmarshal(b []byte) error { 2825 return m.Unmarshal(b) 2826 } 2827 func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2828 if deterministic { 2829 return xxx_messageInfo_Evidence.Marshal(b, m, deterministic) 2830 } else { 2831 b = b[:cap(b)] 2832 n, err := m.MarshalToSizedBuffer(b) 2833 if err != nil { 2834 return nil, err 2835 } 2836 return b[:n], nil 2837 } 2838 } 2839 func (m *Evidence) XXX_Merge(src proto.Message) { 2840 xxx_messageInfo_Evidence.Merge(m, src) 2841 } 2842 func (m *Evidence) XXX_Size() int { 2843 return m.Size() 2844 } 2845 func (m *Evidence) XXX_DiscardUnknown() { 2846 xxx_messageInfo_Evidence.DiscardUnknown(m) 2847 } 2848 2849 var xxx_messageInfo_Evidence proto.InternalMessageInfo 2850 2851 func (m *Evidence) GetType() string { 2852 if m != nil { 2853 return m.Type 2854 } 2855 return "" 2856 } 2857 2858 func (m *Evidence) GetValidator() Validator { 2859 if m != nil { 2860 return m.Validator 2861 } 2862 return Validator{} 2863 } 2864 2865 func (m *Evidence) GetHeight() int64 { 2866 if m != nil { 2867 return m.Height 2868 } 2869 return 0 2870 } 2871 2872 func (m *Evidence) GetTime() time.Time { 2873 if m != nil { 2874 return m.Time 2875 } 2876 return time.Time{} 2877 } 2878 2879 func (m *Evidence) GetTotalVotingPower() int64 { 2880 if m != nil { 2881 return m.TotalVotingPower 2882 } 2883 return 0 2884 } 2885 2886 func init() { 2887 proto.RegisterEnum("tendermint.abci.types.CheckTxType", CheckTxType_name, CheckTxType_value) 2888 golang_proto.RegisterEnum("tendermint.abci.types.CheckTxType", CheckTxType_name, CheckTxType_value) 2889 proto.RegisterType((*Request)(nil), "tendermint.abci.types.Request") 2890 golang_proto.RegisterType((*Request)(nil), "tendermint.abci.types.Request") 2891 proto.RegisterType((*RequestEcho)(nil), "tendermint.abci.types.RequestEcho") 2892 golang_proto.RegisterType((*RequestEcho)(nil), "tendermint.abci.types.RequestEcho") 2893 proto.RegisterType((*RequestFlush)(nil), "tendermint.abci.types.RequestFlush") 2894 golang_proto.RegisterType((*RequestFlush)(nil), "tendermint.abci.types.RequestFlush") 2895 proto.RegisterType((*RequestInfo)(nil), "tendermint.abci.types.RequestInfo") 2896 golang_proto.RegisterType((*RequestInfo)(nil), "tendermint.abci.types.RequestInfo") 2897 proto.RegisterType((*RequestSetOption)(nil), "tendermint.abci.types.RequestSetOption") 2898 golang_proto.RegisterType((*RequestSetOption)(nil), "tendermint.abci.types.RequestSetOption") 2899 proto.RegisterType((*RequestInitChain)(nil), "tendermint.abci.types.RequestInitChain") 2900 golang_proto.RegisterType((*RequestInitChain)(nil), "tendermint.abci.types.RequestInitChain") 2901 proto.RegisterType((*RequestQuery)(nil), "tendermint.abci.types.RequestQuery") 2902 golang_proto.RegisterType((*RequestQuery)(nil), "tendermint.abci.types.RequestQuery") 2903 proto.RegisterType((*RequestBeginBlock)(nil), "tendermint.abci.types.RequestBeginBlock") 2904 golang_proto.RegisterType((*RequestBeginBlock)(nil), "tendermint.abci.types.RequestBeginBlock") 2905 proto.RegisterType((*RequestCheckTx)(nil), "tendermint.abci.types.RequestCheckTx") 2906 golang_proto.RegisterType((*RequestCheckTx)(nil), "tendermint.abci.types.RequestCheckTx") 2907 proto.RegisterType((*RequestDeliverTx)(nil), "tendermint.abci.types.RequestDeliverTx") 2908 golang_proto.RegisterType((*RequestDeliverTx)(nil), "tendermint.abci.types.RequestDeliverTx") 2909 proto.RegisterType((*RequestEndBlock)(nil), "tendermint.abci.types.RequestEndBlock") 2910 golang_proto.RegisterType((*RequestEndBlock)(nil), "tendermint.abci.types.RequestEndBlock") 2911 proto.RegisterType((*RequestCommit)(nil), "tendermint.abci.types.RequestCommit") 2912 golang_proto.RegisterType((*RequestCommit)(nil), "tendermint.abci.types.RequestCommit") 2913 proto.RegisterType((*Response)(nil), "tendermint.abci.types.Response") 2914 golang_proto.RegisterType((*Response)(nil), "tendermint.abci.types.Response") 2915 proto.RegisterType((*ResponseException)(nil), "tendermint.abci.types.ResponseException") 2916 golang_proto.RegisterType((*ResponseException)(nil), "tendermint.abci.types.ResponseException") 2917 proto.RegisterType((*ResponseEcho)(nil), "tendermint.abci.types.ResponseEcho") 2918 golang_proto.RegisterType((*ResponseEcho)(nil), "tendermint.abci.types.ResponseEcho") 2919 proto.RegisterType((*ResponseFlush)(nil), "tendermint.abci.types.ResponseFlush") 2920 golang_proto.RegisterType((*ResponseFlush)(nil), "tendermint.abci.types.ResponseFlush") 2921 proto.RegisterType((*ResponseInfo)(nil), "tendermint.abci.types.ResponseInfo") 2922 golang_proto.RegisterType((*ResponseInfo)(nil), "tendermint.abci.types.ResponseInfo") 2923 proto.RegisterType((*ResponseSetOption)(nil), "tendermint.abci.types.ResponseSetOption") 2924 golang_proto.RegisterType((*ResponseSetOption)(nil), "tendermint.abci.types.ResponseSetOption") 2925 proto.RegisterType((*ResponseInitChain)(nil), "tendermint.abci.types.ResponseInitChain") 2926 golang_proto.RegisterType((*ResponseInitChain)(nil), "tendermint.abci.types.ResponseInitChain") 2927 proto.RegisterType((*ResponseQuery)(nil), "tendermint.abci.types.ResponseQuery") 2928 golang_proto.RegisterType((*ResponseQuery)(nil), "tendermint.abci.types.ResponseQuery") 2929 proto.RegisterType((*ResponseBeginBlock)(nil), "tendermint.abci.types.ResponseBeginBlock") 2930 golang_proto.RegisterType((*ResponseBeginBlock)(nil), "tendermint.abci.types.ResponseBeginBlock") 2931 proto.RegisterType((*ResponseCheckTx)(nil), "tendermint.abci.types.ResponseCheckTx") 2932 golang_proto.RegisterType((*ResponseCheckTx)(nil), "tendermint.abci.types.ResponseCheckTx") 2933 proto.RegisterType((*ResponseDeliverTx)(nil), "tendermint.abci.types.ResponseDeliverTx") 2934 golang_proto.RegisterType((*ResponseDeliverTx)(nil), "tendermint.abci.types.ResponseDeliverTx") 2935 proto.RegisterType((*ResponseEndBlock)(nil), "tendermint.abci.types.ResponseEndBlock") 2936 golang_proto.RegisterType((*ResponseEndBlock)(nil), "tendermint.abci.types.ResponseEndBlock") 2937 proto.RegisterType((*ResponseCommit)(nil), "tendermint.abci.types.ResponseCommit") 2938 golang_proto.RegisterType((*ResponseCommit)(nil), "tendermint.abci.types.ResponseCommit") 2939 proto.RegisterType((*ConsensusParams)(nil), "tendermint.abci.types.ConsensusParams") 2940 golang_proto.RegisterType((*ConsensusParams)(nil), "tendermint.abci.types.ConsensusParams") 2941 proto.RegisterType((*BlockParams)(nil), "tendermint.abci.types.BlockParams") 2942 golang_proto.RegisterType((*BlockParams)(nil), "tendermint.abci.types.BlockParams") 2943 proto.RegisterType((*EvidenceParams)(nil), "tendermint.abci.types.EvidenceParams") 2944 golang_proto.RegisterType((*EvidenceParams)(nil), "tendermint.abci.types.EvidenceParams") 2945 proto.RegisterType((*ValidatorParams)(nil), "tendermint.abci.types.ValidatorParams") 2946 golang_proto.RegisterType((*ValidatorParams)(nil), "tendermint.abci.types.ValidatorParams") 2947 proto.RegisterType((*LastCommitInfo)(nil), "tendermint.abci.types.LastCommitInfo") 2948 golang_proto.RegisterType((*LastCommitInfo)(nil), "tendermint.abci.types.LastCommitInfo") 2949 proto.RegisterType((*Event)(nil), "tendermint.abci.types.Event") 2950 golang_proto.RegisterType((*Event)(nil), "tendermint.abci.types.Event") 2951 proto.RegisterType((*Header)(nil), "tendermint.abci.types.Header") 2952 golang_proto.RegisterType((*Header)(nil), "tendermint.abci.types.Header") 2953 proto.RegisterType((*Version)(nil), "tendermint.abci.types.Version") 2954 golang_proto.RegisterType((*Version)(nil), "tendermint.abci.types.Version") 2955 proto.RegisterType((*BlockID)(nil), "tendermint.abci.types.BlockID") 2956 golang_proto.RegisterType((*BlockID)(nil), "tendermint.abci.types.BlockID") 2957 proto.RegisterType((*PartSetHeader)(nil), "tendermint.abci.types.PartSetHeader") 2958 golang_proto.RegisterType((*PartSetHeader)(nil), "tendermint.abci.types.PartSetHeader") 2959 proto.RegisterType((*Validator)(nil), "tendermint.abci.types.Validator") 2960 golang_proto.RegisterType((*Validator)(nil), "tendermint.abci.types.Validator") 2961 proto.RegisterType((*ValidatorUpdate)(nil), "tendermint.abci.types.ValidatorUpdate") 2962 golang_proto.RegisterType((*ValidatorUpdate)(nil), "tendermint.abci.types.ValidatorUpdate") 2963 proto.RegisterType((*VoteInfo)(nil), "tendermint.abci.types.VoteInfo") 2964 golang_proto.RegisterType((*VoteInfo)(nil), "tendermint.abci.types.VoteInfo") 2965 proto.RegisterType((*PubKey)(nil), "tendermint.abci.types.PubKey") 2966 golang_proto.RegisterType((*PubKey)(nil), "tendermint.abci.types.PubKey") 2967 proto.RegisterType((*Evidence)(nil), "tendermint.abci.types.Evidence") 2968 golang_proto.RegisterType((*Evidence)(nil), "tendermint.abci.types.Evidence") 2969 } 2970 2971 func init() { proto.RegisterFile("abci/types/types.proto", fileDescriptor_9f1eaa49c51fa1ac) } 2972 func init() { golang_proto.RegisterFile("abci/types/types.proto", fileDescriptor_9f1eaa49c51fa1ac) } 2973 2974 var fileDescriptor_9f1eaa49c51fa1ac = []byte{ 2975 // 2458 bytes of a gzipped FileDescriptorProto 2976 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0x3d, 0x70, 0x1b, 0xc7, 2977 0xf5, 0xe7, 0x81, 0x20, 0x3e, 0x1e, 0xf8, 0x01, 0xad, 0x64, 0x1b, 0xc6, 0x5f, 0x22, 0x35, 0x47, 2978 0x4b, 0xa2, 0x6c, 0xff, 0x41, 0x87, 0x19, 0x65, 0xac, 0x48, 0xe3, 0x0c, 0x41, 0x4a, 0x21, 0xc7, 2979 0x92, 0x4c, 0x9f, 0x24, 0x46, 0x49, 0x66, 0x7c, 0xb3, 0xc0, 0xad, 0x80, 0x1b, 0x02, 0x77, 0xe7, 2980 0xbb, 0x05, 0x44, 0x64, 0x52, 0xa4, 0xcb, 0x64, 0x26, 0x45, 0xca, 0x34, 0xe9, 0x53, 0xa6, 0x70, 2981 0xe1, 0x32, 0xa5, 0x8b, 0x14, 0x29, 0x52, 0x2b, 0x09, 0x93, 0x2a, 0xe3, 0x32, 0x93, 0x49, 0x99, 2982 0x79, 0xbb, 0x7b, 0x5f, 0x20, 0x3e, 0x4e, 0x8e, 0xba, 0x34, 0xc0, 0xed, 0xde, 0x7b, 0x6f, 0x77, 2983 0xdf, 0xbe, 0x8f, 0xdf, 0x7b, 0x07, 0x6f, 0xd2, 0x56, 0xdb, 0xde, 0xe6, 0x23, 0x8f, 0x05, 0xf2, 2984 0xb7, 0xe1, 0xf9, 0x2e, 0x77, 0xc9, 0x1b, 0x9c, 0x39, 0x16, 0xf3, 0xfb, 0xb6, 0xc3, 0x1b, 0x48, 2985 0xd2, 0x10, 0x2f, 0xeb, 0xd7, 0x79, 0xd7, 0xf6, 0x2d, 0xd3, 0xa3, 0x3e, 0x1f, 0x6d, 0x0b, 0xca, 2986 0xed, 0x8e, 0xdb, 0x71, 0xe3, 0x27, 0xc9, 0x5e, 0xaf, 0xb7, 0xfd, 0x91, 0xc7, 0xdd, 0xed, 0x3e, 2987 0xf3, 0x4f, 0x7a, 0x4c, 0xfd, 0xa9, 0x77, 0x17, 0x7b, 0x76, 0x2b, 0xd8, 0x3e, 0x19, 0x26, 0xd7, 2988 0xab, 0x6f, 0x74, 0x5c, 0xb7, 0xd3, 0x63, 0x52, 0x66, 0x6b, 0xf0, 0x7c, 0x9b, 0xdb, 0x7d, 0x16, 2989 0x70, 0xda, 0xf7, 0x14, 0xc1, 0xfa, 0x38, 0x81, 0x35, 0xf0, 0x29, 0xb7, 0x5d, 0x47, 0xbe, 0xd7, 2990 0xff, 0xb5, 0x04, 0x45, 0x83, 0x7d, 0x3e, 0x60, 0x01, 0x27, 0x1f, 0x42, 0x9e, 0xb5, 0xbb, 0x6e, 2991 0x2d, 0x77, 0x55, 0xdb, 0xaa, 0xec, 0xe8, 0x8d, 0x89, 0x67, 0x69, 0x28, 0xea, 0x7b, 0xed, 0xae, 2992 0x7b, 0xb0, 0x60, 0x08, 0x0e, 0x72, 0x07, 0x96, 0x9e, 0xf7, 0x06, 0x41, 0xb7, 0xb6, 0x28, 0x58, 2993 0x37, 0x67, 0xb3, 0xde, 0x47, 0xd2, 0x83, 0x05, 0x43, 0xf2, 0xe0, 0xb2, 0xb6, 0xf3, 0xdc, 0xad, 2994 0xe5, 0xb3, 0x2c, 0x7b, 0xe8, 0x3c, 0x17, 0xcb, 0x22, 0x07, 0x39, 0x00, 0x08, 0x18, 0x37, 0x5d, 2995 0x0f, 0x0f, 0x54, 0x5b, 0x12, 0xfc, 0x37, 0x66, 0xf3, 0x3f, 0x66, 0xfc, 0x13, 0x41, 0x7e, 0xb0, 2996 0x60, 0x94, 0x83, 0x70, 0x80, 0x92, 0x6c, 0xc7, 0xe6, 0x66, 0xbb, 0x4b, 0x6d, 0xa7, 0x56, 0xc8, 2997 0x22, 0xe9, 0xd0, 0xb1, 0xf9, 0x1e, 0x92, 0xa3, 0x24, 0x3b, 0x1c, 0xa0, 0x2a, 0x3e, 0x1f, 0x30, 2998 0x7f, 0x54, 0x2b, 0x66, 0x51, 0xc5, 0xa7, 0x48, 0x8a, 0xaa, 0x10, 0x3c, 0xe4, 0x63, 0xa8, 0xb4, 2999 0x58, 0xc7, 0x76, 0xcc, 0x56, 0xcf, 0x6d, 0x9f, 0xd4, 0x4a, 0x42, 0xc4, 0xd6, 0x6c, 0x11, 0x4d, 3000 0x64, 0x68, 0x22, 0xfd, 0xc1, 0x82, 0x01, 0xad, 0x68, 0x44, 0x9a, 0x50, 0x6a, 0x77, 0x59, 0xfb, 3001 0xc4, 0xe4, 0xa7, 0xb5, 0xb2, 0x90, 0x74, 0x6d, 0xb6, 0xa4, 0x3d, 0xa4, 0x7e, 0x72, 0x7a, 0xb0, 3002 0x60, 0x14, 0xdb, 0xf2, 0x11, 0xf5, 0x62, 0xb1, 0x9e, 0x3d, 0x64, 0x3e, 0x4a, 0xb9, 0x98, 0x45, 3003 0x2f, 0xfb, 0x92, 0x5e, 0xc8, 0x29, 0x5b, 0xe1, 0x80, 0xdc, 0x83, 0x32, 0x73, 0x2c, 0x75, 0xb0, 3004 0x8a, 0x10, 0x74, 0x7d, 0x8e, 0x85, 0x39, 0x56, 0x78, 0xac, 0x12, 0x53, 0xcf, 0xe4, 0x23, 0x28, 3005 0xb4, 0xdd, 0x7e, 0xdf, 0xe6, 0xb5, 0x65, 0x21, 0xe3, 0x9d, 0x39, 0x47, 0x12, 0xb4, 0x07, 0x0b, 3006 0x86, 0xe2, 0x6a, 0x16, 0x61, 0x69, 0x48, 0x7b, 0x03, 0xa6, 0xdf, 0x80, 0x4a, 0xc2, 0x92, 0x49, 3007 0x0d, 0x8a, 0x7d, 0x16, 0x04, 0xb4, 0xc3, 0x6a, 0xda, 0x55, 0x6d, 0xab, 0x6c, 0x84, 0x43, 0x7d, 3008 0x15, 0x96, 0x93, 0x76, 0xab, 0xf7, 0x23, 0x46, 0xb4, 0x45, 0x64, 0x1c, 0x32, 0x3f, 0x40, 0x03, 3009 0x54, 0x8c, 0x6a, 0x48, 0x36, 0x61, 0x45, 0x9c, 0xd6, 0x0c, 0xdf, 0xa3, 0x5f, 0xe5, 0x8d, 0x65, 3010 0x31, 0x79, 0xac, 0x88, 0x36, 0xa0, 0xe2, 0xed, 0x78, 0x11, 0xc9, 0xa2, 0x20, 0x01, 0x6f, 0xc7, 3011 0x53, 0x04, 0xfa, 0x77, 0xa1, 0x3a, 0x6e, 0xba, 0xa4, 0x0a, 0x8b, 0x27, 0x6c, 0xa4, 0xd6, 0xc3, 3012 0x47, 0x72, 0x49, 0x1d, 0x4b, 0xac, 0x51, 0x36, 0xd4, 0x19, 0x7f, 0x97, 0x8b, 0x98, 0x23, 0x6b, 3013 0x45, 0x77, 0xc3, 0x20, 0x21, 0xb8, 0x2b, 0x3b, 0xf5, 0x86, 0x0c, 0x10, 0x8d, 0x30, 0x40, 0x34, 3014 0x9e, 0x84, 0x11, 0xa4, 0x59, 0xfa, 0xea, 0xe5, 0xc6, 0xc2, 0xaf, 0xfe, 0xbc, 0xa1, 0x19, 0x82, 3015 0x83, 0xbc, 0x8d, 0x06, 0x45, 0x6d, 0xc7, 0xb4, 0x2d, 0xb5, 0x4e, 0x51, 0x8c, 0x0f, 0x2d, 0xf2, 3016 0x29, 0x54, 0xdb, 0xae, 0x13, 0x30, 0x27, 0x18, 0x04, 0x18, 0xe6, 0x68, 0x3f, 0x50, 0xb1, 0x60, 3017 0xda, 0x25, 0xef, 0x85, 0xe4, 0x47, 0x82, 0xda, 0x58, 0x6b, 0xa7, 0x27, 0xc8, 0x03, 0x80, 0x21, 3018 0xed, 0xd9, 0x16, 0xe5, 0xae, 0x1f, 0xd4, 0xf2, 0x57, 0x17, 0x67, 0x08, 0x3b, 0x0e, 0x09, 0x9f, 3019 0x7a, 0x16, 0xe5, 0xac, 0x99, 0xc7, 0x9d, 0x1b, 0x09, 0x7e, 0x72, 0x1d, 0xd6, 0xa8, 0xe7, 0x99, 3020 0x01, 0xa7, 0x9c, 0x99, 0xad, 0x11, 0x67, 0x81, 0x88, 0x17, 0xcb, 0xc6, 0x0a, 0xf5, 0xbc, 0xc7, 3021 0x38, 0xdb, 0xc4, 0x49, 0xdd, 0x8a, 0x6e, 0x5b, 0xb8, 0x26, 0x21, 0x90, 0xb7, 0x28, 0xa7, 0x42, 3022 0x5b, 0xcb, 0x86, 0x78, 0xc6, 0x39, 0x8f, 0xf2, 0xae, 0xd2, 0x81, 0x78, 0x26, 0x6f, 0x42, 0xa1, 3023 0xcb, 0xec, 0x4e, 0x97, 0x8b, 0x63, 0x2f, 0x1a, 0x6a, 0x84, 0x17, 0xe3, 0xf9, 0xee, 0x90, 0x89, 3024 0xe8, 0x56, 0x32, 0xe4, 0x40, 0xff, 0x22, 0x07, 0x17, 0xce, 0xb9, 0x2f, 0xca, 0xed, 0xd2, 0xa0, 3025 0x1b, 0xae, 0x85, 0xcf, 0xe4, 0x0e, 0xca, 0xa5, 0x16, 0xf3, 0x55, 0x54, 0xbe, 0x32, 0x45, 0x03, 3026 0x07, 0x82, 0x48, 0x1d, 0x5c, 0xb1, 0x90, 0xa7, 0x50, 0xed, 0xd1, 0x80, 0x9b, 0xd2, 0xf6, 0x4d, 3027 0x11, 0x65, 0x17, 0x67, 0x46, 0x82, 0x07, 0x34, 0xf4, 0x19, 0x34, 0x6e, 0x25, 0x6e, 0xb5, 0x97, 3028 0x9a, 0x25, 0xcf, 0xe0, 0x52, 0x6b, 0xf4, 0x13, 0xea, 0x70, 0xdb, 0x61, 0xe6, 0xb9, 0x3b, 0xda, 3029 0x98, 0x22, 0xfa, 0xde, 0xd0, 0xb6, 0x98, 0xd3, 0x0e, 0x2f, 0xe7, 0x62, 0x24, 0xe2, 0x38, 0xbe, 3030 0xa5, 0x2b, 0x00, 0x83, 0x80, 0x99, 0x16, 0xeb, 0x71, 0x2a, 0x2f, 0xa8, 0x64, 0x94, 0x07, 0x01, 3031 0xdb, 0x17, 0x13, 0xfa, 0x33, 0x58, 0x4d, 0x87, 0x2a, 0xb2, 0x0a, 0x39, 0x7e, 0xaa, 0x14, 0x96, 3032 0xe3, 0xa7, 0xe4, 0x3b, 0x90, 0xc7, 0xd5, 0x84, 0xb2, 0x56, 0xa7, 0xe6, 0x12, 0xc5, 0xfd, 0x64, 3033 0xe4, 0x31, 0x43, 0xd0, 0xeb, 0x7a, 0xe4, 0x28, 0x51, 0xf8, 0x1a, 0x97, 0xad, 0xdf, 0x84, 0xb5, 3034 0xb1, 0xc8, 0x94, 0xb8, 0x75, 0x2d, 0x79, 0xeb, 0xfa, 0x3e, 0x14, 0xe4, 0x96, 0xd1, 0x67, 0x70, 3035 0x61, 0xd3, 0x0f, 0x3c, 0x25, 0xaa, 0x88, 0x63, 0x23, 0xf0, 0xd0, 0xf5, 0xe5, 0x41, 0x85, 0x3d, 3036 0x8a, 0x2d, 0x2f, 0x1b, 0x20, 0xa7, 0xd0, 0x18, 0xf5, 0xfb, 0xb0, 0x92, 0x0a, 0x63, 0xe4, 0x16, 3037 0x14, 0x94, 0x6a, 0xb4, 0x99, 0xc6, 0x20, 0xd7, 0x36, 0x14, 0xb1, 0xfe, 0x87, 0x02, 0x94, 0x0c, 3038 0x16, 0x78, 0xe8, 0x60, 0xe4, 0x00, 0xca, 0xec, 0xb4, 0xcd, 0x64, 0xca, 0xd4, 0xe6, 0x24, 0x18, 3039 0xc9, 0x73, 0x2f, 0xa4, 0xc7, 0x88, 0x1e, 0x31, 0x93, 0xdb, 0x29, 0xb8, 0xb0, 0x39, 0x4f, 0x48, 3040 0x12, 0x2f, 0xdc, 0x4d, 0xe3, 0x85, 0x77, 0xe6, 0xf0, 0x8e, 0x01, 0x86, 0xdb, 0x29, 0xc0, 0x30, 3041 0x6f, 0xe1, 0x14, 0x62, 0x38, 0x9c, 0x80, 0x18, 0xe6, 0x1d, 0x7f, 0x0a, 0x64, 0x38, 0x9c, 0x00, 3042 0x19, 0xb6, 0xe6, 0xee, 0x65, 0x22, 0x66, 0xb8, 0x9b, 0xc6, 0x0c, 0xf3, 0xd4, 0x31, 0x06, 0x1a, 3043 0x1e, 0x4c, 0x02, 0x0d, 0x37, 0xe7, 0xc8, 0x98, 0x8a, 0x1a, 0xf6, 0xce, 0xa1, 0x86, 0xeb, 0x73, 3044 0x44, 0x4d, 0x80, 0x0d, 0x87, 0x29, 0xd8, 0x00, 0x99, 0x74, 0x33, 0x05, 0x37, 0xdc, 0x3f, 0x8f, 3045 0x1b, 0x6e, 0xcc, 0x33, 0xb5, 0x49, 0xc0, 0xe1, 0x7b, 0x63, 0xc0, 0xe1, 0xda, 0xbc, 0x53, 0x4d, 3046 0x45, 0x0e, 0x37, 0x31, 0x76, 0x8f, 0x79, 0x06, 0xc6, 0x79, 0xe6, 0xfb, 0xae, 0xaf, 0x92, 0xb2, 3047 0x1c, 0xe8, 0x5b, 0x98, 0x4d, 0x62, 0xfb, 0x9f, 0x81, 0x32, 0xd6, 0xd0, 0xd7, 0x13, 0xd6, 0xae, 3048 0x7f, 0xa9, 0xc5, 0xbc, 0x22, 0xea, 0x26, 0x33, 0x51, 0x59, 0x65, 0xa2, 0x04, 0xf8, 0xc8, 0xa5, 3049 0xc1, 0xc7, 0x06, 0x54, 0x30, 0xdf, 0x8d, 0xe1, 0x0a, 0xea, 0x85, 0xb8, 0x82, 0xbc, 0x0b, 0x17, 3050 0x44, 0x6e, 0x90, 0x10, 0x45, 0x45, 0xb1, 0xbc, 0x88, 0x62, 0x6b, 0xf8, 0x42, 0x6a, 0x50, 0x26, 3051 0xb1, 0xff, 0x87, 0x8b, 0x09, 0x5a, 0x94, 0x2b, 0xf2, 0x94, 0x4c, 0xa0, 0xd5, 0x88, 0x7a, 0xd7, 3052 0xf3, 0x0e, 0x68, 0xd0, 0xd5, 0x1f, 0xc6, 0x0a, 0x8a, 0x31, 0x0b, 0x81, 0x7c, 0xdb, 0xb5, 0xe4, 3053 0xb9, 0x57, 0x0c, 0xf1, 0x8c, 0x38, 0xa6, 0xe7, 0x76, 0xc4, 0xe6, 0xca, 0x06, 0x3e, 0x22, 0x55, 3054 0xe4, 0xda, 0x65, 0xe9, 0xb3, 0xfa, 0x17, 0x5a, 0x2c, 0x2f, 0x86, 0x31, 0x93, 0x10, 0x87, 0xf6, 3055 0x3a, 0x11, 0x47, 0xee, 0xbf, 0x43, 0x1c, 0xfa, 0x3f, 0xb5, 0xf8, 0x4a, 0x23, 0x2c, 0xf1, 0xcd, 3056 0x54, 0x80, 0xd6, 0x65, 0x3b, 0x16, 0x3b, 0x15, 0x2a, 0x5f, 0x34, 0xe4, 0x20, 0x84, 0x81, 0x05, 3057 0x71, 0x0d, 0x69, 0x18, 0x58, 0x14, 0x73, 0x72, 0x40, 0x6e, 0x09, 0x0c, 0xe2, 0x3e, 0x57, 0xa1, 3058 0x21, 0x95, 0xa0, 0x65, 0xc1, 0xd9, 0x50, 0x95, 0xe6, 0x11, 0x92, 0x19, 0x92, 0x3a, 0x91, 0xdc, 3059 0xca, 0x29, 0x48, 0x73, 0x19, 0xca, 0xb8, 0xf5, 0xc0, 0xa3, 0x6d, 0x26, 0x7c, 0xbb, 0x6c, 0xc4, 3060 0x13, 0xba, 0x05, 0xe4, 0x7c, 0x8c, 0x21, 0x8f, 0xa0, 0xc0, 0x86, 0xcc, 0xe1, 0x78, 0x47, 0xa8, 3061 0xd6, 0xcb, 0x53, 0x41, 0x02, 0x73, 0x78, 0xb3, 0x86, 0xca, 0xfc, 0xc7, 0xcb, 0x8d, 0xaa, 0xe4, 3062 0x79, 0xdf, 0xed, 0xdb, 0x9c, 0xf5, 0x3d, 0x3e, 0x32, 0x94, 0x14, 0xfd, 0xe7, 0x39, 0x4c, 0xc6, 3063 0xa9, 0xf8, 0x33, 0x51, 0xbd, 0xa1, 0xd3, 0xe4, 0x12, 0xf0, 0x2d, 0x9b, 0xca, 0xaf, 0x00, 0x74, 3064 0x68, 0x60, 0xbe, 0xa0, 0x0e, 0x67, 0x96, 0xd2, 0x7b, 0xb9, 0x43, 0x83, 0x1f, 0x88, 0x09, 0xcc, 3065 0xeb, 0xf8, 0x7a, 0x10, 0x30, 0x4b, 0x5c, 0xc0, 0xa2, 0x51, 0xec, 0xd0, 0xe0, 0x69, 0xc0, 0xac, 3066 0xc4, 0x59, 0x8b, 0xaf, 0xe3, 0xac, 0x69, 0x7d, 0x97, 0xc6, 0xf5, 0xfd, 0x8b, 0x5c, 0xec, 0x1d, 3067 0x31, 0x76, 0xf9, 0xdf, 0xd4, 0xc5, 0x6f, 0x44, 0xbd, 0x93, 0x4e, 0x02, 0xe4, 0x87, 0x70, 0x21, 3068 0xf2, 0x4a, 0x73, 0x20, 0xbc, 0x35, 0xb4, 0xc2, 0x57, 0x73, 0xee, 0xea, 0x30, 0x3d, 0x1d, 0x90, 3069 0xcf, 0xe0, 0xad, 0xb1, 0x18, 0x14, 0x2d, 0x90, 0x7b, 0xa5, 0x50, 0xf4, 0x46, 0x3a, 0x14, 0x85, 3070 0xf2, 0x63, 0xed, 0x2d, 0xbe, 0x16, 0xaf, 0xf9, 0x99, 0x86, 0x00, 0x3a, 0x99, 0xdf, 0x26, 0x1a, 3071 0xc5, 0x26, 0xac, 0xf8, 0x8c, 0x63, 0xa1, 0x97, 0x2a, 0x69, 0x96, 0xe5, 0xa4, 0xca, 0x09, 0x31, 3072 0x16, 0xcd, 0xbf, 0x0a, 0x16, 0xfd, 0x93, 0x06, 0x6b, 0x63, 0xa7, 0x27, 0x1f, 0xc2, 0x92, 0x4c, 3073 0xef, 0xda, 0xcc, 0x0e, 0x90, 0xb8, 0x4e, 0xa5, 0x30, 0xc9, 0x40, 0x76, 0xa1, 0xc4, 0x54, 0x59, 3074 0xa1, 0x34, 0x7e, 0x6d, 0x4e, 0xf5, 0xa1, 0xf8, 0x23, 0x36, 0xb2, 0x0f, 0xe5, 0xe8, 0x5e, 0xe7, 3075 0x94, 0xac, 0x91, 0x59, 0x28, 0x21, 0x31, 0xa3, 0xbe, 0x07, 0x95, 0xc4, 0xf6, 0xc8, 0xff, 0x41, 3076 0xb9, 0x4f, 0x4f, 0x55, 0x9d, 0x29, 0x4b, 0x83, 0x52, 0x9f, 0x9e, 0x8a, 0x12, 0x93, 0xbc, 0x05, 3077 0x45, 0x7c, 0xd9, 0xa1, 0xd2, 0x4a, 0x16, 0x8d, 0x42, 0x9f, 0x9e, 0x7e, 0x9f, 0x06, 0xfa, 0x2f, 3078 0x35, 0x58, 0x4d, 0xef, 0x93, 0xbc, 0x07, 0x04, 0x69, 0x69, 0x87, 0x99, 0xce, 0xa0, 0x2f, 0x13, 3079 0x70, 0x28, 0x71, 0xad, 0x4f, 0x4f, 0x77, 0x3b, 0xec, 0xd1, 0xa0, 0x2f, 0x96, 0x0e, 0xc8, 0x43, 3080 0xa8, 0x86, 0xc4, 0x61, 0x97, 0x4f, 0x69, 0xe5, 0xed, 0x73, 0x55, 0xfe, 0xbe, 0x22, 0x90, 0x45, 3081 0xfe, 0xaf, 0xb1, 0xc8, 0x5f, 0x95, 0xf2, 0xc2, 0x37, 0xfa, 0x2d, 0x58, 0x1b, 0x3b, 0x31, 0xd1, 3082 0x61, 0xc5, 0x1b, 0xb4, 0xcc, 0x13, 0x36, 0x32, 0x85, 0x4a, 0x84, 0x1f, 0x95, 0x8d, 0x8a, 0x37, 3083 0x68, 0x7d, 0xcc, 0x46, 0x58, 0x4f, 0x05, 0x7a, 0x1b, 0x56, 0xd3, 0x55, 0x24, 0x66, 0x25, 0xdf, 3084 0x1d, 0x38, 0x96, 0xd8, 0xf7, 0x92, 0x21, 0x07, 0xe4, 0x0e, 0x2c, 0x0d, 0x5d, 0xe9, 0x2a, 0xb3, 3085 0xca, 0xc6, 0x63, 0x97, 0xb3, 0x44, 0x2d, 0x2a, 0x79, 0xf4, 0x00, 0x96, 0x84, 0xd1, 0xa3, 0xfd, 3086 0x8a, 0x82, 0x4f, 0xa1, 0x22, 0x7c, 0x26, 0xc7, 0x00, 0x94, 0x73, 0xdf, 0x6e, 0x0d, 0x62, 0xf1, 3087 0xb5, 0xa4, 0xf8, 0x9e, 0xdd, 0x0a, 0x1a, 0x27, 0xc3, 0xc6, 0x11, 0xb5, 0xfd, 0xe6, 0x65, 0xe5, 3088 0x36, 0x97, 0x62, 0x9e, 0x84, 0xeb, 0x24, 0x24, 0xe9, 0x5f, 0xe7, 0xa1, 0x20, 0xeb, 0x6c, 0xf2, 3089 0x51, 0xba, 0xeb, 0x53, 0xd9, 0x59, 0x9f, 0xb6, 0x7d, 0x49, 0xa5, 0x76, 0x1f, 0xc1, 0xb3, 0xeb, 3090 0xe3, 0xad, 0x94, 0x66, 0xe5, 0xec, 0xe5, 0x46, 0x51, 0x40, 0x9b, 0xc3, 0xfd, 0xb8, 0xaf, 0x32, 3091 0xad, 0xad, 0x10, 0x36, 0x71, 0xf2, 0xaf, 0xdc, 0xc4, 0x39, 0x80, 0x95, 0x04, 0x96, 0xb3, 0x2d, 3092 0x55, 0x04, 0xad, 0xcf, 0x72, 0xba, 0xc3, 0x7d, 0xb5, 0xff, 0x4a, 0x84, 0xf5, 0x0e, 0x2d, 0xb2, 3093 0x95, 0xee, 0x2e, 0x08, 0x48, 0x28, 0xb1, 0x48, 0xa2, 0x61, 0x80, 0x80, 0x10, 0xdd, 0x01, 0x03, 3094 0x8b, 0x24, 0x91, 0xd0, 0xa4, 0x84, 0x13, 0xe2, 0xe5, 0x0d, 0x58, 0x8b, 0x51, 0x93, 0x24, 0x29, 3095 0x49, 0x29, 0xf1, 0xb4, 0x20, 0xfc, 0x00, 0x2e, 0x39, 0xec, 0x94, 0x9b, 0xe3, 0xd4, 0x65, 0x41, 3096 0x4d, 0xf0, 0xdd, 0x71, 0x9a, 0xe3, 0x1a, 0xac, 0xc6, 0xf1, 0x59, 0xd0, 0x82, 0xec, 0xf9, 0x44, 3097 0xb3, 0x82, 0x0c, 0x6b, 0xf4, 0x10, 0xd3, 0x56, 0x54, 0x8d, 0x2e, 0xa1, 0x6c, 0x84, 0x92, 0x7d, 3098 0x16, 0x0c, 0x7a, 0x5c, 0x09, 0x59, 0x16, 0x34, 0x02, 0x25, 0x1b, 0x72, 0x5e, 0xd0, 0x6e, 0xc2, 3099 0x4a, 0x18, 0x55, 0x24, 0xdd, 0x8a, 0xa0, 0x5b, 0x0e, 0x27, 0x05, 0xd1, 0x4d, 0xa8, 0x7a, 0xbe, 3100 0xeb, 0xb9, 0x01, 0xf3, 0x4d, 0x6a, 0x59, 0x3e, 0x0b, 0x82, 0xda, 0xaa, 0x94, 0x17, 0xce, 0xef, 3101 0xca, 0x69, 0xfd, 0x5b, 0x50, 0x0c, 0xc1, 0xfa, 0x25, 0x58, 0x6a, 0x46, 0x11, 0x32, 0x6f, 0xc8, 3102 0x01, 0x26, 0xef, 0x5d, 0xcf, 0x53, 0x6d, 0x45, 0x7c, 0xd4, 0x7b, 0x50, 0x54, 0x17, 0x36, 0xb1, 3103 0x99, 0xf4, 0x10, 0x96, 0x3d, 0xea, 0xe3, 0x31, 0x92, 0x2d, 0xa5, 0x69, 0xe5, 0xe6, 0x11, 0xf5, 3104 0xf9, 0x63, 0xc6, 0x53, 0x9d, 0xa5, 0x8a, 0xe0, 0x97, 0x53, 0xfa, 0x6d, 0x58, 0x49, 0xd1, 0xe0, 3105 0x36, 0xb9, 0xcb, 0x69, 0x2f, 0x74, 0x74, 0x31, 0x88, 0x76, 0x92, 0x8b, 0x77, 0xa2, 0xdf, 0x81, 3106 0x72, 0x74, 0x57, 0x58, 0xc5, 0x84, 0xaa, 0x08, 0x5b, 0x24, 0x72, 0x28, 0xba, 0x67, 0xee, 0x0b, 3107 0xe6, 0x2b, 0xeb, 0x97, 0x03, 0x9d, 0x25, 0x02, 0x93, 0x4c, 0x95, 0xe4, 0x2e, 0x14, 0x55, 0x60, 3108 0x9a, 0xd3, 0x1a, 0x39, 0x12, 0x91, 0x2a, 0xec, 0x93, 0xc9, 0xb8, 0x15, 0x2f, 0x93, 0x4b, 0x2e, 3109 0xf3, 0x53, 0x28, 0x85, 0xc1, 0x27, 0x9d, 0x25, 0xe4, 0x0a, 0x57, 0xe7, 0x65, 0x09, 0xb5, 0x48, 3110 0xcc, 0x88, 0xd6, 0x14, 0xd8, 0x1d, 0x87, 0x59, 0x66, 0xec, 0x82, 0x62, 0xcd, 0x92, 0xb1, 0x26, 3111 0x5f, 0x3c, 0x08, 0xfd, 0x4b, 0xff, 0x00, 0x0a, 0x72, 0xaf, 0x13, 0x43, 0xdc, 0x84, 0xb4, 0xad, 3112 0xff, 0x5d, 0x83, 0x52, 0x98, 0x3e, 0x26, 0x32, 0xa5, 0x0e, 0x91, 0xfb, 0xa6, 0x87, 0x78, 0xfd, 3113 0x21, 0xe9, 0x7d, 0x20, 0xc2, 0x52, 0xcc, 0xa1, 0xcb, 0x6d, 0xa7, 0x63, 0xca, 0xbb, 0x90, 0x30, 3114 0xb3, 0x2a, 0xde, 0x1c, 0x8b, 0x17, 0x47, 0x38, 0xff, 0xee, 0x26, 0x54, 0x12, 0xfd, 0x3b, 0x52, 3115 0x84, 0xc5, 0x47, 0xec, 0x45, 0x75, 0x81, 0x54, 0xa0, 0x68, 0x30, 0xd1, 0x80, 0xa8, 0x6a, 0x3b, 3116 0x5f, 0x17, 0x61, 0x6d, 0xb7, 0xb9, 0x77, 0xb8, 0xeb, 0x79, 0x3d, 0xbb, 0x2d, 0xf2, 0x19, 0xf9, 3117 0x04, 0xf2, 0xa2, 0x08, 0xcf, 0xf0, 0x61, 0xab, 0x9e, 0xa5, 0x9b, 0x45, 0x0c, 0x58, 0x12, 0xb5, 3118 0x3a, 0xc9, 0xf2, 0xbd, 0xab, 0x9e, 0xa9, 0xc9, 0x85, 0x9b, 0x14, 0x06, 0x97, 0xe1, 0x33, 0x58, 3119 0x3d, 0x4b, 0xe7, 0x8b, 0x7c, 0x06, 0xe5, 0xb8, 0x08, 0xcf, 0xfa, 0x71, 0xac, 0x9e, 0xb9, 0x27, 3120 0x86, 0xf2, 0xe3, 0xb2, 0x23, 0xeb, 0xa7, 0xa1, 0x7a, 0xe6, 0x66, 0x10, 0x79, 0x06, 0xc5, 0xb0, 3121 0xc0, 0xcb, 0xf6, 0xf9, 0xaa, 0x9e, 0xb1, 0x5f, 0x85, 0xd7, 0x27, 0xeb, 0xf2, 0x2c, 0xdf, 0xe8, 3122 0xea, 0x99, 0x9a, 0x72, 0xe4, 0x29, 0x14, 0x14, 0xb0, 0xce, 0xf4, 0x61, 0xaa, 0x9e, 0xad, 0x0b, 3123 0x85, 0x4a, 0x8e, 0x3b, 0x1f, 0x59, 0xbf, 0x4b, 0xd6, 0x33, 0x77, 0x23, 0x09, 0x05, 0x48, 0x14, 3124 0xeb, 0x99, 0x3f, 0x38, 0xd6, 0xb3, 0x77, 0x19, 0xc9, 0x8f, 0xa1, 0x14, 0x95, 0x64, 0x19, 0x3f, 3125 0xfc, 0xd5, 0xb3, 0x36, 0xfa, 0x9a, 0x87, 0xff, 0xfe, 0xeb, 0xba, 0xf6, 0xdb, 0xb3, 0x75, 0xed, 3126 0xcb, 0xb3, 0x75, 0xed, 0xab, 0xb3, 0x75, 0xed, 0x8f, 0x67, 0xeb, 0xda, 0x5f, 0xce, 0xd6, 0xb5, 3127 0xdf, 0xff, 0x6d, 0x5d, 0xfb, 0xd1, 0x7b, 0x1d, 0x9b, 0x77, 0x07, 0xad, 0x46, 0xdb, 0xed, 0x6f, 3128 0xc7, 0x02, 0x93, 0x8f, 0xf1, 0xd7, 0xfc, 0x56, 0x41, 0x04, 0xac, 0x6f, 0xff, 0x27, 0x00, 0x00, 3129 0xff, 0xff, 0xd6, 0x1b, 0x60, 0x6f, 0xe2, 0x1f, 0x00, 0x00, 3130 } 3131 3132 func (this *Request) Equal(that interface{}) bool { 3133 if that == nil { 3134 return this == nil 3135 } 3136 3137 that1, ok := that.(*Request) 3138 if !ok { 3139 that2, ok := that.(Request) 3140 if ok { 3141 that1 = &that2 3142 } else { 3143 return false 3144 } 3145 } 3146 if that1 == nil { 3147 return this == nil 3148 } else if this == nil { 3149 return false 3150 } 3151 if that1.Value == nil { 3152 if this.Value != nil { 3153 return false 3154 } 3155 } else if this.Value == nil { 3156 return false 3157 } else if !this.Value.Equal(that1.Value) { 3158 return false 3159 } 3160 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3161 return false 3162 } 3163 return true 3164 } 3165 func (this *Request_Echo) Equal(that interface{}) bool { 3166 if that == nil { 3167 return this == nil 3168 } 3169 3170 that1, ok := that.(*Request_Echo) 3171 if !ok { 3172 that2, ok := that.(Request_Echo) 3173 if ok { 3174 that1 = &that2 3175 } else { 3176 return false 3177 } 3178 } 3179 if that1 == nil { 3180 return this == nil 3181 } else if this == nil { 3182 return false 3183 } 3184 if !this.Echo.Equal(that1.Echo) { 3185 return false 3186 } 3187 return true 3188 } 3189 func (this *Request_Flush) Equal(that interface{}) bool { 3190 if that == nil { 3191 return this == nil 3192 } 3193 3194 that1, ok := that.(*Request_Flush) 3195 if !ok { 3196 that2, ok := that.(Request_Flush) 3197 if ok { 3198 that1 = &that2 3199 } else { 3200 return false 3201 } 3202 } 3203 if that1 == nil { 3204 return this == nil 3205 } else if this == nil { 3206 return false 3207 } 3208 if !this.Flush.Equal(that1.Flush) { 3209 return false 3210 } 3211 return true 3212 } 3213 func (this *Request_Info) Equal(that interface{}) bool { 3214 if that == nil { 3215 return this == nil 3216 } 3217 3218 that1, ok := that.(*Request_Info) 3219 if !ok { 3220 that2, ok := that.(Request_Info) 3221 if ok { 3222 that1 = &that2 3223 } else { 3224 return false 3225 } 3226 } 3227 if that1 == nil { 3228 return this == nil 3229 } else if this == nil { 3230 return false 3231 } 3232 if !this.Info.Equal(that1.Info) { 3233 return false 3234 } 3235 return true 3236 } 3237 func (this *Request_SetOption) Equal(that interface{}) bool { 3238 if that == nil { 3239 return this == nil 3240 } 3241 3242 that1, ok := that.(*Request_SetOption) 3243 if !ok { 3244 that2, ok := that.(Request_SetOption) 3245 if ok { 3246 that1 = &that2 3247 } else { 3248 return false 3249 } 3250 } 3251 if that1 == nil { 3252 return this == nil 3253 } else if this == nil { 3254 return false 3255 } 3256 if !this.SetOption.Equal(that1.SetOption) { 3257 return false 3258 } 3259 return true 3260 } 3261 func (this *Request_InitChain) Equal(that interface{}) bool { 3262 if that == nil { 3263 return this == nil 3264 } 3265 3266 that1, ok := that.(*Request_InitChain) 3267 if !ok { 3268 that2, ok := that.(Request_InitChain) 3269 if ok { 3270 that1 = &that2 3271 } else { 3272 return false 3273 } 3274 } 3275 if that1 == nil { 3276 return this == nil 3277 } else if this == nil { 3278 return false 3279 } 3280 if !this.InitChain.Equal(that1.InitChain) { 3281 return false 3282 } 3283 return true 3284 } 3285 func (this *Request_Query) Equal(that interface{}) bool { 3286 if that == nil { 3287 return this == nil 3288 } 3289 3290 that1, ok := that.(*Request_Query) 3291 if !ok { 3292 that2, ok := that.(Request_Query) 3293 if ok { 3294 that1 = &that2 3295 } else { 3296 return false 3297 } 3298 } 3299 if that1 == nil { 3300 return this == nil 3301 } else if this == nil { 3302 return false 3303 } 3304 if !this.Query.Equal(that1.Query) { 3305 return false 3306 } 3307 return true 3308 } 3309 func (this *Request_BeginBlock) Equal(that interface{}) bool { 3310 if that == nil { 3311 return this == nil 3312 } 3313 3314 that1, ok := that.(*Request_BeginBlock) 3315 if !ok { 3316 that2, ok := that.(Request_BeginBlock) 3317 if ok { 3318 that1 = &that2 3319 } else { 3320 return false 3321 } 3322 } 3323 if that1 == nil { 3324 return this == nil 3325 } else if this == nil { 3326 return false 3327 } 3328 if !this.BeginBlock.Equal(that1.BeginBlock) { 3329 return false 3330 } 3331 return true 3332 } 3333 func (this *Request_CheckTx) Equal(that interface{}) bool { 3334 if that == nil { 3335 return this == nil 3336 } 3337 3338 that1, ok := that.(*Request_CheckTx) 3339 if !ok { 3340 that2, ok := that.(Request_CheckTx) 3341 if ok { 3342 that1 = &that2 3343 } else { 3344 return false 3345 } 3346 } 3347 if that1 == nil { 3348 return this == nil 3349 } else if this == nil { 3350 return false 3351 } 3352 if !this.CheckTx.Equal(that1.CheckTx) { 3353 return false 3354 } 3355 return true 3356 } 3357 func (this *Request_DeliverTx) Equal(that interface{}) bool { 3358 if that == nil { 3359 return this == nil 3360 } 3361 3362 that1, ok := that.(*Request_DeliverTx) 3363 if !ok { 3364 that2, ok := that.(Request_DeliverTx) 3365 if ok { 3366 that1 = &that2 3367 } else { 3368 return false 3369 } 3370 } 3371 if that1 == nil { 3372 return this == nil 3373 } else if this == nil { 3374 return false 3375 } 3376 if !this.DeliverTx.Equal(that1.DeliverTx) { 3377 return false 3378 } 3379 return true 3380 } 3381 func (this *Request_EndBlock) Equal(that interface{}) bool { 3382 if that == nil { 3383 return this == nil 3384 } 3385 3386 that1, ok := that.(*Request_EndBlock) 3387 if !ok { 3388 that2, ok := that.(Request_EndBlock) 3389 if ok { 3390 that1 = &that2 3391 } else { 3392 return false 3393 } 3394 } 3395 if that1 == nil { 3396 return this == nil 3397 } else if this == nil { 3398 return false 3399 } 3400 if !this.EndBlock.Equal(that1.EndBlock) { 3401 return false 3402 } 3403 return true 3404 } 3405 func (this *Request_Commit) Equal(that interface{}) bool { 3406 if that == nil { 3407 return this == nil 3408 } 3409 3410 that1, ok := that.(*Request_Commit) 3411 if !ok { 3412 that2, ok := that.(Request_Commit) 3413 if ok { 3414 that1 = &that2 3415 } else { 3416 return false 3417 } 3418 } 3419 if that1 == nil { 3420 return this == nil 3421 } else if this == nil { 3422 return false 3423 } 3424 if !this.Commit.Equal(that1.Commit) { 3425 return false 3426 } 3427 return true 3428 } 3429 func (this *RequestEcho) Equal(that interface{}) bool { 3430 if that == nil { 3431 return this == nil 3432 } 3433 3434 that1, ok := that.(*RequestEcho) 3435 if !ok { 3436 that2, ok := that.(RequestEcho) 3437 if ok { 3438 that1 = &that2 3439 } else { 3440 return false 3441 } 3442 } 3443 if that1 == nil { 3444 return this == nil 3445 } else if this == nil { 3446 return false 3447 } 3448 if this.Message != that1.Message { 3449 return false 3450 } 3451 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3452 return false 3453 } 3454 return true 3455 } 3456 func (this *RequestFlush) Equal(that interface{}) bool { 3457 if that == nil { 3458 return this == nil 3459 } 3460 3461 that1, ok := that.(*RequestFlush) 3462 if !ok { 3463 that2, ok := that.(RequestFlush) 3464 if ok { 3465 that1 = &that2 3466 } else { 3467 return false 3468 } 3469 } 3470 if that1 == nil { 3471 return this == nil 3472 } else if this == nil { 3473 return false 3474 } 3475 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3476 return false 3477 } 3478 return true 3479 } 3480 func (this *RequestInfo) Equal(that interface{}) bool { 3481 if that == nil { 3482 return this == nil 3483 } 3484 3485 that1, ok := that.(*RequestInfo) 3486 if !ok { 3487 that2, ok := that.(RequestInfo) 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.Version != that1.Version { 3500 return false 3501 } 3502 if this.BlockVersion != that1.BlockVersion { 3503 return false 3504 } 3505 if this.P2PVersion != that1.P2PVersion { 3506 return false 3507 } 3508 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3509 return false 3510 } 3511 return true 3512 } 3513 func (this *RequestSetOption) Equal(that interface{}) bool { 3514 if that == nil { 3515 return this == nil 3516 } 3517 3518 that1, ok := that.(*RequestSetOption) 3519 if !ok { 3520 that2, ok := that.(RequestSetOption) 3521 if ok { 3522 that1 = &that2 3523 } else { 3524 return false 3525 } 3526 } 3527 if that1 == nil { 3528 return this == nil 3529 } else if this == nil { 3530 return false 3531 } 3532 if this.Key != that1.Key { 3533 return false 3534 } 3535 if this.Value != that1.Value { 3536 return false 3537 } 3538 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3539 return false 3540 } 3541 return true 3542 } 3543 func (this *RequestInitChain) Equal(that interface{}) bool { 3544 if that == nil { 3545 return this == nil 3546 } 3547 3548 that1, ok := that.(*RequestInitChain) 3549 if !ok { 3550 that2, ok := that.(RequestInitChain) 3551 if ok { 3552 that1 = &that2 3553 } else { 3554 return false 3555 } 3556 } 3557 if that1 == nil { 3558 return this == nil 3559 } else if this == nil { 3560 return false 3561 } 3562 if !this.Time.Equal(that1.Time) { 3563 return false 3564 } 3565 if this.ChainId != that1.ChainId { 3566 return false 3567 } 3568 if !this.ConsensusParams.Equal(that1.ConsensusParams) { 3569 return false 3570 } 3571 if len(this.Validators) != len(that1.Validators) { 3572 return false 3573 } 3574 for i := range this.Validators { 3575 if !this.Validators[i].Equal(&that1.Validators[i]) { 3576 return false 3577 } 3578 } 3579 if !bytes.Equal(this.AppStateBytes, that1.AppStateBytes) { 3580 return false 3581 } 3582 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3583 return false 3584 } 3585 return true 3586 } 3587 func (this *RequestQuery) Equal(that interface{}) bool { 3588 if that == nil { 3589 return this == nil 3590 } 3591 3592 that1, ok := that.(*RequestQuery) 3593 if !ok { 3594 that2, ok := that.(RequestQuery) 3595 if ok { 3596 that1 = &that2 3597 } else { 3598 return false 3599 } 3600 } 3601 if that1 == nil { 3602 return this == nil 3603 } else if this == nil { 3604 return false 3605 } 3606 if !bytes.Equal(this.Data, that1.Data) { 3607 return false 3608 } 3609 if this.Path != that1.Path { 3610 return false 3611 } 3612 if this.Height != that1.Height { 3613 return false 3614 } 3615 if this.Prove != that1.Prove { 3616 return false 3617 } 3618 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3619 return false 3620 } 3621 return true 3622 } 3623 func (this *RequestBeginBlock) Equal(that interface{}) bool { 3624 if that == nil { 3625 return this == nil 3626 } 3627 3628 that1, ok := that.(*RequestBeginBlock) 3629 if !ok { 3630 that2, ok := that.(RequestBeginBlock) 3631 if ok { 3632 that1 = &that2 3633 } else { 3634 return false 3635 } 3636 } 3637 if that1 == nil { 3638 return this == nil 3639 } else if this == nil { 3640 return false 3641 } 3642 if !bytes.Equal(this.Hash, that1.Hash) { 3643 return false 3644 } 3645 if !this.Header.Equal(&that1.Header) { 3646 return false 3647 } 3648 if !this.LastCommitInfo.Equal(&that1.LastCommitInfo) { 3649 return false 3650 } 3651 if len(this.ByzantineValidators) != len(that1.ByzantineValidators) { 3652 return false 3653 } 3654 for i := range this.ByzantineValidators { 3655 if !this.ByzantineValidators[i].Equal(&that1.ByzantineValidators[i]) { 3656 return false 3657 } 3658 } 3659 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3660 return false 3661 } 3662 return true 3663 } 3664 func (this *RequestCheckTx) Equal(that interface{}) bool { 3665 if that == nil { 3666 return this == nil 3667 } 3668 3669 that1, ok := that.(*RequestCheckTx) 3670 if !ok { 3671 that2, ok := that.(RequestCheckTx) 3672 if ok { 3673 that1 = &that2 3674 } else { 3675 return false 3676 } 3677 } 3678 if that1 == nil { 3679 return this == nil 3680 } else if this == nil { 3681 return false 3682 } 3683 if !bytes.Equal(this.Tx, that1.Tx) { 3684 return false 3685 } 3686 if this.Type != that1.Type { 3687 return false 3688 } 3689 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3690 return false 3691 } 3692 return true 3693 } 3694 func (this *RequestDeliverTx) Equal(that interface{}) bool { 3695 if that == nil { 3696 return this == nil 3697 } 3698 3699 that1, ok := that.(*RequestDeliverTx) 3700 if !ok { 3701 that2, ok := that.(RequestDeliverTx) 3702 if ok { 3703 that1 = &that2 3704 } else { 3705 return false 3706 } 3707 } 3708 if that1 == nil { 3709 return this == nil 3710 } else if this == nil { 3711 return false 3712 } 3713 if !bytes.Equal(this.Tx, that1.Tx) { 3714 return false 3715 } 3716 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3717 return false 3718 } 3719 return true 3720 } 3721 func (this *RequestEndBlock) Equal(that interface{}) bool { 3722 if that == nil { 3723 return this == nil 3724 } 3725 3726 that1, ok := that.(*RequestEndBlock) 3727 if !ok { 3728 that2, ok := that.(RequestEndBlock) 3729 if ok { 3730 that1 = &that2 3731 } else { 3732 return false 3733 } 3734 } 3735 if that1 == nil { 3736 return this == nil 3737 } else if this == nil { 3738 return false 3739 } 3740 if this.Height != that1.Height { 3741 return false 3742 } 3743 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3744 return false 3745 } 3746 return true 3747 } 3748 func (this *RequestCommit) Equal(that interface{}) bool { 3749 if that == nil { 3750 return this == nil 3751 } 3752 3753 that1, ok := that.(*RequestCommit) 3754 if !ok { 3755 that2, ok := that.(RequestCommit) 3756 if ok { 3757 that1 = &that2 3758 } else { 3759 return false 3760 } 3761 } 3762 if that1 == nil { 3763 return this == nil 3764 } else if this == nil { 3765 return false 3766 } 3767 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3768 return false 3769 } 3770 return true 3771 } 3772 func (this *Response) Equal(that interface{}) bool { 3773 if that == nil { 3774 return this == nil 3775 } 3776 3777 that1, ok := that.(*Response) 3778 if !ok { 3779 that2, ok := that.(Response) 3780 if ok { 3781 that1 = &that2 3782 } else { 3783 return false 3784 } 3785 } 3786 if that1 == nil { 3787 return this == nil 3788 } else if this == nil { 3789 return false 3790 } 3791 if that1.Value == nil { 3792 if this.Value != nil { 3793 return false 3794 } 3795 } else if this.Value == nil { 3796 return false 3797 } else if !this.Value.Equal(that1.Value) { 3798 return false 3799 } 3800 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3801 return false 3802 } 3803 return true 3804 } 3805 func (this *Response_Exception) Equal(that interface{}) bool { 3806 if that == nil { 3807 return this == nil 3808 } 3809 3810 that1, ok := that.(*Response_Exception) 3811 if !ok { 3812 that2, ok := that.(Response_Exception) 3813 if ok { 3814 that1 = &that2 3815 } else { 3816 return false 3817 } 3818 } 3819 if that1 == nil { 3820 return this == nil 3821 } else if this == nil { 3822 return false 3823 } 3824 if !this.Exception.Equal(that1.Exception) { 3825 return false 3826 } 3827 return true 3828 } 3829 func (this *Response_Echo) Equal(that interface{}) bool { 3830 if that == nil { 3831 return this == nil 3832 } 3833 3834 that1, ok := that.(*Response_Echo) 3835 if !ok { 3836 that2, ok := that.(Response_Echo) 3837 if ok { 3838 that1 = &that2 3839 } else { 3840 return false 3841 } 3842 } 3843 if that1 == nil { 3844 return this == nil 3845 } else if this == nil { 3846 return false 3847 } 3848 if !this.Echo.Equal(that1.Echo) { 3849 return false 3850 } 3851 return true 3852 } 3853 func (this *Response_Flush) Equal(that interface{}) bool { 3854 if that == nil { 3855 return this == nil 3856 } 3857 3858 that1, ok := that.(*Response_Flush) 3859 if !ok { 3860 that2, ok := that.(Response_Flush) 3861 if ok { 3862 that1 = &that2 3863 } else { 3864 return false 3865 } 3866 } 3867 if that1 == nil { 3868 return this == nil 3869 } else if this == nil { 3870 return false 3871 } 3872 if !this.Flush.Equal(that1.Flush) { 3873 return false 3874 } 3875 return true 3876 } 3877 func (this *Response_Info) Equal(that interface{}) bool { 3878 if that == nil { 3879 return this == nil 3880 } 3881 3882 that1, ok := that.(*Response_Info) 3883 if !ok { 3884 that2, ok := that.(Response_Info) 3885 if ok { 3886 that1 = &that2 3887 } else { 3888 return false 3889 } 3890 } 3891 if that1 == nil { 3892 return this == nil 3893 } else if this == nil { 3894 return false 3895 } 3896 if !this.Info.Equal(that1.Info) { 3897 return false 3898 } 3899 return true 3900 } 3901 func (this *Response_SetOption) Equal(that interface{}) bool { 3902 if that == nil { 3903 return this == nil 3904 } 3905 3906 that1, ok := that.(*Response_SetOption) 3907 if !ok { 3908 that2, ok := that.(Response_SetOption) 3909 if ok { 3910 that1 = &that2 3911 } else { 3912 return false 3913 } 3914 } 3915 if that1 == nil { 3916 return this == nil 3917 } else if this == nil { 3918 return false 3919 } 3920 if !this.SetOption.Equal(that1.SetOption) { 3921 return false 3922 } 3923 return true 3924 } 3925 func (this *Response_InitChain) Equal(that interface{}) bool { 3926 if that == nil { 3927 return this == nil 3928 } 3929 3930 that1, ok := that.(*Response_InitChain) 3931 if !ok { 3932 that2, ok := that.(Response_InitChain) 3933 if ok { 3934 that1 = &that2 3935 } else { 3936 return false 3937 } 3938 } 3939 if that1 == nil { 3940 return this == nil 3941 } else if this == nil { 3942 return false 3943 } 3944 if !this.InitChain.Equal(that1.InitChain) { 3945 return false 3946 } 3947 return true 3948 } 3949 func (this *Response_Query) Equal(that interface{}) bool { 3950 if that == nil { 3951 return this == nil 3952 } 3953 3954 that1, ok := that.(*Response_Query) 3955 if !ok { 3956 that2, ok := that.(Response_Query) 3957 if ok { 3958 that1 = &that2 3959 } else { 3960 return false 3961 } 3962 } 3963 if that1 == nil { 3964 return this == nil 3965 } else if this == nil { 3966 return false 3967 } 3968 if !this.Query.Equal(that1.Query) { 3969 return false 3970 } 3971 return true 3972 } 3973 func (this *Response_BeginBlock) Equal(that interface{}) bool { 3974 if that == nil { 3975 return this == nil 3976 } 3977 3978 that1, ok := that.(*Response_BeginBlock) 3979 if !ok { 3980 that2, ok := that.(Response_BeginBlock) 3981 if ok { 3982 that1 = &that2 3983 } else { 3984 return false 3985 } 3986 } 3987 if that1 == nil { 3988 return this == nil 3989 } else if this == nil { 3990 return false 3991 } 3992 if !this.BeginBlock.Equal(that1.BeginBlock) { 3993 return false 3994 } 3995 return true 3996 } 3997 func (this *Response_CheckTx) Equal(that interface{}) bool { 3998 if that == nil { 3999 return this == nil 4000 } 4001 4002 that1, ok := that.(*Response_CheckTx) 4003 if !ok { 4004 that2, ok := that.(Response_CheckTx) 4005 if ok { 4006 that1 = &that2 4007 } else { 4008 return false 4009 } 4010 } 4011 if that1 == nil { 4012 return this == nil 4013 } else if this == nil { 4014 return false 4015 } 4016 if !this.CheckTx.Equal(that1.CheckTx) { 4017 return false 4018 } 4019 return true 4020 } 4021 func (this *Response_DeliverTx) Equal(that interface{}) bool { 4022 if that == nil { 4023 return this == nil 4024 } 4025 4026 that1, ok := that.(*Response_DeliverTx) 4027 if !ok { 4028 that2, ok := that.(Response_DeliverTx) 4029 if ok { 4030 that1 = &that2 4031 } else { 4032 return false 4033 } 4034 } 4035 if that1 == nil { 4036 return this == nil 4037 } else if this == nil { 4038 return false 4039 } 4040 if !this.DeliverTx.Equal(that1.DeliverTx) { 4041 return false 4042 } 4043 return true 4044 } 4045 func (this *Response_EndBlock) Equal(that interface{}) bool { 4046 if that == nil { 4047 return this == nil 4048 } 4049 4050 that1, ok := that.(*Response_EndBlock) 4051 if !ok { 4052 that2, ok := that.(Response_EndBlock) 4053 if ok { 4054 that1 = &that2 4055 } else { 4056 return false 4057 } 4058 } 4059 if that1 == nil { 4060 return this == nil 4061 } else if this == nil { 4062 return false 4063 } 4064 if !this.EndBlock.Equal(that1.EndBlock) { 4065 return false 4066 } 4067 return true 4068 } 4069 func (this *Response_Commit) Equal(that interface{}) bool { 4070 if that == nil { 4071 return this == nil 4072 } 4073 4074 that1, ok := that.(*Response_Commit) 4075 if !ok { 4076 that2, ok := that.(Response_Commit) 4077 if ok { 4078 that1 = &that2 4079 } else { 4080 return false 4081 } 4082 } 4083 if that1 == nil { 4084 return this == nil 4085 } else if this == nil { 4086 return false 4087 } 4088 if !this.Commit.Equal(that1.Commit) { 4089 return false 4090 } 4091 return true 4092 } 4093 func (this *ResponseException) Equal(that interface{}) bool { 4094 if that == nil { 4095 return this == nil 4096 } 4097 4098 that1, ok := that.(*ResponseException) 4099 if !ok { 4100 that2, ok := that.(ResponseException) 4101 if ok { 4102 that1 = &that2 4103 } else { 4104 return false 4105 } 4106 } 4107 if that1 == nil { 4108 return this == nil 4109 } else if this == nil { 4110 return false 4111 } 4112 if this.Error != that1.Error { 4113 return false 4114 } 4115 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4116 return false 4117 } 4118 return true 4119 } 4120 func (this *ResponseEcho) Equal(that interface{}) bool { 4121 if that == nil { 4122 return this == nil 4123 } 4124 4125 that1, ok := that.(*ResponseEcho) 4126 if !ok { 4127 that2, ok := that.(ResponseEcho) 4128 if ok { 4129 that1 = &that2 4130 } else { 4131 return false 4132 } 4133 } 4134 if that1 == nil { 4135 return this == nil 4136 } else if this == nil { 4137 return false 4138 } 4139 if this.Message != that1.Message { 4140 return false 4141 } 4142 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4143 return false 4144 } 4145 return true 4146 } 4147 func (this *ResponseFlush) Equal(that interface{}) bool { 4148 if that == nil { 4149 return this == nil 4150 } 4151 4152 that1, ok := that.(*ResponseFlush) 4153 if !ok { 4154 that2, ok := that.(ResponseFlush) 4155 if ok { 4156 that1 = &that2 4157 } else { 4158 return false 4159 } 4160 } 4161 if that1 == nil { 4162 return this == nil 4163 } else if this == nil { 4164 return false 4165 } 4166 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4167 return false 4168 } 4169 return true 4170 } 4171 func (this *ResponseInfo) Equal(that interface{}) bool { 4172 if that == nil { 4173 return this == nil 4174 } 4175 4176 that1, ok := that.(*ResponseInfo) 4177 if !ok { 4178 that2, ok := that.(ResponseInfo) 4179 if ok { 4180 that1 = &that2 4181 } else { 4182 return false 4183 } 4184 } 4185 if that1 == nil { 4186 return this == nil 4187 } else if this == nil { 4188 return false 4189 } 4190 if this.Data != that1.Data { 4191 return false 4192 } 4193 if this.Version != that1.Version { 4194 return false 4195 } 4196 if this.AppVersion != that1.AppVersion { 4197 return false 4198 } 4199 if this.LastBlockHeight != that1.LastBlockHeight { 4200 return false 4201 } 4202 if !bytes.Equal(this.LastBlockAppHash, that1.LastBlockAppHash) { 4203 return false 4204 } 4205 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4206 return false 4207 } 4208 return true 4209 } 4210 func (this *ResponseSetOption) Equal(that interface{}) bool { 4211 if that == nil { 4212 return this == nil 4213 } 4214 4215 that1, ok := that.(*ResponseSetOption) 4216 if !ok { 4217 that2, ok := that.(ResponseSetOption) 4218 if ok { 4219 that1 = &that2 4220 } else { 4221 return false 4222 } 4223 } 4224 if that1 == nil { 4225 return this == nil 4226 } else if this == nil { 4227 return false 4228 } 4229 if this.Code != that1.Code { 4230 return false 4231 } 4232 if this.Log != that1.Log { 4233 return false 4234 } 4235 if this.Info != that1.Info { 4236 return false 4237 } 4238 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4239 return false 4240 } 4241 return true 4242 } 4243 func (this *ResponseInitChain) Equal(that interface{}) bool { 4244 if that == nil { 4245 return this == nil 4246 } 4247 4248 that1, ok := that.(*ResponseInitChain) 4249 if !ok { 4250 that2, ok := that.(ResponseInitChain) 4251 if ok { 4252 that1 = &that2 4253 } else { 4254 return false 4255 } 4256 } 4257 if that1 == nil { 4258 return this == nil 4259 } else if this == nil { 4260 return false 4261 } 4262 if !this.ConsensusParams.Equal(that1.ConsensusParams) { 4263 return false 4264 } 4265 if len(this.Validators) != len(that1.Validators) { 4266 return false 4267 } 4268 for i := range this.Validators { 4269 if !this.Validators[i].Equal(&that1.Validators[i]) { 4270 return false 4271 } 4272 } 4273 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4274 return false 4275 } 4276 return true 4277 } 4278 func (this *ResponseQuery) Equal(that interface{}) bool { 4279 if that == nil { 4280 return this == nil 4281 } 4282 4283 that1, ok := that.(*ResponseQuery) 4284 if !ok { 4285 that2, ok := that.(ResponseQuery) 4286 if ok { 4287 that1 = &that2 4288 } else { 4289 return false 4290 } 4291 } 4292 if that1 == nil { 4293 return this == nil 4294 } else if this == nil { 4295 return false 4296 } 4297 if this.Code != that1.Code { 4298 return false 4299 } 4300 if this.Log != that1.Log { 4301 return false 4302 } 4303 if this.Info != that1.Info { 4304 return false 4305 } 4306 if this.Index != that1.Index { 4307 return false 4308 } 4309 if !bytes.Equal(this.Key, that1.Key) { 4310 return false 4311 } 4312 if !bytes.Equal(this.Value, that1.Value) { 4313 return false 4314 } 4315 if !this.Proof.Equal(that1.Proof) { 4316 return false 4317 } 4318 if this.Height != that1.Height { 4319 return false 4320 } 4321 if this.Codespace != that1.Codespace { 4322 return false 4323 } 4324 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4325 return false 4326 } 4327 return true 4328 } 4329 func (this *ResponseBeginBlock) Equal(that interface{}) bool { 4330 if that == nil { 4331 return this == nil 4332 } 4333 4334 that1, ok := that.(*ResponseBeginBlock) 4335 if !ok { 4336 that2, ok := that.(ResponseBeginBlock) 4337 if ok { 4338 that1 = &that2 4339 } else { 4340 return false 4341 } 4342 } 4343 if that1 == nil { 4344 return this == nil 4345 } else if this == nil { 4346 return false 4347 } 4348 if len(this.Events) != len(that1.Events) { 4349 return false 4350 } 4351 for i := range this.Events { 4352 if !this.Events[i].Equal(&that1.Events[i]) { 4353 return false 4354 } 4355 } 4356 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4357 return false 4358 } 4359 return true 4360 } 4361 func (this *ResponseCheckTx) Equal(that interface{}) bool { 4362 if that == nil { 4363 return this == nil 4364 } 4365 4366 that1, ok := that.(*ResponseCheckTx) 4367 if !ok { 4368 that2, ok := that.(ResponseCheckTx) 4369 if ok { 4370 that1 = &that2 4371 } else { 4372 return false 4373 } 4374 } 4375 if that1 == nil { 4376 return this == nil 4377 } else if this == nil { 4378 return false 4379 } 4380 if this.Code != that1.Code { 4381 return false 4382 } 4383 if !bytes.Equal(this.Data, that1.Data) { 4384 return false 4385 } 4386 if this.Log != that1.Log { 4387 return false 4388 } 4389 if this.Info != that1.Info { 4390 return false 4391 } 4392 if this.GasWanted != that1.GasWanted { 4393 return false 4394 } 4395 if this.GasUsed != that1.GasUsed { 4396 return false 4397 } 4398 if len(this.Events) != len(that1.Events) { 4399 return false 4400 } 4401 for i := range this.Events { 4402 if !this.Events[i].Equal(&that1.Events[i]) { 4403 return false 4404 } 4405 } 4406 if this.Codespace != that1.Codespace { 4407 return false 4408 } 4409 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4410 return false 4411 } 4412 return true 4413 } 4414 func (this *ResponseDeliverTx) Equal(that interface{}) bool { 4415 if that == nil { 4416 return this == nil 4417 } 4418 4419 that1, ok := that.(*ResponseDeliverTx) 4420 if !ok { 4421 that2, ok := that.(ResponseDeliverTx) 4422 if ok { 4423 that1 = &that2 4424 } else { 4425 return false 4426 } 4427 } 4428 if that1 == nil { 4429 return this == nil 4430 } else if this == nil { 4431 return false 4432 } 4433 if this.Code != that1.Code { 4434 return false 4435 } 4436 if !bytes.Equal(this.Data, that1.Data) { 4437 return false 4438 } 4439 if this.Log != that1.Log { 4440 return false 4441 } 4442 if this.Info != that1.Info { 4443 return false 4444 } 4445 if this.GasWanted != that1.GasWanted { 4446 return false 4447 } 4448 if this.GasUsed != that1.GasUsed { 4449 return false 4450 } 4451 if len(this.Events) != len(that1.Events) { 4452 return false 4453 } 4454 for i := range this.Events { 4455 if !this.Events[i].Equal(&that1.Events[i]) { 4456 return false 4457 } 4458 } 4459 if this.Codespace != that1.Codespace { 4460 return false 4461 } 4462 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4463 return false 4464 } 4465 return true 4466 } 4467 func (this *ResponseEndBlock) Equal(that interface{}) bool { 4468 if that == nil { 4469 return this == nil 4470 } 4471 4472 that1, ok := that.(*ResponseEndBlock) 4473 if !ok { 4474 that2, ok := that.(ResponseEndBlock) 4475 if ok { 4476 that1 = &that2 4477 } else { 4478 return false 4479 } 4480 } 4481 if that1 == nil { 4482 return this == nil 4483 } else if this == nil { 4484 return false 4485 } 4486 if len(this.ValidatorUpdates) != len(that1.ValidatorUpdates) { 4487 return false 4488 } 4489 for i := range this.ValidatorUpdates { 4490 if !this.ValidatorUpdates[i].Equal(&that1.ValidatorUpdates[i]) { 4491 return false 4492 } 4493 } 4494 if !this.ConsensusParamUpdates.Equal(that1.ConsensusParamUpdates) { 4495 return false 4496 } 4497 if len(this.Events) != len(that1.Events) { 4498 return false 4499 } 4500 for i := range this.Events { 4501 if !this.Events[i].Equal(&that1.Events[i]) { 4502 return false 4503 } 4504 } 4505 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4506 return false 4507 } 4508 return true 4509 } 4510 func (this *ResponseCommit) Equal(that interface{}) bool { 4511 if that == nil { 4512 return this == nil 4513 } 4514 4515 that1, ok := that.(*ResponseCommit) 4516 if !ok { 4517 that2, ok := that.(ResponseCommit) 4518 if ok { 4519 that1 = &that2 4520 } else { 4521 return false 4522 } 4523 } 4524 if that1 == nil { 4525 return this == nil 4526 } else if this == nil { 4527 return false 4528 } 4529 if !bytes.Equal(this.Data, that1.Data) { 4530 return false 4531 } 4532 if this.RetainHeight != that1.RetainHeight { 4533 return false 4534 } 4535 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4536 return false 4537 } 4538 return true 4539 } 4540 func (this *ConsensusParams) Equal(that interface{}) bool { 4541 if that == nil { 4542 return this == nil 4543 } 4544 4545 that1, ok := that.(*ConsensusParams) 4546 if !ok { 4547 that2, ok := that.(ConsensusParams) 4548 if ok { 4549 that1 = &that2 4550 } else { 4551 return false 4552 } 4553 } 4554 if that1 == nil { 4555 return this == nil 4556 } else if this == nil { 4557 return false 4558 } 4559 if !this.Block.Equal(that1.Block) { 4560 return false 4561 } 4562 if !this.Evidence.Equal(that1.Evidence) { 4563 return false 4564 } 4565 if !this.Validator.Equal(that1.Validator) { 4566 return false 4567 } 4568 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4569 return false 4570 } 4571 return true 4572 } 4573 func (this *BlockParams) Equal(that interface{}) bool { 4574 if that == nil { 4575 return this == nil 4576 } 4577 4578 that1, ok := that.(*BlockParams) 4579 if !ok { 4580 that2, ok := that.(BlockParams) 4581 if ok { 4582 that1 = &that2 4583 } else { 4584 return false 4585 } 4586 } 4587 if that1 == nil { 4588 return this == nil 4589 } else if this == nil { 4590 return false 4591 } 4592 if this.MaxBytes != that1.MaxBytes { 4593 return false 4594 } 4595 if this.MaxGas != that1.MaxGas { 4596 return false 4597 } 4598 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4599 return false 4600 } 4601 return true 4602 } 4603 func (this *EvidenceParams) Equal(that interface{}) bool { 4604 if that == nil { 4605 return this == nil 4606 } 4607 4608 that1, ok := that.(*EvidenceParams) 4609 if !ok { 4610 that2, ok := that.(EvidenceParams) 4611 if ok { 4612 that1 = &that2 4613 } else { 4614 return false 4615 } 4616 } 4617 if that1 == nil { 4618 return this == nil 4619 } else if this == nil { 4620 return false 4621 } 4622 if this.MaxAgeNumBlocks != that1.MaxAgeNumBlocks { 4623 return false 4624 } 4625 if this.MaxAgeDuration != that1.MaxAgeDuration { 4626 return false 4627 } 4628 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4629 return false 4630 } 4631 return true 4632 } 4633 func (this *ValidatorParams) Equal(that interface{}) bool { 4634 if that == nil { 4635 return this == nil 4636 } 4637 4638 that1, ok := that.(*ValidatorParams) 4639 if !ok { 4640 that2, ok := that.(ValidatorParams) 4641 if ok { 4642 that1 = &that2 4643 } else { 4644 return false 4645 } 4646 } 4647 if that1 == nil { 4648 return this == nil 4649 } else if this == nil { 4650 return false 4651 } 4652 if len(this.PubKeyTypes) != len(that1.PubKeyTypes) { 4653 return false 4654 } 4655 for i := range this.PubKeyTypes { 4656 if this.PubKeyTypes[i] != that1.PubKeyTypes[i] { 4657 return false 4658 } 4659 } 4660 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4661 return false 4662 } 4663 return true 4664 } 4665 func (this *LastCommitInfo) Equal(that interface{}) bool { 4666 if that == nil { 4667 return this == nil 4668 } 4669 4670 that1, ok := that.(*LastCommitInfo) 4671 if !ok { 4672 that2, ok := that.(LastCommitInfo) 4673 if ok { 4674 that1 = &that2 4675 } else { 4676 return false 4677 } 4678 } 4679 if that1 == nil { 4680 return this == nil 4681 } else if this == nil { 4682 return false 4683 } 4684 if this.Round != that1.Round { 4685 return false 4686 } 4687 if len(this.Votes) != len(that1.Votes) { 4688 return false 4689 } 4690 for i := range this.Votes { 4691 if !this.Votes[i].Equal(&that1.Votes[i]) { 4692 return false 4693 } 4694 } 4695 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4696 return false 4697 } 4698 return true 4699 } 4700 func (this *Event) Equal(that interface{}) bool { 4701 if that == nil { 4702 return this == nil 4703 } 4704 4705 that1, ok := that.(*Event) 4706 if !ok { 4707 that2, ok := that.(Event) 4708 if ok { 4709 that1 = &that2 4710 } else { 4711 return false 4712 } 4713 } 4714 if that1 == nil { 4715 return this == nil 4716 } else if this == nil { 4717 return false 4718 } 4719 if this.Type != that1.Type { 4720 return false 4721 } 4722 if len(this.Attributes) != len(that1.Attributes) { 4723 return false 4724 } 4725 for i := range this.Attributes { 4726 if !this.Attributes[i].Equal(&that1.Attributes[i]) { 4727 return false 4728 } 4729 } 4730 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4731 return false 4732 } 4733 return true 4734 } 4735 func (this *Header) Equal(that interface{}) bool { 4736 if that == nil { 4737 return this == nil 4738 } 4739 4740 that1, ok := that.(*Header) 4741 if !ok { 4742 that2, ok := that.(Header) 4743 if ok { 4744 that1 = &that2 4745 } else { 4746 return false 4747 } 4748 } 4749 if that1 == nil { 4750 return this == nil 4751 } else if this == nil { 4752 return false 4753 } 4754 if !this.Version.Equal(&that1.Version) { 4755 return false 4756 } 4757 if this.ChainID != that1.ChainID { 4758 return false 4759 } 4760 if this.Height != that1.Height { 4761 return false 4762 } 4763 if !this.Time.Equal(that1.Time) { 4764 return false 4765 } 4766 if !this.LastBlockId.Equal(&that1.LastBlockId) { 4767 return false 4768 } 4769 if !bytes.Equal(this.LastCommitHash, that1.LastCommitHash) { 4770 return false 4771 } 4772 if !bytes.Equal(this.DataHash, that1.DataHash) { 4773 return false 4774 } 4775 if !bytes.Equal(this.ValidatorsHash, that1.ValidatorsHash) { 4776 return false 4777 } 4778 if !bytes.Equal(this.NextValidatorsHash, that1.NextValidatorsHash) { 4779 return false 4780 } 4781 if !bytes.Equal(this.ConsensusHash, that1.ConsensusHash) { 4782 return false 4783 } 4784 if !bytes.Equal(this.AppHash, that1.AppHash) { 4785 return false 4786 } 4787 if !bytes.Equal(this.LastResultsHash, that1.LastResultsHash) { 4788 return false 4789 } 4790 if !bytes.Equal(this.EvidenceHash, that1.EvidenceHash) { 4791 return false 4792 } 4793 if !bytes.Equal(this.ProposerAddress, that1.ProposerAddress) { 4794 return false 4795 } 4796 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4797 return false 4798 } 4799 return true 4800 } 4801 func (this *Version) Equal(that interface{}) bool { 4802 if that == nil { 4803 return this == nil 4804 } 4805 4806 that1, ok := that.(*Version) 4807 if !ok { 4808 that2, ok := that.(Version) 4809 if ok { 4810 that1 = &that2 4811 } else { 4812 return false 4813 } 4814 } 4815 if that1 == nil { 4816 return this == nil 4817 } else if this == nil { 4818 return false 4819 } 4820 if this.Block != that1.Block { 4821 return false 4822 } 4823 if this.App != that1.App { 4824 return false 4825 } 4826 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4827 return false 4828 } 4829 return true 4830 } 4831 func (this *BlockID) Equal(that interface{}) bool { 4832 if that == nil { 4833 return this == nil 4834 } 4835 4836 that1, ok := that.(*BlockID) 4837 if !ok { 4838 that2, ok := that.(BlockID) 4839 if ok { 4840 that1 = &that2 4841 } else { 4842 return false 4843 } 4844 } 4845 if that1 == nil { 4846 return this == nil 4847 } else if this == nil { 4848 return false 4849 } 4850 if !bytes.Equal(this.Hash, that1.Hash) { 4851 return false 4852 } 4853 if !this.PartsHeader.Equal(&that1.PartsHeader) { 4854 return false 4855 } 4856 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4857 return false 4858 } 4859 return true 4860 } 4861 func (this *PartSetHeader) Equal(that interface{}) bool { 4862 if that == nil { 4863 return this == nil 4864 } 4865 4866 that1, ok := that.(*PartSetHeader) 4867 if !ok { 4868 that2, ok := that.(PartSetHeader) 4869 if ok { 4870 that1 = &that2 4871 } else { 4872 return false 4873 } 4874 } 4875 if that1 == nil { 4876 return this == nil 4877 } else if this == nil { 4878 return false 4879 } 4880 if this.Total != that1.Total { 4881 return false 4882 } 4883 if !bytes.Equal(this.Hash, that1.Hash) { 4884 return false 4885 } 4886 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4887 return false 4888 } 4889 return true 4890 } 4891 func (this *Validator) Equal(that interface{}) bool { 4892 if that == nil { 4893 return this == nil 4894 } 4895 4896 that1, ok := that.(*Validator) 4897 if !ok { 4898 that2, ok := that.(Validator) 4899 if ok { 4900 that1 = &that2 4901 } else { 4902 return false 4903 } 4904 } 4905 if that1 == nil { 4906 return this == nil 4907 } else if this == nil { 4908 return false 4909 } 4910 if !bytes.Equal(this.Address, that1.Address) { 4911 return false 4912 } 4913 if this.Power != that1.Power { 4914 return false 4915 } 4916 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4917 return false 4918 } 4919 return true 4920 } 4921 func (this *ValidatorUpdate) Equal(that interface{}) bool { 4922 if that == nil { 4923 return this == nil 4924 } 4925 4926 that1, ok := that.(*ValidatorUpdate) 4927 if !ok { 4928 that2, ok := that.(ValidatorUpdate) 4929 if ok { 4930 that1 = &that2 4931 } else { 4932 return false 4933 } 4934 } 4935 if that1 == nil { 4936 return this == nil 4937 } else if this == nil { 4938 return false 4939 } 4940 if !this.PubKey.Equal(&that1.PubKey) { 4941 return false 4942 } 4943 if this.Power != that1.Power { 4944 return false 4945 } 4946 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4947 return false 4948 } 4949 return true 4950 } 4951 func (this *VoteInfo) Equal(that interface{}) bool { 4952 if that == nil { 4953 return this == nil 4954 } 4955 4956 that1, ok := that.(*VoteInfo) 4957 if !ok { 4958 that2, ok := that.(VoteInfo) 4959 if ok { 4960 that1 = &that2 4961 } else { 4962 return false 4963 } 4964 } 4965 if that1 == nil { 4966 return this == nil 4967 } else if this == nil { 4968 return false 4969 } 4970 if !this.Validator.Equal(&that1.Validator) { 4971 return false 4972 } 4973 if this.SignedLastBlock != that1.SignedLastBlock { 4974 return false 4975 } 4976 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4977 return false 4978 } 4979 return true 4980 } 4981 func (this *PubKey) Equal(that interface{}) bool { 4982 if that == nil { 4983 return this == nil 4984 } 4985 4986 that1, ok := that.(*PubKey) 4987 if !ok { 4988 that2, ok := that.(PubKey) 4989 if ok { 4990 that1 = &that2 4991 } else { 4992 return false 4993 } 4994 } 4995 if that1 == nil { 4996 return this == nil 4997 } else if this == nil { 4998 return false 4999 } 5000 if this.Type != that1.Type { 5001 return false 5002 } 5003 if !bytes.Equal(this.Data, that1.Data) { 5004 return false 5005 } 5006 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 5007 return false 5008 } 5009 return true 5010 } 5011 func (this *Evidence) Equal(that interface{}) bool { 5012 if that == nil { 5013 return this == nil 5014 } 5015 5016 that1, ok := that.(*Evidence) 5017 if !ok { 5018 that2, ok := that.(Evidence) 5019 if ok { 5020 that1 = &that2 5021 } else { 5022 return false 5023 } 5024 } 5025 if that1 == nil { 5026 return this == nil 5027 } else if this == nil { 5028 return false 5029 } 5030 if this.Type != that1.Type { 5031 return false 5032 } 5033 if !this.Validator.Equal(&that1.Validator) { 5034 return false 5035 } 5036 if this.Height != that1.Height { 5037 return false 5038 } 5039 if !this.Time.Equal(that1.Time) { 5040 return false 5041 } 5042 if this.TotalVotingPower != that1.TotalVotingPower { 5043 return false 5044 } 5045 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 5046 return false 5047 } 5048 return true 5049 } 5050 5051 // Reference imports to suppress errors if they are not otherwise used. 5052 var _ context.Context 5053 var _ grpc.ClientConn 5054 5055 // This is a compile-time assertion to ensure that this generated file 5056 // is compatible with the grpc package it is being compiled against. 5057 const _ = grpc.SupportPackageIsVersion4 5058 5059 // ABCIApplicationClient is the client API for ABCIApplication service. 5060 // 5061 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 5062 type ABCIApplicationClient interface { 5063 Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) 5064 Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) 5065 Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) 5066 SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) 5067 DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) 5068 CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) 5069 Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) 5070 Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) 5071 InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) 5072 BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) 5073 EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) 5074 } 5075 5076 type aBCIApplicationClient struct { 5077 cc *grpc.ClientConn 5078 } 5079 5080 func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient { 5081 return &aBCIApplicationClient{cc} 5082 } 5083 5084 func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) { 5085 out := new(ResponseEcho) 5086 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Echo", in, out, opts...) 5087 if err != nil { 5088 return nil, err 5089 } 5090 return out, nil 5091 } 5092 5093 func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) { 5094 out := new(ResponseFlush) 5095 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Flush", in, out, opts...) 5096 if err != nil { 5097 return nil, err 5098 } 5099 return out, nil 5100 } 5101 5102 func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) { 5103 out := new(ResponseInfo) 5104 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Info", in, out, opts...) 5105 if err != nil { 5106 return nil, err 5107 } 5108 return out, nil 5109 } 5110 5111 func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) { 5112 out := new(ResponseSetOption) 5113 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/SetOption", in, out, opts...) 5114 if err != nil { 5115 return nil, err 5116 } 5117 return out, nil 5118 } 5119 5120 func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) { 5121 out := new(ResponseDeliverTx) 5122 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/DeliverTx", in, out, opts...) 5123 if err != nil { 5124 return nil, err 5125 } 5126 return out, nil 5127 } 5128 5129 func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) { 5130 out := new(ResponseCheckTx) 5131 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/CheckTx", in, out, opts...) 5132 if err != nil { 5133 return nil, err 5134 } 5135 return out, nil 5136 } 5137 5138 func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) { 5139 out := new(ResponseQuery) 5140 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Query", in, out, opts...) 5141 if err != nil { 5142 return nil, err 5143 } 5144 return out, nil 5145 } 5146 5147 func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) { 5148 out := new(ResponseCommit) 5149 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Commit", in, out, opts...) 5150 if err != nil { 5151 return nil, err 5152 } 5153 return out, nil 5154 } 5155 5156 func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) { 5157 out := new(ResponseInitChain) 5158 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/InitChain", in, out, opts...) 5159 if err != nil { 5160 return nil, err 5161 } 5162 return out, nil 5163 } 5164 5165 func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) { 5166 out := new(ResponseBeginBlock) 5167 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/BeginBlock", in, out, opts...) 5168 if err != nil { 5169 return nil, err 5170 } 5171 return out, nil 5172 } 5173 5174 func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) { 5175 out := new(ResponseEndBlock) 5176 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/EndBlock", in, out, opts...) 5177 if err != nil { 5178 return nil, err 5179 } 5180 return out, nil 5181 } 5182 5183 // ABCIApplicationServer is the server API for ABCIApplication service. 5184 type ABCIApplicationServer interface { 5185 Echo(context.Context, *RequestEcho) (*ResponseEcho, error) 5186 Flush(context.Context, *RequestFlush) (*ResponseFlush, error) 5187 Info(context.Context, *RequestInfo) (*ResponseInfo, error) 5188 SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error) 5189 DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error) 5190 CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error) 5191 Query(context.Context, *RequestQuery) (*ResponseQuery, error) 5192 Commit(context.Context, *RequestCommit) (*ResponseCommit, error) 5193 InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error) 5194 BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error) 5195 EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error) 5196 } 5197 5198 // UnimplementedABCIApplicationServer can be embedded to have forward compatible implementations. 5199 type UnimplementedABCIApplicationServer struct { 5200 } 5201 5202 func (*UnimplementedABCIApplicationServer) Echo(ctx context.Context, req *RequestEcho) (*ResponseEcho, error) { 5203 return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") 5204 } 5205 func (*UnimplementedABCIApplicationServer) Flush(ctx context.Context, req *RequestFlush) (*ResponseFlush, error) { 5206 return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") 5207 } 5208 func (*UnimplementedABCIApplicationServer) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error) { 5209 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") 5210 } 5211 func (*UnimplementedABCIApplicationServer) SetOption(ctx context.Context, req *RequestSetOption) (*ResponseSetOption, error) { 5212 return nil, status.Errorf(codes.Unimplemented, "method SetOption not implemented") 5213 } 5214 func (*UnimplementedABCIApplicationServer) DeliverTx(ctx context.Context, req *RequestDeliverTx) (*ResponseDeliverTx, error) { 5215 return nil, status.Errorf(codes.Unimplemented, "method DeliverTx not implemented") 5216 } 5217 func (*UnimplementedABCIApplicationServer) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error) { 5218 return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented") 5219 } 5220 func (*UnimplementedABCIApplicationServer) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error) { 5221 return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") 5222 } 5223 func (*UnimplementedABCIApplicationServer) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error) { 5224 return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") 5225 } 5226 func (*UnimplementedABCIApplicationServer) InitChain(ctx context.Context, req *RequestInitChain) (*ResponseInitChain, error) { 5227 return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented") 5228 } 5229 func (*UnimplementedABCIApplicationServer) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*ResponseBeginBlock, error) { 5230 return nil, status.Errorf(codes.Unimplemented, "method BeginBlock not implemented") 5231 } 5232 func (*UnimplementedABCIApplicationServer) EndBlock(ctx context.Context, req *RequestEndBlock) (*ResponseEndBlock, error) { 5233 return nil, status.Errorf(codes.Unimplemented, "method EndBlock not implemented") 5234 } 5235 5236 func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) { 5237 s.RegisterService(&_ABCIApplication_serviceDesc, srv) 5238 } 5239 5240 func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5241 in := new(RequestEcho) 5242 if err := dec(in); err != nil { 5243 return nil, err 5244 } 5245 if interceptor == nil { 5246 return srv.(ABCIApplicationServer).Echo(ctx, in) 5247 } 5248 info := &grpc.UnaryServerInfo{ 5249 Server: srv, 5250 FullMethod: "/tendermint.abci.types.ABCIApplication/Echo", 5251 } 5252 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5253 return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho)) 5254 } 5255 return interceptor(ctx, in, info, handler) 5256 } 5257 5258 func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5259 in := new(RequestFlush) 5260 if err := dec(in); err != nil { 5261 return nil, err 5262 } 5263 if interceptor == nil { 5264 return srv.(ABCIApplicationServer).Flush(ctx, in) 5265 } 5266 info := &grpc.UnaryServerInfo{ 5267 Server: srv, 5268 FullMethod: "/tendermint.abci.types.ABCIApplication/Flush", 5269 } 5270 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5271 return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush)) 5272 } 5273 return interceptor(ctx, in, info, handler) 5274 } 5275 5276 func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5277 in := new(RequestInfo) 5278 if err := dec(in); err != nil { 5279 return nil, err 5280 } 5281 if interceptor == nil { 5282 return srv.(ABCIApplicationServer).Info(ctx, in) 5283 } 5284 info := &grpc.UnaryServerInfo{ 5285 Server: srv, 5286 FullMethod: "/tendermint.abci.types.ABCIApplication/Info", 5287 } 5288 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5289 return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo)) 5290 } 5291 return interceptor(ctx, in, info, handler) 5292 } 5293 5294 func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5295 in := new(RequestSetOption) 5296 if err := dec(in); err != nil { 5297 return nil, err 5298 } 5299 if interceptor == nil { 5300 return srv.(ABCIApplicationServer).SetOption(ctx, in) 5301 } 5302 info := &grpc.UnaryServerInfo{ 5303 Server: srv, 5304 FullMethod: "/tendermint.abci.types.ABCIApplication/SetOption", 5305 } 5306 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5307 return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption)) 5308 } 5309 return interceptor(ctx, in, info, handler) 5310 } 5311 5312 func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5313 in := new(RequestDeliverTx) 5314 if err := dec(in); err != nil { 5315 return nil, err 5316 } 5317 if interceptor == nil { 5318 return srv.(ABCIApplicationServer).DeliverTx(ctx, in) 5319 } 5320 info := &grpc.UnaryServerInfo{ 5321 Server: srv, 5322 FullMethod: "/tendermint.abci.types.ABCIApplication/DeliverTx", 5323 } 5324 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5325 return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx)) 5326 } 5327 return interceptor(ctx, in, info, handler) 5328 } 5329 5330 func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5331 in := new(RequestCheckTx) 5332 if err := dec(in); err != nil { 5333 return nil, err 5334 } 5335 if interceptor == nil { 5336 return srv.(ABCIApplicationServer).CheckTx(ctx, in) 5337 } 5338 info := &grpc.UnaryServerInfo{ 5339 Server: srv, 5340 FullMethod: "/tendermint.abci.types.ABCIApplication/CheckTx", 5341 } 5342 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5343 return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx)) 5344 } 5345 return interceptor(ctx, in, info, handler) 5346 } 5347 5348 func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5349 in := new(RequestQuery) 5350 if err := dec(in); err != nil { 5351 return nil, err 5352 } 5353 if interceptor == nil { 5354 return srv.(ABCIApplicationServer).Query(ctx, in) 5355 } 5356 info := &grpc.UnaryServerInfo{ 5357 Server: srv, 5358 FullMethod: "/tendermint.abci.types.ABCIApplication/Query", 5359 } 5360 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5361 return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery)) 5362 } 5363 return interceptor(ctx, in, info, handler) 5364 } 5365 5366 func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5367 in := new(RequestCommit) 5368 if err := dec(in); err != nil { 5369 return nil, err 5370 } 5371 if interceptor == nil { 5372 return srv.(ABCIApplicationServer).Commit(ctx, in) 5373 } 5374 info := &grpc.UnaryServerInfo{ 5375 Server: srv, 5376 FullMethod: "/tendermint.abci.types.ABCIApplication/Commit", 5377 } 5378 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5379 return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit)) 5380 } 5381 return interceptor(ctx, in, info, handler) 5382 } 5383 5384 func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5385 in := new(RequestInitChain) 5386 if err := dec(in); err != nil { 5387 return nil, err 5388 } 5389 if interceptor == nil { 5390 return srv.(ABCIApplicationServer).InitChain(ctx, in) 5391 } 5392 info := &grpc.UnaryServerInfo{ 5393 Server: srv, 5394 FullMethod: "/tendermint.abci.types.ABCIApplication/InitChain", 5395 } 5396 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5397 return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain)) 5398 } 5399 return interceptor(ctx, in, info, handler) 5400 } 5401 5402 func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5403 in := new(RequestBeginBlock) 5404 if err := dec(in); err != nil { 5405 return nil, err 5406 } 5407 if interceptor == nil { 5408 return srv.(ABCIApplicationServer).BeginBlock(ctx, in) 5409 } 5410 info := &grpc.UnaryServerInfo{ 5411 Server: srv, 5412 FullMethod: "/tendermint.abci.types.ABCIApplication/BeginBlock", 5413 } 5414 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5415 return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock)) 5416 } 5417 return interceptor(ctx, in, info, handler) 5418 } 5419 5420 func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5421 in := new(RequestEndBlock) 5422 if err := dec(in); err != nil { 5423 return nil, err 5424 } 5425 if interceptor == nil { 5426 return srv.(ABCIApplicationServer).EndBlock(ctx, in) 5427 } 5428 info := &grpc.UnaryServerInfo{ 5429 Server: srv, 5430 FullMethod: "/tendermint.abci.types.ABCIApplication/EndBlock", 5431 } 5432 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5433 return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock)) 5434 } 5435 return interceptor(ctx, in, info, handler) 5436 } 5437 5438 var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ 5439 ServiceName: "tendermint.abci.types.ABCIApplication", 5440 HandlerType: (*ABCIApplicationServer)(nil), 5441 Methods: []grpc.MethodDesc{ 5442 { 5443 MethodName: "Echo", 5444 Handler: _ABCIApplication_Echo_Handler, 5445 }, 5446 { 5447 MethodName: "Flush", 5448 Handler: _ABCIApplication_Flush_Handler, 5449 }, 5450 { 5451 MethodName: "Info", 5452 Handler: _ABCIApplication_Info_Handler, 5453 }, 5454 { 5455 MethodName: "SetOption", 5456 Handler: _ABCIApplication_SetOption_Handler, 5457 }, 5458 { 5459 MethodName: "DeliverTx", 5460 Handler: _ABCIApplication_DeliverTx_Handler, 5461 }, 5462 { 5463 MethodName: "CheckTx", 5464 Handler: _ABCIApplication_CheckTx_Handler, 5465 }, 5466 { 5467 MethodName: "Query", 5468 Handler: _ABCIApplication_Query_Handler, 5469 }, 5470 { 5471 MethodName: "Commit", 5472 Handler: _ABCIApplication_Commit_Handler, 5473 }, 5474 { 5475 MethodName: "InitChain", 5476 Handler: _ABCIApplication_InitChain_Handler, 5477 }, 5478 { 5479 MethodName: "BeginBlock", 5480 Handler: _ABCIApplication_BeginBlock_Handler, 5481 }, 5482 { 5483 MethodName: "EndBlock", 5484 Handler: _ABCIApplication_EndBlock_Handler, 5485 }, 5486 }, 5487 Streams: []grpc.StreamDesc{}, 5488 Metadata: "abci/types/types.proto", 5489 } 5490 5491 func (m *Request) Marshal() (dAtA []byte, err error) { 5492 size := m.Size() 5493 dAtA = make([]byte, size) 5494 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5495 if err != nil { 5496 return nil, err 5497 } 5498 return dAtA[:n], nil 5499 } 5500 5501 func (m *Request) MarshalTo(dAtA []byte) (int, error) { 5502 size := m.Size() 5503 return m.MarshalToSizedBuffer(dAtA[:size]) 5504 } 5505 5506 func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5507 i := len(dAtA) 5508 _ = i 5509 var l int 5510 _ = l 5511 if m.XXX_unrecognized != nil { 5512 i -= len(m.XXX_unrecognized) 5513 copy(dAtA[i:], m.XXX_unrecognized) 5514 } 5515 if m.Value != nil { 5516 { 5517 size := m.Value.Size() 5518 i -= size 5519 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 5520 return 0, err 5521 } 5522 } 5523 } 5524 return len(dAtA) - i, nil 5525 } 5526 5527 func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) { 5528 size := m.Size() 5529 return m.MarshalToSizedBuffer(dAtA[:size]) 5530 } 5531 5532 func (m *Request_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5533 i := len(dAtA) 5534 if m.Echo != nil { 5535 { 5536 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 5537 if err != nil { 5538 return 0, err 5539 } 5540 i -= size 5541 i = encodeVarintTypes(dAtA, i, uint64(size)) 5542 } 5543 i-- 5544 dAtA[i] = 0x12 5545 } 5546 return len(dAtA) - i, nil 5547 } 5548 func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) { 5549 size := m.Size() 5550 return m.MarshalToSizedBuffer(dAtA[:size]) 5551 } 5552 5553 func (m *Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5554 i := len(dAtA) 5555 if m.Flush != nil { 5556 { 5557 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 5558 if err != nil { 5559 return 0, err 5560 } 5561 i -= size 5562 i = encodeVarintTypes(dAtA, i, uint64(size)) 5563 } 5564 i-- 5565 dAtA[i] = 0x1a 5566 } 5567 return len(dAtA) - i, nil 5568 } 5569 func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) { 5570 size := m.Size() 5571 return m.MarshalToSizedBuffer(dAtA[:size]) 5572 } 5573 5574 func (m *Request_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5575 i := len(dAtA) 5576 if m.Info != nil { 5577 { 5578 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 5579 if err != nil { 5580 return 0, err 5581 } 5582 i -= size 5583 i = encodeVarintTypes(dAtA, i, uint64(size)) 5584 } 5585 i-- 5586 dAtA[i] = 0x22 5587 } 5588 return len(dAtA) - i, nil 5589 } 5590 func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) { 5591 size := m.Size() 5592 return m.MarshalToSizedBuffer(dAtA[:size]) 5593 } 5594 5595 func (m *Request_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5596 i := len(dAtA) 5597 if m.SetOption != nil { 5598 { 5599 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 5600 if err != nil { 5601 return 0, err 5602 } 5603 i -= size 5604 i = encodeVarintTypes(dAtA, i, uint64(size)) 5605 } 5606 i-- 5607 dAtA[i] = 0x2a 5608 } 5609 return len(dAtA) - i, nil 5610 } 5611 func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) { 5612 size := m.Size() 5613 return m.MarshalToSizedBuffer(dAtA[:size]) 5614 } 5615 5616 func (m *Request_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5617 i := len(dAtA) 5618 if m.InitChain != nil { 5619 { 5620 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 5621 if err != nil { 5622 return 0, err 5623 } 5624 i -= size 5625 i = encodeVarintTypes(dAtA, i, uint64(size)) 5626 } 5627 i-- 5628 dAtA[i] = 0x32 5629 } 5630 return len(dAtA) - i, nil 5631 } 5632 func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) { 5633 size := m.Size() 5634 return m.MarshalToSizedBuffer(dAtA[:size]) 5635 } 5636 5637 func (m *Request_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5638 i := len(dAtA) 5639 if m.Query != nil { 5640 { 5641 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 5642 if err != nil { 5643 return 0, err 5644 } 5645 i -= size 5646 i = encodeVarintTypes(dAtA, i, uint64(size)) 5647 } 5648 i-- 5649 dAtA[i] = 0x3a 5650 } 5651 return len(dAtA) - i, nil 5652 } 5653 func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 5654 size := m.Size() 5655 return m.MarshalToSizedBuffer(dAtA[:size]) 5656 } 5657 5658 func (m *Request_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5659 i := len(dAtA) 5660 if m.BeginBlock != nil { 5661 { 5662 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 5663 if err != nil { 5664 return 0, err 5665 } 5666 i -= size 5667 i = encodeVarintTypes(dAtA, i, uint64(size)) 5668 } 5669 i-- 5670 dAtA[i] = 0x42 5671 } 5672 return len(dAtA) - i, nil 5673 } 5674 func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) { 5675 size := m.Size() 5676 return m.MarshalToSizedBuffer(dAtA[:size]) 5677 } 5678 5679 func (m *Request_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5680 i := len(dAtA) 5681 if m.CheckTx != nil { 5682 { 5683 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 5684 if err != nil { 5685 return 0, err 5686 } 5687 i -= size 5688 i = encodeVarintTypes(dAtA, i, uint64(size)) 5689 } 5690 i-- 5691 dAtA[i] = 0x4a 5692 } 5693 return len(dAtA) - i, nil 5694 } 5695 func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) { 5696 size := m.Size() 5697 return m.MarshalToSizedBuffer(dAtA[:size]) 5698 } 5699 5700 func (m *Request_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5701 i := len(dAtA) 5702 if m.EndBlock != nil { 5703 { 5704 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 5705 if err != nil { 5706 return 0, err 5707 } 5708 i -= size 5709 i = encodeVarintTypes(dAtA, i, uint64(size)) 5710 } 5711 i-- 5712 dAtA[i] = 0x5a 5713 } 5714 return len(dAtA) - i, nil 5715 } 5716 func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) { 5717 size := m.Size() 5718 return m.MarshalToSizedBuffer(dAtA[:size]) 5719 } 5720 5721 func (m *Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5722 i := len(dAtA) 5723 if m.Commit != nil { 5724 { 5725 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 5726 if err != nil { 5727 return 0, err 5728 } 5729 i -= size 5730 i = encodeVarintTypes(dAtA, i, uint64(size)) 5731 } 5732 i-- 5733 dAtA[i] = 0x62 5734 } 5735 return len(dAtA) - i, nil 5736 } 5737 func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 5738 size := m.Size() 5739 return m.MarshalToSizedBuffer(dAtA[:size]) 5740 } 5741 5742 func (m *Request_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5743 i := len(dAtA) 5744 if m.DeliverTx != nil { 5745 { 5746 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 5747 if err != nil { 5748 return 0, err 5749 } 5750 i -= size 5751 i = encodeVarintTypes(dAtA, i, uint64(size)) 5752 } 5753 i-- 5754 dAtA[i] = 0x1 5755 i-- 5756 dAtA[i] = 0x9a 5757 } 5758 return len(dAtA) - i, nil 5759 } 5760 func (m *RequestEcho) Marshal() (dAtA []byte, err error) { 5761 size := m.Size() 5762 dAtA = make([]byte, size) 5763 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5764 if err != nil { 5765 return nil, err 5766 } 5767 return dAtA[:n], nil 5768 } 5769 5770 func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) { 5771 size := m.Size() 5772 return m.MarshalToSizedBuffer(dAtA[:size]) 5773 } 5774 5775 func (m *RequestEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5776 i := len(dAtA) 5777 _ = i 5778 var l int 5779 _ = l 5780 if m.XXX_unrecognized != nil { 5781 i -= len(m.XXX_unrecognized) 5782 copy(dAtA[i:], m.XXX_unrecognized) 5783 } 5784 if len(m.Message) > 0 { 5785 i -= len(m.Message) 5786 copy(dAtA[i:], m.Message) 5787 i = encodeVarintTypes(dAtA, i, uint64(len(m.Message))) 5788 i-- 5789 dAtA[i] = 0xa 5790 } 5791 return len(dAtA) - i, nil 5792 } 5793 5794 func (m *RequestFlush) Marshal() (dAtA []byte, err error) { 5795 size := m.Size() 5796 dAtA = make([]byte, size) 5797 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5798 if err != nil { 5799 return nil, err 5800 } 5801 return dAtA[:n], nil 5802 } 5803 5804 func (m *RequestFlush) MarshalTo(dAtA []byte) (int, error) { 5805 size := m.Size() 5806 return m.MarshalToSizedBuffer(dAtA[:size]) 5807 } 5808 5809 func (m *RequestFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5810 i := len(dAtA) 5811 _ = i 5812 var l int 5813 _ = l 5814 if m.XXX_unrecognized != nil { 5815 i -= len(m.XXX_unrecognized) 5816 copy(dAtA[i:], m.XXX_unrecognized) 5817 } 5818 return len(dAtA) - i, nil 5819 } 5820 5821 func (m *RequestInfo) Marshal() (dAtA []byte, err error) { 5822 size := m.Size() 5823 dAtA = make([]byte, size) 5824 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5825 if err != nil { 5826 return nil, err 5827 } 5828 return dAtA[:n], nil 5829 } 5830 5831 func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) { 5832 size := m.Size() 5833 return m.MarshalToSizedBuffer(dAtA[:size]) 5834 } 5835 5836 func (m *RequestInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5837 i := len(dAtA) 5838 _ = i 5839 var l int 5840 _ = l 5841 if m.XXX_unrecognized != nil { 5842 i -= len(m.XXX_unrecognized) 5843 copy(dAtA[i:], m.XXX_unrecognized) 5844 } 5845 if m.P2PVersion != 0 { 5846 i = encodeVarintTypes(dAtA, i, uint64(m.P2PVersion)) 5847 i-- 5848 dAtA[i] = 0x18 5849 } 5850 if m.BlockVersion != 0 { 5851 i = encodeVarintTypes(dAtA, i, uint64(m.BlockVersion)) 5852 i-- 5853 dAtA[i] = 0x10 5854 } 5855 if len(m.Version) > 0 { 5856 i -= len(m.Version) 5857 copy(dAtA[i:], m.Version) 5858 i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) 5859 i-- 5860 dAtA[i] = 0xa 5861 } 5862 return len(dAtA) - i, nil 5863 } 5864 5865 func (m *RequestSetOption) Marshal() (dAtA []byte, err error) { 5866 size := m.Size() 5867 dAtA = make([]byte, size) 5868 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5869 if err != nil { 5870 return nil, err 5871 } 5872 return dAtA[:n], nil 5873 } 5874 5875 func (m *RequestSetOption) MarshalTo(dAtA []byte) (int, error) { 5876 size := m.Size() 5877 return m.MarshalToSizedBuffer(dAtA[:size]) 5878 } 5879 5880 func (m *RequestSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5881 i := len(dAtA) 5882 _ = i 5883 var l int 5884 _ = l 5885 if m.XXX_unrecognized != nil { 5886 i -= len(m.XXX_unrecognized) 5887 copy(dAtA[i:], m.XXX_unrecognized) 5888 } 5889 if len(m.Value) > 0 { 5890 i -= len(m.Value) 5891 copy(dAtA[i:], m.Value) 5892 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 5893 i-- 5894 dAtA[i] = 0x12 5895 } 5896 if len(m.Key) > 0 { 5897 i -= len(m.Key) 5898 copy(dAtA[i:], m.Key) 5899 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 5900 i-- 5901 dAtA[i] = 0xa 5902 } 5903 return len(dAtA) - i, nil 5904 } 5905 5906 func (m *RequestInitChain) Marshal() (dAtA []byte, err error) { 5907 size := m.Size() 5908 dAtA = make([]byte, size) 5909 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5910 if err != nil { 5911 return nil, err 5912 } 5913 return dAtA[:n], nil 5914 } 5915 5916 func (m *RequestInitChain) MarshalTo(dAtA []byte) (int, error) { 5917 size := m.Size() 5918 return m.MarshalToSizedBuffer(dAtA[:size]) 5919 } 5920 5921 func (m *RequestInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5922 i := len(dAtA) 5923 _ = i 5924 var l int 5925 _ = l 5926 if m.XXX_unrecognized != nil { 5927 i -= len(m.XXX_unrecognized) 5928 copy(dAtA[i:], m.XXX_unrecognized) 5929 } 5930 if len(m.AppStateBytes) > 0 { 5931 i -= len(m.AppStateBytes) 5932 copy(dAtA[i:], m.AppStateBytes) 5933 i = encodeVarintTypes(dAtA, i, uint64(len(m.AppStateBytes))) 5934 i-- 5935 dAtA[i] = 0x2a 5936 } 5937 if len(m.Validators) > 0 { 5938 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 5939 { 5940 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5941 if err != nil { 5942 return 0, err 5943 } 5944 i -= size 5945 i = encodeVarintTypes(dAtA, i, uint64(size)) 5946 } 5947 i-- 5948 dAtA[i] = 0x22 5949 } 5950 } 5951 if m.ConsensusParams != nil { 5952 { 5953 size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) 5954 if err != nil { 5955 return 0, err 5956 } 5957 i -= size 5958 i = encodeVarintTypes(dAtA, i, uint64(size)) 5959 } 5960 i-- 5961 dAtA[i] = 0x1a 5962 } 5963 if len(m.ChainId) > 0 { 5964 i -= len(m.ChainId) 5965 copy(dAtA[i:], m.ChainId) 5966 i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId))) 5967 i-- 5968 dAtA[i] = 0x12 5969 } 5970 n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 5971 if err13 != nil { 5972 return 0, err13 5973 } 5974 i -= n13 5975 i = encodeVarintTypes(dAtA, i, uint64(n13)) 5976 i-- 5977 dAtA[i] = 0xa 5978 return len(dAtA) - i, nil 5979 } 5980 5981 func (m *RequestQuery) Marshal() (dAtA []byte, err error) { 5982 size := m.Size() 5983 dAtA = make([]byte, size) 5984 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5985 if err != nil { 5986 return nil, err 5987 } 5988 return dAtA[:n], nil 5989 } 5990 5991 func (m *RequestQuery) MarshalTo(dAtA []byte) (int, error) { 5992 size := m.Size() 5993 return m.MarshalToSizedBuffer(dAtA[:size]) 5994 } 5995 5996 func (m *RequestQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5997 i := len(dAtA) 5998 _ = i 5999 var l int 6000 _ = l 6001 if m.XXX_unrecognized != nil { 6002 i -= len(m.XXX_unrecognized) 6003 copy(dAtA[i:], m.XXX_unrecognized) 6004 } 6005 if m.Prove { 6006 i-- 6007 if m.Prove { 6008 dAtA[i] = 1 6009 } else { 6010 dAtA[i] = 0 6011 } 6012 i-- 6013 dAtA[i] = 0x20 6014 } 6015 if m.Height != 0 { 6016 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6017 i-- 6018 dAtA[i] = 0x18 6019 } 6020 if len(m.Path) > 0 { 6021 i -= len(m.Path) 6022 copy(dAtA[i:], m.Path) 6023 i = encodeVarintTypes(dAtA, i, uint64(len(m.Path))) 6024 i-- 6025 dAtA[i] = 0x12 6026 } 6027 if len(m.Data) > 0 { 6028 i -= len(m.Data) 6029 copy(dAtA[i:], m.Data) 6030 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 6031 i-- 6032 dAtA[i] = 0xa 6033 } 6034 return len(dAtA) - i, nil 6035 } 6036 6037 func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) { 6038 size := m.Size() 6039 dAtA = make([]byte, size) 6040 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6041 if err != nil { 6042 return nil, err 6043 } 6044 return dAtA[:n], nil 6045 } 6046 6047 func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) { 6048 size := m.Size() 6049 return m.MarshalToSizedBuffer(dAtA[:size]) 6050 } 6051 6052 func (m *RequestBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6053 i := len(dAtA) 6054 _ = i 6055 var l int 6056 _ = l 6057 if m.XXX_unrecognized != nil { 6058 i -= len(m.XXX_unrecognized) 6059 copy(dAtA[i:], m.XXX_unrecognized) 6060 } 6061 if len(m.ByzantineValidators) > 0 { 6062 for iNdEx := len(m.ByzantineValidators) - 1; iNdEx >= 0; iNdEx-- { 6063 { 6064 size, err := m.ByzantineValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6065 if err != nil { 6066 return 0, err 6067 } 6068 i -= size 6069 i = encodeVarintTypes(dAtA, i, uint64(size)) 6070 } 6071 i-- 6072 dAtA[i] = 0x22 6073 } 6074 } 6075 { 6076 size, err := m.LastCommitInfo.MarshalToSizedBuffer(dAtA[:i]) 6077 if err != nil { 6078 return 0, err 6079 } 6080 i -= size 6081 i = encodeVarintTypes(dAtA, i, uint64(size)) 6082 } 6083 i-- 6084 dAtA[i] = 0x1a 6085 { 6086 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) 6087 if err != nil { 6088 return 0, err 6089 } 6090 i -= size 6091 i = encodeVarintTypes(dAtA, i, uint64(size)) 6092 } 6093 i-- 6094 dAtA[i] = 0x12 6095 if len(m.Hash) > 0 { 6096 i -= len(m.Hash) 6097 copy(dAtA[i:], m.Hash) 6098 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 6099 i-- 6100 dAtA[i] = 0xa 6101 } 6102 return len(dAtA) - i, nil 6103 } 6104 6105 func (m *RequestCheckTx) Marshal() (dAtA []byte, err error) { 6106 size := m.Size() 6107 dAtA = make([]byte, size) 6108 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6109 if err != nil { 6110 return nil, err 6111 } 6112 return dAtA[:n], nil 6113 } 6114 6115 func (m *RequestCheckTx) MarshalTo(dAtA []byte) (int, error) { 6116 size := m.Size() 6117 return m.MarshalToSizedBuffer(dAtA[:size]) 6118 } 6119 6120 func (m *RequestCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6121 i := len(dAtA) 6122 _ = i 6123 var l int 6124 _ = l 6125 if m.XXX_unrecognized != nil { 6126 i -= len(m.XXX_unrecognized) 6127 copy(dAtA[i:], m.XXX_unrecognized) 6128 } 6129 if m.Type != 0 { 6130 i = encodeVarintTypes(dAtA, i, uint64(m.Type)) 6131 i-- 6132 dAtA[i] = 0x10 6133 } 6134 if len(m.Tx) > 0 { 6135 i -= len(m.Tx) 6136 copy(dAtA[i:], m.Tx) 6137 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 6138 i-- 6139 dAtA[i] = 0xa 6140 } 6141 return len(dAtA) - i, nil 6142 } 6143 6144 func (m *RequestDeliverTx) Marshal() (dAtA []byte, err error) { 6145 size := m.Size() 6146 dAtA = make([]byte, size) 6147 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6148 if err != nil { 6149 return nil, err 6150 } 6151 return dAtA[:n], nil 6152 } 6153 6154 func (m *RequestDeliverTx) MarshalTo(dAtA []byte) (int, error) { 6155 size := m.Size() 6156 return m.MarshalToSizedBuffer(dAtA[:size]) 6157 } 6158 6159 func (m *RequestDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6160 i := len(dAtA) 6161 _ = i 6162 var l int 6163 _ = l 6164 if m.XXX_unrecognized != nil { 6165 i -= len(m.XXX_unrecognized) 6166 copy(dAtA[i:], m.XXX_unrecognized) 6167 } 6168 if len(m.Tx) > 0 { 6169 i -= len(m.Tx) 6170 copy(dAtA[i:], m.Tx) 6171 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 6172 i-- 6173 dAtA[i] = 0xa 6174 } 6175 return len(dAtA) - i, nil 6176 } 6177 6178 func (m *RequestEndBlock) Marshal() (dAtA []byte, err error) { 6179 size := m.Size() 6180 dAtA = make([]byte, size) 6181 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6182 if err != nil { 6183 return nil, err 6184 } 6185 return dAtA[:n], nil 6186 } 6187 6188 func (m *RequestEndBlock) MarshalTo(dAtA []byte) (int, error) { 6189 size := m.Size() 6190 return m.MarshalToSizedBuffer(dAtA[:size]) 6191 } 6192 6193 func (m *RequestEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6194 i := len(dAtA) 6195 _ = i 6196 var l int 6197 _ = l 6198 if m.XXX_unrecognized != nil { 6199 i -= len(m.XXX_unrecognized) 6200 copy(dAtA[i:], m.XXX_unrecognized) 6201 } 6202 if m.Height != 0 { 6203 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6204 i-- 6205 dAtA[i] = 0x8 6206 } 6207 return len(dAtA) - i, nil 6208 } 6209 6210 func (m *RequestCommit) Marshal() (dAtA []byte, err error) { 6211 size := m.Size() 6212 dAtA = make([]byte, size) 6213 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6214 if err != nil { 6215 return nil, err 6216 } 6217 return dAtA[:n], nil 6218 } 6219 6220 func (m *RequestCommit) MarshalTo(dAtA []byte) (int, error) { 6221 size := m.Size() 6222 return m.MarshalToSizedBuffer(dAtA[:size]) 6223 } 6224 6225 func (m *RequestCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6226 i := len(dAtA) 6227 _ = i 6228 var l int 6229 _ = l 6230 if m.XXX_unrecognized != nil { 6231 i -= len(m.XXX_unrecognized) 6232 copy(dAtA[i:], m.XXX_unrecognized) 6233 } 6234 return len(dAtA) - i, nil 6235 } 6236 6237 func (m *Response) Marshal() (dAtA []byte, err error) { 6238 size := m.Size() 6239 dAtA = make([]byte, size) 6240 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6241 if err != nil { 6242 return nil, err 6243 } 6244 return dAtA[:n], nil 6245 } 6246 6247 func (m *Response) MarshalTo(dAtA []byte) (int, error) { 6248 size := m.Size() 6249 return m.MarshalToSizedBuffer(dAtA[:size]) 6250 } 6251 6252 func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6253 i := len(dAtA) 6254 _ = i 6255 var l int 6256 _ = l 6257 if m.XXX_unrecognized != nil { 6258 i -= len(m.XXX_unrecognized) 6259 copy(dAtA[i:], m.XXX_unrecognized) 6260 } 6261 if m.Value != nil { 6262 { 6263 size := m.Value.Size() 6264 i -= size 6265 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 6266 return 0, err 6267 } 6268 } 6269 } 6270 return len(dAtA) - i, nil 6271 } 6272 6273 func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) { 6274 size := m.Size() 6275 return m.MarshalToSizedBuffer(dAtA[:size]) 6276 } 6277 6278 func (m *Response_Exception) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6279 i := len(dAtA) 6280 if m.Exception != nil { 6281 { 6282 size, err := m.Exception.MarshalToSizedBuffer(dAtA[:i]) 6283 if err != nil { 6284 return 0, err 6285 } 6286 i -= size 6287 i = encodeVarintTypes(dAtA, i, uint64(size)) 6288 } 6289 i-- 6290 dAtA[i] = 0xa 6291 } 6292 return len(dAtA) - i, nil 6293 } 6294 func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) { 6295 size := m.Size() 6296 return m.MarshalToSizedBuffer(dAtA[:size]) 6297 } 6298 6299 func (m *Response_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6300 i := len(dAtA) 6301 if m.Echo != nil { 6302 { 6303 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 6304 if err != nil { 6305 return 0, err 6306 } 6307 i -= size 6308 i = encodeVarintTypes(dAtA, i, uint64(size)) 6309 } 6310 i-- 6311 dAtA[i] = 0x12 6312 } 6313 return len(dAtA) - i, nil 6314 } 6315 func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) { 6316 size := m.Size() 6317 return m.MarshalToSizedBuffer(dAtA[:size]) 6318 } 6319 6320 func (m *Response_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6321 i := len(dAtA) 6322 if m.Flush != nil { 6323 { 6324 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 6325 if err != nil { 6326 return 0, err 6327 } 6328 i -= size 6329 i = encodeVarintTypes(dAtA, i, uint64(size)) 6330 } 6331 i-- 6332 dAtA[i] = 0x1a 6333 } 6334 return len(dAtA) - i, nil 6335 } 6336 func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) { 6337 size := m.Size() 6338 return m.MarshalToSizedBuffer(dAtA[:size]) 6339 } 6340 6341 func (m *Response_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6342 i := len(dAtA) 6343 if m.Info != nil { 6344 { 6345 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 6346 if err != nil { 6347 return 0, err 6348 } 6349 i -= size 6350 i = encodeVarintTypes(dAtA, i, uint64(size)) 6351 } 6352 i-- 6353 dAtA[i] = 0x22 6354 } 6355 return len(dAtA) - i, nil 6356 } 6357 func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) { 6358 size := m.Size() 6359 return m.MarshalToSizedBuffer(dAtA[:size]) 6360 } 6361 6362 func (m *Response_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6363 i := len(dAtA) 6364 if m.SetOption != nil { 6365 { 6366 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 6367 if err != nil { 6368 return 0, err 6369 } 6370 i -= size 6371 i = encodeVarintTypes(dAtA, i, uint64(size)) 6372 } 6373 i-- 6374 dAtA[i] = 0x2a 6375 } 6376 return len(dAtA) - i, nil 6377 } 6378 func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) { 6379 size := m.Size() 6380 return m.MarshalToSizedBuffer(dAtA[:size]) 6381 } 6382 6383 func (m *Response_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6384 i := len(dAtA) 6385 if m.InitChain != nil { 6386 { 6387 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 6388 if err != nil { 6389 return 0, err 6390 } 6391 i -= size 6392 i = encodeVarintTypes(dAtA, i, uint64(size)) 6393 } 6394 i-- 6395 dAtA[i] = 0x32 6396 } 6397 return len(dAtA) - i, nil 6398 } 6399 func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) { 6400 size := m.Size() 6401 return m.MarshalToSizedBuffer(dAtA[:size]) 6402 } 6403 6404 func (m *Response_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6405 i := len(dAtA) 6406 if m.Query != nil { 6407 { 6408 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 6409 if err != nil { 6410 return 0, err 6411 } 6412 i -= size 6413 i = encodeVarintTypes(dAtA, i, uint64(size)) 6414 } 6415 i-- 6416 dAtA[i] = 0x3a 6417 } 6418 return len(dAtA) - i, nil 6419 } 6420 func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 6421 size := m.Size() 6422 return m.MarshalToSizedBuffer(dAtA[:size]) 6423 } 6424 6425 func (m *Response_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6426 i := len(dAtA) 6427 if m.BeginBlock != nil { 6428 { 6429 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 6430 if err != nil { 6431 return 0, err 6432 } 6433 i -= size 6434 i = encodeVarintTypes(dAtA, i, uint64(size)) 6435 } 6436 i-- 6437 dAtA[i] = 0x42 6438 } 6439 return len(dAtA) - i, nil 6440 } 6441 func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) { 6442 size := m.Size() 6443 return m.MarshalToSizedBuffer(dAtA[:size]) 6444 } 6445 6446 func (m *Response_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6447 i := len(dAtA) 6448 if m.CheckTx != nil { 6449 { 6450 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 6451 if err != nil { 6452 return 0, err 6453 } 6454 i -= size 6455 i = encodeVarintTypes(dAtA, i, uint64(size)) 6456 } 6457 i-- 6458 dAtA[i] = 0x4a 6459 } 6460 return len(dAtA) - i, nil 6461 } 6462 func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 6463 size := m.Size() 6464 return m.MarshalToSizedBuffer(dAtA[:size]) 6465 } 6466 6467 func (m *Response_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6468 i := len(dAtA) 6469 if m.DeliverTx != nil { 6470 { 6471 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 6472 if err != nil { 6473 return 0, err 6474 } 6475 i -= size 6476 i = encodeVarintTypes(dAtA, i, uint64(size)) 6477 } 6478 i-- 6479 dAtA[i] = 0x52 6480 } 6481 return len(dAtA) - i, nil 6482 } 6483 func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) { 6484 size := m.Size() 6485 return m.MarshalToSizedBuffer(dAtA[:size]) 6486 } 6487 6488 func (m *Response_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6489 i := len(dAtA) 6490 if m.EndBlock != nil { 6491 { 6492 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 6493 if err != nil { 6494 return 0, err 6495 } 6496 i -= size 6497 i = encodeVarintTypes(dAtA, i, uint64(size)) 6498 } 6499 i-- 6500 dAtA[i] = 0x5a 6501 } 6502 return len(dAtA) - i, nil 6503 } 6504 func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) { 6505 size := m.Size() 6506 return m.MarshalToSizedBuffer(dAtA[:size]) 6507 } 6508 6509 func (m *Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6510 i := len(dAtA) 6511 if m.Commit != nil { 6512 { 6513 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 6514 if err != nil { 6515 return 0, err 6516 } 6517 i -= size 6518 i = encodeVarintTypes(dAtA, i, uint64(size)) 6519 } 6520 i-- 6521 dAtA[i] = 0x62 6522 } 6523 return len(dAtA) - i, nil 6524 } 6525 func (m *ResponseException) Marshal() (dAtA []byte, err error) { 6526 size := m.Size() 6527 dAtA = make([]byte, size) 6528 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6529 if err != nil { 6530 return nil, err 6531 } 6532 return dAtA[:n], nil 6533 } 6534 6535 func (m *ResponseException) MarshalTo(dAtA []byte) (int, error) { 6536 size := m.Size() 6537 return m.MarshalToSizedBuffer(dAtA[:size]) 6538 } 6539 6540 func (m *ResponseException) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6541 i := len(dAtA) 6542 _ = i 6543 var l int 6544 _ = l 6545 if m.XXX_unrecognized != nil { 6546 i -= len(m.XXX_unrecognized) 6547 copy(dAtA[i:], m.XXX_unrecognized) 6548 } 6549 if len(m.Error) > 0 { 6550 i -= len(m.Error) 6551 copy(dAtA[i:], m.Error) 6552 i = encodeVarintTypes(dAtA, i, uint64(len(m.Error))) 6553 i-- 6554 dAtA[i] = 0xa 6555 } 6556 return len(dAtA) - i, nil 6557 } 6558 6559 func (m *ResponseEcho) Marshal() (dAtA []byte, err error) { 6560 size := m.Size() 6561 dAtA = make([]byte, size) 6562 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6563 if err != nil { 6564 return nil, err 6565 } 6566 return dAtA[:n], nil 6567 } 6568 6569 func (m *ResponseEcho) MarshalTo(dAtA []byte) (int, error) { 6570 size := m.Size() 6571 return m.MarshalToSizedBuffer(dAtA[:size]) 6572 } 6573 6574 func (m *ResponseEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6575 i := len(dAtA) 6576 _ = i 6577 var l int 6578 _ = l 6579 if m.XXX_unrecognized != nil { 6580 i -= len(m.XXX_unrecognized) 6581 copy(dAtA[i:], m.XXX_unrecognized) 6582 } 6583 if len(m.Message) > 0 { 6584 i -= len(m.Message) 6585 copy(dAtA[i:], m.Message) 6586 i = encodeVarintTypes(dAtA, i, uint64(len(m.Message))) 6587 i-- 6588 dAtA[i] = 0xa 6589 } 6590 return len(dAtA) - i, nil 6591 } 6592 6593 func (m *ResponseFlush) Marshal() (dAtA []byte, err error) { 6594 size := m.Size() 6595 dAtA = make([]byte, size) 6596 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6597 if err != nil { 6598 return nil, err 6599 } 6600 return dAtA[:n], nil 6601 } 6602 6603 func (m *ResponseFlush) MarshalTo(dAtA []byte) (int, error) { 6604 size := m.Size() 6605 return m.MarshalToSizedBuffer(dAtA[:size]) 6606 } 6607 6608 func (m *ResponseFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6609 i := len(dAtA) 6610 _ = i 6611 var l int 6612 _ = l 6613 if m.XXX_unrecognized != nil { 6614 i -= len(m.XXX_unrecognized) 6615 copy(dAtA[i:], m.XXX_unrecognized) 6616 } 6617 return len(dAtA) - i, nil 6618 } 6619 6620 func (m *ResponseInfo) Marshal() (dAtA []byte, err error) { 6621 size := m.Size() 6622 dAtA = make([]byte, size) 6623 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6624 if err != nil { 6625 return nil, err 6626 } 6627 return dAtA[:n], nil 6628 } 6629 6630 func (m *ResponseInfo) MarshalTo(dAtA []byte) (int, error) { 6631 size := m.Size() 6632 return m.MarshalToSizedBuffer(dAtA[:size]) 6633 } 6634 6635 func (m *ResponseInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6636 i := len(dAtA) 6637 _ = i 6638 var l int 6639 _ = l 6640 if m.XXX_unrecognized != nil { 6641 i -= len(m.XXX_unrecognized) 6642 copy(dAtA[i:], m.XXX_unrecognized) 6643 } 6644 if len(m.LastBlockAppHash) > 0 { 6645 i -= len(m.LastBlockAppHash) 6646 copy(dAtA[i:], m.LastBlockAppHash) 6647 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastBlockAppHash))) 6648 i-- 6649 dAtA[i] = 0x2a 6650 } 6651 if m.LastBlockHeight != 0 { 6652 i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight)) 6653 i-- 6654 dAtA[i] = 0x20 6655 } 6656 if m.AppVersion != 0 { 6657 i = encodeVarintTypes(dAtA, i, uint64(m.AppVersion)) 6658 i-- 6659 dAtA[i] = 0x18 6660 } 6661 if len(m.Version) > 0 { 6662 i -= len(m.Version) 6663 copy(dAtA[i:], m.Version) 6664 i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) 6665 i-- 6666 dAtA[i] = 0x12 6667 } 6668 if len(m.Data) > 0 { 6669 i -= len(m.Data) 6670 copy(dAtA[i:], m.Data) 6671 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 6672 i-- 6673 dAtA[i] = 0xa 6674 } 6675 return len(dAtA) - i, nil 6676 } 6677 6678 func (m *ResponseSetOption) Marshal() (dAtA []byte, err error) { 6679 size := m.Size() 6680 dAtA = make([]byte, size) 6681 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6682 if err != nil { 6683 return nil, err 6684 } 6685 return dAtA[:n], nil 6686 } 6687 6688 func (m *ResponseSetOption) MarshalTo(dAtA []byte) (int, error) { 6689 size := m.Size() 6690 return m.MarshalToSizedBuffer(dAtA[:size]) 6691 } 6692 6693 func (m *ResponseSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6694 i := len(dAtA) 6695 _ = i 6696 var l int 6697 _ = l 6698 if m.XXX_unrecognized != nil { 6699 i -= len(m.XXX_unrecognized) 6700 copy(dAtA[i:], m.XXX_unrecognized) 6701 } 6702 if len(m.Info) > 0 { 6703 i -= len(m.Info) 6704 copy(dAtA[i:], m.Info) 6705 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 6706 i-- 6707 dAtA[i] = 0x22 6708 } 6709 if len(m.Log) > 0 { 6710 i -= len(m.Log) 6711 copy(dAtA[i:], m.Log) 6712 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 6713 i-- 6714 dAtA[i] = 0x1a 6715 } 6716 if m.Code != 0 { 6717 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 6718 i-- 6719 dAtA[i] = 0x8 6720 } 6721 return len(dAtA) - i, nil 6722 } 6723 6724 func (m *ResponseInitChain) Marshal() (dAtA []byte, err error) { 6725 size := m.Size() 6726 dAtA = make([]byte, size) 6727 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6728 if err != nil { 6729 return nil, err 6730 } 6731 return dAtA[:n], nil 6732 } 6733 6734 func (m *ResponseInitChain) MarshalTo(dAtA []byte) (int, error) { 6735 size := m.Size() 6736 return m.MarshalToSizedBuffer(dAtA[:size]) 6737 } 6738 6739 func (m *ResponseInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6740 i := len(dAtA) 6741 _ = i 6742 var l int 6743 _ = l 6744 if m.XXX_unrecognized != nil { 6745 i -= len(m.XXX_unrecognized) 6746 copy(dAtA[i:], m.XXX_unrecognized) 6747 } 6748 if len(m.Validators) > 0 { 6749 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 6750 { 6751 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6752 if err != nil { 6753 return 0, err 6754 } 6755 i -= size 6756 i = encodeVarintTypes(dAtA, i, uint64(size)) 6757 } 6758 i-- 6759 dAtA[i] = 0x12 6760 } 6761 } 6762 if m.ConsensusParams != nil { 6763 { 6764 size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) 6765 if err != nil { 6766 return 0, err 6767 } 6768 i -= size 6769 i = encodeVarintTypes(dAtA, i, uint64(size)) 6770 } 6771 i-- 6772 dAtA[i] = 0xa 6773 } 6774 return len(dAtA) - i, nil 6775 } 6776 6777 func (m *ResponseQuery) Marshal() (dAtA []byte, err error) { 6778 size := m.Size() 6779 dAtA = make([]byte, size) 6780 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6781 if err != nil { 6782 return nil, err 6783 } 6784 return dAtA[:n], nil 6785 } 6786 6787 func (m *ResponseQuery) MarshalTo(dAtA []byte) (int, error) { 6788 size := m.Size() 6789 return m.MarshalToSizedBuffer(dAtA[:size]) 6790 } 6791 6792 func (m *ResponseQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6793 i := len(dAtA) 6794 _ = i 6795 var l int 6796 _ = l 6797 if m.XXX_unrecognized != nil { 6798 i -= len(m.XXX_unrecognized) 6799 copy(dAtA[i:], m.XXX_unrecognized) 6800 } 6801 if len(m.Codespace) > 0 { 6802 i -= len(m.Codespace) 6803 copy(dAtA[i:], m.Codespace) 6804 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 6805 i-- 6806 dAtA[i] = 0x52 6807 } 6808 if m.Height != 0 { 6809 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6810 i-- 6811 dAtA[i] = 0x48 6812 } 6813 if m.Proof != nil { 6814 { 6815 size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) 6816 if err != nil { 6817 return 0, err 6818 } 6819 i -= size 6820 i = encodeVarintTypes(dAtA, i, uint64(size)) 6821 } 6822 i-- 6823 dAtA[i] = 0x42 6824 } 6825 if len(m.Value) > 0 { 6826 i -= len(m.Value) 6827 copy(dAtA[i:], m.Value) 6828 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 6829 i-- 6830 dAtA[i] = 0x3a 6831 } 6832 if len(m.Key) > 0 { 6833 i -= len(m.Key) 6834 copy(dAtA[i:], m.Key) 6835 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 6836 i-- 6837 dAtA[i] = 0x32 6838 } 6839 if m.Index != 0 { 6840 i = encodeVarintTypes(dAtA, i, uint64(m.Index)) 6841 i-- 6842 dAtA[i] = 0x28 6843 } 6844 if len(m.Info) > 0 { 6845 i -= len(m.Info) 6846 copy(dAtA[i:], m.Info) 6847 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 6848 i-- 6849 dAtA[i] = 0x22 6850 } 6851 if len(m.Log) > 0 { 6852 i -= len(m.Log) 6853 copy(dAtA[i:], m.Log) 6854 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 6855 i-- 6856 dAtA[i] = 0x1a 6857 } 6858 if m.Code != 0 { 6859 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 6860 i-- 6861 dAtA[i] = 0x8 6862 } 6863 return len(dAtA) - i, nil 6864 } 6865 6866 func (m *ResponseBeginBlock) Marshal() (dAtA []byte, err error) { 6867 size := m.Size() 6868 dAtA = make([]byte, size) 6869 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6870 if err != nil { 6871 return nil, err 6872 } 6873 return dAtA[:n], nil 6874 } 6875 6876 func (m *ResponseBeginBlock) MarshalTo(dAtA []byte) (int, error) { 6877 size := m.Size() 6878 return m.MarshalToSizedBuffer(dAtA[:size]) 6879 } 6880 6881 func (m *ResponseBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6882 i := len(dAtA) 6883 _ = i 6884 var l int 6885 _ = l 6886 if m.XXX_unrecognized != nil { 6887 i -= len(m.XXX_unrecognized) 6888 copy(dAtA[i:], m.XXX_unrecognized) 6889 } 6890 if len(m.Events) > 0 { 6891 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 6892 { 6893 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6894 if err != nil { 6895 return 0, err 6896 } 6897 i -= size 6898 i = encodeVarintTypes(dAtA, i, uint64(size)) 6899 } 6900 i-- 6901 dAtA[i] = 0xa 6902 } 6903 } 6904 return len(dAtA) - i, nil 6905 } 6906 6907 func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) { 6908 size := m.Size() 6909 dAtA = make([]byte, size) 6910 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6911 if err != nil { 6912 return nil, err 6913 } 6914 return dAtA[:n], nil 6915 } 6916 6917 func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) { 6918 size := m.Size() 6919 return m.MarshalToSizedBuffer(dAtA[:size]) 6920 } 6921 6922 func (m *ResponseCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6923 i := len(dAtA) 6924 _ = i 6925 var l int 6926 _ = l 6927 if m.XXX_unrecognized != nil { 6928 i -= len(m.XXX_unrecognized) 6929 copy(dAtA[i:], m.XXX_unrecognized) 6930 } 6931 if len(m.Codespace) > 0 { 6932 i -= len(m.Codespace) 6933 copy(dAtA[i:], m.Codespace) 6934 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 6935 i-- 6936 dAtA[i] = 0x42 6937 } 6938 if len(m.Events) > 0 { 6939 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 6940 { 6941 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6942 if err != nil { 6943 return 0, err 6944 } 6945 i -= size 6946 i = encodeVarintTypes(dAtA, i, uint64(size)) 6947 } 6948 i-- 6949 dAtA[i] = 0x3a 6950 } 6951 } 6952 if m.GasUsed != 0 { 6953 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 6954 i-- 6955 dAtA[i] = 0x30 6956 } 6957 if m.GasWanted != 0 { 6958 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 6959 i-- 6960 dAtA[i] = 0x28 6961 } 6962 if len(m.Info) > 0 { 6963 i -= len(m.Info) 6964 copy(dAtA[i:], m.Info) 6965 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 6966 i-- 6967 dAtA[i] = 0x22 6968 } 6969 if len(m.Log) > 0 { 6970 i -= len(m.Log) 6971 copy(dAtA[i:], m.Log) 6972 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 6973 i-- 6974 dAtA[i] = 0x1a 6975 } 6976 if len(m.Data) > 0 { 6977 i -= len(m.Data) 6978 copy(dAtA[i:], m.Data) 6979 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 6980 i-- 6981 dAtA[i] = 0x12 6982 } 6983 if m.Code != 0 { 6984 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 6985 i-- 6986 dAtA[i] = 0x8 6987 } 6988 return len(dAtA) - i, nil 6989 } 6990 6991 func (m *ResponseDeliverTx) Marshal() (dAtA []byte, err error) { 6992 size := m.Size() 6993 dAtA = make([]byte, size) 6994 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6995 if err != nil { 6996 return nil, err 6997 } 6998 return dAtA[:n], nil 6999 } 7000 7001 func (m *ResponseDeliverTx) MarshalTo(dAtA []byte) (int, error) { 7002 size := m.Size() 7003 return m.MarshalToSizedBuffer(dAtA[:size]) 7004 } 7005 7006 func (m *ResponseDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7007 i := len(dAtA) 7008 _ = i 7009 var l int 7010 _ = l 7011 if m.XXX_unrecognized != nil { 7012 i -= len(m.XXX_unrecognized) 7013 copy(dAtA[i:], m.XXX_unrecognized) 7014 } 7015 if len(m.Codespace) > 0 { 7016 i -= len(m.Codespace) 7017 copy(dAtA[i:], m.Codespace) 7018 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 7019 i-- 7020 dAtA[i] = 0x42 7021 } 7022 if len(m.Events) > 0 { 7023 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 7024 { 7025 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7026 if err != nil { 7027 return 0, err 7028 } 7029 i -= size 7030 i = encodeVarintTypes(dAtA, i, uint64(size)) 7031 } 7032 i-- 7033 dAtA[i] = 0x3a 7034 } 7035 } 7036 if m.GasUsed != 0 { 7037 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 7038 i-- 7039 dAtA[i] = 0x30 7040 } 7041 if m.GasWanted != 0 { 7042 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 7043 i-- 7044 dAtA[i] = 0x28 7045 } 7046 if len(m.Info) > 0 { 7047 i -= len(m.Info) 7048 copy(dAtA[i:], m.Info) 7049 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 7050 i-- 7051 dAtA[i] = 0x22 7052 } 7053 if len(m.Log) > 0 { 7054 i -= len(m.Log) 7055 copy(dAtA[i:], m.Log) 7056 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 7057 i-- 7058 dAtA[i] = 0x1a 7059 } 7060 if len(m.Data) > 0 { 7061 i -= len(m.Data) 7062 copy(dAtA[i:], m.Data) 7063 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 7064 i-- 7065 dAtA[i] = 0x12 7066 } 7067 if m.Code != 0 { 7068 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 7069 i-- 7070 dAtA[i] = 0x8 7071 } 7072 return len(dAtA) - i, nil 7073 } 7074 7075 func (m *ResponseEndBlock) Marshal() (dAtA []byte, err error) { 7076 size := m.Size() 7077 dAtA = make([]byte, size) 7078 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7079 if err != nil { 7080 return nil, err 7081 } 7082 return dAtA[:n], nil 7083 } 7084 7085 func (m *ResponseEndBlock) MarshalTo(dAtA []byte) (int, error) { 7086 size := m.Size() 7087 return m.MarshalToSizedBuffer(dAtA[:size]) 7088 } 7089 7090 func (m *ResponseEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7091 i := len(dAtA) 7092 _ = i 7093 var l int 7094 _ = l 7095 if m.XXX_unrecognized != nil { 7096 i -= len(m.XXX_unrecognized) 7097 copy(dAtA[i:], m.XXX_unrecognized) 7098 } 7099 if len(m.Events) > 0 { 7100 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 7101 { 7102 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7103 if err != nil { 7104 return 0, err 7105 } 7106 i -= size 7107 i = encodeVarintTypes(dAtA, i, uint64(size)) 7108 } 7109 i-- 7110 dAtA[i] = 0x1a 7111 } 7112 } 7113 if m.ConsensusParamUpdates != nil { 7114 { 7115 size, err := m.ConsensusParamUpdates.MarshalToSizedBuffer(dAtA[:i]) 7116 if err != nil { 7117 return 0, err 7118 } 7119 i -= size 7120 i = encodeVarintTypes(dAtA, i, uint64(size)) 7121 } 7122 i-- 7123 dAtA[i] = 0x12 7124 } 7125 if len(m.ValidatorUpdates) > 0 { 7126 for iNdEx := len(m.ValidatorUpdates) - 1; iNdEx >= 0; iNdEx-- { 7127 { 7128 size, err := m.ValidatorUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7129 if err != nil { 7130 return 0, err 7131 } 7132 i -= size 7133 i = encodeVarintTypes(dAtA, i, uint64(size)) 7134 } 7135 i-- 7136 dAtA[i] = 0xa 7137 } 7138 } 7139 return len(dAtA) - i, nil 7140 } 7141 7142 func (m *ResponseCommit) Marshal() (dAtA []byte, err error) { 7143 size := m.Size() 7144 dAtA = make([]byte, size) 7145 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7146 if err != nil { 7147 return nil, err 7148 } 7149 return dAtA[:n], nil 7150 } 7151 7152 func (m *ResponseCommit) MarshalTo(dAtA []byte) (int, error) { 7153 size := m.Size() 7154 return m.MarshalToSizedBuffer(dAtA[:size]) 7155 } 7156 7157 func (m *ResponseCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7158 i := len(dAtA) 7159 _ = i 7160 var l int 7161 _ = l 7162 if m.XXX_unrecognized != nil { 7163 i -= len(m.XXX_unrecognized) 7164 copy(dAtA[i:], m.XXX_unrecognized) 7165 } 7166 if m.RetainHeight != 0 { 7167 i = encodeVarintTypes(dAtA, i, uint64(m.RetainHeight)) 7168 i-- 7169 dAtA[i] = 0x18 7170 } 7171 if len(m.Data) > 0 { 7172 i -= len(m.Data) 7173 copy(dAtA[i:], m.Data) 7174 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 7175 i-- 7176 dAtA[i] = 0x12 7177 } 7178 return len(dAtA) - i, nil 7179 } 7180 7181 func (m *ConsensusParams) Marshal() (dAtA []byte, err error) { 7182 size := m.Size() 7183 dAtA = make([]byte, size) 7184 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7185 if err != nil { 7186 return nil, err 7187 } 7188 return dAtA[:n], nil 7189 } 7190 7191 func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) { 7192 size := m.Size() 7193 return m.MarshalToSizedBuffer(dAtA[:size]) 7194 } 7195 7196 func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7197 i := len(dAtA) 7198 _ = i 7199 var l int 7200 _ = l 7201 if m.XXX_unrecognized != nil { 7202 i -= len(m.XXX_unrecognized) 7203 copy(dAtA[i:], m.XXX_unrecognized) 7204 } 7205 if m.Validator != nil { 7206 { 7207 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 7208 if err != nil { 7209 return 0, err 7210 } 7211 i -= size 7212 i = encodeVarintTypes(dAtA, i, uint64(size)) 7213 } 7214 i-- 7215 dAtA[i] = 0x1a 7216 } 7217 if m.Evidence != nil { 7218 { 7219 size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i]) 7220 if err != nil { 7221 return 0, err 7222 } 7223 i -= size 7224 i = encodeVarintTypes(dAtA, i, uint64(size)) 7225 } 7226 i-- 7227 dAtA[i] = 0x12 7228 } 7229 if m.Block != nil { 7230 { 7231 size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) 7232 if err != nil { 7233 return 0, err 7234 } 7235 i -= size 7236 i = encodeVarintTypes(dAtA, i, uint64(size)) 7237 } 7238 i-- 7239 dAtA[i] = 0xa 7240 } 7241 return len(dAtA) - i, nil 7242 } 7243 7244 func (m *BlockParams) Marshal() (dAtA []byte, err error) { 7245 size := m.Size() 7246 dAtA = make([]byte, size) 7247 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7248 if err != nil { 7249 return nil, err 7250 } 7251 return dAtA[:n], nil 7252 } 7253 7254 func (m *BlockParams) MarshalTo(dAtA []byte) (int, error) { 7255 size := m.Size() 7256 return m.MarshalToSizedBuffer(dAtA[:size]) 7257 } 7258 7259 func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7260 i := len(dAtA) 7261 _ = i 7262 var l int 7263 _ = l 7264 if m.XXX_unrecognized != nil { 7265 i -= len(m.XXX_unrecognized) 7266 copy(dAtA[i:], m.XXX_unrecognized) 7267 } 7268 if m.MaxGas != 0 { 7269 i = encodeVarintTypes(dAtA, i, uint64(m.MaxGas)) 7270 i-- 7271 dAtA[i] = 0x10 7272 } 7273 if m.MaxBytes != 0 { 7274 i = encodeVarintTypes(dAtA, i, uint64(m.MaxBytes)) 7275 i-- 7276 dAtA[i] = 0x8 7277 } 7278 return len(dAtA) - i, nil 7279 } 7280 7281 func (m *EvidenceParams) Marshal() (dAtA []byte, err error) { 7282 size := m.Size() 7283 dAtA = make([]byte, size) 7284 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7285 if err != nil { 7286 return nil, err 7287 } 7288 return dAtA[:n], nil 7289 } 7290 7291 func (m *EvidenceParams) MarshalTo(dAtA []byte) (int, error) { 7292 size := m.Size() 7293 return m.MarshalToSizedBuffer(dAtA[:size]) 7294 } 7295 7296 func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7297 i := len(dAtA) 7298 _ = i 7299 var l int 7300 _ = l 7301 if m.XXX_unrecognized != nil { 7302 i -= len(m.XXX_unrecognized) 7303 copy(dAtA[i:], m.XXX_unrecognized) 7304 } 7305 n36, err36 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MaxAgeDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxAgeDuration):]) 7306 if err36 != nil { 7307 return 0, err36 7308 } 7309 i -= n36 7310 i = encodeVarintTypes(dAtA, i, uint64(n36)) 7311 i-- 7312 dAtA[i] = 0x12 7313 if m.MaxAgeNumBlocks != 0 { 7314 i = encodeVarintTypes(dAtA, i, uint64(m.MaxAgeNumBlocks)) 7315 i-- 7316 dAtA[i] = 0x8 7317 } 7318 return len(dAtA) - i, nil 7319 } 7320 7321 func (m *ValidatorParams) Marshal() (dAtA []byte, err error) { 7322 size := m.Size() 7323 dAtA = make([]byte, size) 7324 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7325 if err != nil { 7326 return nil, err 7327 } 7328 return dAtA[:n], nil 7329 } 7330 7331 func (m *ValidatorParams) MarshalTo(dAtA []byte) (int, error) { 7332 size := m.Size() 7333 return m.MarshalToSizedBuffer(dAtA[:size]) 7334 } 7335 7336 func (m *ValidatorParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7337 i := len(dAtA) 7338 _ = i 7339 var l int 7340 _ = l 7341 if m.XXX_unrecognized != nil { 7342 i -= len(m.XXX_unrecognized) 7343 copy(dAtA[i:], m.XXX_unrecognized) 7344 } 7345 if len(m.PubKeyTypes) > 0 { 7346 for iNdEx := len(m.PubKeyTypes) - 1; iNdEx >= 0; iNdEx-- { 7347 i -= len(m.PubKeyTypes[iNdEx]) 7348 copy(dAtA[i:], m.PubKeyTypes[iNdEx]) 7349 i = encodeVarintTypes(dAtA, i, uint64(len(m.PubKeyTypes[iNdEx]))) 7350 i-- 7351 dAtA[i] = 0xa 7352 } 7353 } 7354 return len(dAtA) - i, nil 7355 } 7356 7357 func (m *LastCommitInfo) Marshal() (dAtA []byte, err error) { 7358 size := m.Size() 7359 dAtA = make([]byte, size) 7360 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7361 if err != nil { 7362 return nil, err 7363 } 7364 return dAtA[:n], nil 7365 } 7366 7367 func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error) { 7368 size := m.Size() 7369 return m.MarshalToSizedBuffer(dAtA[:size]) 7370 } 7371 7372 func (m *LastCommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7373 i := len(dAtA) 7374 _ = i 7375 var l int 7376 _ = l 7377 if m.XXX_unrecognized != nil { 7378 i -= len(m.XXX_unrecognized) 7379 copy(dAtA[i:], m.XXX_unrecognized) 7380 } 7381 if len(m.Votes) > 0 { 7382 for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- { 7383 { 7384 size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7385 if err != nil { 7386 return 0, err 7387 } 7388 i -= size 7389 i = encodeVarintTypes(dAtA, i, uint64(size)) 7390 } 7391 i-- 7392 dAtA[i] = 0x12 7393 } 7394 } 7395 if m.Round != 0 { 7396 i = encodeVarintTypes(dAtA, i, uint64(m.Round)) 7397 i-- 7398 dAtA[i] = 0x8 7399 } 7400 return len(dAtA) - i, nil 7401 } 7402 7403 func (m *Event) Marshal() (dAtA []byte, err error) { 7404 size := m.Size() 7405 dAtA = make([]byte, size) 7406 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7407 if err != nil { 7408 return nil, err 7409 } 7410 return dAtA[:n], nil 7411 } 7412 7413 func (m *Event) MarshalTo(dAtA []byte) (int, error) { 7414 size := m.Size() 7415 return m.MarshalToSizedBuffer(dAtA[:size]) 7416 } 7417 7418 func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7419 i := len(dAtA) 7420 _ = i 7421 var l int 7422 _ = l 7423 if m.XXX_unrecognized != nil { 7424 i -= len(m.XXX_unrecognized) 7425 copy(dAtA[i:], m.XXX_unrecognized) 7426 } 7427 if len(m.Attributes) > 0 { 7428 for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { 7429 { 7430 size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7431 if err != nil { 7432 return 0, err 7433 } 7434 i -= size 7435 i = encodeVarintTypes(dAtA, i, uint64(size)) 7436 } 7437 i-- 7438 dAtA[i] = 0x12 7439 } 7440 } 7441 if len(m.Type) > 0 { 7442 i -= len(m.Type) 7443 copy(dAtA[i:], m.Type) 7444 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 7445 i-- 7446 dAtA[i] = 0xa 7447 } 7448 return len(dAtA) - i, nil 7449 } 7450 7451 func (m *Header) Marshal() (dAtA []byte, err error) { 7452 size := m.Size() 7453 dAtA = make([]byte, size) 7454 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7455 if err != nil { 7456 return nil, err 7457 } 7458 return dAtA[:n], nil 7459 } 7460 7461 func (m *Header) MarshalTo(dAtA []byte) (int, error) { 7462 size := m.Size() 7463 return m.MarshalToSizedBuffer(dAtA[:size]) 7464 } 7465 7466 func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7467 i := len(dAtA) 7468 _ = i 7469 var l int 7470 _ = l 7471 if m.XXX_unrecognized != nil { 7472 i -= len(m.XXX_unrecognized) 7473 copy(dAtA[i:], m.XXX_unrecognized) 7474 } 7475 if len(m.ProposerAddress) > 0 { 7476 i -= len(m.ProposerAddress) 7477 copy(dAtA[i:], m.ProposerAddress) 7478 i = encodeVarintTypes(dAtA, i, uint64(len(m.ProposerAddress))) 7479 i-- 7480 dAtA[i] = 0x72 7481 } 7482 if len(m.EvidenceHash) > 0 { 7483 i -= len(m.EvidenceHash) 7484 copy(dAtA[i:], m.EvidenceHash) 7485 i = encodeVarintTypes(dAtA, i, uint64(len(m.EvidenceHash))) 7486 i-- 7487 dAtA[i] = 0x6a 7488 } 7489 if len(m.LastResultsHash) > 0 { 7490 i -= len(m.LastResultsHash) 7491 copy(dAtA[i:], m.LastResultsHash) 7492 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastResultsHash))) 7493 i-- 7494 dAtA[i] = 0x62 7495 } 7496 if len(m.AppHash) > 0 { 7497 i -= len(m.AppHash) 7498 copy(dAtA[i:], m.AppHash) 7499 i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash))) 7500 i-- 7501 dAtA[i] = 0x5a 7502 } 7503 if len(m.ConsensusHash) > 0 { 7504 i -= len(m.ConsensusHash) 7505 copy(dAtA[i:], m.ConsensusHash) 7506 i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusHash))) 7507 i-- 7508 dAtA[i] = 0x52 7509 } 7510 if len(m.NextValidatorsHash) > 0 { 7511 i -= len(m.NextValidatorsHash) 7512 copy(dAtA[i:], m.NextValidatorsHash) 7513 i = encodeVarintTypes(dAtA, i, uint64(len(m.NextValidatorsHash))) 7514 i-- 7515 dAtA[i] = 0x4a 7516 } 7517 if len(m.ValidatorsHash) > 0 { 7518 i -= len(m.ValidatorsHash) 7519 copy(dAtA[i:], m.ValidatorsHash) 7520 i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorsHash))) 7521 i-- 7522 dAtA[i] = 0x42 7523 } 7524 if len(m.DataHash) > 0 { 7525 i -= len(m.DataHash) 7526 copy(dAtA[i:], m.DataHash) 7527 i = encodeVarintTypes(dAtA, i, uint64(len(m.DataHash))) 7528 i-- 7529 dAtA[i] = 0x3a 7530 } 7531 if len(m.LastCommitHash) > 0 { 7532 i -= len(m.LastCommitHash) 7533 copy(dAtA[i:], m.LastCommitHash) 7534 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastCommitHash))) 7535 i-- 7536 dAtA[i] = 0x32 7537 } 7538 { 7539 size, err := m.LastBlockId.MarshalToSizedBuffer(dAtA[:i]) 7540 if err != nil { 7541 return 0, err 7542 } 7543 i -= size 7544 i = encodeVarintTypes(dAtA, i, uint64(size)) 7545 } 7546 i-- 7547 dAtA[i] = 0x2a 7548 n38, err38 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 7549 if err38 != nil { 7550 return 0, err38 7551 } 7552 i -= n38 7553 i = encodeVarintTypes(dAtA, i, uint64(n38)) 7554 i-- 7555 dAtA[i] = 0x22 7556 if m.Height != 0 { 7557 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 7558 i-- 7559 dAtA[i] = 0x18 7560 } 7561 if len(m.ChainID) > 0 { 7562 i -= len(m.ChainID) 7563 copy(dAtA[i:], m.ChainID) 7564 i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainID))) 7565 i-- 7566 dAtA[i] = 0x12 7567 } 7568 { 7569 size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) 7570 if err != nil { 7571 return 0, err 7572 } 7573 i -= size 7574 i = encodeVarintTypes(dAtA, i, uint64(size)) 7575 } 7576 i-- 7577 dAtA[i] = 0xa 7578 return len(dAtA) - i, nil 7579 } 7580 7581 func (m *Version) Marshal() (dAtA []byte, err error) { 7582 size := m.Size() 7583 dAtA = make([]byte, size) 7584 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7585 if err != nil { 7586 return nil, err 7587 } 7588 return dAtA[:n], nil 7589 } 7590 7591 func (m *Version) MarshalTo(dAtA []byte) (int, error) { 7592 size := m.Size() 7593 return m.MarshalToSizedBuffer(dAtA[:size]) 7594 } 7595 7596 func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7597 i := len(dAtA) 7598 _ = i 7599 var l int 7600 _ = l 7601 if m.XXX_unrecognized != nil { 7602 i -= len(m.XXX_unrecognized) 7603 copy(dAtA[i:], m.XXX_unrecognized) 7604 } 7605 if m.App != 0 { 7606 i = encodeVarintTypes(dAtA, i, uint64(m.App)) 7607 i-- 7608 dAtA[i] = 0x10 7609 } 7610 if m.Block != 0 { 7611 i = encodeVarintTypes(dAtA, i, uint64(m.Block)) 7612 i-- 7613 dAtA[i] = 0x8 7614 } 7615 return len(dAtA) - i, nil 7616 } 7617 7618 func (m *BlockID) Marshal() (dAtA []byte, err error) { 7619 size := m.Size() 7620 dAtA = make([]byte, size) 7621 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7622 if err != nil { 7623 return nil, err 7624 } 7625 return dAtA[:n], nil 7626 } 7627 7628 func (m *BlockID) MarshalTo(dAtA []byte) (int, error) { 7629 size := m.Size() 7630 return m.MarshalToSizedBuffer(dAtA[:size]) 7631 } 7632 7633 func (m *BlockID) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7634 i := len(dAtA) 7635 _ = i 7636 var l int 7637 _ = l 7638 if m.XXX_unrecognized != nil { 7639 i -= len(m.XXX_unrecognized) 7640 copy(dAtA[i:], m.XXX_unrecognized) 7641 } 7642 { 7643 size, err := m.PartsHeader.MarshalToSizedBuffer(dAtA[:i]) 7644 if err != nil { 7645 return 0, err 7646 } 7647 i -= size 7648 i = encodeVarintTypes(dAtA, i, uint64(size)) 7649 } 7650 i-- 7651 dAtA[i] = 0x12 7652 if len(m.Hash) > 0 { 7653 i -= len(m.Hash) 7654 copy(dAtA[i:], m.Hash) 7655 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 7656 i-- 7657 dAtA[i] = 0xa 7658 } 7659 return len(dAtA) - i, nil 7660 } 7661 7662 func (m *PartSetHeader) Marshal() (dAtA []byte, err error) { 7663 size := m.Size() 7664 dAtA = make([]byte, size) 7665 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7666 if err != nil { 7667 return nil, err 7668 } 7669 return dAtA[:n], nil 7670 } 7671 7672 func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error) { 7673 size := m.Size() 7674 return m.MarshalToSizedBuffer(dAtA[:size]) 7675 } 7676 7677 func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7678 i := len(dAtA) 7679 _ = i 7680 var l int 7681 _ = l 7682 if m.XXX_unrecognized != nil { 7683 i -= len(m.XXX_unrecognized) 7684 copy(dAtA[i:], m.XXX_unrecognized) 7685 } 7686 if len(m.Hash) > 0 { 7687 i -= len(m.Hash) 7688 copy(dAtA[i:], m.Hash) 7689 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 7690 i-- 7691 dAtA[i] = 0x12 7692 } 7693 if m.Total != 0 { 7694 i = encodeVarintTypes(dAtA, i, uint64(m.Total)) 7695 i-- 7696 dAtA[i] = 0x8 7697 } 7698 return len(dAtA) - i, nil 7699 } 7700 7701 func (m *Validator) Marshal() (dAtA []byte, err error) { 7702 size := m.Size() 7703 dAtA = make([]byte, size) 7704 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7705 if err != nil { 7706 return nil, err 7707 } 7708 return dAtA[:n], nil 7709 } 7710 7711 func (m *Validator) MarshalTo(dAtA []byte) (int, error) { 7712 size := m.Size() 7713 return m.MarshalToSizedBuffer(dAtA[:size]) 7714 } 7715 7716 func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7717 i := len(dAtA) 7718 _ = i 7719 var l int 7720 _ = l 7721 if m.XXX_unrecognized != nil { 7722 i -= len(m.XXX_unrecognized) 7723 copy(dAtA[i:], m.XXX_unrecognized) 7724 } 7725 if m.Power != 0 { 7726 i = encodeVarintTypes(dAtA, i, uint64(m.Power)) 7727 i-- 7728 dAtA[i] = 0x18 7729 } 7730 if len(m.Address) > 0 { 7731 i -= len(m.Address) 7732 copy(dAtA[i:], m.Address) 7733 i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) 7734 i-- 7735 dAtA[i] = 0xa 7736 } 7737 return len(dAtA) - i, nil 7738 } 7739 7740 func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error) { 7741 size := m.Size() 7742 dAtA = make([]byte, size) 7743 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7744 if err != nil { 7745 return nil, err 7746 } 7747 return dAtA[:n], nil 7748 } 7749 7750 func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error) { 7751 size := m.Size() 7752 return m.MarshalToSizedBuffer(dAtA[:size]) 7753 } 7754 7755 func (m *ValidatorUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7756 i := len(dAtA) 7757 _ = i 7758 var l int 7759 _ = l 7760 if m.XXX_unrecognized != nil { 7761 i -= len(m.XXX_unrecognized) 7762 copy(dAtA[i:], m.XXX_unrecognized) 7763 } 7764 if m.Power != 0 { 7765 i = encodeVarintTypes(dAtA, i, uint64(m.Power)) 7766 i-- 7767 dAtA[i] = 0x10 7768 } 7769 { 7770 size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i]) 7771 if err != nil { 7772 return 0, err 7773 } 7774 i -= size 7775 i = encodeVarintTypes(dAtA, i, uint64(size)) 7776 } 7777 i-- 7778 dAtA[i] = 0xa 7779 return len(dAtA) - i, nil 7780 } 7781 7782 func (m *VoteInfo) Marshal() (dAtA []byte, err error) { 7783 size := m.Size() 7784 dAtA = make([]byte, size) 7785 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7786 if err != nil { 7787 return nil, err 7788 } 7789 return dAtA[:n], nil 7790 } 7791 7792 func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error) { 7793 size := m.Size() 7794 return m.MarshalToSizedBuffer(dAtA[:size]) 7795 } 7796 7797 func (m *VoteInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7798 i := len(dAtA) 7799 _ = i 7800 var l int 7801 _ = l 7802 if m.XXX_unrecognized != nil { 7803 i -= len(m.XXX_unrecognized) 7804 copy(dAtA[i:], m.XXX_unrecognized) 7805 } 7806 if m.SignedLastBlock { 7807 i-- 7808 if m.SignedLastBlock { 7809 dAtA[i] = 1 7810 } else { 7811 dAtA[i] = 0 7812 } 7813 i-- 7814 dAtA[i] = 0x10 7815 } 7816 { 7817 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 7818 if err != nil { 7819 return 0, err 7820 } 7821 i -= size 7822 i = encodeVarintTypes(dAtA, i, uint64(size)) 7823 } 7824 i-- 7825 dAtA[i] = 0xa 7826 return len(dAtA) - i, nil 7827 } 7828 7829 func (m *PubKey) Marshal() (dAtA []byte, err error) { 7830 size := m.Size() 7831 dAtA = make([]byte, size) 7832 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7833 if err != nil { 7834 return nil, err 7835 } 7836 return dAtA[:n], nil 7837 } 7838 7839 func (m *PubKey) MarshalTo(dAtA []byte) (int, error) { 7840 size := m.Size() 7841 return m.MarshalToSizedBuffer(dAtA[:size]) 7842 } 7843 7844 func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7845 i := len(dAtA) 7846 _ = i 7847 var l int 7848 _ = l 7849 if m.XXX_unrecognized != nil { 7850 i -= len(m.XXX_unrecognized) 7851 copy(dAtA[i:], m.XXX_unrecognized) 7852 } 7853 if len(m.Data) > 0 { 7854 i -= len(m.Data) 7855 copy(dAtA[i:], m.Data) 7856 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 7857 i-- 7858 dAtA[i] = 0x12 7859 } 7860 if len(m.Type) > 0 { 7861 i -= len(m.Type) 7862 copy(dAtA[i:], m.Type) 7863 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 7864 i-- 7865 dAtA[i] = 0xa 7866 } 7867 return len(dAtA) - i, nil 7868 } 7869 7870 func (m *Evidence) Marshal() (dAtA []byte, err error) { 7871 size := m.Size() 7872 dAtA = make([]byte, size) 7873 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7874 if err != nil { 7875 return nil, err 7876 } 7877 return dAtA[:n], nil 7878 } 7879 7880 func (m *Evidence) MarshalTo(dAtA []byte) (int, error) { 7881 size := m.Size() 7882 return m.MarshalToSizedBuffer(dAtA[:size]) 7883 } 7884 7885 func (m *Evidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7886 i := len(dAtA) 7887 _ = i 7888 var l int 7889 _ = l 7890 if m.XXX_unrecognized != nil { 7891 i -= len(m.XXX_unrecognized) 7892 copy(dAtA[i:], m.XXX_unrecognized) 7893 } 7894 if m.TotalVotingPower != 0 { 7895 i = encodeVarintTypes(dAtA, i, uint64(m.TotalVotingPower)) 7896 i-- 7897 dAtA[i] = 0x28 7898 } 7899 n43, err43 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 7900 if err43 != nil { 7901 return 0, err43 7902 } 7903 i -= n43 7904 i = encodeVarintTypes(dAtA, i, uint64(n43)) 7905 i-- 7906 dAtA[i] = 0x22 7907 if m.Height != 0 { 7908 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 7909 i-- 7910 dAtA[i] = 0x18 7911 } 7912 { 7913 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 7914 if err != nil { 7915 return 0, err 7916 } 7917 i -= size 7918 i = encodeVarintTypes(dAtA, i, uint64(size)) 7919 } 7920 i-- 7921 dAtA[i] = 0x12 7922 if len(m.Type) > 0 { 7923 i -= len(m.Type) 7924 copy(dAtA[i:], m.Type) 7925 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 7926 i-- 7927 dAtA[i] = 0xa 7928 } 7929 return len(dAtA) - i, nil 7930 } 7931 7932 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 7933 offset -= sovTypes(v) 7934 base := offset 7935 for v >= 1<<7 { 7936 dAtA[offset] = uint8(v&0x7f | 0x80) 7937 v >>= 7 7938 offset++ 7939 } 7940 dAtA[offset] = uint8(v) 7941 return base 7942 } 7943 func NewPopulatedRequest(r randyTypes, easy bool) *Request { 7944 this := &Request{} 7945 oneofNumber_Value := []int32{2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19}[r.Intn(11)] 7946 switch oneofNumber_Value { 7947 case 2: 7948 this.Value = NewPopulatedRequest_Echo(r, easy) 7949 case 3: 7950 this.Value = NewPopulatedRequest_Flush(r, easy) 7951 case 4: 7952 this.Value = NewPopulatedRequest_Info(r, easy) 7953 case 5: 7954 this.Value = NewPopulatedRequest_SetOption(r, easy) 7955 case 6: 7956 this.Value = NewPopulatedRequest_InitChain(r, easy) 7957 case 7: 7958 this.Value = NewPopulatedRequest_Query(r, easy) 7959 case 8: 7960 this.Value = NewPopulatedRequest_BeginBlock(r, easy) 7961 case 9: 7962 this.Value = NewPopulatedRequest_CheckTx(r, easy) 7963 case 11: 7964 this.Value = NewPopulatedRequest_EndBlock(r, easy) 7965 case 12: 7966 this.Value = NewPopulatedRequest_Commit(r, easy) 7967 case 19: 7968 this.Value = NewPopulatedRequest_DeliverTx(r, easy) 7969 } 7970 if !easy && r.Intn(10) != 0 { 7971 this.XXX_unrecognized = randUnrecognizedTypes(r, 20) 7972 } 7973 return this 7974 } 7975 7976 func NewPopulatedRequest_Echo(r randyTypes, easy bool) *Request_Echo { 7977 this := &Request_Echo{} 7978 this.Echo = NewPopulatedRequestEcho(r, easy) 7979 return this 7980 } 7981 func NewPopulatedRequest_Flush(r randyTypes, easy bool) *Request_Flush { 7982 this := &Request_Flush{} 7983 this.Flush = NewPopulatedRequestFlush(r, easy) 7984 return this 7985 } 7986 func NewPopulatedRequest_Info(r randyTypes, easy bool) *Request_Info { 7987 this := &Request_Info{} 7988 this.Info = NewPopulatedRequestInfo(r, easy) 7989 return this 7990 } 7991 func NewPopulatedRequest_SetOption(r randyTypes, easy bool) *Request_SetOption { 7992 this := &Request_SetOption{} 7993 this.SetOption = NewPopulatedRequestSetOption(r, easy) 7994 return this 7995 } 7996 func NewPopulatedRequest_InitChain(r randyTypes, easy bool) *Request_InitChain { 7997 this := &Request_InitChain{} 7998 this.InitChain = NewPopulatedRequestInitChain(r, easy) 7999 return this 8000 } 8001 func NewPopulatedRequest_Query(r randyTypes, easy bool) *Request_Query { 8002 this := &Request_Query{} 8003 this.Query = NewPopulatedRequestQuery(r, easy) 8004 return this 8005 } 8006 func NewPopulatedRequest_BeginBlock(r randyTypes, easy bool) *Request_BeginBlock { 8007 this := &Request_BeginBlock{} 8008 this.BeginBlock = NewPopulatedRequestBeginBlock(r, easy) 8009 return this 8010 } 8011 func NewPopulatedRequest_CheckTx(r randyTypes, easy bool) *Request_CheckTx { 8012 this := &Request_CheckTx{} 8013 this.CheckTx = NewPopulatedRequestCheckTx(r, easy) 8014 return this 8015 } 8016 func NewPopulatedRequest_EndBlock(r randyTypes, easy bool) *Request_EndBlock { 8017 this := &Request_EndBlock{} 8018 this.EndBlock = NewPopulatedRequestEndBlock(r, easy) 8019 return this 8020 } 8021 func NewPopulatedRequest_Commit(r randyTypes, easy bool) *Request_Commit { 8022 this := &Request_Commit{} 8023 this.Commit = NewPopulatedRequestCommit(r, easy) 8024 return this 8025 } 8026 func NewPopulatedRequest_DeliverTx(r randyTypes, easy bool) *Request_DeliverTx { 8027 this := &Request_DeliverTx{} 8028 this.DeliverTx = NewPopulatedRequestDeliverTx(r, easy) 8029 return this 8030 } 8031 func NewPopulatedRequestEcho(r randyTypes, easy bool) *RequestEcho { 8032 this := &RequestEcho{} 8033 this.Message = string(randStringTypes(r)) 8034 if !easy && r.Intn(10) != 0 { 8035 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8036 } 8037 return this 8038 } 8039 8040 func NewPopulatedRequestFlush(r randyTypes, easy bool) *RequestFlush { 8041 this := &RequestFlush{} 8042 if !easy && r.Intn(10) != 0 { 8043 this.XXX_unrecognized = randUnrecognizedTypes(r, 1) 8044 } 8045 return this 8046 } 8047 8048 func NewPopulatedRequestInfo(r randyTypes, easy bool) *RequestInfo { 8049 this := &RequestInfo{} 8050 this.Version = string(randStringTypes(r)) 8051 this.BlockVersion = uint64(uint64(r.Uint32())) 8052 this.P2PVersion = uint64(uint64(r.Uint32())) 8053 if !easy && r.Intn(10) != 0 { 8054 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8055 } 8056 return this 8057 } 8058 8059 func NewPopulatedRequestSetOption(r randyTypes, easy bool) *RequestSetOption { 8060 this := &RequestSetOption{} 8061 this.Key = string(randStringTypes(r)) 8062 this.Value = string(randStringTypes(r)) 8063 if !easy && r.Intn(10) != 0 { 8064 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8065 } 8066 return this 8067 } 8068 8069 func NewPopulatedRequestInitChain(r randyTypes, easy bool) *RequestInitChain { 8070 this := &RequestInitChain{} 8071 v1 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy) 8072 this.Time = *v1 8073 this.ChainId = string(randStringTypes(r)) 8074 if r.Intn(5) != 0 { 8075 this.ConsensusParams = NewPopulatedConsensusParams(r, easy) 8076 } 8077 if r.Intn(5) != 0 { 8078 v2 := r.Intn(5) 8079 this.Validators = make([]ValidatorUpdate, v2) 8080 for i := 0; i < v2; i++ { 8081 v3 := NewPopulatedValidatorUpdate(r, easy) 8082 this.Validators[i] = *v3 8083 } 8084 } 8085 v4 := r.Intn(100) 8086 this.AppStateBytes = make([]byte, v4) 8087 for i := 0; i < v4; i++ { 8088 this.AppStateBytes[i] = byte(r.Intn(256)) 8089 } 8090 if !easy && r.Intn(10) != 0 { 8091 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8092 } 8093 return this 8094 } 8095 8096 func NewPopulatedRequestQuery(r randyTypes, easy bool) *RequestQuery { 8097 this := &RequestQuery{} 8098 v5 := r.Intn(100) 8099 this.Data = make([]byte, v5) 8100 for i := 0; i < v5; i++ { 8101 this.Data[i] = byte(r.Intn(256)) 8102 } 8103 this.Path = string(randStringTypes(r)) 8104 this.Height = int64(r.Int63()) 8105 if r.Intn(2) == 0 { 8106 this.Height *= -1 8107 } 8108 this.Prove = bool(bool(r.Intn(2) == 0)) 8109 if !easy && r.Intn(10) != 0 { 8110 this.XXX_unrecognized = randUnrecognizedTypes(r, 5) 8111 } 8112 return this 8113 } 8114 8115 func NewPopulatedRequestBeginBlock(r randyTypes, easy bool) *RequestBeginBlock { 8116 this := &RequestBeginBlock{} 8117 v6 := r.Intn(100) 8118 this.Hash = make([]byte, v6) 8119 for i := 0; i < v6; i++ { 8120 this.Hash[i] = byte(r.Intn(256)) 8121 } 8122 v7 := NewPopulatedHeader(r, easy) 8123 this.Header = *v7 8124 v8 := NewPopulatedLastCommitInfo(r, easy) 8125 this.LastCommitInfo = *v8 8126 if r.Intn(5) != 0 { 8127 v9 := r.Intn(5) 8128 this.ByzantineValidators = make([]Evidence, v9) 8129 for i := 0; i < v9; i++ { 8130 v10 := NewPopulatedEvidence(r, easy) 8131 this.ByzantineValidators[i] = *v10 8132 } 8133 } 8134 if !easy && r.Intn(10) != 0 { 8135 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8136 } 8137 return this 8138 } 8139 8140 func NewPopulatedRequestCheckTx(r randyTypes, easy bool) *RequestCheckTx { 8141 this := &RequestCheckTx{} 8142 v11 := r.Intn(100) 8143 this.Tx = make([]byte, v11) 8144 for i := 0; i < v11; i++ { 8145 this.Tx[i] = byte(r.Intn(256)) 8146 } 8147 this.Type = CheckTxType([]int32{0, 1}[r.Intn(2)]) 8148 if !easy && r.Intn(10) != 0 { 8149 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8150 } 8151 return this 8152 } 8153 8154 func NewPopulatedRequestDeliverTx(r randyTypes, easy bool) *RequestDeliverTx { 8155 this := &RequestDeliverTx{} 8156 v12 := r.Intn(100) 8157 this.Tx = make([]byte, v12) 8158 for i := 0; i < v12; i++ { 8159 this.Tx[i] = byte(r.Intn(256)) 8160 } 8161 if !easy && r.Intn(10) != 0 { 8162 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8163 } 8164 return this 8165 } 8166 8167 func NewPopulatedRequestEndBlock(r randyTypes, easy bool) *RequestEndBlock { 8168 this := &RequestEndBlock{} 8169 this.Height = int64(r.Int63()) 8170 if r.Intn(2) == 0 { 8171 this.Height *= -1 8172 } 8173 if !easy && r.Intn(10) != 0 { 8174 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8175 } 8176 return this 8177 } 8178 8179 func NewPopulatedRequestCommit(r randyTypes, easy bool) *RequestCommit { 8180 this := &RequestCommit{} 8181 if !easy && r.Intn(10) != 0 { 8182 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8183 } 8184 return this 8185 } 8186 8187 func NewPopulatedResponse(r randyTypes, easy bool) *Response { 8188 this := &Response{} 8189 oneofNumber_Value := []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(12)] 8190 switch oneofNumber_Value { 8191 case 1: 8192 this.Value = NewPopulatedResponse_Exception(r, easy) 8193 case 2: 8194 this.Value = NewPopulatedResponse_Echo(r, easy) 8195 case 3: 8196 this.Value = NewPopulatedResponse_Flush(r, easy) 8197 case 4: 8198 this.Value = NewPopulatedResponse_Info(r, easy) 8199 case 5: 8200 this.Value = NewPopulatedResponse_SetOption(r, easy) 8201 case 6: 8202 this.Value = NewPopulatedResponse_InitChain(r, easy) 8203 case 7: 8204 this.Value = NewPopulatedResponse_Query(r, easy) 8205 case 8: 8206 this.Value = NewPopulatedResponse_BeginBlock(r, easy) 8207 case 9: 8208 this.Value = NewPopulatedResponse_CheckTx(r, easy) 8209 case 10: 8210 this.Value = NewPopulatedResponse_DeliverTx(r, easy) 8211 case 11: 8212 this.Value = NewPopulatedResponse_EndBlock(r, easy) 8213 case 12: 8214 this.Value = NewPopulatedResponse_Commit(r, easy) 8215 } 8216 if !easy && r.Intn(10) != 0 { 8217 this.XXX_unrecognized = randUnrecognizedTypes(r, 13) 8218 } 8219 return this 8220 } 8221 8222 func NewPopulatedResponse_Exception(r randyTypes, easy bool) *Response_Exception { 8223 this := &Response_Exception{} 8224 this.Exception = NewPopulatedResponseException(r, easy) 8225 return this 8226 } 8227 func NewPopulatedResponse_Echo(r randyTypes, easy bool) *Response_Echo { 8228 this := &Response_Echo{} 8229 this.Echo = NewPopulatedResponseEcho(r, easy) 8230 return this 8231 } 8232 func NewPopulatedResponse_Flush(r randyTypes, easy bool) *Response_Flush { 8233 this := &Response_Flush{} 8234 this.Flush = NewPopulatedResponseFlush(r, easy) 8235 return this 8236 } 8237 func NewPopulatedResponse_Info(r randyTypes, easy bool) *Response_Info { 8238 this := &Response_Info{} 8239 this.Info = NewPopulatedResponseInfo(r, easy) 8240 return this 8241 } 8242 func NewPopulatedResponse_SetOption(r randyTypes, easy bool) *Response_SetOption { 8243 this := &Response_SetOption{} 8244 this.SetOption = NewPopulatedResponseSetOption(r, easy) 8245 return this 8246 } 8247 func NewPopulatedResponse_InitChain(r randyTypes, easy bool) *Response_InitChain { 8248 this := &Response_InitChain{} 8249 this.InitChain = NewPopulatedResponseInitChain(r, easy) 8250 return this 8251 } 8252 func NewPopulatedResponse_Query(r randyTypes, easy bool) *Response_Query { 8253 this := &Response_Query{} 8254 this.Query = NewPopulatedResponseQuery(r, easy) 8255 return this 8256 } 8257 func NewPopulatedResponse_BeginBlock(r randyTypes, easy bool) *Response_BeginBlock { 8258 this := &Response_BeginBlock{} 8259 this.BeginBlock = NewPopulatedResponseBeginBlock(r, easy) 8260 return this 8261 } 8262 func NewPopulatedResponse_CheckTx(r randyTypes, easy bool) *Response_CheckTx { 8263 this := &Response_CheckTx{} 8264 this.CheckTx = NewPopulatedResponseCheckTx(r, easy) 8265 return this 8266 } 8267 func NewPopulatedResponse_DeliverTx(r randyTypes, easy bool) *Response_DeliverTx { 8268 this := &Response_DeliverTx{} 8269 this.DeliverTx = NewPopulatedResponseDeliverTx(r, easy) 8270 return this 8271 } 8272 func NewPopulatedResponse_EndBlock(r randyTypes, easy bool) *Response_EndBlock { 8273 this := &Response_EndBlock{} 8274 this.EndBlock = NewPopulatedResponseEndBlock(r, easy) 8275 return this 8276 } 8277 func NewPopulatedResponse_Commit(r randyTypes, easy bool) *Response_Commit { 8278 this := &Response_Commit{} 8279 this.Commit = NewPopulatedResponseCommit(r, easy) 8280 return this 8281 } 8282 func NewPopulatedResponseException(r randyTypes, easy bool) *ResponseException { 8283 this := &ResponseException{} 8284 this.Error = string(randStringTypes(r)) 8285 if !easy && r.Intn(10) != 0 { 8286 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8287 } 8288 return this 8289 } 8290 8291 func NewPopulatedResponseEcho(r randyTypes, easy bool) *ResponseEcho { 8292 this := &ResponseEcho{} 8293 this.Message = string(randStringTypes(r)) 8294 if !easy && r.Intn(10) != 0 { 8295 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8296 } 8297 return this 8298 } 8299 8300 func NewPopulatedResponseFlush(r randyTypes, easy bool) *ResponseFlush { 8301 this := &ResponseFlush{} 8302 if !easy && r.Intn(10) != 0 { 8303 this.XXX_unrecognized = randUnrecognizedTypes(r, 1) 8304 } 8305 return this 8306 } 8307 8308 func NewPopulatedResponseInfo(r randyTypes, easy bool) *ResponseInfo { 8309 this := &ResponseInfo{} 8310 this.Data = string(randStringTypes(r)) 8311 this.Version = string(randStringTypes(r)) 8312 this.AppVersion = uint64(uint64(r.Uint32())) 8313 this.LastBlockHeight = int64(r.Int63()) 8314 if r.Intn(2) == 0 { 8315 this.LastBlockHeight *= -1 8316 } 8317 v15 := r.Intn(100) 8318 this.LastBlockAppHash = make([]byte, v15) 8319 for i := 0; i < v15; i++ { 8320 this.LastBlockAppHash[i] = byte(r.Intn(256)) 8321 } 8322 if !easy && r.Intn(10) != 0 { 8323 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8324 } 8325 return this 8326 } 8327 8328 func NewPopulatedResponseSetOption(r randyTypes, easy bool) *ResponseSetOption { 8329 this := &ResponseSetOption{} 8330 this.Code = uint32(r.Uint32()) 8331 this.Log = string(randStringTypes(r)) 8332 this.Info = string(randStringTypes(r)) 8333 if !easy && r.Intn(10) != 0 { 8334 this.XXX_unrecognized = randUnrecognizedTypes(r, 5) 8335 } 8336 return this 8337 } 8338 8339 func NewPopulatedResponseInitChain(r randyTypes, easy bool) *ResponseInitChain { 8340 this := &ResponseInitChain{} 8341 if r.Intn(5) != 0 { 8342 this.ConsensusParams = NewPopulatedConsensusParams(r, easy) 8343 } 8344 if r.Intn(5) != 0 { 8345 v16 := r.Intn(5) 8346 this.Validators = make([]ValidatorUpdate, v16) 8347 for i := 0; i < v16; i++ { 8348 v17 := NewPopulatedValidatorUpdate(r, easy) 8349 this.Validators[i] = *v17 8350 } 8351 } 8352 if !easy && r.Intn(10) != 0 { 8353 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8354 } 8355 return this 8356 } 8357 8358 func NewPopulatedResponseQuery(r randyTypes, easy bool) *ResponseQuery { 8359 this := &ResponseQuery{} 8360 this.Code = uint32(r.Uint32()) 8361 this.Log = string(randStringTypes(r)) 8362 this.Info = string(randStringTypes(r)) 8363 this.Index = int64(r.Int63()) 8364 if r.Intn(2) == 0 { 8365 this.Index *= -1 8366 } 8367 v18 := r.Intn(100) 8368 this.Key = make([]byte, v18) 8369 for i := 0; i < v18; i++ { 8370 this.Key[i] = byte(r.Intn(256)) 8371 } 8372 v19 := r.Intn(100) 8373 this.Value = make([]byte, v19) 8374 for i := 0; i < v19; i++ { 8375 this.Value[i] = byte(r.Intn(256)) 8376 } 8377 if r.Intn(5) != 0 { 8378 this.Proof = merkle.NewPopulatedProof(r, easy) 8379 } 8380 this.Height = int64(r.Int63()) 8381 if r.Intn(2) == 0 { 8382 this.Height *= -1 8383 } 8384 this.Codespace = string(randStringTypes(r)) 8385 if !easy && r.Intn(10) != 0 { 8386 this.XXX_unrecognized = randUnrecognizedTypes(r, 11) 8387 } 8388 return this 8389 } 8390 8391 func NewPopulatedResponseBeginBlock(r randyTypes, easy bool) *ResponseBeginBlock { 8392 this := &ResponseBeginBlock{} 8393 if r.Intn(5) != 0 { 8394 v20 := r.Intn(5) 8395 this.Events = make([]Event, v20) 8396 for i := 0; i < v20; i++ { 8397 v21 := NewPopulatedEvent(r, easy) 8398 this.Events[i] = *v21 8399 } 8400 } 8401 if !easy && r.Intn(10) != 0 { 8402 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8403 } 8404 return this 8405 } 8406 8407 func NewPopulatedResponseCheckTx(r randyTypes, easy bool) *ResponseCheckTx { 8408 this := &ResponseCheckTx{} 8409 this.Code = uint32(r.Uint32()) 8410 v22 := r.Intn(100) 8411 this.Data = make([]byte, v22) 8412 for i := 0; i < v22; i++ { 8413 this.Data[i] = byte(r.Intn(256)) 8414 } 8415 this.Log = string(randStringTypes(r)) 8416 this.Info = string(randStringTypes(r)) 8417 this.GasWanted = int64(r.Int63()) 8418 if r.Intn(2) == 0 { 8419 this.GasWanted *= -1 8420 } 8421 this.GasUsed = int64(r.Int63()) 8422 if r.Intn(2) == 0 { 8423 this.GasUsed *= -1 8424 } 8425 if r.Intn(5) != 0 { 8426 v23 := r.Intn(5) 8427 this.Events = make([]Event, v23) 8428 for i := 0; i < v23; i++ { 8429 v24 := NewPopulatedEvent(r, easy) 8430 this.Events[i] = *v24 8431 } 8432 } 8433 this.Codespace = string(randStringTypes(r)) 8434 if !easy && r.Intn(10) != 0 { 8435 this.XXX_unrecognized = randUnrecognizedTypes(r, 9) 8436 } 8437 return this 8438 } 8439 8440 func NewPopulatedResponseDeliverTx(r randyTypes, easy bool) *ResponseDeliverTx { 8441 this := &ResponseDeliverTx{} 8442 this.Code = uint32(r.Uint32()) 8443 v25 := r.Intn(100) 8444 this.Data = make([]byte, v25) 8445 for i := 0; i < v25; i++ { 8446 this.Data[i] = byte(r.Intn(256)) 8447 } 8448 this.Log = string(randStringTypes(r)) 8449 this.Info = string(randStringTypes(r)) 8450 this.GasWanted = int64(r.Int63()) 8451 if r.Intn(2) == 0 { 8452 this.GasWanted *= -1 8453 } 8454 this.GasUsed = int64(r.Int63()) 8455 if r.Intn(2) == 0 { 8456 this.GasUsed *= -1 8457 } 8458 if r.Intn(5) != 0 { 8459 v26 := r.Intn(5) 8460 this.Events = make([]Event, v26) 8461 for i := 0; i < v26; i++ { 8462 v27 := NewPopulatedEvent(r, easy) 8463 this.Events[i] = *v27 8464 } 8465 } 8466 this.Codespace = string(randStringTypes(r)) 8467 if !easy && r.Intn(10) != 0 { 8468 this.XXX_unrecognized = randUnrecognizedTypes(r, 9) 8469 } 8470 return this 8471 } 8472 8473 func NewPopulatedResponseEndBlock(r randyTypes, easy bool) *ResponseEndBlock { 8474 this := &ResponseEndBlock{} 8475 if r.Intn(5) != 0 { 8476 v28 := r.Intn(5) 8477 this.ValidatorUpdates = make([]ValidatorUpdate, v28) 8478 for i := 0; i < v28; i++ { 8479 v29 := NewPopulatedValidatorUpdate(r, easy) 8480 this.ValidatorUpdates[i] = *v29 8481 } 8482 } 8483 if r.Intn(5) != 0 { 8484 this.ConsensusParamUpdates = NewPopulatedConsensusParams(r, easy) 8485 } 8486 if r.Intn(5) != 0 { 8487 v30 := r.Intn(5) 8488 this.Events = make([]Event, v30) 8489 for i := 0; i < v30; i++ { 8490 v31 := NewPopulatedEvent(r, easy) 8491 this.Events[i] = *v31 8492 } 8493 } 8494 if !easy && r.Intn(10) != 0 { 8495 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8496 } 8497 return this 8498 } 8499 8500 func NewPopulatedResponseCommit(r randyTypes, easy bool) *ResponseCommit { 8501 this := &ResponseCommit{} 8502 v32 := r.Intn(100) 8503 this.Data = make([]byte, v32) 8504 for i := 0; i < v32; i++ { 8505 this.Data[i] = byte(r.Intn(256)) 8506 } 8507 this.RetainHeight = int64(r.Int63()) 8508 if r.Intn(2) == 0 { 8509 this.RetainHeight *= -1 8510 } 8511 if !easy && r.Intn(10) != 0 { 8512 this.XXX_unrecognized = randUnrecognizedTypes(r, 5) 8513 } 8514 return this 8515 } 8516 8517 func NewPopulatedConsensusParams(r randyTypes, easy bool) *ConsensusParams { 8518 this := &ConsensusParams{} 8519 if r.Intn(5) != 0 { 8520 this.Block = NewPopulatedBlockParams(r, easy) 8521 } 8522 if r.Intn(5) != 0 { 8523 this.Evidence = NewPopulatedEvidenceParams(r, easy) 8524 } 8525 if r.Intn(5) != 0 { 8526 this.Validator = NewPopulatedValidatorParams(r, easy) 8527 } 8528 if !easy && r.Intn(10) != 0 { 8529 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8530 } 8531 return this 8532 } 8533 8534 func NewPopulatedBlockParams(r randyTypes, easy bool) *BlockParams { 8535 this := &BlockParams{} 8536 this.MaxBytes = int64(r.Int63()) 8537 if r.Intn(2) == 0 { 8538 this.MaxBytes *= -1 8539 } 8540 this.MaxGas = int64(r.Int63()) 8541 if r.Intn(2) == 0 { 8542 this.MaxGas *= -1 8543 } 8544 if !easy && r.Intn(10) != 0 { 8545 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8546 } 8547 return this 8548 } 8549 8550 func NewPopulatedEvidenceParams(r randyTypes, easy bool) *EvidenceParams { 8551 this := &EvidenceParams{} 8552 this.MaxAgeNumBlocks = int64(r.Int63()) 8553 if r.Intn(2) == 0 { 8554 this.MaxAgeNumBlocks *= -1 8555 } 8556 v33 := github_com_gogo_protobuf_types.NewPopulatedStdDuration(r, easy) 8557 this.MaxAgeDuration = *v33 8558 if !easy && r.Intn(10) != 0 { 8559 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8560 } 8561 return this 8562 } 8563 8564 func NewPopulatedValidatorParams(r randyTypes, easy bool) *ValidatorParams { 8565 this := &ValidatorParams{} 8566 v34 := r.Intn(10) 8567 this.PubKeyTypes = make([]string, v34) 8568 for i := 0; i < v34; i++ { 8569 this.PubKeyTypes[i] = string(randStringTypes(r)) 8570 } 8571 if !easy && r.Intn(10) != 0 { 8572 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8573 } 8574 return this 8575 } 8576 8577 func NewPopulatedLastCommitInfo(r randyTypes, easy bool) *LastCommitInfo { 8578 this := &LastCommitInfo{} 8579 this.Round = int32(r.Int31()) 8580 if r.Intn(2) == 0 { 8581 this.Round *= -1 8582 } 8583 if r.Intn(5) != 0 { 8584 v35 := r.Intn(5) 8585 this.Votes = make([]VoteInfo, v35) 8586 for i := 0; i < v35; i++ { 8587 v36 := NewPopulatedVoteInfo(r, easy) 8588 this.Votes[i] = *v36 8589 } 8590 } 8591 if !easy && r.Intn(10) != 0 { 8592 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8593 } 8594 return this 8595 } 8596 8597 func NewPopulatedEvent(r randyTypes, easy bool) *Event { 8598 this := &Event{} 8599 this.Type = string(randStringTypes(r)) 8600 if r.Intn(5) != 0 { 8601 v37 := r.Intn(5) 8602 this.Attributes = make([]kv.Pair, v37) 8603 for i := 0; i < v37; i++ { 8604 v38 := kv.NewPopulatedPair(r, easy) 8605 this.Attributes[i] = *v38 8606 } 8607 } 8608 if !easy && r.Intn(10) != 0 { 8609 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8610 } 8611 return this 8612 } 8613 8614 func NewPopulatedHeader(r randyTypes, easy bool) *Header { 8615 this := &Header{} 8616 v39 := NewPopulatedVersion(r, easy) 8617 this.Version = *v39 8618 this.ChainID = string(randStringTypes(r)) 8619 this.Height = int64(r.Int63()) 8620 if r.Intn(2) == 0 { 8621 this.Height *= -1 8622 } 8623 v40 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy) 8624 this.Time = *v40 8625 v41 := NewPopulatedBlockID(r, easy) 8626 this.LastBlockId = *v41 8627 v42 := r.Intn(100) 8628 this.LastCommitHash = make([]byte, v42) 8629 for i := 0; i < v42; i++ { 8630 this.LastCommitHash[i] = byte(r.Intn(256)) 8631 } 8632 v43 := r.Intn(100) 8633 this.DataHash = make([]byte, v43) 8634 for i := 0; i < v43; i++ { 8635 this.DataHash[i] = byte(r.Intn(256)) 8636 } 8637 v44 := r.Intn(100) 8638 this.ValidatorsHash = make([]byte, v44) 8639 for i := 0; i < v44; i++ { 8640 this.ValidatorsHash[i] = byte(r.Intn(256)) 8641 } 8642 v45 := r.Intn(100) 8643 this.NextValidatorsHash = make([]byte, v45) 8644 for i := 0; i < v45; i++ { 8645 this.NextValidatorsHash[i] = byte(r.Intn(256)) 8646 } 8647 v46 := r.Intn(100) 8648 this.ConsensusHash = make([]byte, v46) 8649 for i := 0; i < v46; i++ { 8650 this.ConsensusHash[i] = byte(r.Intn(256)) 8651 } 8652 v47 := r.Intn(100) 8653 this.AppHash = make([]byte, v47) 8654 for i := 0; i < v47; i++ { 8655 this.AppHash[i] = byte(r.Intn(256)) 8656 } 8657 v48 := r.Intn(100) 8658 this.LastResultsHash = make([]byte, v48) 8659 for i := 0; i < v48; i++ { 8660 this.LastResultsHash[i] = byte(r.Intn(256)) 8661 } 8662 v49 := r.Intn(100) 8663 this.EvidenceHash = make([]byte, v49) 8664 for i := 0; i < v49; i++ { 8665 this.EvidenceHash[i] = byte(r.Intn(256)) 8666 } 8667 v50 := r.Intn(100) 8668 this.ProposerAddress = make([]byte, v50) 8669 for i := 0; i < v50; i++ { 8670 this.ProposerAddress[i] = byte(r.Intn(256)) 8671 } 8672 if !easy && r.Intn(10) != 0 { 8673 this.XXX_unrecognized = randUnrecognizedTypes(r, 15) 8674 } 8675 return this 8676 } 8677 8678 func NewPopulatedVersion(r randyTypes, easy bool) *Version { 8679 this := &Version{} 8680 this.Block = uint64(uint64(r.Uint32())) 8681 this.App = uint64(uint64(r.Uint32())) 8682 if !easy && r.Intn(10) != 0 { 8683 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8684 } 8685 return this 8686 } 8687 8688 func NewPopulatedBlockID(r randyTypes, easy bool) *BlockID { 8689 this := &BlockID{} 8690 v51 := r.Intn(100) 8691 this.Hash = make([]byte, v51) 8692 for i := 0; i < v51; i++ { 8693 this.Hash[i] = byte(r.Intn(256)) 8694 } 8695 v52 := NewPopulatedPartSetHeader(r, easy) 8696 this.PartsHeader = *v52 8697 if !easy && r.Intn(10) != 0 { 8698 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8699 } 8700 return this 8701 } 8702 8703 func NewPopulatedPartSetHeader(r randyTypes, easy bool) *PartSetHeader { 8704 this := &PartSetHeader{} 8705 this.Total = int32(r.Int31()) 8706 if r.Intn(2) == 0 { 8707 this.Total *= -1 8708 } 8709 v53 := r.Intn(100) 8710 this.Hash = make([]byte, v53) 8711 for i := 0; i < v53; i++ { 8712 this.Hash[i] = byte(r.Intn(256)) 8713 } 8714 if !easy && r.Intn(10) != 0 { 8715 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8716 } 8717 return this 8718 } 8719 8720 func NewPopulatedValidator(r randyTypes, easy bool) *Validator { 8721 this := &Validator{} 8722 v54 := r.Intn(100) 8723 this.Address = make([]byte, v54) 8724 for i := 0; i < v54; i++ { 8725 this.Address[i] = byte(r.Intn(256)) 8726 } 8727 this.Power = int64(r.Int63()) 8728 if r.Intn(2) == 0 { 8729 this.Power *= -1 8730 } 8731 if !easy && r.Intn(10) != 0 { 8732 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8733 } 8734 return this 8735 } 8736 8737 func NewPopulatedValidatorUpdate(r randyTypes, easy bool) *ValidatorUpdate { 8738 this := &ValidatorUpdate{} 8739 v55 := NewPopulatedPubKey(r, easy) 8740 this.PubKey = *v55 8741 this.Power = int64(r.Int63()) 8742 if r.Intn(2) == 0 { 8743 this.Power *= -1 8744 } 8745 if !easy && r.Intn(10) != 0 { 8746 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8747 } 8748 return this 8749 } 8750 8751 func NewPopulatedVoteInfo(r randyTypes, easy bool) *VoteInfo { 8752 this := &VoteInfo{} 8753 v56 := NewPopulatedValidator(r, easy) 8754 this.Validator = *v56 8755 this.SignedLastBlock = bool(bool(r.Intn(2) == 0)) 8756 if !easy && r.Intn(10) != 0 { 8757 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8758 } 8759 return this 8760 } 8761 8762 func NewPopulatedPubKey(r randyTypes, easy bool) *PubKey { 8763 this := &PubKey{} 8764 this.Type = string(randStringTypes(r)) 8765 v57 := r.Intn(100) 8766 this.Data = make([]byte, v57) 8767 for i := 0; i < v57; i++ { 8768 this.Data[i] = byte(r.Intn(256)) 8769 } 8770 if !easy && r.Intn(10) != 0 { 8771 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8772 } 8773 return this 8774 } 8775 8776 func NewPopulatedEvidence(r randyTypes, easy bool) *Evidence { 8777 this := &Evidence{} 8778 this.Type = string(randStringTypes(r)) 8779 v58 := NewPopulatedValidator(r, easy) 8780 this.Validator = *v58 8781 this.Height = int64(r.Int63()) 8782 if r.Intn(2) == 0 { 8783 this.Height *= -1 8784 } 8785 v59 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy) 8786 this.Time = *v59 8787 this.TotalVotingPower = int64(r.Int63()) 8788 if r.Intn(2) == 0 { 8789 this.TotalVotingPower *= -1 8790 } 8791 if !easy && r.Intn(10) != 0 { 8792 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8793 } 8794 return this 8795 } 8796 8797 type randyTypes interface { 8798 Float32() float32 8799 Float64() float64 8800 Int63() int64 8801 Int31() int32 8802 Uint32() uint32 8803 Intn(n int) int 8804 } 8805 8806 func randUTF8RuneTypes(r randyTypes) rune { 8807 ru := r.Intn(62) 8808 if ru < 10 { 8809 return rune(ru + 48) 8810 } else if ru < 36 { 8811 return rune(ru + 55) 8812 } 8813 return rune(ru + 61) 8814 } 8815 func randStringTypes(r randyTypes) string { 8816 v60 := r.Intn(100) 8817 tmps := make([]rune, v60) 8818 for i := 0; i < v60; i++ { 8819 tmps[i] = randUTF8RuneTypes(r) 8820 } 8821 return string(tmps) 8822 } 8823 func randUnrecognizedTypes(r randyTypes, maxFieldNumber int) (dAtA []byte) { 8824 l := r.Intn(5) 8825 for i := 0; i < l; i++ { 8826 wire := r.Intn(4) 8827 if wire == 3 { 8828 wire = 5 8829 } 8830 fieldNumber := maxFieldNumber + r.Intn(100) 8831 dAtA = randFieldTypes(dAtA, r, fieldNumber, wire) 8832 } 8833 return dAtA 8834 } 8835 func randFieldTypes(dAtA []byte, r randyTypes, fieldNumber int, wire int) []byte { 8836 key := uint32(fieldNumber)<<3 | uint32(wire) 8837 switch wire { 8838 case 0: 8839 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8840 v61 := r.Int63() 8841 if r.Intn(2) == 0 { 8842 v61 *= -1 8843 } 8844 dAtA = encodeVarintPopulateTypes(dAtA, uint64(v61)) 8845 case 1: 8846 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8847 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))) 8848 case 2: 8849 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8850 ll := r.Intn(100) 8851 dAtA = encodeVarintPopulateTypes(dAtA, uint64(ll)) 8852 for j := 0; j < ll; j++ { 8853 dAtA = append(dAtA, byte(r.Intn(256))) 8854 } 8855 default: 8856 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8857 dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) 8858 } 8859 return dAtA 8860 } 8861 func encodeVarintPopulateTypes(dAtA []byte, v uint64) []byte { 8862 for v >= 1<<7 { 8863 dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) 8864 v >>= 7 8865 } 8866 dAtA = append(dAtA, uint8(v)) 8867 return dAtA 8868 } 8869 func (m *Request) Size() (n int) { 8870 if m == nil { 8871 return 0 8872 } 8873 var l int 8874 _ = l 8875 if m.Value != nil { 8876 n += m.Value.Size() 8877 } 8878 if m.XXX_unrecognized != nil { 8879 n += len(m.XXX_unrecognized) 8880 } 8881 return n 8882 } 8883 8884 func (m *Request_Echo) Size() (n int) { 8885 if m == nil { 8886 return 0 8887 } 8888 var l int 8889 _ = l 8890 if m.Echo != nil { 8891 l = m.Echo.Size() 8892 n += 1 + l + sovTypes(uint64(l)) 8893 } 8894 return n 8895 } 8896 func (m *Request_Flush) Size() (n int) { 8897 if m == nil { 8898 return 0 8899 } 8900 var l int 8901 _ = l 8902 if m.Flush != nil { 8903 l = m.Flush.Size() 8904 n += 1 + l + sovTypes(uint64(l)) 8905 } 8906 return n 8907 } 8908 func (m *Request_Info) Size() (n int) { 8909 if m == nil { 8910 return 0 8911 } 8912 var l int 8913 _ = l 8914 if m.Info != nil { 8915 l = m.Info.Size() 8916 n += 1 + l + sovTypes(uint64(l)) 8917 } 8918 return n 8919 } 8920 func (m *Request_SetOption) Size() (n int) { 8921 if m == nil { 8922 return 0 8923 } 8924 var l int 8925 _ = l 8926 if m.SetOption != nil { 8927 l = m.SetOption.Size() 8928 n += 1 + l + sovTypes(uint64(l)) 8929 } 8930 return n 8931 } 8932 func (m *Request_InitChain) Size() (n int) { 8933 if m == nil { 8934 return 0 8935 } 8936 var l int 8937 _ = l 8938 if m.InitChain != nil { 8939 l = m.InitChain.Size() 8940 n += 1 + l + sovTypes(uint64(l)) 8941 } 8942 return n 8943 } 8944 func (m *Request_Query) Size() (n int) { 8945 if m == nil { 8946 return 0 8947 } 8948 var l int 8949 _ = l 8950 if m.Query != nil { 8951 l = m.Query.Size() 8952 n += 1 + l + sovTypes(uint64(l)) 8953 } 8954 return n 8955 } 8956 func (m *Request_BeginBlock) Size() (n int) { 8957 if m == nil { 8958 return 0 8959 } 8960 var l int 8961 _ = l 8962 if m.BeginBlock != nil { 8963 l = m.BeginBlock.Size() 8964 n += 1 + l + sovTypes(uint64(l)) 8965 } 8966 return n 8967 } 8968 func (m *Request_CheckTx) Size() (n int) { 8969 if m == nil { 8970 return 0 8971 } 8972 var l int 8973 _ = l 8974 if m.CheckTx != nil { 8975 l = m.CheckTx.Size() 8976 n += 1 + l + sovTypes(uint64(l)) 8977 } 8978 return n 8979 } 8980 func (m *Request_EndBlock) Size() (n int) { 8981 if m == nil { 8982 return 0 8983 } 8984 var l int 8985 _ = l 8986 if m.EndBlock != nil { 8987 l = m.EndBlock.Size() 8988 n += 1 + l + sovTypes(uint64(l)) 8989 } 8990 return n 8991 } 8992 func (m *Request_Commit) Size() (n int) { 8993 if m == nil { 8994 return 0 8995 } 8996 var l int 8997 _ = l 8998 if m.Commit != nil { 8999 l = m.Commit.Size() 9000 n += 1 + l + sovTypes(uint64(l)) 9001 } 9002 return n 9003 } 9004 func (m *Request_DeliverTx) Size() (n int) { 9005 if m == nil { 9006 return 0 9007 } 9008 var l int 9009 _ = l 9010 if m.DeliverTx != nil { 9011 l = m.DeliverTx.Size() 9012 n += 2 + l + sovTypes(uint64(l)) 9013 } 9014 return n 9015 } 9016 func (m *RequestEcho) Size() (n int) { 9017 if m == nil { 9018 return 0 9019 } 9020 var l int 9021 _ = l 9022 l = len(m.Message) 9023 if l > 0 { 9024 n += 1 + l + sovTypes(uint64(l)) 9025 } 9026 if m.XXX_unrecognized != nil { 9027 n += len(m.XXX_unrecognized) 9028 } 9029 return n 9030 } 9031 9032 func (m *RequestFlush) Size() (n int) { 9033 if m == nil { 9034 return 0 9035 } 9036 var l int 9037 _ = l 9038 if m.XXX_unrecognized != nil { 9039 n += len(m.XXX_unrecognized) 9040 } 9041 return n 9042 } 9043 9044 func (m *RequestInfo) Size() (n int) { 9045 if m == nil { 9046 return 0 9047 } 9048 var l int 9049 _ = l 9050 l = len(m.Version) 9051 if l > 0 { 9052 n += 1 + l + sovTypes(uint64(l)) 9053 } 9054 if m.BlockVersion != 0 { 9055 n += 1 + sovTypes(uint64(m.BlockVersion)) 9056 } 9057 if m.P2PVersion != 0 { 9058 n += 1 + sovTypes(uint64(m.P2PVersion)) 9059 } 9060 if m.XXX_unrecognized != nil { 9061 n += len(m.XXX_unrecognized) 9062 } 9063 return n 9064 } 9065 9066 func (m *RequestSetOption) Size() (n int) { 9067 if m == nil { 9068 return 0 9069 } 9070 var l int 9071 _ = l 9072 l = len(m.Key) 9073 if l > 0 { 9074 n += 1 + l + sovTypes(uint64(l)) 9075 } 9076 l = len(m.Value) 9077 if l > 0 { 9078 n += 1 + l + sovTypes(uint64(l)) 9079 } 9080 if m.XXX_unrecognized != nil { 9081 n += len(m.XXX_unrecognized) 9082 } 9083 return n 9084 } 9085 9086 func (m *RequestInitChain) Size() (n int) { 9087 if m == nil { 9088 return 0 9089 } 9090 var l int 9091 _ = l 9092 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 9093 n += 1 + l + sovTypes(uint64(l)) 9094 l = len(m.ChainId) 9095 if l > 0 { 9096 n += 1 + l + sovTypes(uint64(l)) 9097 } 9098 if m.ConsensusParams != nil { 9099 l = m.ConsensusParams.Size() 9100 n += 1 + l + sovTypes(uint64(l)) 9101 } 9102 if len(m.Validators) > 0 { 9103 for _, e := range m.Validators { 9104 l = e.Size() 9105 n += 1 + l + sovTypes(uint64(l)) 9106 } 9107 } 9108 l = len(m.AppStateBytes) 9109 if l > 0 { 9110 n += 1 + l + sovTypes(uint64(l)) 9111 } 9112 if m.XXX_unrecognized != nil { 9113 n += len(m.XXX_unrecognized) 9114 } 9115 return n 9116 } 9117 9118 func (m *RequestQuery) Size() (n int) { 9119 if m == nil { 9120 return 0 9121 } 9122 var l int 9123 _ = l 9124 l = len(m.Data) 9125 if l > 0 { 9126 n += 1 + l + sovTypes(uint64(l)) 9127 } 9128 l = len(m.Path) 9129 if l > 0 { 9130 n += 1 + l + sovTypes(uint64(l)) 9131 } 9132 if m.Height != 0 { 9133 n += 1 + sovTypes(uint64(m.Height)) 9134 } 9135 if m.Prove { 9136 n += 2 9137 } 9138 if m.XXX_unrecognized != nil { 9139 n += len(m.XXX_unrecognized) 9140 } 9141 return n 9142 } 9143 9144 func (m *RequestBeginBlock) Size() (n int) { 9145 if m == nil { 9146 return 0 9147 } 9148 var l int 9149 _ = l 9150 l = len(m.Hash) 9151 if l > 0 { 9152 n += 1 + l + sovTypes(uint64(l)) 9153 } 9154 l = m.Header.Size() 9155 n += 1 + l + sovTypes(uint64(l)) 9156 l = m.LastCommitInfo.Size() 9157 n += 1 + l + sovTypes(uint64(l)) 9158 if len(m.ByzantineValidators) > 0 { 9159 for _, e := range m.ByzantineValidators { 9160 l = e.Size() 9161 n += 1 + l + sovTypes(uint64(l)) 9162 } 9163 } 9164 if m.XXX_unrecognized != nil { 9165 n += len(m.XXX_unrecognized) 9166 } 9167 return n 9168 } 9169 9170 func (m *RequestCheckTx) Size() (n int) { 9171 if m == nil { 9172 return 0 9173 } 9174 var l int 9175 _ = l 9176 l = len(m.Tx) 9177 if l > 0 { 9178 n += 1 + l + sovTypes(uint64(l)) 9179 } 9180 if m.Type != 0 { 9181 n += 1 + sovTypes(uint64(m.Type)) 9182 } 9183 if m.XXX_unrecognized != nil { 9184 n += len(m.XXX_unrecognized) 9185 } 9186 return n 9187 } 9188 9189 func (m *RequestDeliverTx) Size() (n int) { 9190 if m == nil { 9191 return 0 9192 } 9193 var l int 9194 _ = l 9195 l = len(m.Tx) 9196 if l > 0 { 9197 n += 1 + l + sovTypes(uint64(l)) 9198 } 9199 if m.XXX_unrecognized != nil { 9200 n += len(m.XXX_unrecognized) 9201 } 9202 return n 9203 } 9204 9205 func (m *RequestEndBlock) Size() (n int) { 9206 if m == nil { 9207 return 0 9208 } 9209 var l int 9210 _ = l 9211 if m.Height != 0 { 9212 n += 1 + sovTypes(uint64(m.Height)) 9213 } 9214 if m.XXX_unrecognized != nil { 9215 n += len(m.XXX_unrecognized) 9216 } 9217 return n 9218 } 9219 9220 func (m *RequestCommit) Size() (n int) { 9221 if m == nil { 9222 return 0 9223 } 9224 var l int 9225 _ = l 9226 if m.XXX_unrecognized != nil { 9227 n += len(m.XXX_unrecognized) 9228 } 9229 return n 9230 } 9231 9232 func (m *Response) Size() (n int) { 9233 if m == nil { 9234 return 0 9235 } 9236 var l int 9237 _ = l 9238 if m.Value != nil { 9239 n += m.Value.Size() 9240 } 9241 if m.XXX_unrecognized != nil { 9242 n += len(m.XXX_unrecognized) 9243 } 9244 return n 9245 } 9246 9247 func (m *Response_Exception) Size() (n int) { 9248 if m == nil { 9249 return 0 9250 } 9251 var l int 9252 _ = l 9253 if m.Exception != nil { 9254 l = m.Exception.Size() 9255 n += 1 + l + sovTypes(uint64(l)) 9256 } 9257 return n 9258 } 9259 func (m *Response_Echo) Size() (n int) { 9260 if m == nil { 9261 return 0 9262 } 9263 var l int 9264 _ = l 9265 if m.Echo != nil { 9266 l = m.Echo.Size() 9267 n += 1 + l + sovTypes(uint64(l)) 9268 } 9269 return n 9270 } 9271 func (m *Response_Flush) Size() (n int) { 9272 if m == nil { 9273 return 0 9274 } 9275 var l int 9276 _ = l 9277 if m.Flush != nil { 9278 l = m.Flush.Size() 9279 n += 1 + l + sovTypes(uint64(l)) 9280 } 9281 return n 9282 } 9283 func (m *Response_Info) Size() (n int) { 9284 if m == nil { 9285 return 0 9286 } 9287 var l int 9288 _ = l 9289 if m.Info != nil { 9290 l = m.Info.Size() 9291 n += 1 + l + sovTypes(uint64(l)) 9292 } 9293 return n 9294 } 9295 func (m *Response_SetOption) Size() (n int) { 9296 if m == nil { 9297 return 0 9298 } 9299 var l int 9300 _ = l 9301 if m.SetOption != nil { 9302 l = m.SetOption.Size() 9303 n += 1 + l + sovTypes(uint64(l)) 9304 } 9305 return n 9306 } 9307 func (m *Response_InitChain) Size() (n int) { 9308 if m == nil { 9309 return 0 9310 } 9311 var l int 9312 _ = l 9313 if m.InitChain != nil { 9314 l = m.InitChain.Size() 9315 n += 1 + l + sovTypes(uint64(l)) 9316 } 9317 return n 9318 } 9319 func (m *Response_Query) Size() (n int) { 9320 if m == nil { 9321 return 0 9322 } 9323 var l int 9324 _ = l 9325 if m.Query != nil { 9326 l = m.Query.Size() 9327 n += 1 + l + sovTypes(uint64(l)) 9328 } 9329 return n 9330 } 9331 func (m *Response_BeginBlock) Size() (n int) { 9332 if m == nil { 9333 return 0 9334 } 9335 var l int 9336 _ = l 9337 if m.BeginBlock != nil { 9338 l = m.BeginBlock.Size() 9339 n += 1 + l + sovTypes(uint64(l)) 9340 } 9341 return n 9342 } 9343 func (m *Response_CheckTx) Size() (n int) { 9344 if m == nil { 9345 return 0 9346 } 9347 var l int 9348 _ = l 9349 if m.CheckTx != nil { 9350 l = m.CheckTx.Size() 9351 n += 1 + l + sovTypes(uint64(l)) 9352 } 9353 return n 9354 } 9355 func (m *Response_DeliverTx) Size() (n int) { 9356 if m == nil { 9357 return 0 9358 } 9359 var l int 9360 _ = l 9361 if m.DeliverTx != nil { 9362 l = m.DeliverTx.Size() 9363 n += 1 + l + sovTypes(uint64(l)) 9364 } 9365 return n 9366 } 9367 func (m *Response_EndBlock) Size() (n int) { 9368 if m == nil { 9369 return 0 9370 } 9371 var l int 9372 _ = l 9373 if m.EndBlock != nil { 9374 l = m.EndBlock.Size() 9375 n += 1 + l + sovTypes(uint64(l)) 9376 } 9377 return n 9378 } 9379 func (m *Response_Commit) Size() (n int) { 9380 if m == nil { 9381 return 0 9382 } 9383 var l int 9384 _ = l 9385 if m.Commit != nil { 9386 l = m.Commit.Size() 9387 n += 1 + l + sovTypes(uint64(l)) 9388 } 9389 return n 9390 } 9391 func (m *ResponseException) Size() (n int) { 9392 if m == nil { 9393 return 0 9394 } 9395 var l int 9396 _ = l 9397 l = len(m.Error) 9398 if l > 0 { 9399 n += 1 + l + sovTypes(uint64(l)) 9400 } 9401 if m.XXX_unrecognized != nil { 9402 n += len(m.XXX_unrecognized) 9403 } 9404 return n 9405 } 9406 9407 func (m *ResponseEcho) Size() (n int) { 9408 if m == nil { 9409 return 0 9410 } 9411 var l int 9412 _ = l 9413 l = len(m.Message) 9414 if l > 0 { 9415 n += 1 + l + sovTypes(uint64(l)) 9416 } 9417 if m.XXX_unrecognized != nil { 9418 n += len(m.XXX_unrecognized) 9419 } 9420 return n 9421 } 9422 9423 func (m *ResponseFlush) Size() (n int) { 9424 if m == nil { 9425 return 0 9426 } 9427 var l int 9428 _ = l 9429 if m.XXX_unrecognized != nil { 9430 n += len(m.XXX_unrecognized) 9431 } 9432 return n 9433 } 9434 9435 func (m *ResponseInfo) Size() (n int) { 9436 if m == nil { 9437 return 0 9438 } 9439 var l int 9440 _ = l 9441 l = len(m.Data) 9442 if l > 0 { 9443 n += 1 + l + sovTypes(uint64(l)) 9444 } 9445 l = len(m.Version) 9446 if l > 0 { 9447 n += 1 + l + sovTypes(uint64(l)) 9448 } 9449 if m.AppVersion != 0 { 9450 n += 1 + sovTypes(uint64(m.AppVersion)) 9451 } 9452 if m.LastBlockHeight != 0 { 9453 n += 1 + sovTypes(uint64(m.LastBlockHeight)) 9454 } 9455 l = len(m.LastBlockAppHash) 9456 if l > 0 { 9457 n += 1 + l + sovTypes(uint64(l)) 9458 } 9459 if m.XXX_unrecognized != nil { 9460 n += len(m.XXX_unrecognized) 9461 } 9462 return n 9463 } 9464 9465 func (m *ResponseSetOption) Size() (n int) { 9466 if m == nil { 9467 return 0 9468 } 9469 var l int 9470 _ = l 9471 if m.Code != 0 { 9472 n += 1 + sovTypes(uint64(m.Code)) 9473 } 9474 l = len(m.Log) 9475 if l > 0 { 9476 n += 1 + l + sovTypes(uint64(l)) 9477 } 9478 l = len(m.Info) 9479 if l > 0 { 9480 n += 1 + l + sovTypes(uint64(l)) 9481 } 9482 if m.XXX_unrecognized != nil { 9483 n += len(m.XXX_unrecognized) 9484 } 9485 return n 9486 } 9487 9488 func (m *ResponseInitChain) Size() (n int) { 9489 if m == nil { 9490 return 0 9491 } 9492 var l int 9493 _ = l 9494 if m.ConsensusParams != nil { 9495 l = m.ConsensusParams.Size() 9496 n += 1 + l + sovTypes(uint64(l)) 9497 } 9498 if len(m.Validators) > 0 { 9499 for _, e := range m.Validators { 9500 l = e.Size() 9501 n += 1 + l + sovTypes(uint64(l)) 9502 } 9503 } 9504 if m.XXX_unrecognized != nil { 9505 n += len(m.XXX_unrecognized) 9506 } 9507 return n 9508 } 9509 9510 func (m *ResponseQuery) Size() (n int) { 9511 if m == nil { 9512 return 0 9513 } 9514 var l int 9515 _ = l 9516 if m.Code != 0 { 9517 n += 1 + sovTypes(uint64(m.Code)) 9518 } 9519 l = len(m.Log) 9520 if l > 0 { 9521 n += 1 + l + sovTypes(uint64(l)) 9522 } 9523 l = len(m.Info) 9524 if l > 0 { 9525 n += 1 + l + sovTypes(uint64(l)) 9526 } 9527 if m.Index != 0 { 9528 n += 1 + sovTypes(uint64(m.Index)) 9529 } 9530 l = len(m.Key) 9531 if l > 0 { 9532 n += 1 + l + sovTypes(uint64(l)) 9533 } 9534 l = len(m.Value) 9535 if l > 0 { 9536 n += 1 + l + sovTypes(uint64(l)) 9537 } 9538 if m.Proof != nil { 9539 l = m.Proof.Size() 9540 n += 1 + l + sovTypes(uint64(l)) 9541 } 9542 if m.Height != 0 { 9543 n += 1 + sovTypes(uint64(m.Height)) 9544 } 9545 l = len(m.Codespace) 9546 if l > 0 { 9547 n += 1 + l + sovTypes(uint64(l)) 9548 } 9549 if m.XXX_unrecognized != nil { 9550 n += len(m.XXX_unrecognized) 9551 } 9552 return n 9553 } 9554 9555 func (m *ResponseBeginBlock) Size() (n int) { 9556 if m == nil { 9557 return 0 9558 } 9559 var l int 9560 _ = l 9561 if len(m.Events) > 0 { 9562 for _, e := range m.Events { 9563 l = e.Size() 9564 n += 1 + l + sovTypes(uint64(l)) 9565 } 9566 } 9567 if m.XXX_unrecognized != nil { 9568 n += len(m.XXX_unrecognized) 9569 } 9570 return n 9571 } 9572 9573 func (m *ResponseCheckTx) Size() (n int) { 9574 if m == nil { 9575 return 0 9576 } 9577 var l int 9578 _ = l 9579 if m.Code != 0 { 9580 n += 1 + sovTypes(uint64(m.Code)) 9581 } 9582 l = len(m.Data) 9583 if l > 0 { 9584 n += 1 + l + sovTypes(uint64(l)) 9585 } 9586 l = len(m.Log) 9587 if l > 0 { 9588 n += 1 + l + sovTypes(uint64(l)) 9589 } 9590 l = len(m.Info) 9591 if l > 0 { 9592 n += 1 + l + sovTypes(uint64(l)) 9593 } 9594 if m.GasWanted != 0 { 9595 n += 1 + sovTypes(uint64(m.GasWanted)) 9596 } 9597 if m.GasUsed != 0 { 9598 n += 1 + sovTypes(uint64(m.GasUsed)) 9599 } 9600 if len(m.Events) > 0 { 9601 for _, e := range m.Events { 9602 l = e.Size() 9603 n += 1 + l + sovTypes(uint64(l)) 9604 } 9605 } 9606 l = len(m.Codespace) 9607 if l > 0 { 9608 n += 1 + l + sovTypes(uint64(l)) 9609 } 9610 if m.XXX_unrecognized != nil { 9611 n += len(m.XXX_unrecognized) 9612 } 9613 return n 9614 } 9615 9616 func (m *ResponseDeliverTx) Size() (n int) { 9617 if m == nil { 9618 return 0 9619 } 9620 var l int 9621 _ = l 9622 if m.Code != 0 { 9623 n += 1 + sovTypes(uint64(m.Code)) 9624 } 9625 l = len(m.Data) 9626 if l > 0 { 9627 n += 1 + l + sovTypes(uint64(l)) 9628 } 9629 l = len(m.Log) 9630 if l > 0 { 9631 n += 1 + l + sovTypes(uint64(l)) 9632 } 9633 l = len(m.Info) 9634 if l > 0 { 9635 n += 1 + l + sovTypes(uint64(l)) 9636 } 9637 if m.GasWanted != 0 { 9638 n += 1 + sovTypes(uint64(m.GasWanted)) 9639 } 9640 if m.GasUsed != 0 { 9641 n += 1 + sovTypes(uint64(m.GasUsed)) 9642 } 9643 if len(m.Events) > 0 { 9644 for _, e := range m.Events { 9645 l = e.Size() 9646 n += 1 + l + sovTypes(uint64(l)) 9647 } 9648 } 9649 l = len(m.Codespace) 9650 if l > 0 { 9651 n += 1 + l + sovTypes(uint64(l)) 9652 } 9653 if m.XXX_unrecognized != nil { 9654 n += len(m.XXX_unrecognized) 9655 } 9656 return n 9657 } 9658 9659 func (m *ResponseEndBlock) Size() (n int) { 9660 if m == nil { 9661 return 0 9662 } 9663 var l int 9664 _ = l 9665 if len(m.ValidatorUpdates) > 0 { 9666 for _, e := range m.ValidatorUpdates { 9667 l = e.Size() 9668 n += 1 + l + sovTypes(uint64(l)) 9669 } 9670 } 9671 if m.ConsensusParamUpdates != nil { 9672 l = m.ConsensusParamUpdates.Size() 9673 n += 1 + l + sovTypes(uint64(l)) 9674 } 9675 if len(m.Events) > 0 { 9676 for _, e := range m.Events { 9677 l = e.Size() 9678 n += 1 + l + sovTypes(uint64(l)) 9679 } 9680 } 9681 if m.XXX_unrecognized != nil { 9682 n += len(m.XXX_unrecognized) 9683 } 9684 return n 9685 } 9686 9687 func (m *ResponseCommit) Size() (n int) { 9688 if m == nil { 9689 return 0 9690 } 9691 var l int 9692 _ = l 9693 l = len(m.Data) 9694 if l > 0 { 9695 n += 1 + l + sovTypes(uint64(l)) 9696 } 9697 if m.RetainHeight != 0 { 9698 n += 1 + sovTypes(uint64(m.RetainHeight)) 9699 } 9700 if m.XXX_unrecognized != nil { 9701 n += len(m.XXX_unrecognized) 9702 } 9703 return n 9704 } 9705 9706 func (m *ConsensusParams) Size() (n int) { 9707 if m == nil { 9708 return 0 9709 } 9710 var l int 9711 _ = l 9712 if m.Block != nil { 9713 l = m.Block.Size() 9714 n += 1 + l + sovTypes(uint64(l)) 9715 } 9716 if m.Evidence != nil { 9717 l = m.Evidence.Size() 9718 n += 1 + l + sovTypes(uint64(l)) 9719 } 9720 if m.Validator != nil { 9721 l = m.Validator.Size() 9722 n += 1 + l + sovTypes(uint64(l)) 9723 } 9724 if m.XXX_unrecognized != nil { 9725 n += len(m.XXX_unrecognized) 9726 } 9727 return n 9728 } 9729 9730 func (m *BlockParams) Size() (n int) { 9731 if m == nil { 9732 return 0 9733 } 9734 var l int 9735 _ = l 9736 if m.MaxBytes != 0 { 9737 n += 1 + sovTypes(uint64(m.MaxBytes)) 9738 } 9739 if m.MaxGas != 0 { 9740 n += 1 + sovTypes(uint64(m.MaxGas)) 9741 } 9742 if m.XXX_unrecognized != nil { 9743 n += len(m.XXX_unrecognized) 9744 } 9745 return n 9746 } 9747 9748 func (m *EvidenceParams) Size() (n int) { 9749 if m == nil { 9750 return 0 9751 } 9752 var l int 9753 _ = l 9754 if m.MaxAgeNumBlocks != 0 { 9755 n += 1 + sovTypes(uint64(m.MaxAgeNumBlocks)) 9756 } 9757 l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxAgeDuration) 9758 n += 1 + l + sovTypes(uint64(l)) 9759 if m.XXX_unrecognized != nil { 9760 n += len(m.XXX_unrecognized) 9761 } 9762 return n 9763 } 9764 9765 func (m *ValidatorParams) Size() (n int) { 9766 if m == nil { 9767 return 0 9768 } 9769 var l int 9770 _ = l 9771 if len(m.PubKeyTypes) > 0 { 9772 for _, s := range m.PubKeyTypes { 9773 l = len(s) 9774 n += 1 + l + sovTypes(uint64(l)) 9775 } 9776 } 9777 if m.XXX_unrecognized != nil { 9778 n += len(m.XXX_unrecognized) 9779 } 9780 return n 9781 } 9782 9783 func (m *LastCommitInfo) Size() (n int) { 9784 if m == nil { 9785 return 0 9786 } 9787 var l int 9788 _ = l 9789 if m.Round != 0 { 9790 n += 1 + sovTypes(uint64(m.Round)) 9791 } 9792 if len(m.Votes) > 0 { 9793 for _, e := range m.Votes { 9794 l = e.Size() 9795 n += 1 + l + sovTypes(uint64(l)) 9796 } 9797 } 9798 if m.XXX_unrecognized != nil { 9799 n += len(m.XXX_unrecognized) 9800 } 9801 return n 9802 } 9803 9804 func (m *Event) Size() (n int) { 9805 if m == nil { 9806 return 0 9807 } 9808 var l int 9809 _ = l 9810 l = len(m.Type) 9811 if l > 0 { 9812 n += 1 + l + sovTypes(uint64(l)) 9813 } 9814 if len(m.Attributes) > 0 { 9815 for _, e := range m.Attributes { 9816 l = e.Size() 9817 n += 1 + l + sovTypes(uint64(l)) 9818 } 9819 } 9820 if m.XXX_unrecognized != nil { 9821 n += len(m.XXX_unrecognized) 9822 } 9823 return n 9824 } 9825 9826 func (m *Header) Size() (n int) { 9827 if m == nil { 9828 return 0 9829 } 9830 var l int 9831 _ = l 9832 l = m.Version.Size() 9833 n += 1 + l + sovTypes(uint64(l)) 9834 l = len(m.ChainID) 9835 if l > 0 { 9836 n += 1 + l + sovTypes(uint64(l)) 9837 } 9838 if m.Height != 0 { 9839 n += 1 + sovTypes(uint64(m.Height)) 9840 } 9841 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 9842 n += 1 + l + sovTypes(uint64(l)) 9843 l = m.LastBlockId.Size() 9844 n += 1 + l + sovTypes(uint64(l)) 9845 l = len(m.LastCommitHash) 9846 if l > 0 { 9847 n += 1 + l + sovTypes(uint64(l)) 9848 } 9849 l = len(m.DataHash) 9850 if l > 0 { 9851 n += 1 + l + sovTypes(uint64(l)) 9852 } 9853 l = len(m.ValidatorsHash) 9854 if l > 0 { 9855 n += 1 + l + sovTypes(uint64(l)) 9856 } 9857 l = len(m.NextValidatorsHash) 9858 if l > 0 { 9859 n += 1 + l + sovTypes(uint64(l)) 9860 } 9861 l = len(m.ConsensusHash) 9862 if l > 0 { 9863 n += 1 + l + sovTypes(uint64(l)) 9864 } 9865 l = len(m.AppHash) 9866 if l > 0 { 9867 n += 1 + l + sovTypes(uint64(l)) 9868 } 9869 l = len(m.LastResultsHash) 9870 if l > 0 { 9871 n += 1 + l + sovTypes(uint64(l)) 9872 } 9873 l = len(m.EvidenceHash) 9874 if l > 0 { 9875 n += 1 + l + sovTypes(uint64(l)) 9876 } 9877 l = len(m.ProposerAddress) 9878 if l > 0 { 9879 n += 1 + l + sovTypes(uint64(l)) 9880 } 9881 if m.XXX_unrecognized != nil { 9882 n += len(m.XXX_unrecognized) 9883 } 9884 return n 9885 } 9886 9887 func (m *Version) Size() (n int) { 9888 if m == nil { 9889 return 0 9890 } 9891 var l int 9892 _ = l 9893 if m.Block != 0 { 9894 n += 1 + sovTypes(uint64(m.Block)) 9895 } 9896 if m.App != 0 { 9897 n += 1 + sovTypes(uint64(m.App)) 9898 } 9899 if m.XXX_unrecognized != nil { 9900 n += len(m.XXX_unrecognized) 9901 } 9902 return n 9903 } 9904 9905 func (m *BlockID) Size() (n int) { 9906 if m == nil { 9907 return 0 9908 } 9909 var l int 9910 _ = l 9911 l = len(m.Hash) 9912 if l > 0 { 9913 n += 1 + l + sovTypes(uint64(l)) 9914 } 9915 l = m.PartsHeader.Size() 9916 n += 1 + l + sovTypes(uint64(l)) 9917 if m.XXX_unrecognized != nil { 9918 n += len(m.XXX_unrecognized) 9919 } 9920 return n 9921 } 9922 9923 func (m *PartSetHeader) Size() (n int) { 9924 if m == nil { 9925 return 0 9926 } 9927 var l int 9928 _ = l 9929 if m.Total != 0 { 9930 n += 1 + sovTypes(uint64(m.Total)) 9931 } 9932 l = len(m.Hash) 9933 if l > 0 { 9934 n += 1 + l + sovTypes(uint64(l)) 9935 } 9936 if m.XXX_unrecognized != nil { 9937 n += len(m.XXX_unrecognized) 9938 } 9939 return n 9940 } 9941 9942 func (m *Validator) Size() (n int) { 9943 if m == nil { 9944 return 0 9945 } 9946 var l int 9947 _ = l 9948 l = len(m.Address) 9949 if l > 0 { 9950 n += 1 + l + sovTypes(uint64(l)) 9951 } 9952 if m.Power != 0 { 9953 n += 1 + sovTypes(uint64(m.Power)) 9954 } 9955 if m.XXX_unrecognized != nil { 9956 n += len(m.XXX_unrecognized) 9957 } 9958 return n 9959 } 9960 9961 func (m *ValidatorUpdate) Size() (n int) { 9962 if m == nil { 9963 return 0 9964 } 9965 var l int 9966 _ = l 9967 l = m.PubKey.Size() 9968 n += 1 + l + sovTypes(uint64(l)) 9969 if m.Power != 0 { 9970 n += 1 + sovTypes(uint64(m.Power)) 9971 } 9972 if m.XXX_unrecognized != nil { 9973 n += len(m.XXX_unrecognized) 9974 } 9975 return n 9976 } 9977 9978 func (m *VoteInfo) Size() (n int) { 9979 if m == nil { 9980 return 0 9981 } 9982 var l int 9983 _ = l 9984 l = m.Validator.Size() 9985 n += 1 + l + sovTypes(uint64(l)) 9986 if m.SignedLastBlock { 9987 n += 2 9988 } 9989 if m.XXX_unrecognized != nil { 9990 n += len(m.XXX_unrecognized) 9991 } 9992 return n 9993 } 9994 9995 func (m *PubKey) Size() (n int) { 9996 if m == nil { 9997 return 0 9998 } 9999 var l int 10000 _ = l 10001 l = len(m.Type) 10002 if l > 0 { 10003 n += 1 + l + sovTypes(uint64(l)) 10004 } 10005 l = len(m.Data) 10006 if l > 0 { 10007 n += 1 + l + sovTypes(uint64(l)) 10008 } 10009 if m.XXX_unrecognized != nil { 10010 n += len(m.XXX_unrecognized) 10011 } 10012 return n 10013 } 10014 10015 func (m *Evidence) Size() (n int) { 10016 if m == nil { 10017 return 0 10018 } 10019 var l int 10020 _ = l 10021 l = len(m.Type) 10022 if l > 0 { 10023 n += 1 + l + sovTypes(uint64(l)) 10024 } 10025 l = m.Validator.Size() 10026 n += 1 + l + sovTypes(uint64(l)) 10027 if m.Height != 0 { 10028 n += 1 + sovTypes(uint64(m.Height)) 10029 } 10030 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 10031 n += 1 + l + sovTypes(uint64(l)) 10032 if m.TotalVotingPower != 0 { 10033 n += 1 + sovTypes(uint64(m.TotalVotingPower)) 10034 } 10035 if m.XXX_unrecognized != nil { 10036 n += len(m.XXX_unrecognized) 10037 } 10038 return n 10039 } 10040 10041 func sovTypes(x uint64) (n int) { 10042 return (math_bits.Len64(x|1) + 6) / 7 10043 } 10044 func sozTypes(x uint64) (n int) { 10045 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 10046 } 10047 func (m *Request) Unmarshal(dAtA []byte) error { 10048 l := len(dAtA) 10049 iNdEx := 0 10050 for iNdEx < l { 10051 preIndex := iNdEx 10052 var wire uint64 10053 for shift := uint(0); ; shift += 7 { 10054 if shift >= 64 { 10055 return ErrIntOverflowTypes 10056 } 10057 if iNdEx >= l { 10058 return io.ErrUnexpectedEOF 10059 } 10060 b := dAtA[iNdEx] 10061 iNdEx++ 10062 wire |= uint64(b&0x7F) << shift 10063 if b < 0x80 { 10064 break 10065 } 10066 } 10067 fieldNum := int32(wire >> 3) 10068 wireType := int(wire & 0x7) 10069 if wireType == 4 { 10070 return fmt.Errorf("proto: Request: wiretype end group for non-group") 10071 } 10072 if fieldNum <= 0 { 10073 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 10074 } 10075 switch fieldNum { 10076 case 2: 10077 if wireType != 2 { 10078 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 10079 } 10080 var msglen int 10081 for shift := uint(0); ; shift += 7 { 10082 if shift >= 64 { 10083 return ErrIntOverflowTypes 10084 } 10085 if iNdEx >= l { 10086 return io.ErrUnexpectedEOF 10087 } 10088 b := dAtA[iNdEx] 10089 iNdEx++ 10090 msglen |= int(b&0x7F) << shift 10091 if b < 0x80 { 10092 break 10093 } 10094 } 10095 if msglen < 0 { 10096 return ErrInvalidLengthTypes 10097 } 10098 postIndex := iNdEx + msglen 10099 if postIndex < 0 { 10100 return ErrInvalidLengthTypes 10101 } 10102 if postIndex > l { 10103 return io.ErrUnexpectedEOF 10104 } 10105 v := &RequestEcho{} 10106 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10107 return err 10108 } 10109 m.Value = &Request_Echo{v} 10110 iNdEx = postIndex 10111 case 3: 10112 if wireType != 2 { 10113 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 10114 } 10115 var msglen int 10116 for shift := uint(0); ; shift += 7 { 10117 if shift >= 64 { 10118 return ErrIntOverflowTypes 10119 } 10120 if iNdEx >= l { 10121 return io.ErrUnexpectedEOF 10122 } 10123 b := dAtA[iNdEx] 10124 iNdEx++ 10125 msglen |= int(b&0x7F) << shift 10126 if b < 0x80 { 10127 break 10128 } 10129 } 10130 if msglen < 0 { 10131 return ErrInvalidLengthTypes 10132 } 10133 postIndex := iNdEx + msglen 10134 if postIndex < 0 { 10135 return ErrInvalidLengthTypes 10136 } 10137 if postIndex > l { 10138 return io.ErrUnexpectedEOF 10139 } 10140 v := &RequestFlush{} 10141 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10142 return err 10143 } 10144 m.Value = &Request_Flush{v} 10145 iNdEx = postIndex 10146 case 4: 10147 if wireType != 2 { 10148 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 10149 } 10150 var msglen int 10151 for shift := uint(0); ; shift += 7 { 10152 if shift >= 64 { 10153 return ErrIntOverflowTypes 10154 } 10155 if iNdEx >= l { 10156 return io.ErrUnexpectedEOF 10157 } 10158 b := dAtA[iNdEx] 10159 iNdEx++ 10160 msglen |= int(b&0x7F) << shift 10161 if b < 0x80 { 10162 break 10163 } 10164 } 10165 if msglen < 0 { 10166 return ErrInvalidLengthTypes 10167 } 10168 postIndex := iNdEx + msglen 10169 if postIndex < 0 { 10170 return ErrInvalidLengthTypes 10171 } 10172 if postIndex > l { 10173 return io.ErrUnexpectedEOF 10174 } 10175 v := &RequestInfo{} 10176 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10177 return err 10178 } 10179 m.Value = &Request_Info{v} 10180 iNdEx = postIndex 10181 case 5: 10182 if wireType != 2 { 10183 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 10184 } 10185 var msglen int 10186 for shift := uint(0); ; shift += 7 { 10187 if shift >= 64 { 10188 return ErrIntOverflowTypes 10189 } 10190 if iNdEx >= l { 10191 return io.ErrUnexpectedEOF 10192 } 10193 b := dAtA[iNdEx] 10194 iNdEx++ 10195 msglen |= int(b&0x7F) << shift 10196 if b < 0x80 { 10197 break 10198 } 10199 } 10200 if msglen < 0 { 10201 return ErrInvalidLengthTypes 10202 } 10203 postIndex := iNdEx + msglen 10204 if postIndex < 0 { 10205 return ErrInvalidLengthTypes 10206 } 10207 if postIndex > l { 10208 return io.ErrUnexpectedEOF 10209 } 10210 v := &RequestSetOption{} 10211 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10212 return err 10213 } 10214 m.Value = &Request_SetOption{v} 10215 iNdEx = postIndex 10216 case 6: 10217 if wireType != 2 { 10218 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 10219 } 10220 var msglen int 10221 for shift := uint(0); ; shift += 7 { 10222 if shift >= 64 { 10223 return ErrIntOverflowTypes 10224 } 10225 if iNdEx >= l { 10226 return io.ErrUnexpectedEOF 10227 } 10228 b := dAtA[iNdEx] 10229 iNdEx++ 10230 msglen |= int(b&0x7F) << shift 10231 if b < 0x80 { 10232 break 10233 } 10234 } 10235 if msglen < 0 { 10236 return ErrInvalidLengthTypes 10237 } 10238 postIndex := iNdEx + msglen 10239 if postIndex < 0 { 10240 return ErrInvalidLengthTypes 10241 } 10242 if postIndex > l { 10243 return io.ErrUnexpectedEOF 10244 } 10245 v := &RequestInitChain{} 10246 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10247 return err 10248 } 10249 m.Value = &Request_InitChain{v} 10250 iNdEx = postIndex 10251 case 7: 10252 if wireType != 2 { 10253 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 10254 } 10255 var msglen int 10256 for shift := uint(0); ; shift += 7 { 10257 if shift >= 64 { 10258 return ErrIntOverflowTypes 10259 } 10260 if iNdEx >= l { 10261 return io.ErrUnexpectedEOF 10262 } 10263 b := dAtA[iNdEx] 10264 iNdEx++ 10265 msglen |= int(b&0x7F) << shift 10266 if b < 0x80 { 10267 break 10268 } 10269 } 10270 if msglen < 0 { 10271 return ErrInvalidLengthTypes 10272 } 10273 postIndex := iNdEx + msglen 10274 if postIndex < 0 { 10275 return ErrInvalidLengthTypes 10276 } 10277 if postIndex > l { 10278 return io.ErrUnexpectedEOF 10279 } 10280 v := &RequestQuery{} 10281 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10282 return err 10283 } 10284 m.Value = &Request_Query{v} 10285 iNdEx = postIndex 10286 case 8: 10287 if wireType != 2 { 10288 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 10289 } 10290 var msglen int 10291 for shift := uint(0); ; shift += 7 { 10292 if shift >= 64 { 10293 return ErrIntOverflowTypes 10294 } 10295 if iNdEx >= l { 10296 return io.ErrUnexpectedEOF 10297 } 10298 b := dAtA[iNdEx] 10299 iNdEx++ 10300 msglen |= int(b&0x7F) << shift 10301 if b < 0x80 { 10302 break 10303 } 10304 } 10305 if msglen < 0 { 10306 return ErrInvalidLengthTypes 10307 } 10308 postIndex := iNdEx + msglen 10309 if postIndex < 0 { 10310 return ErrInvalidLengthTypes 10311 } 10312 if postIndex > l { 10313 return io.ErrUnexpectedEOF 10314 } 10315 v := &RequestBeginBlock{} 10316 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10317 return err 10318 } 10319 m.Value = &Request_BeginBlock{v} 10320 iNdEx = postIndex 10321 case 9: 10322 if wireType != 2 { 10323 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 10324 } 10325 var msglen int 10326 for shift := uint(0); ; shift += 7 { 10327 if shift >= 64 { 10328 return ErrIntOverflowTypes 10329 } 10330 if iNdEx >= l { 10331 return io.ErrUnexpectedEOF 10332 } 10333 b := dAtA[iNdEx] 10334 iNdEx++ 10335 msglen |= int(b&0x7F) << shift 10336 if b < 0x80 { 10337 break 10338 } 10339 } 10340 if msglen < 0 { 10341 return ErrInvalidLengthTypes 10342 } 10343 postIndex := iNdEx + msglen 10344 if postIndex < 0 { 10345 return ErrInvalidLengthTypes 10346 } 10347 if postIndex > l { 10348 return io.ErrUnexpectedEOF 10349 } 10350 v := &RequestCheckTx{} 10351 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10352 return err 10353 } 10354 m.Value = &Request_CheckTx{v} 10355 iNdEx = postIndex 10356 case 11: 10357 if wireType != 2 { 10358 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 10359 } 10360 var msglen int 10361 for shift := uint(0); ; shift += 7 { 10362 if shift >= 64 { 10363 return ErrIntOverflowTypes 10364 } 10365 if iNdEx >= l { 10366 return io.ErrUnexpectedEOF 10367 } 10368 b := dAtA[iNdEx] 10369 iNdEx++ 10370 msglen |= int(b&0x7F) << shift 10371 if b < 0x80 { 10372 break 10373 } 10374 } 10375 if msglen < 0 { 10376 return ErrInvalidLengthTypes 10377 } 10378 postIndex := iNdEx + msglen 10379 if postIndex < 0 { 10380 return ErrInvalidLengthTypes 10381 } 10382 if postIndex > l { 10383 return io.ErrUnexpectedEOF 10384 } 10385 v := &RequestEndBlock{} 10386 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10387 return err 10388 } 10389 m.Value = &Request_EndBlock{v} 10390 iNdEx = postIndex 10391 case 12: 10392 if wireType != 2 { 10393 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 10394 } 10395 var msglen int 10396 for shift := uint(0); ; shift += 7 { 10397 if shift >= 64 { 10398 return ErrIntOverflowTypes 10399 } 10400 if iNdEx >= l { 10401 return io.ErrUnexpectedEOF 10402 } 10403 b := dAtA[iNdEx] 10404 iNdEx++ 10405 msglen |= int(b&0x7F) << shift 10406 if b < 0x80 { 10407 break 10408 } 10409 } 10410 if msglen < 0 { 10411 return ErrInvalidLengthTypes 10412 } 10413 postIndex := iNdEx + msglen 10414 if postIndex < 0 { 10415 return ErrInvalidLengthTypes 10416 } 10417 if postIndex > l { 10418 return io.ErrUnexpectedEOF 10419 } 10420 v := &RequestCommit{} 10421 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10422 return err 10423 } 10424 m.Value = &Request_Commit{v} 10425 iNdEx = postIndex 10426 case 19: 10427 if wireType != 2 { 10428 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 10429 } 10430 var msglen int 10431 for shift := uint(0); ; shift += 7 { 10432 if shift >= 64 { 10433 return ErrIntOverflowTypes 10434 } 10435 if iNdEx >= l { 10436 return io.ErrUnexpectedEOF 10437 } 10438 b := dAtA[iNdEx] 10439 iNdEx++ 10440 msglen |= int(b&0x7F) << shift 10441 if b < 0x80 { 10442 break 10443 } 10444 } 10445 if msglen < 0 { 10446 return ErrInvalidLengthTypes 10447 } 10448 postIndex := iNdEx + msglen 10449 if postIndex < 0 { 10450 return ErrInvalidLengthTypes 10451 } 10452 if postIndex > l { 10453 return io.ErrUnexpectedEOF 10454 } 10455 v := &RequestDeliverTx{} 10456 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10457 return err 10458 } 10459 m.Value = &Request_DeliverTx{v} 10460 iNdEx = postIndex 10461 default: 10462 iNdEx = preIndex 10463 skippy, err := skipTypes(dAtA[iNdEx:]) 10464 if err != nil { 10465 return err 10466 } 10467 if (skippy < 0) || (iNdEx+skippy) < 0 { 10468 return ErrInvalidLengthTypes 10469 } 10470 if (iNdEx + skippy) > l { 10471 return io.ErrUnexpectedEOF 10472 } 10473 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10474 iNdEx += skippy 10475 } 10476 } 10477 10478 if iNdEx > l { 10479 return io.ErrUnexpectedEOF 10480 } 10481 return nil 10482 } 10483 func (m *RequestEcho) Unmarshal(dAtA []byte) error { 10484 l := len(dAtA) 10485 iNdEx := 0 10486 for iNdEx < l { 10487 preIndex := iNdEx 10488 var wire uint64 10489 for shift := uint(0); ; shift += 7 { 10490 if shift >= 64 { 10491 return ErrIntOverflowTypes 10492 } 10493 if iNdEx >= l { 10494 return io.ErrUnexpectedEOF 10495 } 10496 b := dAtA[iNdEx] 10497 iNdEx++ 10498 wire |= uint64(b&0x7F) << shift 10499 if b < 0x80 { 10500 break 10501 } 10502 } 10503 fieldNum := int32(wire >> 3) 10504 wireType := int(wire & 0x7) 10505 if wireType == 4 { 10506 return fmt.Errorf("proto: RequestEcho: wiretype end group for non-group") 10507 } 10508 if fieldNum <= 0 { 10509 return fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire) 10510 } 10511 switch fieldNum { 10512 case 1: 10513 if wireType != 2 { 10514 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 10515 } 10516 var stringLen uint64 10517 for shift := uint(0); ; shift += 7 { 10518 if shift >= 64 { 10519 return ErrIntOverflowTypes 10520 } 10521 if iNdEx >= l { 10522 return io.ErrUnexpectedEOF 10523 } 10524 b := dAtA[iNdEx] 10525 iNdEx++ 10526 stringLen |= uint64(b&0x7F) << shift 10527 if b < 0x80 { 10528 break 10529 } 10530 } 10531 intStringLen := int(stringLen) 10532 if intStringLen < 0 { 10533 return ErrInvalidLengthTypes 10534 } 10535 postIndex := iNdEx + intStringLen 10536 if postIndex < 0 { 10537 return ErrInvalidLengthTypes 10538 } 10539 if postIndex > l { 10540 return io.ErrUnexpectedEOF 10541 } 10542 m.Message = string(dAtA[iNdEx:postIndex]) 10543 iNdEx = postIndex 10544 default: 10545 iNdEx = preIndex 10546 skippy, err := skipTypes(dAtA[iNdEx:]) 10547 if err != nil { 10548 return err 10549 } 10550 if (skippy < 0) || (iNdEx+skippy) < 0 { 10551 return ErrInvalidLengthTypes 10552 } 10553 if (iNdEx + skippy) > l { 10554 return io.ErrUnexpectedEOF 10555 } 10556 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10557 iNdEx += skippy 10558 } 10559 } 10560 10561 if iNdEx > l { 10562 return io.ErrUnexpectedEOF 10563 } 10564 return nil 10565 } 10566 func (m *RequestFlush) Unmarshal(dAtA []byte) error { 10567 l := len(dAtA) 10568 iNdEx := 0 10569 for iNdEx < l { 10570 preIndex := iNdEx 10571 var wire uint64 10572 for shift := uint(0); ; shift += 7 { 10573 if shift >= 64 { 10574 return ErrIntOverflowTypes 10575 } 10576 if iNdEx >= l { 10577 return io.ErrUnexpectedEOF 10578 } 10579 b := dAtA[iNdEx] 10580 iNdEx++ 10581 wire |= uint64(b&0x7F) << shift 10582 if b < 0x80 { 10583 break 10584 } 10585 } 10586 fieldNum := int32(wire >> 3) 10587 wireType := int(wire & 0x7) 10588 if wireType == 4 { 10589 return fmt.Errorf("proto: RequestFlush: wiretype end group for non-group") 10590 } 10591 if fieldNum <= 0 { 10592 return fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire) 10593 } 10594 switch fieldNum { 10595 default: 10596 iNdEx = preIndex 10597 skippy, err := skipTypes(dAtA[iNdEx:]) 10598 if err != nil { 10599 return err 10600 } 10601 if (skippy < 0) || (iNdEx+skippy) < 0 { 10602 return ErrInvalidLengthTypes 10603 } 10604 if (iNdEx + skippy) > l { 10605 return io.ErrUnexpectedEOF 10606 } 10607 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10608 iNdEx += skippy 10609 } 10610 } 10611 10612 if iNdEx > l { 10613 return io.ErrUnexpectedEOF 10614 } 10615 return nil 10616 } 10617 func (m *RequestInfo) Unmarshal(dAtA []byte) error { 10618 l := len(dAtA) 10619 iNdEx := 0 10620 for iNdEx < l { 10621 preIndex := iNdEx 10622 var wire uint64 10623 for shift := uint(0); ; shift += 7 { 10624 if shift >= 64 { 10625 return ErrIntOverflowTypes 10626 } 10627 if iNdEx >= l { 10628 return io.ErrUnexpectedEOF 10629 } 10630 b := dAtA[iNdEx] 10631 iNdEx++ 10632 wire |= uint64(b&0x7F) << shift 10633 if b < 0x80 { 10634 break 10635 } 10636 } 10637 fieldNum := int32(wire >> 3) 10638 wireType := int(wire & 0x7) 10639 if wireType == 4 { 10640 return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group") 10641 } 10642 if fieldNum <= 0 { 10643 return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire) 10644 } 10645 switch fieldNum { 10646 case 1: 10647 if wireType != 2 { 10648 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 10649 } 10650 var stringLen uint64 10651 for shift := uint(0); ; shift += 7 { 10652 if shift >= 64 { 10653 return ErrIntOverflowTypes 10654 } 10655 if iNdEx >= l { 10656 return io.ErrUnexpectedEOF 10657 } 10658 b := dAtA[iNdEx] 10659 iNdEx++ 10660 stringLen |= uint64(b&0x7F) << shift 10661 if b < 0x80 { 10662 break 10663 } 10664 } 10665 intStringLen := int(stringLen) 10666 if intStringLen < 0 { 10667 return ErrInvalidLengthTypes 10668 } 10669 postIndex := iNdEx + intStringLen 10670 if postIndex < 0 { 10671 return ErrInvalidLengthTypes 10672 } 10673 if postIndex > l { 10674 return io.ErrUnexpectedEOF 10675 } 10676 m.Version = string(dAtA[iNdEx:postIndex]) 10677 iNdEx = postIndex 10678 case 2: 10679 if wireType != 0 { 10680 return fmt.Errorf("proto: wrong wireType = %d for field BlockVersion", wireType) 10681 } 10682 m.BlockVersion = 0 10683 for shift := uint(0); ; shift += 7 { 10684 if shift >= 64 { 10685 return ErrIntOverflowTypes 10686 } 10687 if iNdEx >= l { 10688 return io.ErrUnexpectedEOF 10689 } 10690 b := dAtA[iNdEx] 10691 iNdEx++ 10692 m.BlockVersion |= uint64(b&0x7F) << shift 10693 if b < 0x80 { 10694 break 10695 } 10696 } 10697 case 3: 10698 if wireType != 0 { 10699 return fmt.Errorf("proto: wrong wireType = %d for field P2PVersion", wireType) 10700 } 10701 m.P2PVersion = 0 10702 for shift := uint(0); ; shift += 7 { 10703 if shift >= 64 { 10704 return ErrIntOverflowTypes 10705 } 10706 if iNdEx >= l { 10707 return io.ErrUnexpectedEOF 10708 } 10709 b := dAtA[iNdEx] 10710 iNdEx++ 10711 m.P2PVersion |= uint64(b&0x7F) << shift 10712 if b < 0x80 { 10713 break 10714 } 10715 } 10716 default: 10717 iNdEx = preIndex 10718 skippy, err := skipTypes(dAtA[iNdEx:]) 10719 if err != nil { 10720 return err 10721 } 10722 if (skippy < 0) || (iNdEx+skippy) < 0 { 10723 return ErrInvalidLengthTypes 10724 } 10725 if (iNdEx + skippy) > l { 10726 return io.ErrUnexpectedEOF 10727 } 10728 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10729 iNdEx += skippy 10730 } 10731 } 10732 10733 if iNdEx > l { 10734 return io.ErrUnexpectedEOF 10735 } 10736 return nil 10737 } 10738 func (m *RequestSetOption) Unmarshal(dAtA []byte) error { 10739 l := len(dAtA) 10740 iNdEx := 0 10741 for iNdEx < l { 10742 preIndex := iNdEx 10743 var wire uint64 10744 for shift := uint(0); ; shift += 7 { 10745 if shift >= 64 { 10746 return ErrIntOverflowTypes 10747 } 10748 if iNdEx >= l { 10749 return io.ErrUnexpectedEOF 10750 } 10751 b := dAtA[iNdEx] 10752 iNdEx++ 10753 wire |= uint64(b&0x7F) << shift 10754 if b < 0x80 { 10755 break 10756 } 10757 } 10758 fieldNum := int32(wire >> 3) 10759 wireType := int(wire & 0x7) 10760 if wireType == 4 { 10761 return fmt.Errorf("proto: RequestSetOption: wiretype end group for non-group") 10762 } 10763 if fieldNum <= 0 { 10764 return fmt.Errorf("proto: RequestSetOption: illegal tag %d (wire type %d)", fieldNum, wire) 10765 } 10766 switch fieldNum { 10767 case 1: 10768 if wireType != 2 { 10769 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 10770 } 10771 var stringLen uint64 10772 for shift := uint(0); ; shift += 7 { 10773 if shift >= 64 { 10774 return ErrIntOverflowTypes 10775 } 10776 if iNdEx >= l { 10777 return io.ErrUnexpectedEOF 10778 } 10779 b := dAtA[iNdEx] 10780 iNdEx++ 10781 stringLen |= uint64(b&0x7F) << shift 10782 if b < 0x80 { 10783 break 10784 } 10785 } 10786 intStringLen := int(stringLen) 10787 if intStringLen < 0 { 10788 return ErrInvalidLengthTypes 10789 } 10790 postIndex := iNdEx + intStringLen 10791 if postIndex < 0 { 10792 return ErrInvalidLengthTypes 10793 } 10794 if postIndex > l { 10795 return io.ErrUnexpectedEOF 10796 } 10797 m.Key = string(dAtA[iNdEx:postIndex]) 10798 iNdEx = postIndex 10799 case 2: 10800 if wireType != 2 { 10801 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 10802 } 10803 var stringLen uint64 10804 for shift := uint(0); ; shift += 7 { 10805 if shift >= 64 { 10806 return ErrIntOverflowTypes 10807 } 10808 if iNdEx >= l { 10809 return io.ErrUnexpectedEOF 10810 } 10811 b := dAtA[iNdEx] 10812 iNdEx++ 10813 stringLen |= uint64(b&0x7F) << shift 10814 if b < 0x80 { 10815 break 10816 } 10817 } 10818 intStringLen := int(stringLen) 10819 if intStringLen < 0 { 10820 return ErrInvalidLengthTypes 10821 } 10822 postIndex := iNdEx + intStringLen 10823 if postIndex < 0 { 10824 return ErrInvalidLengthTypes 10825 } 10826 if postIndex > l { 10827 return io.ErrUnexpectedEOF 10828 } 10829 m.Value = string(dAtA[iNdEx:postIndex]) 10830 iNdEx = postIndex 10831 default: 10832 iNdEx = preIndex 10833 skippy, err := skipTypes(dAtA[iNdEx:]) 10834 if err != nil { 10835 return err 10836 } 10837 if (skippy < 0) || (iNdEx+skippy) < 0 { 10838 return ErrInvalidLengthTypes 10839 } 10840 if (iNdEx + skippy) > l { 10841 return io.ErrUnexpectedEOF 10842 } 10843 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10844 iNdEx += skippy 10845 } 10846 } 10847 10848 if iNdEx > l { 10849 return io.ErrUnexpectedEOF 10850 } 10851 return nil 10852 } 10853 func (m *RequestInitChain) Unmarshal(dAtA []byte) error { 10854 l := len(dAtA) 10855 iNdEx := 0 10856 for iNdEx < l { 10857 preIndex := iNdEx 10858 var wire uint64 10859 for shift := uint(0); ; shift += 7 { 10860 if shift >= 64 { 10861 return ErrIntOverflowTypes 10862 } 10863 if iNdEx >= l { 10864 return io.ErrUnexpectedEOF 10865 } 10866 b := dAtA[iNdEx] 10867 iNdEx++ 10868 wire |= uint64(b&0x7F) << shift 10869 if b < 0x80 { 10870 break 10871 } 10872 } 10873 fieldNum := int32(wire >> 3) 10874 wireType := int(wire & 0x7) 10875 if wireType == 4 { 10876 return fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group") 10877 } 10878 if fieldNum <= 0 { 10879 return fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire) 10880 } 10881 switch fieldNum { 10882 case 1: 10883 if wireType != 2 { 10884 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 10885 } 10886 var msglen int 10887 for shift := uint(0); ; shift += 7 { 10888 if shift >= 64 { 10889 return ErrIntOverflowTypes 10890 } 10891 if iNdEx >= l { 10892 return io.ErrUnexpectedEOF 10893 } 10894 b := dAtA[iNdEx] 10895 iNdEx++ 10896 msglen |= int(b&0x7F) << shift 10897 if b < 0x80 { 10898 break 10899 } 10900 } 10901 if msglen < 0 { 10902 return ErrInvalidLengthTypes 10903 } 10904 postIndex := iNdEx + msglen 10905 if postIndex < 0 { 10906 return ErrInvalidLengthTypes 10907 } 10908 if postIndex > l { 10909 return io.ErrUnexpectedEOF 10910 } 10911 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 10912 return err 10913 } 10914 iNdEx = postIndex 10915 case 2: 10916 if wireType != 2 { 10917 return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) 10918 } 10919 var stringLen uint64 10920 for shift := uint(0); ; shift += 7 { 10921 if shift >= 64 { 10922 return ErrIntOverflowTypes 10923 } 10924 if iNdEx >= l { 10925 return io.ErrUnexpectedEOF 10926 } 10927 b := dAtA[iNdEx] 10928 iNdEx++ 10929 stringLen |= uint64(b&0x7F) << shift 10930 if b < 0x80 { 10931 break 10932 } 10933 } 10934 intStringLen := int(stringLen) 10935 if intStringLen < 0 { 10936 return ErrInvalidLengthTypes 10937 } 10938 postIndex := iNdEx + intStringLen 10939 if postIndex < 0 { 10940 return ErrInvalidLengthTypes 10941 } 10942 if postIndex > l { 10943 return io.ErrUnexpectedEOF 10944 } 10945 m.ChainId = string(dAtA[iNdEx:postIndex]) 10946 iNdEx = postIndex 10947 case 3: 10948 if wireType != 2 { 10949 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) 10950 } 10951 var msglen int 10952 for shift := uint(0); ; shift += 7 { 10953 if shift >= 64 { 10954 return ErrIntOverflowTypes 10955 } 10956 if iNdEx >= l { 10957 return io.ErrUnexpectedEOF 10958 } 10959 b := dAtA[iNdEx] 10960 iNdEx++ 10961 msglen |= int(b&0x7F) << shift 10962 if b < 0x80 { 10963 break 10964 } 10965 } 10966 if msglen < 0 { 10967 return ErrInvalidLengthTypes 10968 } 10969 postIndex := iNdEx + msglen 10970 if postIndex < 0 { 10971 return ErrInvalidLengthTypes 10972 } 10973 if postIndex > l { 10974 return io.ErrUnexpectedEOF 10975 } 10976 if m.ConsensusParams == nil { 10977 m.ConsensusParams = &ConsensusParams{} 10978 } 10979 if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10980 return err 10981 } 10982 iNdEx = postIndex 10983 case 4: 10984 if wireType != 2 { 10985 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 10986 } 10987 var msglen int 10988 for shift := uint(0); ; shift += 7 { 10989 if shift >= 64 { 10990 return ErrIntOverflowTypes 10991 } 10992 if iNdEx >= l { 10993 return io.ErrUnexpectedEOF 10994 } 10995 b := dAtA[iNdEx] 10996 iNdEx++ 10997 msglen |= int(b&0x7F) << shift 10998 if b < 0x80 { 10999 break 11000 } 11001 } 11002 if msglen < 0 { 11003 return ErrInvalidLengthTypes 11004 } 11005 postIndex := iNdEx + msglen 11006 if postIndex < 0 { 11007 return ErrInvalidLengthTypes 11008 } 11009 if postIndex > l { 11010 return io.ErrUnexpectedEOF 11011 } 11012 m.Validators = append(m.Validators, ValidatorUpdate{}) 11013 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11014 return err 11015 } 11016 iNdEx = postIndex 11017 case 5: 11018 if wireType != 2 { 11019 return fmt.Errorf("proto: wrong wireType = %d for field AppStateBytes", wireType) 11020 } 11021 var byteLen int 11022 for shift := uint(0); ; shift += 7 { 11023 if shift >= 64 { 11024 return ErrIntOverflowTypes 11025 } 11026 if iNdEx >= l { 11027 return io.ErrUnexpectedEOF 11028 } 11029 b := dAtA[iNdEx] 11030 iNdEx++ 11031 byteLen |= int(b&0x7F) << shift 11032 if b < 0x80 { 11033 break 11034 } 11035 } 11036 if byteLen < 0 { 11037 return ErrInvalidLengthTypes 11038 } 11039 postIndex := iNdEx + byteLen 11040 if postIndex < 0 { 11041 return ErrInvalidLengthTypes 11042 } 11043 if postIndex > l { 11044 return io.ErrUnexpectedEOF 11045 } 11046 m.AppStateBytes = append(m.AppStateBytes[:0], dAtA[iNdEx:postIndex]...) 11047 if m.AppStateBytes == nil { 11048 m.AppStateBytes = []byte{} 11049 } 11050 iNdEx = postIndex 11051 default: 11052 iNdEx = preIndex 11053 skippy, err := skipTypes(dAtA[iNdEx:]) 11054 if err != nil { 11055 return err 11056 } 11057 if (skippy < 0) || (iNdEx+skippy) < 0 { 11058 return ErrInvalidLengthTypes 11059 } 11060 if (iNdEx + skippy) > l { 11061 return io.ErrUnexpectedEOF 11062 } 11063 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11064 iNdEx += skippy 11065 } 11066 } 11067 11068 if iNdEx > l { 11069 return io.ErrUnexpectedEOF 11070 } 11071 return nil 11072 } 11073 func (m *RequestQuery) Unmarshal(dAtA []byte) error { 11074 l := len(dAtA) 11075 iNdEx := 0 11076 for iNdEx < l { 11077 preIndex := iNdEx 11078 var wire uint64 11079 for shift := uint(0); ; shift += 7 { 11080 if shift >= 64 { 11081 return ErrIntOverflowTypes 11082 } 11083 if iNdEx >= l { 11084 return io.ErrUnexpectedEOF 11085 } 11086 b := dAtA[iNdEx] 11087 iNdEx++ 11088 wire |= uint64(b&0x7F) << shift 11089 if b < 0x80 { 11090 break 11091 } 11092 } 11093 fieldNum := int32(wire >> 3) 11094 wireType := int(wire & 0x7) 11095 if wireType == 4 { 11096 return fmt.Errorf("proto: RequestQuery: wiretype end group for non-group") 11097 } 11098 if fieldNum <= 0 { 11099 return fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire) 11100 } 11101 switch fieldNum { 11102 case 1: 11103 if wireType != 2 { 11104 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 11105 } 11106 var byteLen int 11107 for shift := uint(0); ; shift += 7 { 11108 if shift >= 64 { 11109 return ErrIntOverflowTypes 11110 } 11111 if iNdEx >= l { 11112 return io.ErrUnexpectedEOF 11113 } 11114 b := dAtA[iNdEx] 11115 iNdEx++ 11116 byteLen |= int(b&0x7F) << shift 11117 if b < 0x80 { 11118 break 11119 } 11120 } 11121 if byteLen < 0 { 11122 return ErrInvalidLengthTypes 11123 } 11124 postIndex := iNdEx + byteLen 11125 if postIndex < 0 { 11126 return ErrInvalidLengthTypes 11127 } 11128 if postIndex > l { 11129 return io.ErrUnexpectedEOF 11130 } 11131 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 11132 if m.Data == nil { 11133 m.Data = []byte{} 11134 } 11135 iNdEx = postIndex 11136 case 2: 11137 if wireType != 2 { 11138 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 11139 } 11140 var stringLen uint64 11141 for shift := uint(0); ; shift += 7 { 11142 if shift >= 64 { 11143 return ErrIntOverflowTypes 11144 } 11145 if iNdEx >= l { 11146 return io.ErrUnexpectedEOF 11147 } 11148 b := dAtA[iNdEx] 11149 iNdEx++ 11150 stringLen |= uint64(b&0x7F) << shift 11151 if b < 0x80 { 11152 break 11153 } 11154 } 11155 intStringLen := int(stringLen) 11156 if intStringLen < 0 { 11157 return ErrInvalidLengthTypes 11158 } 11159 postIndex := iNdEx + intStringLen 11160 if postIndex < 0 { 11161 return ErrInvalidLengthTypes 11162 } 11163 if postIndex > l { 11164 return io.ErrUnexpectedEOF 11165 } 11166 m.Path = string(dAtA[iNdEx:postIndex]) 11167 iNdEx = postIndex 11168 case 3: 11169 if wireType != 0 { 11170 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 11171 } 11172 m.Height = 0 11173 for shift := uint(0); ; shift += 7 { 11174 if shift >= 64 { 11175 return ErrIntOverflowTypes 11176 } 11177 if iNdEx >= l { 11178 return io.ErrUnexpectedEOF 11179 } 11180 b := dAtA[iNdEx] 11181 iNdEx++ 11182 m.Height |= int64(b&0x7F) << shift 11183 if b < 0x80 { 11184 break 11185 } 11186 } 11187 case 4: 11188 if wireType != 0 { 11189 return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType) 11190 } 11191 var v int 11192 for shift := uint(0); ; shift += 7 { 11193 if shift >= 64 { 11194 return ErrIntOverflowTypes 11195 } 11196 if iNdEx >= l { 11197 return io.ErrUnexpectedEOF 11198 } 11199 b := dAtA[iNdEx] 11200 iNdEx++ 11201 v |= int(b&0x7F) << shift 11202 if b < 0x80 { 11203 break 11204 } 11205 } 11206 m.Prove = bool(v != 0) 11207 default: 11208 iNdEx = preIndex 11209 skippy, err := skipTypes(dAtA[iNdEx:]) 11210 if err != nil { 11211 return err 11212 } 11213 if (skippy < 0) || (iNdEx+skippy) < 0 { 11214 return ErrInvalidLengthTypes 11215 } 11216 if (iNdEx + skippy) > l { 11217 return io.ErrUnexpectedEOF 11218 } 11219 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11220 iNdEx += skippy 11221 } 11222 } 11223 11224 if iNdEx > l { 11225 return io.ErrUnexpectedEOF 11226 } 11227 return nil 11228 } 11229 func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error { 11230 l := len(dAtA) 11231 iNdEx := 0 11232 for iNdEx < l { 11233 preIndex := iNdEx 11234 var wire uint64 11235 for shift := uint(0); ; shift += 7 { 11236 if shift >= 64 { 11237 return ErrIntOverflowTypes 11238 } 11239 if iNdEx >= l { 11240 return io.ErrUnexpectedEOF 11241 } 11242 b := dAtA[iNdEx] 11243 iNdEx++ 11244 wire |= uint64(b&0x7F) << shift 11245 if b < 0x80 { 11246 break 11247 } 11248 } 11249 fieldNum := int32(wire >> 3) 11250 wireType := int(wire & 0x7) 11251 if wireType == 4 { 11252 return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group") 11253 } 11254 if fieldNum <= 0 { 11255 return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 11256 } 11257 switch fieldNum { 11258 case 1: 11259 if wireType != 2 { 11260 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 11261 } 11262 var byteLen int 11263 for shift := uint(0); ; shift += 7 { 11264 if shift >= 64 { 11265 return ErrIntOverflowTypes 11266 } 11267 if iNdEx >= l { 11268 return io.ErrUnexpectedEOF 11269 } 11270 b := dAtA[iNdEx] 11271 iNdEx++ 11272 byteLen |= int(b&0x7F) << shift 11273 if b < 0x80 { 11274 break 11275 } 11276 } 11277 if byteLen < 0 { 11278 return ErrInvalidLengthTypes 11279 } 11280 postIndex := iNdEx + byteLen 11281 if postIndex < 0 { 11282 return ErrInvalidLengthTypes 11283 } 11284 if postIndex > l { 11285 return io.ErrUnexpectedEOF 11286 } 11287 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 11288 if m.Hash == nil { 11289 m.Hash = []byte{} 11290 } 11291 iNdEx = postIndex 11292 case 2: 11293 if wireType != 2 { 11294 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 11295 } 11296 var msglen int 11297 for shift := uint(0); ; shift += 7 { 11298 if shift >= 64 { 11299 return ErrIntOverflowTypes 11300 } 11301 if iNdEx >= l { 11302 return io.ErrUnexpectedEOF 11303 } 11304 b := dAtA[iNdEx] 11305 iNdEx++ 11306 msglen |= int(b&0x7F) << shift 11307 if b < 0x80 { 11308 break 11309 } 11310 } 11311 if msglen < 0 { 11312 return ErrInvalidLengthTypes 11313 } 11314 postIndex := iNdEx + msglen 11315 if postIndex < 0 { 11316 return ErrInvalidLengthTypes 11317 } 11318 if postIndex > l { 11319 return io.ErrUnexpectedEOF 11320 } 11321 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11322 return err 11323 } 11324 iNdEx = postIndex 11325 case 3: 11326 if wireType != 2 { 11327 return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType) 11328 } 11329 var msglen int 11330 for shift := uint(0); ; shift += 7 { 11331 if shift >= 64 { 11332 return ErrIntOverflowTypes 11333 } 11334 if iNdEx >= l { 11335 return io.ErrUnexpectedEOF 11336 } 11337 b := dAtA[iNdEx] 11338 iNdEx++ 11339 msglen |= int(b&0x7F) << shift 11340 if b < 0x80 { 11341 break 11342 } 11343 } 11344 if msglen < 0 { 11345 return ErrInvalidLengthTypes 11346 } 11347 postIndex := iNdEx + msglen 11348 if postIndex < 0 { 11349 return ErrInvalidLengthTypes 11350 } 11351 if postIndex > l { 11352 return io.ErrUnexpectedEOF 11353 } 11354 if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11355 return err 11356 } 11357 iNdEx = postIndex 11358 case 4: 11359 if wireType != 2 { 11360 return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType) 11361 } 11362 var msglen int 11363 for shift := uint(0); ; shift += 7 { 11364 if shift >= 64 { 11365 return ErrIntOverflowTypes 11366 } 11367 if iNdEx >= l { 11368 return io.ErrUnexpectedEOF 11369 } 11370 b := dAtA[iNdEx] 11371 iNdEx++ 11372 msglen |= int(b&0x7F) << shift 11373 if b < 0x80 { 11374 break 11375 } 11376 } 11377 if msglen < 0 { 11378 return ErrInvalidLengthTypes 11379 } 11380 postIndex := iNdEx + msglen 11381 if postIndex < 0 { 11382 return ErrInvalidLengthTypes 11383 } 11384 if postIndex > l { 11385 return io.ErrUnexpectedEOF 11386 } 11387 m.ByzantineValidators = append(m.ByzantineValidators, Evidence{}) 11388 if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11389 return err 11390 } 11391 iNdEx = postIndex 11392 case 5: 11393 var v int 11394 for shift := uint(0); ; shift += 7 { 11395 if shift >= 64 { 11396 return ErrIntOverflowTypes 11397 } 11398 if iNdEx >= l { 11399 return io.ErrUnexpectedEOF 11400 } 11401 b := dAtA[iNdEx] 11402 iNdEx++ 11403 v |= int(b&0x7F) << shift 11404 if b < 0x80 { 11405 break 11406 } 11407 } 11408 default: 11409 iNdEx = preIndex 11410 skippy, err := skipTypes(dAtA[iNdEx:]) 11411 if err != nil { 11412 return err 11413 } 11414 if (skippy < 0) || (iNdEx+skippy) < 0 { 11415 return ErrInvalidLengthTypes 11416 } 11417 if (iNdEx + skippy) > l { 11418 return io.ErrUnexpectedEOF 11419 } 11420 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11421 iNdEx += skippy 11422 } 11423 } 11424 11425 if iNdEx > l { 11426 return io.ErrUnexpectedEOF 11427 } 11428 return nil 11429 } 11430 func (m *RequestCheckTx) Unmarshal(dAtA []byte) error { 11431 l := len(dAtA) 11432 iNdEx := 0 11433 for iNdEx < l { 11434 preIndex := iNdEx 11435 var wire uint64 11436 for shift := uint(0); ; shift += 7 { 11437 if shift >= 64 { 11438 return ErrIntOverflowTypes 11439 } 11440 if iNdEx >= l { 11441 return io.ErrUnexpectedEOF 11442 } 11443 b := dAtA[iNdEx] 11444 iNdEx++ 11445 wire |= uint64(b&0x7F) << shift 11446 if b < 0x80 { 11447 break 11448 } 11449 } 11450 fieldNum := int32(wire >> 3) 11451 wireType := int(wire & 0x7) 11452 if wireType == 4 { 11453 return fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group") 11454 } 11455 if fieldNum <= 0 { 11456 return fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 11457 } 11458 switch fieldNum { 11459 case 1: 11460 if wireType != 2 { 11461 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 11462 } 11463 var byteLen int 11464 for shift := uint(0); ; shift += 7 { 11465 if shift >= 64 { 11466 return ErrIntOverflowTypes 11467 } 11468 if iNdEx >= l { 11469 return io.ErrUnexpectedEOF 11470 } 11471 b := dAtA[iNdEx] 11472 iNdEx++ 11473 byteLen |= int(b&0x7F) << shift 11474 if b < 0x80 { 11475 break 11476 } 11477 } 11478 if byteLen < 0 { 11479 return ErrInvalidLengthTypes 11480 } 11481 postIndex := iNdEx + byteLen 11482 if postIndex < 0 { 11483 return ErrInvalidLengthTypes 11484 } 11485 if postIndex > l { 11486 return io.ErrUnexpectedEOF 11487 } 11488 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 11489 if m.Tx == nil { 11490 m.Tx = []byte{} 11491 } 11492 iNdEx = postIndex 11493 case 2: 11494 if wireType != 0 { 11495 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 11496 } 11497 m.Type = 0 11498 for shift := uint(0); ; shift += 7 { 11499 if shift >= 64 { 11500 return ErrIntOverflowTypes 11501 } 11502 if iNdEx >= l { 11503 return io.ErrUnexpectedEOF 11504 } 11505 b := dAtA[iNdEx] 11506 iNdEx++ 11507 m.Type |= CheckTxType(b&0x7F) << shift 11508 if b < 0x80 { 11509 break 11510 } 11511 } 11512 default: 11513 iNdEx = preIndex 11514 skippy, err := skipTypes(dAtA[iNdEx:]) 11515 if err != nil { 11516 return err 11517 } 11518 if (skippy < 0) || (iNdEx+skippy) < 0 { 11519 return ErrInvalidLengthTypes 11520 } 11521 if (iNdEx + skippy) > l { 11522 return io.ErrUnexpectedEOF 11523 } 11524 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11525 iNdEx += skippy 11526 } 11527 } 11528 11529 if iNdEx > l { 11530 return io.ErrUnexpectedEOF 11531 } 11532 return nil 11533 } 11534 func (m *RequestDeliverTx) Unmarshal(dAtA []byte) error { 11535 l := len(dAtA) 11536 iNdEx := 0 11537 for iNdEx < l { 11538 preIndex := iNdEx 11539 var wire uint64 11540 for shift := uint(0); ; shift += 7 { 11541 if shift >= 64 { 11542 return ErrIntOverflowTypes 11543 } 11544 if iNdEx >= l { 11545 return io.ErrUnexpectedEOF 11546 } 11547 b := dAtA[iNdEx] 11548 iNdEx++ 11549 wire |= uint64(b&0x7F) << shift 11550 if b < 0x80 { 11551 break 11552 } 11553 } 11554 fieldNum := int32(wire >> 3) 11555 wireType := int(wire & 0x7) 11556 if wireType == 4 { 11557 return fmt.Errorf("proto: RequestDeliverTx: wiretype end group for non-group") 11558 } 11559 if fieldNum <= 0 { 11560 return fmt.Errorf("proto: RequestDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire) 11561 } 11562 switch fieldNum { 11563 case 1: 11564 if wireType != 2 { 11565 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 11566 } 11567 var byteLen int 11568 for shift := uint(0); ; shift += 7 { 11569 if shift >= 64 { 11570 return ErrIntOverflowTypes 11571 } 11572 if iNdEx >= l { 11573 return io.ErrUnexpectedEOF 11574 } 11575 b := dAtA[iNdEx] 11576 iNdEx++ 11577 byteLen |= int(b&0x7F) << shift 11578 if b < 0x80 { 11579 break 11580 } 11581 } 11582 if byteLen < 0 { 11583 return ErrInvalidLengthTypes 11584 } 11585 postIndex := iNdEx + byteLen 11586 if postIndex < 0 { 11587 return ErrInvalidLengthTypes 11588 } 11589 if postIndex > l { 11590 return io.ErrUnexpectedEOF 11591 } 11592 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 11593 if m.Tx == nil { 11594 m.Tx = []byte{} 11595 } 11596 iNdEx = postIndex 11597 default: 11598 iNdEx = preIndex 11599 skippy, err := skipTypes(dAtA[iNdEx:]) 11600 if err != nil { 11601 return err 11602 } 11603 if (skippy < 0) || (iNdEx+skippy) < 0 { 11604 return ErrInvalidLengthTypes 11605 } 11606 if (iNdEx + skippy) > l { 11607 return io.ErrUnexpectedEOF 11608 } 11609 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11610 iNdEx += skippy 11611 } 11612 } 11613 11614 if iNdEx > l { 11615 return io.ErrUnexpectedEOF 11616 } 11617 return nil 11618 } 11619 func (m *RequestEndBlock) Unmarshal(dAtA []byte) error { 11620 l := len(dAtA) 11621 iNdEx := 0 11622 for iNdEx < l { 11623 preIndex := iNdEx 11624 var wire uint64 11625 for shift := uint(0); ; shift += 7 { 11626 if shift >= 64 { 11627 return ErrIntOverflowTypes 11628 } 11629 if iNdEx >= l { 11630 return io.ErrUnexpectedEOF 11631 } 11632 b := dAtA[iNdEx] 11633 iNdEx++ 11634 wire |= uint64(b&0x7F) << shift 11635 if b < 0x80 { 11636 break 11637 } 11638 } 11639 fieldNum := int32(wire >> 3) 11640 wireType := int(wire & 0x7) 11641 if wireType == 4 { 11642 return fmt.Errorf("proto: RequestEndBlock: wiretype end group for non-group") 11643 } 11644 if fieldNum <= 0 { 11645 return fmt.Errorf("proto: RequestEndBlock: illegal tag %d (wire type %d)", fieldNum, wire) 11646 } 11647 switch fieldNum { 11648 case 1: 11649 if wireType != 0 { 11650 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 11651 } 11652 m.Height = 0 11653 for shift := uint(0); ; shift += 7 { 11654 if shift >= 64 { 11655 return ErrIntOverflowTypes 11656 } 11657 if iNdEx >= l { 11658 return io.ErrUnexpectedEOF 11659 } 11660 b := dAtA[iNdEx] 11661 iNdEx++ 11662 m.Height |= int64(b&0x7F) << shift 11663 if b < 0x80 { 11664 break 11665 } 11666 } 11667 default: 11668 iNdEx = preIndex 11669 skippy, err := skipTypes(dAtA[iNdEx:]) 11670 if err != nil { 11671 return err 11672 } 11673 if (skippy < 0) || (iNdEx+skippy) < 0 { 11674 return ErrInvalidLengthTypes 11675 } 11676 if (iNdEx + skippy) > l { 11677 return io.ErrUnexpectedEOF 11678 } 11679 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11680 iNdEx += skippy 11681 } 11682 } 11683 11684 if iNdEx > l { 11685 return io.ErrUnexpectedEOF 11686 } 11687 return nil 11688 } 11689 func (m *RequestCommit) Unmarshal(dAtA []byte) error { 11690 l := len(dAtA) 11691 iNdEx := 0 11692 for iNdEx < l { 11693 preIndex := iNdEx 11694 var wire uint64 11695 for shift := uint(0); ; shift += 7 { 11696 if shift >= 64 { 11697 return ErrIntOverflowTypes 11698 } 11699 if iNdEx >= l { 11700 return io.ErrUnexpectedEOF 11701 } 11702 b := dAtA[iNdEx] 11703 iNdEx++ 11704 wire |= uint64(b&0x7F) << shift 11705 if b < 0x80 { 11706 break 11707 } 11708 } 11709 fieldNum := int32(wire >> 3) 11710 wireType := int(wire & 0x7) 11711 if wireType == 4 { 11712 return fmt.Errorf("proto: RequestCommit: wiretype end group for non-group") 11713 } 11714 if fieldNum <= 0 { 11715 return fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire) 11716 } 11717 switch fieldNum { 11718 case 1: 11719 var msglen int 11720 for shift := uint(0); ; shift += 7 { 11721 if shift >= 64 { 11722 return ErrIntOverflowTypes 11723 } 11724 if iNdEx >= l { 11725 return io.ErrUnexpectedEOF 11726 } 11727 b := dAtA[iNdEx] 11728 iNdEx++ 11729 msglen |= int(b&0x7F) << shift 11730 if b < 0x80 { 11731 break 11732 } 11733 } 11734 if msglen < 0 { 11735 return ErrInvalidLengthTypes 11736 } 11737 postIndex := iNdEx + msglen 11738 if postIndex < 0 { 11739 return ErrInvalidLengthTypes 11740 } 11741 if postIndex > l { 11742 return io.ErrUnexpectedEOF 11743 } 11744 iNdEx = postIndex 11745 default: 11746 iNdEx = preIndex 11747 skippy, err := skipTypes(dAtA[iNdEx:]) 11748 if err != nil { 11749 return err 11750 } 11751 if (skippy < 0) || (iNdEx+skippy) < 0 { 11752 return ErrInvalidLengthTypes 11753 } 11754 if (iNdEx + skippy) > l { 11755 return io.ErrUnexpectedEOF 11756 } 11757 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11758 iNdEx += skippy 11759 } 11760 } 11761 11762 if iNdEx > l { 11763 return io.ErrUnexpectedEOF 11764 } 11765 return nil 11766 } 11767 func (m *Response) Unmarshal(dAtA []byte) error { 11768 l := len(dAtA) 11769 iNdEx := 0 11770 for iNdEx < l { 11771 preIndex := iNdEx 11772 var wire uint64 11773 for shift := uint(0); ; shift += 7 { 11774 if shift >= 64 { 11775 return ErrIntOverflowTypes 11776 } 11777 if iNdEx >= l { 11778 return io.ErrUnexpectedEOF 11779 } 11780 b := dAtA[iNdEx] 11781 iNdEx++ 11782 wire |= uint64(b&0x7F) << shift 11783 if b < 0x80 { 11784 break 11785 } 11786 } 11787 fieldNum := int32(wire >> 3) 11788 wireType := int(wire & 0x7) 11789 if wireType == 4 { 11790 return fmt.Errorf("proto: Response: wiretype end group for non-group") 11791 } 11792 if fieldNum <= 0 { 11793 return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 11794 } 11795 switch fieldNum { 11796 case 1: 11797 if wireType != 2 { 11798 return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType) 11799 } 11800 var msglen int 11801 for shift := uint(0); ; shift += 7 { 11802 if shift >= 64 { 11803 return ErrIntOverflowTypes 11804 } 11805 if iNdEx >= l { 11806 return io.ErrUnexpectedEOF 11807 } 11808 b := dAtA[iNdEx] 11809 iNdEx++ 11810 msglen |= int(b&0x7F) << shift 11811 if b < 0x80 { 11812 break 11813 } 11814 } 11815 if msglen < 0 { 11816 return ErrInvalidLengthTypes 11817 } 11818 postIndex := iNdEx + msglen 11819 if postIndex < 0 { 11820 return ErrInvalidLengthTypes 11821 } 11822 if postIndex > l { 11823 return io.ErrUnexpectedEOF 11824 } 11825 v := &ResponseException{} 11826 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11827 return err 11828 } 11829 m.Value = &Response_Exception{v} 11830 iNdEx = postIndex 11831 case 2: 11832 if wireType != 2 { 11833 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 11834 } 11835 var msglen int 11836 for shift := uint(0); ; shift += 7 { 11837 if shift >= 64 { 11838 return ErrIntOverflowTypes 11839 } 11840 if iNdEx >= l { 11841 return io.ErrUnexpectedEOF 11842 } 11843 b := dAtA[iNdEx] 11844 iNdEx++ 11845 msglen |= int(b&0x7F) << shift 11846 if b < 0x80 { 11847 break 11848 } 11849 } 11850 if msglen < 0 { 11851 return ErrInvalidLengthTypes 11852 } 11853 postIndex := iNdEx + msglen 11854 if postIndex < 0 { 11855 return ErrInvalidLengthTypes 11856 } 11857 if postIndex > l { 11858 return io.ErrUnexpectedEOF 11859 } 11860 v := &ResponseEcho{} 11861 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11862 return err 11863 } 11864 m.Value = &Response_Echo{v} 11865 iNdEx = postIndex 11866 case 3: 11867 if wireType != 2 { 11868 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 11869 } 11870 var msglen int 11871 for shift := uint(0); ; shift += 7 { 11872 if shift >= 64 { 11873 return ErrIntOverflowTypes 11874 } 11875 if iNdEx >= l { 11876 return io.ErrUnexpectedEOF 11877 } 11878 b := dAtA[iNdEx] 11879 iNdEx++ 11880 msglen |= int(b&0x7F) << shift 11881 if b < 0x80 { 11882 break 11883 } 11884 } 11885 if msglen < 0 { 11886 return ErrInvalidLengthTypes 11887 } 11888 postIndex := iNdEx + msglen 11889 if postIndex < 0 { 11890 return ErrInvalidLengthTypes 11891 } 11892 if postIndex > l { 11893 return io.ErrUnexpectedEOF 11894 } 11895 v := &ResponseFlush{} 11896 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11897 return err 11898 } 11899 m.Value = &Response_Flush{v} 11900 iNdEx = postIndex 11901 case 4: 11902 if wireType != 2 { 11903 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 11904 } 11905 var msglen int 11906 for shift := uint(0); ; shift += 7 { 11907 if shift >= 64 { 11908 return ErrIntOverflowTypes 11909 } 11910 if iNdEx >= l { 11911 return io.ErrUnexpectedEOF 11912 } 11913 b := dAtA[iNdEx] 11914 iNdEx++ 11915 msglen |= int(b&0x7F) << shift 11916 if b < 0x80 { 11917 break 11918 } 11919 } 11920 if msglen < 0 { 11921 return ErrInvalidLengthTypes 11922 } 11923 postIndex := iNdEx + msglen 11924 if postIndex < 0 { 11925 return ErrInvalidLengthTypes 11926 } 11927 if postIndex > l { 11928 return io.ErrUnexpectedEOF 11929 } 11930 v := &ResponseInfo{} 11931 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11932 return err 11933 } 11934 m.Value = &Response_Info{v} 11935 iNdEx = postIndex 11936 case 5: 11937 if wireType != 2 { 11938 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 11939 } 11940 var msglen int 11941 for shift := uint(0); ; shift += 7 { 11942 if shift >= 64 { 11943 return ErrIntOverflowTypes 11944 } 11945 if iNdEx >= l { 11946 return io.ErrUnexpectedEOF 11947 } 11948 b := dAtA[iNdEx] 11949 iNdEx++ 11950 msglen |= int(b&0x7F) << shift 11951 if b < 0x80 { 11952 break 11953 } 11954 } 11955 if msglen < 0 { 11956 return ErrInvalidLengthTypes 11957 } 11958 postIndex := iNdEx + msglen 11959 if postIndex < 0 { 11960 return ErrInvalidLengthTypes 11961 } 11962 if postIndex > l { 11963 return io.ErrUnexpectedEOF 11964 } 11965 v := &ResponseSetOption{} 11966 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11967 return err 11968 } 11969 m.Value = &Response_SetOption{v} 11970 iNdEx = postIndex 11971 case 6: 11972 if wireType != 2 { 11973 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 11974 } 11975 var msglen int 11976 for shift := uint(0); ; shift += 7 { 11977 if shift >= 64 { 11978 return ErrIntOverflowTypes 11979 } 11980 if iNdEx >= l { 11981 return io.ErrUnexpectedEOF 11982 } 11983 b := dAtA[iNdEx] 11984 iNdEx++ 11985 msglen |= int(b&0x7F) << shift 11986 if b < 0x80 { 11987 break 11988 } 11989 } 11990 if msglen < 0 { 11991 return ErrInvalidLengthTypes 11992 } 11993 postIndex := iNdEx + msglen 11994 if postIndex < 0 { 11995 return ErrInvalidLengthTypes 11996 } 11997 if postIndex > l { 11998 return io.ErrUnexpectedEOF 11999 } 12000 v := &ResponseInitChain{} 12001 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12002 return err 12003 } 12004 m.Value = &Response_InitChain{v} 12005 iNdEx = postIndex 12006 case 7: 12007 if wireType != 2 { 12008 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 12009 } 12010 var msglen int 12011 for shift := uint(0); ; shift += 7 { 12012 if shift >= 64 { 12013 return ErrIntOverflowTypes 12014 } 12015 if iNdEx >= l { 12016 return io.ErrUnexpectedEOF 12017 } 12018 b := dAtA[iNdEx] 12019 iNdEx++ 12020 msglen |= int(b&0x7F) << shift 12021 if b < 0x80 { 12022 break 12023 } 12024 } 12025 if msglen < 0 { 12026 return ErrInvalidLengthTypes 12027 } 12028 postIndex := iNdEx + msglen 12029 if postIndex < 0 { 12030 return ErrInvalidLengthTypes 12031 } 12032 if postIndex > l { 12033 return io.ErrUnexpectedEOF 12034 } 12035 v := &ResponseQuery{} 12036 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12037 return err 12038 } 12039 m.Value = &Response_Query{v} 12040 iNdEx = postIndex 12041 case 8: 12042 if wireType != 2 { 12043 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 12044 } 12045 var msglen int 12046 for shift := uint(0); ; shift += 7 { 12047 if shift >= 64 { 12048 return ErrIntOverflowTypes 12049 } 12050 if iNdEx >= l { 12051 return io.ErrUnexpectedEOF 12052 } 12053 b := dAtA[iNdEx] 12054 iNdEx++ 12055 msglen |= int(b&0x7F) << shift 12056 if b < 0x80 { 12057 break 12058 } 12059 } 12060 if msglen < 0 { 12061 return ErrInvalidLengthTypes 12062 } 12063 postIndex := iNdEx + msglen 12064 if postIndex < 0 { 12065 return ErrInvalidLengthTypes 12066 } 12067 if postIndex > l { 12068 return io.ErrUnexpectedEOF 12069 } 12070 v := &ResponseBeginBlock{} 12071 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12072 return err 12073 } 12074 m.Value = &Response_BeginBlock{v} 12075 iNdEx = postIndex 12076 case 9: 12077 if wireType != 2 { 12078 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 12079 } 12080 var msglen int 12081 for shift := uint(0); ; shift += 7 { 12082 if shift >= 64 { 12083 return ErrIntOverflowTypes 12084 } 12085 if iNdEx >= l { 12086 return io.ErrUnexpectedEOF 12087 } 12088 b := dAtA[iNdEx] 12089 iNdEx++ 12090 msglen |= int(b&0x7F) << shift 12091 if b < 0x80 { 12092 break 12093 } 12094 } 12095 if msglen < 0 { 12096 return ErrInvalidLengthTypes 12097 } 12098 postIndex := iNdEx + msglen 12099 if postIndex < 0 { 12100 return ErrInvalidLengthTypes 12101 } 12102 if postIndex > l { 12103 return io.ErrUnexpectedEOF 12104 } 12105 v := &ResponseCheckTx{} 12106 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12107 return err 12108 } 12109 m.Value = &Response_CheckTx{v} 12110 iNdEx = postIndex 12111 case 10: 12112 if wireType != 2 { 12113 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 12114 } 12115 var msglen int 12116 for shift := uint(0); ; shift += 7 { 12117 if shift >= 64 { 12118 return ErrIntOverflowTypes 12119 } 12120 if iNdEx >= l { 12121 return io.ErrUnexpectedEOF 12122 } 12123 b := dAtA[iNdEx] 12124 iNdEx++ 12125 msglen |= int(b&0x7F) << shift 12126 if b < 0x80 { 12127 break 12128 } 12129 } 12130 if msglen < 0 { 12131 return ErrInvalidLengthTypes 12132 } 12133 postIndex := iNdEx + msglen 12134 if postIndex < 0 { 12135 return ErrInvalidLengthTypes 12136 } 12137 if postIndex > l { 12138 return io.ErrUnexpectedEOF 12139 } 12140 v := &ResponseDeliverTx{} 12141 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12142 return err 12143 } 12144 m.Value = &Response_DeliverTx{v} 12145 iNdEx = postIndex 12146 case 11: 12147 if wireType != 2 { 12148 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 12149 } 12150 var msglen int 12151 for shift := uint(0); ; shift += 7 { 12152 if shift >= 64 { 12153 return ErrIntOverflowTypes 12154 } 12155 if iNdEx >= l { 12156 return io.ErrUnexpectedEOF 12157 } 12158 b := dAtA[iNdEx] 12159 iNdEx++ 12160 msglen |= int(b&0x7F) << shift 12161 if b < 0x80 { 12162 break 12163 } 12164 } 12165 if msglen < 0 { 12166 return ErrInvalidLengthTypes 12167 } 12168 postIndex := iNdEx + msglen 12169 if postIndex < 0 { 12170 return ErrInvalidLengthTypes 12171 } 12172 if postIndex > l { 12173 return io.ErrUnexpectedEOF 12174 } 12175 v := &ResponseEndBlock{} 12176 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12177 return err 12178 } 12179 m.Value = &Response_EndBlock{v} 12180 iNdEx = postIndex 12181 case 12: 12182 if wireType != 2 { 12183 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 12184 } 12185 var msglen int 12186 for shift := uint(0); ; shift += 7 { 12187 if shift >= 64 { 12188 return ErrIntOverflowTypes 12189 } 12190 if iNdEx >= l { 12191 return io.ErrUnexpectedEOF 12192 } 12193 b := dAtA[iNdEx] 12194 iNdEx++ 12195 msglen |= int(b&0x7F) << shift 12196 if b < 0x80 { 12197 break 12198 } 12199 } 12200 if msglen < 0 { 12201 return ErrInvalidLengthTypes 12202 } 12203 postIndex := iNdEx + msglen 12204 if postIndex < 0 { 12205 return ErrInvalidLengthTypes 12206 } 12207 if postIndex > l { 12208 return io.ErrUnexpectedEOF 12209 } 12210 v := &ResponseCommit{} 12211 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12212 return err 12213 } 12214 m.Value = &Response_Commit{v} 12215 iNdEx = postIndex 12216 default: 12217 iNdEx = preIndex 12218 skippy, err := skipTypes(dAtA[iNdEx:]) 12219 if err != nil { 12220 return err 12221 } 12222 if (skippy < 0) || (iNdEx+skippy) < 0 { 12223 return ErrInvalidLengthTypes 12224 } 12225 if (iNdEx + skippy) > l { 12226 return io.ErrUnexpectedEOF 12227 } 12228 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12229 iNdEx += skippy 12230 } 12231 } 12232 12233 if iNdEx > l { 12234 return io.ErrUnexpectedEOF 12235 } 12236 return nil 12237 } 12238 func (m *ResponseException) Unmarshal(dAtA []byte) error { 12239 l := len(dAtA) 12240 iNdEx := 0 12241 for iNdEx < l { 12242 preIndex := iNdEx 12243 var wire uint64 12244 for shift := uint(0); ; shift += 7 { 12245 if shift >= 64 { 12246 return ErrIntOverflowTypes 12247 } 12248 if iNdEx >= l { 12249 return io.ErrUnexpectedEOF 12250 } 12251 b := dAtA[iNdEx] 12252 iNdEx++ 12253 wire |= uint64(b&0x7F) << shift 12254 if b < 0x80 { 12255 break 12256 } 12257 } 12258 fieldNum := int32(wire >> 3) 12259 wireType := int(wire & 0x7) 12260 if wireType == 4 { 12261 return fmt.Errorf("proto: ResponseException: wiretype end group for non-group") 12262 } 12263 if fieldNum <= 0 { 12264 return fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire) 12265 } 12266 switch fieldNum { 12267 case 1: 12268 if wireType != 2 { 12269 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 12270 } 12271 var stringLen uint64 12272 for shift := uint(0); ; shift += 7 { 12273 if shift >= 64 { 12274 return ErrIntOverflowTypes 12275 } 12276 if iNdEx >= l { 12277 return io.ErrUnexpectedEOF 12278 } 12279 b := dAtA[iNdEx] 12280 iNdEx++ 12281 stringLen |= uint64(b&0x7F) << shift 12282 if b < 0x80 { 12283 break 12284 } 12285 } 12286 intStringLen := int(stringLen) 12287 if intStringLen < 0 { 12288 return ErrInvalidLengthTypes 12289 } 12290 postIndex := iNdEx + intStringLen 12291 if postIndex < 0 { 12292 return ErrInvalidLengthTypes 12293 } 12294 if postIndex > l { 12295 return io.ErrUnexpectedEOF 12296 } 12297 m.Error = string(dAtA[iNdEx:postIndex]) 12298 iNdEx = postIndex 12299 default: 12300 iNdEx = preIndex 12301 skippy, err := skipTypes(dAtA[iNdEx:]) 12302 if err != nil { 12303 return err 12304 } 12305 if (skippy < 0) || (iNdEx+skippy) < 0 { 12306 return ErrInvalidLengthTypes 12307 } 12308 if (iNdEx + skippy) > l { 12309 return io.ErrUnexpectedEOF 12310 } 12311 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12312 iNdEx += skippy 12313 } 12314 } 12315 12316 if iNdEx > l { 12317 return io.ErrUnexpectedEOF 12318 } 12319 return nil 12320 } 12321 func (m *ResponseEcho) Unmarshal(dAtA []byte) error { 12322 l := len(dAtA) 12323 iNdEx := 0 12324 for iNdEx < l { 12325 preIndex := iNdEx 12326 var wire uint64 12327 for shift := uint(0); ; shift += 7 { 12328 if shift >= 64 { 12329 return ErrIntOverflowTypes 12330 } 12331 if iNdEx >= l { 12332 return io.ErrUnexpectedEOF 12333 } 12334 b := dAtA[iNdEx] 12335 iNdEx++ 12336 wire |= uint64(b&0x7F) << shift 12337 if b < 0x80 { 12338 break 12339 } 12340 } 12341 fieldNum := int32(wire >> 3) 12342 wireType := int(wire & 0x7) 12343 if wireType == 4 { 12344 return fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group") 12345 } 12346 if fieldNum <= 0 { 12347 return fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire) 12348 } 12349 switch fieldNum { 12350 case 1: 12351 if wireType != 2 { 12352 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 12353 } 12354 var stringLen uint64 12355 for shift := uint(0); ; shift += 7 { 12356 if shift >= 64 { 12357 return ErrIntOverflowTypes 12358 } 12359 if iNdEx >= l { 12360 return io.ErrUnexpectedEOF 12361 } 12362 b := dAtA[iNdEx] 12363 iNdEx++ 12364 stringLen |= uint64(b&0x7F) << shift 12365 if b < 0x80 { 12366 break 12367 } 12368 } 12369 intStringLen := int(stringLen) 12370 if intStringLen < 0 { 12371 return ErrInvalidLengthTypes 12372 } 12373 postIndex := iNdEx + intStringLen 12374 if postIndex < 0 { 12375 return ErrInvalidLengthTypes 12376 } 12377 if postIndex > l { 12378 return io.ErrUnexpectedEOF 12379 } 12380 m.Message = string(dAtA[iNdEx:postIndex]) 12381 iNdEx = postIndex 12382 default: 12383 iNdEx = preIndex 12384 skippy, err := skipTypes(dAtA[iNdEx:]) 12385 if err != nil { 12386 return err 12387 } 12388 if (skippy < 0) || (iNdEx+skippy) < 0 { 12389 return ErrInvalidLengthTypes 12390 } 12391 if (iNdEx + skippy) > l { 12392 return io.ErrUnexpectedEOF 12393 } 12394 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12395 iNdEx += skippy 12396 } 12397 } 12398 12399 if iNdEx > l { 12400 return io.ErrUnexpectedEOF 12401 } 12402 return nil 12403 } 12404 func (m *ResponseFlush) Unmarshal(dAtA []byte) error { 12405 l := len(dAtA) 12406 iNdEx := 0 12407 for iNdEx < l { 12408 preIndex := iNdEx 12409 var wire uint64 12410 for shift := uint(0); ; shift += 7 { 12411 if shift >= 64 { 12412 return ErrIntOverflowTypes 12413 } 12414 if iNdEx >= l { 12415 return io.ErrUnexpectedEOF 12416 } 12417 b := dAtA[iNdEx] 12418 iNdEx++ 12419 wire |= uint64(b&0x7F) << shift 12420 if b < 0x80 { 12421 break 12422 } 12423 } 12424 fieldNum := int32(wire >> 3) 12425 wireType := int(wire & 0x7) 12426 if wireType == 4 { 12427 return fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group") 12428 } 12429 if fieldNum <= 0 { 12430 return fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire) 12431 } 12432 switch fieldNum { 12433 default: 12434 iNdEx = preIndex 12435 skippy, err := skipTypes(dAtA[iNdEx:]) 12436 if err != nil { 12437 return err 12438 } 12439 if (skippy < 0) || (iNdEx+skippy) < 0 { 12440 return ErrInvalidLengthTypes 12441 } 12442 if (iNdEx + skippy) > l { 12443 return io.ErrUnexpectedEOF 12444 } 12445 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12446 iNdEx += skippy 12447 } 12448 } 12449 12450 if iNdEx > l { 12451 return io.ErrUnexpectedEOF 12452 } 12453 return nil 12454 } 12455 func (m *ResponseInfo) Unmarshal(dAtA []byte) error { 12456 l := len(dAtA) 12457 iNdEx := 0 12458 for iNdEx < l { 12459 preIndex := iNdEx 12460 var wire uint64 12461 for shift := uint(0); ; shift += 7 { 12462 if shift >= 64 { 12463 return ErrIntOverflowTypes 12464 } 12465 if iNdEx >= l { 12466 return io.ErrUnexpectedEOF 12467 } 12468 b := dAtA[iNdEx] 12469 iNdEx++ 12470 wire |= uint64(b&0x7F) << shift 12471 if b < 0x80 { 12472 break 12473 } 12474 } 12475 fieldNum := int32(wire >> 3) 12476 wireType := int(wire & 0x7) 12477 if wireType == 4 { 12478 return fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group") 12479 } 12480 if fieldNum <= 0 { 12481 return fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire) 12482 } 12483 switch fieldNum { 12484 case 1: 12485 if wireType != 2 { 12486 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 12487 } 12488 var stringLen uint64 12489 for shift := uint(0); ; shift += 7 { 12490 if shift >= 64 { 12491 return ErrIntOverflowTypes 12492 } 12493 if iNdEx >= l { 12494 return io.ErrUnexpectedEOF 12495 } 12496 b := dAtA[iNdEx] 12497 iNdEx++ 12498 stringLen |= uint64(b&0x7F) << shift 12499 if b < 0x80 { 12500 break 12501 } 12502 } 12503 intStringLen := int(stringLen) 12504 if intStringLen < 0 { 12505 return ErrInvalidLengthTypes 12506 } 12507 postIndex := iNdEx + intStringLen 12508 if postIndex < 0 { 12509 return ErrInvalidLengthTypes 12510 } 12511 if postIndex > l { 12512 return io.ErrUnexpectedEOF 12513 } 12514 m.Data = string(dAtA[iNdEx:postIndex]) 12515 iNdEx = postIndex 12516 case 2: 12517 if wireType != 2 { 12518 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 12519 } 12520 var stringLen uint64 12521 for shift := uint(0); ; shift += 7 { 12522 if shift >= 64 { 12523 return ErrIntOverflowTypes 12524 } 12525 if iNdEx >= l { 12526 return io.ErrUnexpectedEOF 12527 } 12528 b := dAtA[iNdEx] 12529 iNdEx++ 12530 stringLen |= uint64(b&0x7F) << shift 12531 if b < 0x80 { 12532 break 12533 } 12534 } 12535 intStringLen := int(stringLen) 12536 if intStringLen < 0 { 12537 return ErrInvalidLengthTypes 12538 } 12539 postIndex := iNdEx + intStringLen 12540 if postIndex < 0 { 12541 return ErrInvalidLengthTypes 12542 } 12543 if postIndex > l { 12544 return io.ErrUnexpectedEOF 12545 } 12546 m.Version = string(dAtA[iNdEx:postIndex]) 12547 iNdEx = postIndex 12548 case 3: 12549 if wireType != 0 { 12550 return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType) 12551 } 12552 m.AppVersion = 0 12553 for shift := uint(0); ; shift += 7 { 12554 if shift >= 64 { 12555 return ErrIntOverflowTypes 12556 } 12557 if iNdEx >= l { 12558 return io.ErrUnexpectedEOF 12559 } 12560 b := dAtA[iNdEx] 12561 iNdEx++ 12562 m.AppVersion |= uint64(b&0x7F) << shift 12563 if b < 0x80 { 12564 break 12565 } 12566 } 12567 case 4: 12568 if wireType != 0 { 12569 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType) 12570 } 12571 m.LastBlockHeight = 0 12572 for shift := uint(0); ; shift += 7 { 12573 if shift >= 64 { 12574 return ErrIntOverflowTypes 12575 } 12576 if iNdEx >= l { 12577 return io.ErrUnexpectedEOF 12578 } 12579 b := dAtA[iNdEx] 12580 iNdEx++ 12581 m.LastBlockHeight |= int64(b&0x7F) << shift 12582 if b < 0x80 { 12583 break 12584 } 12585 } 12586 case 5: 12587 if wireType != 2 { 12588 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType) 12589 } 12590 var byteLen int 12591 for shift := uint(0); ; shift += 7 { 12592 if shift >= 64 { 12593 return ErrIntOverflowTypes 12594 } 12595 if iNdEx >= l { 12596 return io.ErrUnexpectedEOF 12597 } 12598 b := dAtA[iNdEx] 12599 iNdEx++ 12600 byteLen |= int(b&0x7F) << shift 12601 if b < 0x80 { 12602 break 12603 } 12604 } 12605 if byteLen < 0 { 12606 return ErrInvalidLengthTypes 12607 } 12608 postIndex := iNdEx + byteLen 12609 if postIndex < 0 { 12610 return ErrInvalidLengthTypes 12611 } 12612 if postIndex > l { 12613 return io.ErrUnexpectedEOF 12614 } 12615 m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...) 12616 if m.LastBlockAppHash == nil { 12617 m.LastBlockAppHash = []byte{} 12618 } 12619 iNdEx = postIndex 12620 default: 12621 iNdEx = preIndex 12622 skippy, err := skipTypes(dAtA[iNdEx:]) 12623 if err != nil { 12624 return err 12625 } 12626 if (skippy < 0) || (iNdEx+skippy) < 0 { 12627 return ErrInvalidLengthTypes 12628 } 12629 if (iNdEx + skippy) > l { 12630 return io.ErrUnexpectedEOF 12631 } 12632 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12633 iNdEx += skippy 12634 } 12635 } 12636 12637 if iNdEx > l { 12638 return io.ErrUnexpectedEOF 12639 } 12640 return nil 12641 } 12642 func (m *ResponseSetOption) Unmarshal(dAtA []byte) error { 12643 l := len(dAtA) 12644 iNdEx := 0 12645 for iNdEx < l { 12646 preIndex := iNdEx 12647 var wire uint64 12648 for shift := uint(0); ; shift += 7 { 12649 if shift >= 64 { 12650 return ErrIntOverflowTypes 12651 } 12652 if iNdEx >= l { 12653 return io.ErrUnexpectedEOF 12654 } 12655 b := dAtA[iNdEx] 12656 iNdEx++ 12657 wire |= uint64(b&0x7F) << shift 12658 if b < 0x80 { 12659 break 12660 } 12661 } 12662 fieldNum := int32(wire >> 3) 12663 wireType := int(wire & 0x7) 12664 if wireType == 4 { 12665 return fmt.Errorf("proto: ResponseSetOption: wiretype end group for non-group") 12666 } 12667 if fieldNum <= 0 { 12668 return fmt.Errorf("proto: ResponseSetOption: illegal tag %d (wire type %d)", fieldNum, wire) 12669 } 12670 switch fieldNum { 12671 case 1: 12672 if wireType != 0 { 12673 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 12674 } 12675 m.Code = 0 12676 for shift := uint(0); ; shift += 7 { 12677 if shift >= 64 { 12678 return ErrIntOverflowTypes 12679 } 12680 if iNdEx >= l { 12681 return io.ErrUnexpectedEOF 12682 } 12683 b := dAtA[iNdEx] 12684 iNdEx++ 12685 m.Code |= uint32(b&0x7F) << shift 12686 if b < 0x80 { 12687 break 12688 } 12689 } 12690 case 3: 12691 if wireType != 2 { 12692 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 12693 } 12694 var stringLen uint64 12695 for shift := uint(0); ; shift += 7 { 12696 if shift >= 64 { 12697 return ErrIntOverflowTypes 12698 } 12699 if iNdEx >= l { 12700 return io.ErrUnexpectedEOF 12701 } 12702 b := dAtA[iNdEx] 12703 iNdEx++ 12704 stringLen |= uint64(b&0x7F) << shift 12705 if b < 0x80 { 12706 break 12707 } 12708 } 12709 intStringLen := int(stringLen) 12710 if intStringLen < 0 { 12711 return ErrInvalidLengthTypes 12712 } 12713 postIndex := iNdEx + intStringLen 12714 if postIndex < 0 { 12715 return ErrInvalidLengthTypes 12716 } 12717 if postIndex > l { 12718 return io.ErrUnexpectedEOF 12719 } 12720 m.Log = string(dAtA[iNdEx:postIndex]) 12721 iNdEx = postIndex 12722 case 4: 12723 if wireType != 2 { 12724 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 12725 } 12726 var stringLen uint64 12727 for shift := uint(0); ; shift += 7 { 12728 if shift >= 64 { 12729 return ErrIntOverflowTypes 12730 } 12731 if iNdEx >= l { 12732 return io.ErrUnexpectedEOF 12733 } 12734 b := dAtA[iNdEx] 12735 iNdEx++ 12736 stringLen |= uint64(b&0x7F) << shift 12737 if b < 0x80 { 12738 break 12739 } 12740 } 12741 intStringLen := int(stringLen) 12742 if intStringLen < 0 { 12743 return ErrInvalidLengthTypes 12744 } 12745 postIndex := iNdEx + intStringLen 12746 if postIndex < 0 { 12747 return ErrInvalidLengthTypes 12748 } 12749 if postIndex > l { 12750 return io.ErrUnexpectedEOF 12751 } 12752 m.Info = string(dAtA[iNdEx:postIndex]) 12753 iNdEx = postIndex 12754 default: 12755 iNdEx = preIndex 12756 skippy, err := skipTypes(dAtA[iNdEx:]) 12757 if err != nil { 12758 return err 12759 } 12760 if (skippy < 0) || (iNdEx+skippy) < 0 { 12761 return ErrInvalidLengthTypes 12762 } 12763 if (iNdEx + skippy) > l { 12764 return io.ErrUnexpectedEOF 12765 } 12766 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12767 iNdEx += skippy 12768 } 12769 } 12770 12771 if iNdEx > l { 12772 return io.ErrUnexpectedEOF 12773 } 12774 return nil 12775 } 12776 func (m *ResponseInitChain) Unmarshal(dAtA []byte) error { 12777 l := len(dAtA) 12778 iNdEx := 0 12779 for iNdEx < l { 12780 preIndex := iNdEx 12781 var wire uint64 12782 for shift := uint(0); ; shift += 7 { 12783 if shift >= 64 { 12784 return ErrIntOverflowTypes 12785 } 12786 if iNdEx >= l { 12787 return io.ErrUnexpectedEOF 12788 } 12789 b := dAtA[iNdEx] 12790 iNdEx++ 12791 wire |= uint64(b&0x7F) << shift 12792 if b < 0x80 { 12793 break 12794 } 12795 } 12796 fieldNum := int32(wire >> 3) 12797 wireType := int(wire & 0x7) 12798 if wireType == 4 { 12799 return fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group") 12800 } 12801 if fieldNum <= 0 { 12802 return fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire) 12803 } 12804 switch fieldNum { 12805 case 1: 12806 if wireType != 2 { 12807 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) 12808 } 12809 var msglen int 12810 for shift := uint(0); ; shift += 7 { 12811 if shift >= 64 { 12812 return ErrIntOverflowTypes 12813 } 12814 if iNdEx >= l { 12815 return io.ErrUnexpectedEOF 12816 } 12817 b := dAtA[iNdEx] 12818 iNdEx++ 12819 msglen |= int(b&0x7F) << shift 12820 if b < 0x80 { 12821 break 12822 } 12823 } 12824 if msglen < 0 { 12825 return ErrInvalidLengthTypes 12826 } 12827 postIndex := iNdEx + msglen 12828 if postIndex < 0 { 12829 return ErrInvalidLengthTypes 12830 } 12831 if postIndex > l { 12832 return io.ErrUnexpectedEOF 12833 } 12834 if m.ConsensusParams == nil { 12835 m.ConsensusParams = &ConsensusParams{} 12836 } 12837 if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12838 return err 12839 } 12840 iNdEx = postIndex 12841 case 2: 12842 if wireType != 2 { 12843 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 12844 } 12845 var msglen int 12846 for shift := uint(0); ; shift += 7 { 12847 if shift >= 64 { 12848 return ErrIntOverflowTypes 12849 } 12850 if iNdEx >= l { 12851 return io.ErrUnexpectedEOF 12852 } 12853 b := dAtA[iNdEx] 12854 iNdEx++ 12855 msglen |= int(b&0x7F) << shift 12856 if b < 0x80 { 12857 break 12858 } 12859 } 12860 if msglen < 0 { 12861 return ErrInvalidLengthTypes 12862 } 12863 postIndex := iNdEx + msglen 12864 if postIndex < 0 { 12865 return ErrInvalidLengthTypes 12866 } 12867 if postIndex > l { 12868 return io.ErrUnexpectedEOF 12869 } 12870 m.Validators = append(m.Validators, ValidatorUpdate{}) 12871 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12872 return err 12873 } 12874 iNdEx = postIndex 12875 default: 12876 iNdEx = preIndex 12877 skippy, err := skipTypes(dAtA[iNdEx:]) 12878 if err != nil { 12879 return err 12880 } 12881 if (skippy < 0) || (iNdEx+skippy) < 0 { 12882 return ErrInvalidLengthTypes 12883 } 12884 if (iNdEx + skippy) > l { 12885 return io.ErrUnexpectedEOF 12886 } 12887 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12888 iNdEx += skippy 12889 } 12890 } 12891 12892 if iNdEx > l { 12893 return io.ErrUnexpectedEOF 12894 } 12895 return nil 12896 } 12897 func (m *ResponseQuery) Unmarshal(dAtA []byte) error { 12898 l := len(dAtA) 12899 iNdEx := 0 12900 for iNdEx < l { 12901 preIndex := iNdEx 12902 var wire uint64 12903 for shift := uint(0); ; shift += 7 { 12904 if shift >= 64 { 12905 return ErrIntOverflowTypes 12906 } 12907 if iNdEx >= l { 12908 return io.ErrUnexpectedEOF 12909 } 12910 b := dAtA[iNdEx] 12911 iNdEx++ 12912 wire |= uint64(b&0x7F) << shift 12913 if b < 0x80 { 12914 break 12915 } 12916 } 12917 fieldNum := int32(wire >> 3) 12918 wireType := int(wire & 0x7) 12919 if wireType == 4 { 12920 return fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group") 12921 } 12922 if fieldNum <= 0 { 12923 return fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire) 12924 } 12925 switch fieldNum { 12926 case 1: 12927 if wireType != 0 { 12928 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 12929 } 12930 m.Code = 0 12931 for shift := uint(0); ; shift += 7 { 12932 if shift >= 64 { 12933 return ErrIntOverflowTypes 12934 } 12935 if iNdEx >= l { 12936 return io.ErrUnexpectedEOF 12937 } 12938 b := dAtA[iNdEx] 12939 iNdEx++ 12940 m.Code |= uint32(b&0x7F) << shift 12941 if b < 0x80 { 12942 break 12943 } 12944 } 12945 case 3: 12946 if wireType != 2 { 12947 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 12948 } 12949 var stringLen uint64 12950 for shift := uint(0); ; shift += 7 { 12951 if shift >= 64 { 12952 return ErrIntOverflowTypes 12953 } 12954 if iNdEx >= l { 12955 return io.ErrUnexpectedEOF 12956 } 12957 b := dAtA[iNdEx] 12958 iNdEx++ 12959 stringLen |= uint64(b&0x7F) << shift 12960 if b < 0x80 { 12961 break 12962 } 12963 } 12964 intStringLen := int(stringLen) 12965 if intStringLen < 0 { 12966 return ErrInvalidLengthTypes 12967 } 12968 postIndex := iNdEx + intStringLen 12969 if postIndex < 0 { 12970 return ErrInvalidLengthTypes 12971 } 12972 if postIndex > l { 12973 return io.ErrUnexpectedEOF 12974 } 12975 m.Log = string(dAtA[iNdEx:postIndex]) 12976 iNdEx = postIndex 12977 case 4: 12978 if wireType != 2 { 12979 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 12980 } 12981 var stringLen uint64 12982 for shift := uint(0); ; shift += 7 { 12983 if shift >= 64 { 12984 return ErrIntOverflowTypes 12985 } 12986 if iNdEx >= l { 12987 return io.ErrUnexpectedEOF 12988 } 12989 b := dAtA[iNdEx] 12990 iNdEx++ 12991 stringLen |= uint64(b&0x7F) << shift 12992 if b < 0x80 { 12993 break 12994 } 12995 } 12996 intStringLen := int(stringLen) 12997 if intStringLen < 0 { 12998 return ErrInvalidLengthTypes 12999 } 13000 postIndex := iNdEx + intStringLen 13001 if postIndex < 0 { 13002 return ErrInvalidLengthTypes 13003 } 13004 if postIndex > l { 13005 return io.ErrUnexpectedEOF 13006 } 13007 m.Info = string(dAtA[iNdEx:postIndex]) 13008 iNdEx = postIndex 13009 case 5: 13010 if wireType != 0 { 13011 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 13012 } 13013 m.Index = 0 13014 for shift := uint(0); ; shift += 7 { 13015 if shift >= 64 { 13016 return ErrIntOverflowTypes 13017 } 13018 if iNdEx >= l { 13019 return io.ErrUnexpectedEOF 13020 } 13021 b := dAtA[iNdEx] 13022 iNdEx++ 13023 m.Index |= int64(b&0x7F) << shift 13024 if b < 0x80 { 13025 break 13026 } 13027 } 13028 case 6: 13029 if wireType != 2 { 13030 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 13031 } 13032 var byteLen int 13033 for shift := uint(0); ; shift += 7 { 13034 if shift >= 64 { 13035 return ErrIntOverflowTypes 13036 } 13037 if iNdEx >= l { 13038 return io.ErrUnexpectedEOF 13039 } 13040 b := dAtA[iNdEx] 13041 iNdEx++ 13042 byteLen |= int(b&0x7F) << shift 13043 if b < 0x80 { 13044 break 13045 } 13046 } 13047 if byteLen < 0 { 13048 return ErrInvalidLengthTypes 13049 } 13050 postIndex := iNdEx + byteLen 13051 if postIndex < 0 { 13052 return ErrInvalidLengthTypes 13053 } 13054 if postIndex > l { 13055 return io.ErrUnexpectedEOF 13056 } 13057 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) 13058 if m.Key == nil { 13059 m.Key = []byte{} 13060 } 13061 iNdEx = postIndex 13062 case 7: 13063 if wireType != 2 { 13064 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 13065 } 13066 var byteLen int 13067 for shift := uint(0); ; shift += 7 { 13068 if shift >= 64 { 13069 return ErrIntOverflowTypes 13070 } 13071 if iNdEx >= l { 13072 return io.ErrUnexpectedEOF 13073 } 13074 b := dAtA[iNdEx] 13075 iNdEx++ 13076 byteLen |= int(b&0x7F) << shift 13077 if b < 0x80 { 13078 break 13079 } 13080 } 13081 if byteLen < 0 { 13082 return ErrInvalidLengthTypes 13083 } 13084 postIndex := iNdEx + byteLen 13085 if postIndex < 0 { 13086 return ErrInvalidLengthTypes 13087 } 13088 if postIndex > l { 13089 return io.ErrUnexpectedEOF 13090 } 13091 m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) 13092 if m.Value == nil { 13093 m.Value = []byte{} 13094 } 13095 iNdEx = postIndex 13096 case 8: 13097 if wireType != 2 { 13098 return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) 13099 } 13100 var msglen int 13101 for shift := uint(0); ; shift += 7 { 13102 if shift >= 64 { 13103 return ErrIntOverflowTypes 13104 } 13105 if iNdEx >= l { 13106 return io.ErrUnexpectedEOF 13107 } 13108 b := dAtA[iNdEx] 13109 iNdEx++ 13110 msglen |= int(b&0x7F) << shift 13111 if b < 0x80 { 13112 break 13113 } 13114 } 13115 if msglen < 0 { 13116 return ErrInvalidLengthTypes 13117 } 13118 postIndex := iNdEx + msglen 13119 if postIndex < 0 { 13120 return ErrInvalidLengthTypes 13121 } 13122 if postIndex > l { 13123 return io.ErrUnexpectedEOF 13124 } 13125 if m.Proof == nil { 13126 m.Proof = &merkle.Proof{} 13127 } 13128 if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13129 return err 13130 } 13131 iNdEx = postIndex 13132 case 9: 13133 if wireType != 0 { 13134 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 13135 } 13136 m.Height = 0 13137 for shift := uint(0); ; shift += 7 { 13138 if shift >= 64 { 13139 return ErrIntOverflowTypes 13140 } 13141 if iNdEx >= l { 13142 return io.ErrUnexpectedEOF 13143 } 13144 b := dAtA[iNdEx] 13145 iNdEx++ 13146 m.Height |= int64(b&0x7F) << shift 13147 if b < 0x80 { 13148 break 13149 } 13150 } 13151 case 10: 13152 if wireType != 2 { 13153 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 13154 } 13155 var stringLen uint64 13156 for shift := uint(0); ; shift += 7 { 13157 if shift >= 64 { 13158 return ErrIntOverflowTypes 13159 } 13160 if iNdEx >= l { 13161 return io.ErrUnexpectedEOF 13162 } 13163 b := dAtA[iNdEx] 13164 iNdEx++ 13165 stringLen |= uint64(b&0x7F) << shift 13166 if b < 0x80 { 13167 break 13168 } 13169 } 13170 intStringLen := int(stringLen) 13171 if intStringLen < 0 { 13172 return ErrInvalidLengthTypes 13173 } 13174 postIndex := iNdEx + intStringLen 13175 if postIndex < 0 { 13176 return ErrInvalidLengthTypes 13177 } 13178 if postIndex > l { 13179 return io.ErrUnexpectedEOF 13180 } 13181 m.Codespace = string(dAtA[iNdEx:postIndex]) 13182 iNdEx = postIndex 13183 default: 13184 iNdEx = preIndex 13185 skippy, err := skipTypes(dAtA[iNdEx:]) 13186 if err != nil { 13187 return err 13188 } 13189 if (skippy < 0) || (iNdEx+skippy) < 0 { 13190 return ErrInvalidLengthTypes 13191 } 13192 if (iNdEx + skippy) > l { 13193 return io.ErrUnexpectedEOF 13194 } 13195 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13196 iNdEx += skippy 13197 } 13198 } 13199 13200 if iNdEx > l { 13201 return io.ErrUnexpectedEOF 13202 } 13203 return nil 13204 } 13205 func (m *ResponseBeginBlock) Unmarshal(dAtA []byte) error { 13206 l := len(dAtA) 13207 iNdEx := 0 13208 for iNdEx < l { 13209 preIndex := iNdEx 13210 var wire uint64 13211 for shift := uint(0); ; shift += 7 { 13212 if shift >= 64 { 13213 return ErrIntOverflowTypes 13214 } 13215 if iNdEx >= l { 13216 return io.ErrUnexpectedEOF 13217 } 13218 b := dAtA[iNdEx] 13219 iNdEx++ 13220 wire |= uint64(b&0x7F) << shift 13221 if b < 0x80 { 13222 break 13223 } 13224 } 13225 fieldNum := int32(wire >> 3) 13226 wireType := int(wire & 0x7) 13227 if wireType == 4 { 13228 return fmt.Errorf("proto: ResponseBeginBlock: wiretype end group for non-group") 13229 } 13230 if fieldNum <= 0 { 13231 return fmt.Errorf("proto: ResponseBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 13232 } 13233 switch fieldNum { 13234 case 1: 13235 if wireType != 2 { 13236 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13237 } 13238 var msglen int 13239 for shift := uint(0); ; shift += 7 { 13240 if shift >= 64 { 13241 return ErrIntOverflowTypes 13242 } 13243 if iNdEx >= l { 13244 return io.ErrUnexpectedEOF 13245 } 13246 b := dAtA[iNdEx] 13247 iNdEx++ 13248 msglen |= int(b&0x7F) << shift 13249 if b < 0x80 { 13250 break 13251 } 13252 } 13253 if msglen < 0 { 13254 return ErrInvalidLengthTypes 13255 } 13256 postIndex := iNdEx + msglen 13257 if postIndex < 0 { 13258 return ErrInvalidLengthTypes 13259 } 13260 if postIndex > l { 13261 return io.ErrUnexpectedEOF 13262 } 13263 m.Events = append(m.Events, Event{}) 13264 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13265 return err 13266 } 13267 iNdEx = postIndex 13268 default: 13269 iNdEx = preIndex 13270 skippy, err := skipTypes(dAtA[iNdEx:]) 13271 if err != nil { 13272 return err 13273 } 13274 if (skippy < 0) || (iNdEx+skippy) < 0 { 13275 return ErrInvalidLengthTypes 13276 } 13277 if (iNdEx + skippy) > l { 13278 return io.ErrUnexpectedEOF 13279 } 13280 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13281 iNdEx += skippy 13282 } 13283 } 13284 13285 if iNdEx > l { 13286 return io.ErrUnexpectedEOF 13287 } 13288 return nil 13289 } 13290 func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error { 13291 l := len(dAtA) 13292 iNdEx := 0 13293 for iNdEx < l { 13294 preIndex := iNdEx 13295 var wire uint64 13296 for shift := uint(0); ; shift += 7 { 13297 if shift >= 64 { 13298 return ErrIntOverflowTypes 13299 } 13300 if iNdEx >= l { 13301 return io.ErrUnexpectedEOF 13302 } 13303 b := dAtA[iNdEx] 13304 iNdEx++ 13305 wire |= uint64(b&0x7F) << shift 13306 if b < 0x80 { 13307 break 13308 } 13309 } 13310 fieldNum := int32(wire >> 3) 13311 wireType := int(wire & 0x7) 13312 if wireType == 4 { 13313 return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group") 13314 } 13315 if fieldNum <= 0 { 13316 return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 13317 } 13318 switch fieldNum { 13319 case 1: 13320 if wireType != 0 { 13321 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 13322 } 13323 m.Code = 0 13324 for shift := uint(0); ; shift += 7 { 13325 if shift >= 64 { 13326 return ErrIntOverflowTypes 13327 } 13328 if iNdEx >= l { 13329 return io.ErrUnexpectedEOF 13330 } 13331 b := dAtA[iNdEx] 13332 iNdEx++ 13333 m.Code |= uint32(b&0x7F) << shift 13334 if b < 0x80 { 13335 break 13336 } 13337 } 13338 case 2: 13339 if wireType != 2 { 13340 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 13341 } 13342 var byteLen int 13343 for shift := uint(0); ; shift += 7 { 13344 if shift >= 64 { 13345 return ErrIntOverflowTypes 13346 } 13347 if iNdEx >= l { 13348 return io.ErrUnexpectedEOF 13349 } 13350 b := dAtA[iNdEx] 13351 iNdEx++ 13352 byteLen |= int(b&0x7F) << shift 13353 if b < 0x80 { 13354 break 13355 } 13356 } 13357 if byteLen < 0 { 13358 return ErrInvalidLengthTypes 13359 } 13360 postIndex := iNdEx + byteLen 13361 if postIndex < 0 { 13362 return ErrInvalidLengthTypes 13363 } 13364 if postIndex > l { 13365 return io.ErrUnexpectedEOF 13366 } 13367 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 13368 if m.Data == nil { 13369 m.Data = []byte{} 13370 } 13371 iNdEx = postIndex 13372 case 3: 13373 if wireType != 2 { 13374 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 13375 } 13376 var stringLen uint64 13377 for shift := uint(0); ; shift += 7 { 13378 if shift >= 64 { 13379 return ErrIntOverflowTypes 13380 } 13381 if iNdEx >= l { 13382 return io.ErrUnexpectedEOF 13383 } 13384 b := dAtA[iNdEx] 13385 iNdEx++ 13386 stringLen |= uint64(b&0x7F) << shift 13387 if b < 0x80 { 13388 break 13389 } 13390 } 13391 intStringLen := int(stringLen) 13392 if intStringLen < 0 { 13393 return ErrInvalidLengthTypes 13394 } 13395 postIndex := iNdEx + intStringLen 13396 if postIndex < 0 { 13397 return ErrInvalidLengthTypes 13398 } 13399 if postIndex > l { 13400 return io.ErrUnexpectedEOF 13401 } 13402 m.Log = string(dAtA[iNdEx:postIndex]) 13403 iNdEx = postIndex 13404 case 4: 13405 if wireType != 2 { 13406 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 13407 } 13408 var stringLen uint64 13409 for shift := uint(0); ; shift += 7 { 13410 if shift >= 64 { 13411 return ErrIntOverflowTypes 13412 } 13413 if iNdEx >= l { 13414 return io.ErrUnexpectedEOF 13415 } 13416 b := dAtA[iNdEx] 13417 iNdEx++ 13418 stringLen |= uint64(b&0x7F) << shift 13419 if b < 0x80 { 13420 break 13421 } 13422 } 13423 intStringLen := int(stringLen) 13424 if intStringLen < 0 { 13425 return ErrInvalidLengthTypes 13426 } 13427 postIndex := iNdEx + intStringLen 13428 if postIndex < 0 { 13429 return ErrInvalidLengthTypes 13430 } 13431 if postIndex > l { 13432 return io.ErrUnexpectedEOF 13433 } 13434 m.Info = string(dAtA[iNdEx:postIndex]) 13435 iNdEx = postIndex 13436 case 5: 13437 if wireType != 0 { 13438 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 13439 } 13440 m.GasWanted = 0 13441 for shift := uint(0); ; shift += 7 { 13442 if shift >= 64 { 13443 return ErrIntOverflowTypes 13444 } 13445 if iNdEx >= l { 13446 return io.ErrUnexpectedEOF 13447 } 13448 b := dAtA[iNdEx] 13449 iNdEx++ 13450 m.GasWanted |= int64(b&0x7F) << shift 13451 if b < 0x80 { 13452 break 13453 } 13454 } 13455 case 6: 13456 if wireType != 0 { 13457 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 13458 } 13459 m.GasUsed = 0 13460 for shift := uint(0); ; shift += 7 { 13461 if shift >= 64 { 13462 return ErrIntOverflowTypes 13463 } 13464 if iNdEx >= l { 13465 return io.ErrUnexpectedEOF 13466 } 13467 b := dAtA[iNdEx] 13468 iNdEx++ 13469 m.GasUsed |= int64(b&0x7F) << shift 13470 if b < 0x80 { 13471 break 13472 } 13473 } 13474 case 7: 13475 if wireType != 2 { 13476 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13477 } 13478 var msglen int 13479 for shift := uint(0); ; shift += 7 { 13480 if shift >= 64 { 13481 return ErrIntOverflowTypes 13482 } 13483 if iNdEx >= l { 13484 return io.ErrUnexpectedEOF 13485 } 13486 b := dAtA[iNdEx] 13487 iNdEx++ 13488 msglen |= int(b&0x7F) << shift 13489 if b < 0x80 { 13490 break 13491 } 13492 } 13493 if msglen < 0 { 13494 return ErrInvalidLengthTypes 13495 } 13496 postIndex := iNdEx + msglen 13497 if postIndex < 0 { 13498 return ErrInvalidLengthTypes 13499 } 13500 if postIndex > l { 13501 return io.ErrUnexpectedEOF 13502 } 13503 m.Events = append(m.Events, Event{}) 13504 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13505 return err 13506 } 13507 iNdEx = postIndex 13508 case 8: 13509 if wireType != 2 { 13510 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 13511 } 13512 var stringLen uint64 13513 for shift := uint(0); ; shift += 7 { 13514 if shift >= 64 { 13515 return ErrIntOverflowTypes 13516 } 13517 if iNdEx >= l { 13518 return io.ErrUnexpectedEOF 13519 } 13520 b := dAtA[iNdEx] 13521 iNdEx++ 13522 stringLen |= uint64(b&0x7F) << shift 13523 if b < 0x80 { 13524 break 13525 } 13526 } 13527 intStringLen := int(stringLen) 13528 if intStringLen < 0 { 13529 return ErrInvalidLengthTypes 13530 } 13531 postIndex := iNdEx + intStringLen 13532 if postIndex < 0 { 13533 return ErrInvalidLengthTypes 13534 } 13535 if postIndex > l { 13536 return io.ErrUnexpectedEOF 13537 } 13538 m.Codespace = string(dAtA[iNdEx:postIndex]) 13539 iNdEx = postIndex 13540 default: 13541 iNdEx = preIndex 13542 skippy, err := skipTypes(dAtA[iNdEx:]) 13543 if err != nil { 13544 return err 13545 } 13546 if (skippy < 0) || (iNdEx+skippy) < 0 { 13547 return ErrInvalidLengthTypes 13548 } 13549 if (iNdEx + skippy) > l { 13550 return io.ErrUnexpectedEOF 13551 } 13552 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13553 iNdEx += skippy 13554 } 13555 } 13556 13557 if iNdEx > l { 13558 return io.ErrUnexpectedEOF 13559 } 13560 return nil 13561 } 13562 func (m *ResponseDeliverTx) Unmarshal(dAtA []byte) error { 13563 l := len(dAtA) 13564 iNdEx := 0 13565 for iNdEx < l { 13566 preIndex := iNdEx 13567 var wire uint64 13568 for shift := uint(0); ; shift += 7 { 13569 if shift >= 64 { 13570 return ErrIntOverflowTypes 13571 } 13572 if iNdEx >= l { 13573 return io.ErrUnexpectedEOF 13574 } 13575 b := dAtA[iNdEx] 13576 iNdEx++ 13577 wire |= uint64(b&0x7F) << shift 13578 if b < 0x80 { 13579 break 13580 } 13581 } 13582 fieldNum := int32(wire >> 3) 13583 wireType := int(wire & 0x7) 13584 if wireType == 4 { 13585 return fmt.Errorf("proto: ResponseDeliverTx: wiretype end group for non-group") 13586 } 13587 if fieldNum <= 0 { 13588 return fmt.Errorf("proto: ResponseDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire) 13589 } 13590 switch fieldNum { 13591 case 1: 13592 if wireType != 0 { 13593 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 13594 } 13595 m.Code = 0 13596 for shift := uint(0); ; shift += 7 { 13597 if shift >= 64 { 13598 return ErrIntOverflowTypes 13599 } 13600 if iNdEx >= l { 13601 return io.ErrUnexpectedEOF 13602 } 13603 b := dAtA[iNdEx] 13604 iNdEx++ 13605 m.Code |= uint32(b&0x7F) << shift 13606 if b < 0x80 { 13607 break 13608 } 13609 } 13610 case 2: 13611 if wireType != 2 { 13612 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 13613 } 13614 var byteLen int 13615 for shift := uint(0); ; shift += 7 { 13616 if shift >= 64 { 13617 return ErrIntOverflowTypes 13618 } 13619 if iNdEx >= l { 13620 return io.ErrUnexpectedEOF 13621 } 13622 b := dAtA[iNdEx] 13623 iNdEx++ 13624 byteLen |= int(b&0x7F) << shift 13625 if b < 0x80 { 13626 break 13627 } 13628 } 13629 if byteLen < 0 { 13630 return ErrInvalidLengthTypes 13631 } 13632 postIndex := iNdEx + byteLen 13633 if postIndex < 0 { 13634 return ErrInvalidLengthTypes 13635 } 13636 if postIndex > l { 13637 return io.ErrUnexpectedEOF 13638 } 13639 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 13640 if m.Data == nil { 13641 m.Data = []byte{} 13642 } 13643 iNdEx = postIndex 13644 case 3: 13645 if wireType != 2 { 13646 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 13647 } 13648 var stringLen uint64 13649 for shift := uint(0); ; shift += 7 { 13650 if shift >= 64 { 13651 return ErrIntOverflowTypes 13652 } 13653 if iNdEx >= l { 13654 return io.ErrUnexpectedEOF 13655 } 13656 b := dAtA[iNdEx] 13657 iNdEx++ 13658 stringLen |= uint64(b&0x7F) << shift 13659 if b < 0x80 { 13660 break 13661 } 13662 } 13663 intStringLen := int(stringLen) 13664 if intStringLen < 0 { 13665 return ErrInvalidLengthTypes 13666 } 13667 postIndex := iNdEx + intStringLen 13668 if postIndex < 0 { 13669 return ErrInvalidLengthTypes 13670 } 13671 if postIndex > l { 13672 return io.ErrUnexpectedEOF 13673 } 13674 m.Log = string(dAtA[iNdEx:postIndex]) 13675 iNdEx = postIndex 13676 case 4: 13677 if wireType != 2 { 13678 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 13679 } 13680 var stringLen uint64 13681 for shift := uint(0); ; shift += 7 { 13682 if shift >= 64 { 13683 return ErrIntOverflowTypes 13684 } 13685 if iNdEx >= l { 13686 return io.ErrUnexpectedEOF 13687 } 13688 b := dAtA[iNdEx] 13689 iNdEx++ 13690 stringLen |= uint64(b&0x7F) << shift 13691 if b < 0x80 { 13692 break 13693 } 13694 } 13695 intStringLen := int(stringLen) 13696 if intStringLen < 0 { 13697 return ErrInvalidLengthTypes 13698 } 13699 postIndex := iNdEx + intStringLen 13700 if postIndex < 0 { 13701 return ErrInvalidLengthTypes 13702 } 13703 if postIndex > l { 13704 return io.ErrUnexpectedEOF 13705 } 13706 m.Info = string(dAtA[iNdEx:postIndex]) 13707 iNdEx = postIndex 13708 case 5: 13709 if wireType != 0 { 13710 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 13711 } 13712 m.GasWanted = 0 13713 for shift := uint(0); ; shift += 7 { 13714 if shift >= 64 { 13715 return ErrIntOverflowTypes 13716 } 13717 if iNdEx >= l { 13718 return io.ErrUnexpectedEOF 13719 } 13720 b := dAtA[iNdEx] 13721 iNdEx++ 13722 m.GasWanted |= int64(b&0x7F) << shift 13723 if b < 0x80 { 13724 break 13725 } 13726 } 13727 case 6: 13728 if wireType != 0 { 13729 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 13730 } 13731 m.GasUsed = 0 13732 for shift := uint(0); ; shift += 7 { 13733 if shift >= 64 { 13734 return ErrIntOverflowTypes 13735 } 13736 if iNdEx >= l { 13737 return io.ErrUnexpectedEOF 13738 } 13739 b := dAtA[iNdEx] 13740 iNdEx++ 13741 m.GasUsed |= int64(b&0x7F) << shift 13742 if b < 0x80 { 13743 break 13744 } 13745 } 13746 case 7: 13747 if wireType != 2 { 13748 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13749 } 13750 var msglen int 13751 for shift := uint(0); ; shift += 7 { 13752 if shift >= 64 { 13753 return ErrIntOverflowTypes 13754 } 13755 if iNdEx >= l { 13756 return io.ErrUnexpectedEOF 13757 } 13758 b := dAtA[iNdEx] 13759 iNdEx++ 13760 msglen |= int(b&0x7F) << shift 13761 if b < 0x80 { 13762 break 13763 } 13764 } 13765 if msglen < 0 { 13766 return ErrInvalidLengthTypes 13767 } 13768 postIndex := iNdEx + msglen 13769 if postIndex < 0 { 13770 return ErrInvalidLengthTypes 13771 } 13772 if postIndex > l { 13773 return io.ErrUnexpectedEOF 13774 } 13775 m.Events = append(m.Events, Event{}) 13776 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13777 return err 13778 } 13779 iNdEx = postIndex 13780 case 8: 13781 if wireType != 2 { 13782 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 13783 } 13784 var stringLen uint64 13785 for shift := uint(0); ; shift += 7 { 13786 if shift >= 64 { 13787 return ErrIntOverflowTypes 13788 } 13789 if iNdEx >= l { 13790 return io.ErrUnexpectedEOF 13791 } 13792 b := dAtA[iNdEx] 13793 iNdEx++ 13794 stringLen |= uint64(b&0x7F) << shift 13795 if b < 0x80 { 13796 break 13797 } 13798 } 13799 intStringLen := int(stringLen) 13800 if intStringLen < 0 { 13801 return ErrInvalidLengthTypes 13802 } 13803 postIndex := iNdEx + intStringLen 13804 if postIndex < 0 { 13805 return ErrInvalidLengthTypes 13806 } 13807 if postIndex > l { 13808 return io.ErrUnexpectedEOF 13809 } 13810 m.Codespace = string(dAtA[iNdEx:postIndex]) 13811 iNdEx = postIndex 13812 default: 13813 iNdEx = preIndex 13814 skippy, err := skipTypes(dAtA[iNdEx:]) 13815 if err != nil { 13816 return err 13817 } 13818 if (skippy < 0) || (iNdEx+skippy) < 0 { 13819 return ErrInvalidLengthTypes 13820 } 13821 if (iNdEx + skippy) > l { 13822 return io.ErrUnexpectedEOF 13823 } 13824 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13825 iNdEx += skippy 13826 } 13827 } 13828 13829 if iNdEx > l { 13830 return io.ErrUnexpectedEOF 13831 } 13832 return nil 13833 } 13834 func (m *ResponseEndBlock) Unmarshal(dAtA []byte) error { 13835 l := len(dAtA) 13836 iNdEx := 0 13837 for iNdEx < l { 13838 preIndex := iNdEx 13839 var wire uint64 13840 for shift := uint(0); ; shift += 7 { 13841 if shift >= 64 { 13842 return ErrIntOverflowTypes 13843 } 13844 if iNdEx >= l { 13845 return io.ErrUnexpectedEOF 13846 } 13847 b := dAtA[iNdEx] 13848 iNdEx++ 13849 wire |= uint64(b&0x7F) << shift 13850 if b < 0x80 { 13851 break 13852 } 13853 } 13854 fieldNum := int32(wire >> 3) 13855 wireType := int(wire & 0x7) 13856 if wireType == 4 { 13857 return fmt.Errorf("proto: ResponseEndBlock: wiretype end group for non-group") 13858 } 13859 if fieldNum <= 0 { 13860 return fmt.Errorf("proto: ResponseEndBlock: illegal tag %d (wire type %d)", fieldNum, wire) 13861 } 13862 switch fieldNum { 13863 case 1: 13864 if wireType != 2 { 13865 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdates", wireType) 13866 } 13867 var msglen int 13868 for shift := uint(0); ; shift += 7 { 13869 if shift >= 64 { 13870 return ErrIntOverflowTypes 13871 } 13872 if iNdEx >= l { 13873 return io.ErrUnexpectedEOF 13874 } 13875 b := dAtA[iNdEx] 13876 iNdEx++ 13877 msglen |= int(b&0x7F) << shift 13878 if b < 0x80 { 13879 break 13880 } 13881 } 13882 if msglen < 0 { 13883 return ErrInvalidLengthTypes 13884 } 13885 postIndex := iNdEx + msglen 13886 if postIndex < 0 { 13887 return ErrInvalidLengthTypes 13888 } 13889 if postIndex > l { 13890 return io.ErrUnexpectedEOF 13891 } 13892 m.ValidatorUpdates = append(m.ValidatorUpdates, ValidatorUpdate{}) 13893 if err := m.ValidatorUpdates[len(m.ValidatorUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13894 return err 13895 } 13896 iNdEx = postIndex 13897 case 2: 13898 if wireType != 2 { 13899 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParamUpdates", wireType) 13900 } 13901 var msglen int 13902 for shift := uint(0); ; shift += 7 { 13903 if shift >= 64 { 13904 return ErrIntOverflowTypes 13905 } 13906 if iNdEx >= l { 13907 return io.ErrUnexpectedEOF 13908 } 13909 b := dAtA[iNdEx] 13910 iNdEx++ 13911 msglen |= int(b&0x7F) << shift 13912 if b < 0x80 { 13913 break 13914 } 13915 } 13916 if msglen < 0 { 13917 return ErrInvalidLengthTypes 13918 } 13919 postIndex := iNdEx + msglen 13920 if postIndex < 0 { 13921 return ErrInvalidLengthTypes 13922 } 13923 if postIndex > l { 13924 return io.ErrUnexpectedEOF 13925 } 13926 if m.ConsensusParamUpdates == nil { 13927 m.ConsensusParamUpdates = &ConsensusParams{} 13928 } 13929 if err := m.ConsensusParamUpdates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13930 return err 13931 } 13932 iNdEx = postIndex 13933 case 3: 13934 if wireType != 2 { 13935 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13936 } 13937 var msglen int 13938 for shift := uint(0); ; shift += 7 { 13939 if shift >= 64 { 13940 return ErrIntOverflowTypes 13941 } 13942 if iNdEx >= l { 13943 return io.ErrUnexpectedEOF 13944 } 13945 b := dAtA[iNdEx] 13946 iNdEx++ 13947 msglen |= int(b&0x7F) << shift 13948 if b < 0x80 { 13949 break 13950 } 13951 } 13952 if msglen < 0 { 13953 return ErrInvalidLengthTypes 13954 } 13955 postIndex := iNdEx + msglen 13956 if postIndex < 0 { 13957 return ErrInvalidLengthTypes 13958 } 13959 if postIndex > l { 13960 return io.ErrUnexpectedEOF 13961 } 13962 m.Events = append(m.Events, Event{}) 13963 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13964 return err 13965 } 13966 iNdEx = postIndex 13967 default: 13968 iNdEx = preIndex 13969 skippy, err := skipTypes(dAtA[iNdEx:]) 13970 if err != nil { 13971 return err 13972 } 13973 if (skippy < 0) || (iNdEx+skippy) < 0 { 13974 return ErrInvalidLengthTypes 13975 } 13976 if (iNdEx + skippy) > l { 13977 return io.ErrUnexpectedEOF 13978 } 13979 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13980 iNdEx += skippy 13981 } 13982 } 13983 13984 if iNdEx > l { 13985 return io.ErrUnexpectedEOF 13986 } 13987 return nil 13988 } 13989 func (m *ResponseCommit) Unmarshal(dAtA []byte) error { 13990 l := len(dAtA) 13991 iNdEx := 0 13992 for iNdEx < l { 13993 preIndex := iNdEx 13994 var wire uint64 13995 for shift := uint(0); ; shift += 7 { 13996 if shift >= 64 { 13997 return ErrIntOverflowTypes 13998 } 13999 if iNdEx >= l { 14000 return io.ErrUnexpectedEOF 14001 } 14002 b := dAtA[iNdEx] 14003 iNdEx++ 14004 wire |= uint64(b&0x7F) << shift 14005 if b < 0x80 { 14006 break 14007 } 14008 } 14009 fieldNum := int32(wire >> 3) 14010 wireType := int(wire & 0x7) 14011 if wireType == 4 { 14012 return fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group") 14013 } 14014 if fieldNum <= 0 { 14015 return fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire) 14016 } 14017 switch fieldNum { 14018 case 2: 14019 if wireType != 2 { 14020 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 14021 } 14022 var byteLen int 14023 for shift := uint(0); ; shift += 7 { 14024 if shift >= 64 { 14025 return ErrIntOverflowTypes 14026 } 14027 if iNdEx >= l { 14028 return io.ErrUnexpectedEOF 14029 } 14030 b := dAtA[iNdEx] 14031 iNdEx++ 14032 byteLen |= int(b&0x7F) << shift 14033 if b < 0x80 { 14034 break 14035 } 14036 } 14037 if byteLen < 0 { 14038 return ErrInvalidLengthTypes 14039 } 14040 postIndex := iNdEx + byteLen 14041 if postIndex < 0 { 14042 return ErrInvalidLengthTypes 14043 } 14044 if postIndex > l { 14045 return io.ErrUnexpectedEOF 14046 } 14047 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 14048 if m.Data == nil { 14049 m.Data = []byte{} 14050 } 14051 iNdEx = postIndex 14052 case 3: 14053 if wireType != 0 { 14054 return fmt.Errorf("proto: wrong wireType = %d for field RetainHeight", wireType) 14055 } 14056 m.RetainHeight = 0 14057 for shift := uint(0); ; shift += 7 { 14058 if shift >= 64 { 14059 return ErrIntOverflowTypes 14060 } 14061 if iNdEx >= l { 14062 return io.ErrUnexpectedEOF 14063 } 14064 b := dAtA[iNdEx] 14065 iNdEx++ 14066 m.RetainHeight |= int64(b&0x7F) << shift 14067 if b < 0x80 { 14068 break 14069 } 14070 } 14071 case 4: 14072 var msglen int 14073 for shift := uint(0); ; shift += 7 { 14074 if shift >= 64 { 14075 return ErrIntOverflowTypes 14076 } 14077 if iNdEx >= l { 14078 return io.ErrUnexpectedEOF 14079 } 14080 b := dAtA[iNdEx] 14081 iNdEx++ 14082 msglen |= int(b&0x7F) << shift 14083 if b < 0x80 { 14084 break 14085 } 14086 } 14087 if msglen < 0 { 14088 return ErrInvalidLengthTypes 14089 } 14090 postIndex := iNdEx + msglen 14091 if postIndex < 0 { 14092 return ErrInvalidLengthTypes 14093 } 14094 if postIndex > l { 14095 return io.ErrUnexpectedEOF 14096 } 14097 iNdEx = postIndex 14098 default: 14099 iNdEx = preIndex 14100 skippy, err := skipTypes(dAtA[iNdEx:]) 14101 if err != nil { 14102 return err 14103 } 14104 if (skippy < 0) || (iNdEx+skippy) < 0 { 14105 return ErrInvalidLengthTypes 14106 } 14107 if (iNdEx + skippy) > l { 14108 return io.ErrUnexpectedEOF 14109 } 14110 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14111 iNdEx += skippy 14112 } 14113 } 14114 14115 if iNdEx > l { 14116 return io.ErrUnexpectedEOF 14117 } 14118 return nil 14119 } 14120 func (m *ConsensusParams) Unmarshal(dAtA []byte) error { 14121 l := len(dAtA) 14122 iNdEx := 0 14123 for iNdEx < l { 14124 preIndex := iNdEx 14125 var wire uint64 14126 for shift := uint(0); ; shift += 7 { 14127 if shift >= 64 { 14128 return ErrIntOverflowTypes 14129 } 14130 if iNdEx >= l { 14131 return io.ErrUnexpectedEOF 14132 } 14133 b := dAtA[iNdEx] 14134 iNdEx++ 14135 wire |= uint64(b&0x7F) << shift 14136 if b < 0x80 { 14137 break 14138 } 14139 } 14140 fieldNum := int32(wire >> 3) 14141 wireType := int(wire & 0x7) 14142 if wireType == 4 { 14143 return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group") 14144 } 14145 if fieldNum <= 0 { 14146 return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire) 14147 } 14148 switch fieldNum { 14149 case 1: 14150 if wireType != 2 { 14151 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 14152 } 14153 var msglen int 14154 for shift := uint(0); ; shift += 7 { 14155 if shift >= 64 { 14156 return ErrIntOverflowTypes 14157 } 14158 if iNdEx >= l { 14159 return io.ErrUnexpectedEOF 14160 } 14161 b := dAtA[iNdEx] 14162 iNdEx++ 14163 msglen |= int(b&0x7F) << shift 14164 if b < 0x80 { 14165 break 14166 } 14167 } 14168 if msglen < 0 { 14169 return ErrInvalidLengthTypes 14170 } 14171 postIndex := iNdEx + msglen 14172 if postIndex < 0 { 14173 return ErrInvalidLengthTypes 14174 } 14175 if postIndex > l { 14176 return io.ErrUnexpectedEOF 14177 } 14178 if m.Block == nil { 14179 m.Block = &BlockParams{} 14180 } 14181 if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14182 return err 14183 } 14184 iNdEx = postIndex 14185 case 2: 14186 if wireType != 2 { 14187 return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) 14188 } 14189 var msglen int 14190 for shift := uint(0); ; shift += 7 { 14191 if shift >= 64 { 14192 return ErrIntOverflowTypes 14193 } 14194 if iNdEx >= l { 14195 return io.ErrUnexpectedEOF 14196 } 14197 b := dAtA[iNdEx] 14198 iNdEx++ 14199 msglen |= int(b&0x7F) << shift 14200 if b < 0x80 { 14201 break 14202 } 14203 } 14204 if msglen < 0 { 14205 return ErrInvalidLengthTypes 14206 } 14207 postIndex := iNdEx + msglen 14208 if postIndex < 0 { 14209 return ErrInvalidLengthTypes 14210 } 14211 if postIndex > l { 14212 return io.ErrUnexpectedEOF 14213 } 14214 if m.Evidence == nil { 14215 m.Evidence = &EvidenceParams{} 14216 } 14217 if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14218 return err 14219 } 14220 iNdEx = postIndex 14221 case 3: 14222 if wireType != 2 { 14223 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 14224 } 14225 var msglen int 14226 for shift := uint(0); ; shift += 7 { 14227 if shift >= 64 { 14228 return ErrIntOverflowTypes 14229 } 14230 if iNdEx >= l { 14231 return io.ErrUnexpectedEOF 14232 } 14233 b := dAtA[iNdEx] 14234 iNdEx++ 14235 msglen |= int(b&0x7F) << shift 14236 if b < 0x80 { 14237 break 14238 } 14239 } 14240 if msglen < 0 { 14241 return ErrInvalidLengthTypes 14242 } 14243 postIndex := iNdEx + msglen 14244 if postIndex < 0 { 14245 return ErrInvalidLengthTypes 14246 } 14247 if postIndex > l { 14248 return io.ErrUnexpectedEOF 14249 } 14250 if m.Validator == nil { 14251 m.Validator = &ValidatorParams{} 14252 } 14253 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14254 return err 14255 } 14256 iNdEx = postIndex 14257 default: 14258 iNdEx = preIndex 14259 skippy, err := skipTypes(dAtA[iNdEx:]) 14260 if err != nil { 14261 return err 14262 } 14263 if (skippy < 0) || (iNdEx+skippy) < 0 { 14264 return ErrInvalidLengthTypes 14265 } 14266 if (iNdEx + skippy) > l { 14267 return io.ErrUnexpectedEOF 14268 } 14269 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14270 iNdEx += skippy 14271 } 14272 } 14273 14274 if iNdEx > l { 14275 return io.ErrUnexpectedEOF 14276 } 14277 return nil 14278 } 14279 func (m *BlockParams) Unmarshal(dAtA []byte) error { 14280 l := len(dAtA) 14281 iNdEx := 0 14282 for iNdEx < l { 14283 preIndex := iNdEx 14284 var wire uint64 14285 for shift := uint(0); ; shift += 7 { 14286 if shift >= 64 { 14287 return ErrIntOverflowTypes 14288 } 14289 if iNdEx >= l { 14290 return io.ErrUnexpectedEOF 14291 } 14292 b := dAtA[iNdEx] 14293 iNdEx++ 14294 wire |= uint64(b&0x7F) << shift 14295 if b < 0x80 { 14296 break 14297 } 14298 } 14299 fieldNum := int32(wire >> 3) 14300 wireType := int(wire & 0x7) 14301 if wireType == 4 { 14302 return fmt.Errorf("proto: BlockParams: wiretype end group for non-group") 14303 } 14304 if fieldNum <= 0 { 14305 return fmt.Errorf("proto: BlockParams: illegal tag %d (wire type %d)", fieldNum, wire) 14306 } 14307 switch fieldNum { 14308 case 1: 14309 if wireType != 0 { 14310 return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType) 14311 } 14312 m.MaxBytes = 0 14313 for shift := uint(0); ; shift += 7 { 14314 if shift >= 64 { 14315 return ErrIntOverflowTypes 14316 } 14317 if iNdEx >= l { 14318 return io.ErrUnexpectedEOF 14319 } 14320 b := dAtA[iNdEx] 14321 iNdEx++ 14322 m.MaxBytes |= int64(b&0x7F) << shift 14323 if b < 0x80 { 14324 break 14325 } 14326 } 14327 case 2: 14328 if wireType != 0 { 14329 return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType) 14330 } 14331 m.MaxGas = 0 14332 for shift := uint(0); ; shift += 7 { 14333 if shift >= 64 { 14334 return ErrIntOverflowTypes 14335 } 14336 if iNdEx >= l { 14337 return io.ErrUnexpectedEOF 14338 } 14339 b := dAtA[iNdEx] 14340 iNdEx++ 14341 m.MaxGas |= int64(b&0x7F) << shift 14342 if b < 0x80 { 14343 break 14344 } 14345 } 14346 default: 14347 iNdEx = preIndex 14348 skippy, err := skipTypes(dAtA[iNdEx:]) 14349 if err != nil { 14350 return err 14351 } 14352 if (skippy < 0) || (iNdEx+skippy) < 0 { 14353 return ErrInvalidLengthTypes 14354 } 14355 if (iNdEx + skippy) > l { 14356 return io.ErrUnexpectedEOF 14357 } 14358 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14359 iNdEx += skippy 14360 } 14361 } 14362 14363 if iNdEx > l { 14364 return io.ErrUnexpectedEOF 14365 } 14366 return nil 14367 } 14368 func (m *EvidenceParams) Unmarshal(dAtA []byte) error { 14369 l := len(dAtA) 14370 iNdEx := 0 14371 for iNdEx < l { 14372 preIndex := iNdEx 14373 var wire uint64 14374 for shift := uint(0); ; shift += 7 { 14375 if shift >= 64 { 14376 return ErrIntOverflowTypes 14377 } 14378 if iNdEx >= l { 14379 return io.ErrUnexpectedEOF 14380 } 14381 b := dAtA[iNdEx] 14382 iNdEx++ 14383 wire |= uint64(b&0x7F) << shift 14384 if b < 0x80 { 14385 break 14386 } 14387 } 14388 fieldNum := int32(wire >> 3) 14389 wireType := int(wire & 0x7) 14390 if wireType == 4 { 14391 return fmt.Errorf("proto: EvidenceParams: wiretype end group for non-group") 14392 } 14393 if fieldNum <= 0 { 14394 return fmt.Errorf("proto: EvidenceParams: illegal tag %d (wire type %d)", fieldNum, wire) 14395 } 14396 switch fieldNum { 14397 case 1: 14398 if wireType != 0 { 14399 return fmt.Errorf("proto: wrong wireType = %d for field MaxAgeNumBlocks", wireType) 14400 } 14401 m.MaxAgeNumBlocks = 0 14402 for shift := uint(0); ; shift += 7 { 14403 if shift >= 64 { 14404 return ErrIntOverflowTypes 14405 } 14406 if iNdEx >= l { 14407 return io.ErrUnexpectedEOF 14408 } 14409 b := dAtA[iNdEx] 14410 iNdEx++ 14411 m.MaxAgeNumBlocks |= int64(b&0x7F) << shift 14412 if b < 0x80 { 14413 break 14414 } 14415 } 14416 case 2: 14417 if wireType != 2 { 14418 return fmt.Errorf("proto: wrong wireType = %d for field MaxAgeDuration", wireType) 14419 } 14420 var msglen int 14421 for shift := uint(0); ; shift += 7 { 14422 if shift >= 64 { 14423 return ErrIntOverflowTypes 14424 } 14425 if iNdEx >= l { 14426 return io.ErrUnexpectedEOF 14427 } 14428 b := dAtA[iNdEx] 14429 iNdEx++ 14430 msglen |= int(b&0x7F) << shift 14431 if b < 0x80 { 14432 break 14433 } 14434 } 14435 if msglen < 0 { 14436 return ErrInvalidLengthTypes 14437 } 14438 postIndex := iNdEx + msglen 14439 if postIndex < 0 { 14440 return ErrInvalidLengthTypes 14441 } 14442 if postIndex > l { 14443 return io.ErrUnexpectedEOF 14444 } 14445 if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.MaxAgeDuration, dAtA[iNdEx:postIndex]); err != nil { 14446 return err 14447 } 14448 iNdEx = postIndex 14449 default: 14450 iNdEx = preIndex 14451 skippy, err := skipTypes(dAtA[iNdEx:]) 14452 if err != nil { 14453 return err 14454 } 14455 if (skippy < 0) || (iNdEx+skippy) < 0 { 14456 return ErrInvalidLengthTypes 14457 } 14458 if (iNdEx + skippy) > l { 14459 return io.ErrUnexpectedEOF 14460 } 14461 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14462 iNdEx += skippy 14463 } 14464 } 14465 14466 if iNdEx > l { 14467 return io.ErrUnexpectedEOF 14468 } 14469 return nil 14470 } 14471 func (m *ValidatorParams) Unmarshal(dAtA []byte) error { 14472 l := len(dAtA) 14473 iNdEx := 0 14474 for iNdEx < l { 14475 preIndex := iNdEx 14476 var wire uint64 14477 for shift := uint(0); ; shift += 7 { 14478 if shift >= 64 { 14479 return ErrIntOverflowTypes 14480 } 14481 if iNdEx >= l { 14482 return io.ErrUnexpectedEOF 14483 } 14484 b := dAtA[iNdEx] 14485 iNdEx++ 14486 wire |= uint64(b&0x7F) << shift 14487 if b < 0x80 { 14488 break 14489 } 14490 } 14491 fieldNum := int32(wire >> 3) 14492 wireType := int(wire & 0x7) 14493 if wireType == 4 { 14494 return fmt.Errorf("proto: ValidatorParams: wiretype end group for non-group") 14495 } 14496 if fieldNum <= 0 { 14497 return fmt.Errorf("proto: ValidatorParams: illegal tag %d (wire type %d)", fieldNum, wire) 14498 } 14499 switch fieldNum { 14500 case 1: 14501 if wireType != 2 { 14502 return fmt.Errorf("proto: wrong wireType = %d for field PubKeyTypes", wireType) 14503 } 14504 var stringLen uint64 14505 for shift := uint(0); ; shift += 7 { 14506 if shift >= 64 { 14507 return ErrIntOverflowTypes 14508 } 14509 if iNdEx >= l { 14510 return io.ErrUnexpectedEOF 14511 } 14512 b := dAtA[iNdEx] 14513 iNdEx++ 14514 stringLen |= uint64(b&0x7F) << shift 14515 if b < 0x80 { 14516 break 14517 } 14518 } 14519 intStringLen := int(stringLen) 14520 if intStringLen < 0 { 14521 return ErrInvalidLengthTypes 14522 } 14523 postIndex := iNdEx + intStringLen 14524 if postIndex < 0 { 14525 return ErrInvalidLengthTypes 14526 } 14527 if postIndex > l { 14528 return io.ErrUnexpectedEOF 14529 } 14530 m.PubKeyTypes = append(m.PubKeyTypes, string(dAtA[iNdEx:postIndex])) 14531 iNdEx = postIndex 14532 default: 14533 iNdEx = preIndex 14534 skippy, err := skipTypes(dAtA[iNdEx:]) 14535 if err != nil { 14536 return err 14537 } 14538 if (skippy < 0) || (iNdEx+skippy) < 0 { 14539 return ErrInvalidLengthTypes 14540 } 14541 if (iNdEx + skippy) > l { 14542 return io.ErrUnexpectedEOF 14543 } 14544 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14545 iNdEx += skippy 14546 } 14547 } 14548 14549 if iNdEx > l { 14550 return io.ErrUnexpectedEOF 14551 } 14552 return nil 14553 } 14554 func (m *LastCommitInfo) Unmarshal(dAtA []byte) error { 14555 l := len(dAtA) 14556 iNdEx := 0 14557 for iNdEx < l { 14558 preIndex := iNdEx 14559 var wire uint64 14560 for shift := uint(0); ; shift += 7 { 14561 if shift >= 64 { 14562 return ErrIntOverflowTypes 14563 } 14564 if iNdEx >= l { 14565 return io.ErrUnexpectedEOF 14566 } 14567 b := dAtA[iNdEx] 14568 iNdEx++ 14569 wire |= uint64(b&0x7F) << shift 14570 if b < 0x80 { 14571 break 14572 } 14573 } 14574 fieldNum := int32(wire >> 3) 14575 wireType := int(wire & 0x7) 14576 if wireType == 4 { 14577 return fmt.Errorf("proto: LastCommitInfo: wiretype end group for non-group") 14578 } 14579 if fieldNum <= 0 { 14580 return fmt.Errorf("proto: LastCommitInfo: illegal tag %d (wire type %d)", fieldNum, wire) 14581 } 14582 switch fieldNum { 14583 case 1: 14584 if wireType != 0 { 14585 return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) 14586 } 14587 m.Round = 0 14588 for shift := uint(0); ; shift += 7 { 14589 if shift >= 64 { 14590 return ErrIntOverflowTypes 14591 } 14592 if iNdEx >= l { 14593 return io.ErrUnexpectedEOF 14594 } 14595 b := dAtA[iNdEx] 14596 iNdEx++ 14597 m.Round |= int32(b&0x7F) << shift 14598 if b < 0x80 { 14599 break 14600 } 14601 } 14602 case 2: 14603 if wireType != 2 { 14604 return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) 14605 } 14606 var msglen int 14607 for shift := uint(0); ; shift += 7 { 14608 if shift >= 64 { 14609 return ErrIntOverflowTypes 14610 } 14611 if iNdEx >= l { 14612 return io.ErrUnexpectedEOF 14613 } 14614 b := dAtA[iNdEx] 14615 iNdEx++ 14616 msglen |= int(b&0x7F) << shift 14617 if b < 0x80 { 14618 break 14619 } 14620 } 14621 if msglen < 0 { 14622 return ErrInvalidLengthTypes 14623 } 14624 postIndex := iNdEx + msglen 14625 if postIndex < 0 { 14626 return ErrInvalidLengthTypes 14627 } 14628 if postIndex > l { 14629 return io.ErrUnexpectedEOF 14630 } 14631 m.Votes = append(m.Votes, VoteInfo{}) 14632 if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14633 return err 14634 } 14635 iNdEx = postIndex 14636 default: 14637 iNdEx = preIndex 14638 skippy, err := skipTypes(dAtA[iNdEx:]) 14639 if err != nil { 14640 return err 14641 } 14642 if (skippy < 0) || (iNdEx+skippy) < 0 { 14643 return ErrInvalidLengthTypes 14644 } 14645 if (iNdEx + skippy) > l { 14646 return io.ErrUnexpectedEOF 14647 } 14648 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14649 iNdEx += skippy 14650 } 14651 } 14652 14653 if iNdEx > l { 14654 return io.ErrUnexpectedEOF 14655 } 14656 return nil 14657 } 14658 func (m *Event) Unmarshal(dAtA []byte) error { 14659 l := len(dAtA) 14660 iNdEx := 0 14661 for iNdEx < l { 14662 preIndex := iNdEx 14663 var wire uint64 14664 for shift := uint(0); ; shift += 7 { 14665 if shift >= 64 { 14666 return ErrIntOverflowTypes 14667 } 14668 if iNdEx >= l { 14669 return io.ErrUnexpectedEOF 14670 } 14671 b := dAtA[iNdEx] 14672 iNdEx++ 14673 wire |= uint64(b&0x7F) << shift 14674 if b < 0x80 { 14675 break 14676 } 14677 } 14678 fieldNum := int32(wire >> 3) 14679 wireType := int(wire & 0x7) 14680 if wireType == 4 { 14681 return fmt.Errorf("proto: Event: wiretype end group for non-group") 14682 } 14683 if fieldNum <= 0 { 14684 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) 14685 } 14686 switch fieldNum { 14687 case 1: 14688 if wireType != 2 { 14689 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 14690 } 14691 var stringLen uint64 14692 for shift := uint(0); ; shift += 7 { 14693 if shift >= 64 { 14694 return ErrIntOverflowTypes 14695 } 14696 if iNdEx >= l { 14697 return io.ErrUnexpectedEOF 14698 } 14699 b := dAtA[iNdEx] 14700 iNdEx++ 14701 stringLen |= uint64(b&0x7F) << shift 14702 if b < 0x80 { 14703 break 14704 } 14705 } 14706 intStringLen := int(stringLen) 14707 if intStringLen < 0 { 14708 return ErrInvalidLengthTypes 14709 } 14710 postIndex := iNdEx + intStringLen 14711 if postIndex < 0 { 14712 return ErrInvalidLengthTypes 14713 } 14714 if postIndex > l { 14715 return io.ErrUnexpectedEOF 14716 } 14717 m.Type = string(dAtA[iNdEx:postIndex]) 14718 iNdEx = postIndex 14719 case 2: 14720 if wireType != 2 { 14721 return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) 14722 } 14723 var msglen int 14724 for shift := uint(0); ; shift += 7 { 14725 if shift >= 64 { 14726 return ErrIntOverflowTypes 14727 } 14728 if iNdEx >= l { 14729 return io.ErrUnexpectedEOF 14730 } 14731 b := dAtA[iNdEx] 14732 iNdEx++ 14733 msglen |= int(b&0x7F) << shift 14734 if b < 0x80 { 14735 break 14736 } 14737 } 14738 if msglen < 0 { 14739 return ErrInvalidLengthTypes 14740 } 14741 postIndex := iNdEx + msglen 14742 if postIndex < 0 { 14743 return ErrInvalidLengthTypes 14744 } 14745 if postIndex > l { 14746 return io.ErrUnexpectedEOF 14747 } 14748 m.Attributes = append(m.Attributes, kv.Pair{}) 14749 if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14750 return err 14751 } 14752 iNdEx = postIndex 14753 default: 14754 iNdEx = preIndex 14755 skippy, err := skipTypes(dAtA[iNdEx:]) 14756 if err != nil { 14757 return err 14758 } 14759 if (skippy < 0) || (iNdEx+skippy) < 0 { 14760 return ErrInvalidLengthTypes 14761 } 14762 if (iNdEx + skippy) > l { 14763 return io.ErrUnexpectedEOF 14764 } 14765 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14766 iNdEx += skippy 14767 } 14768 } 14769 14770 if iNdEx > l { 14771 return io.ErrUnexpectedEOF 14772 } 14773 return nil 14774 } 14775 func (m *Header) Unmarshal(dAtA []byte) error { 14776 l := len(dAtA) 14777 iNdEx := 0 14778 for iNdEx < l { 14779 preIndex := iNdEx 14780 var wire uint64 14781 for shift := uint(0); ; shift += 7 { 14782 if shift >= 64 { 14783 return ErrIntOverflowTypes 14784 } 14785 if iNdEx >= l { 14786 return io.ErrUnexpectedEOF 14787 } 14788 b := dAtA[iNdEx] 14789 iNdEx++ 14790 wire |= uint64(b&0x7F) << shift 14791 if b < 0x80 { 14792 break 14793 } 14794 } 14795 fieldNum := int32(wire >> 3) 14796 wireType := int(wire & 0x7) 14797 if wireType == 4 { 14798 return fmt.Errorf("proto: Header: wiretype end group for non-group") 14799 } 14800 if fieldNum <= 0 { 14801 return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) 14802 } 14803 switch fieldNum { 14804 case 1: 14805 if wireType != 2 { 14806 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 14807 } 14808 var msglen int 14809 for shift := uint(0); ; shift += 7 { 14810 if shift >= 64 { 14811 return ErrIntOverflowTypes 14812 } 14813 if iNdEx >= l { 14814 return io.ErrUnexpectedEOF 14815 } 14816 b := dAtA[iNdEx] 14817 iNdEx++ 14818 msglen |= int(b&0x7F) << shift 14819 if b < 0x80 { 14820 break 14821 } 14822 } 14823 if msglen < 0 { 14824 return ErrInvalidLengthTypes 14825 } 14826 postIndex := iNdEx + msglen 14827 if postIndex < 0 { 14828 return ErrInvalidLengthTypes 14829 } 14830 if postIndex > l { 14831 return io.ErrUnexpectedEOF 14832 } 14833 if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14834 return err 14835 } 14836 iNdEx = postIndex 14837 case 2: 14838 if wireType != 2 { 14839 return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) 14840 } 14841 var stringLen uint64 14842 for shift := uint(0); ; shift += 7 { 14843 if shift >= 64 { 14844 return ErrIntOverflowTypes 14845 } 14846 if iNdEx >= l { 14847 return io.ErrUnexpectedEOF 14848 } 14849 b := dAtA[iNdEx] 14850 iNdEx++ 14851 stringLen |= uint64(b&0x7F) << shift 14852 if b < 0x80 { 14853 break 14854 } 14855 } 14856 intStringLen := int(stringLen) 14857 if intStringLen < 0 { 14858 return ErrInvalidLengthTypes 14859 } 14860 postIndex := iNdEx + intStringLen 14861 if postIndex < 0 { 14862 return ErrInvalidLengthTypes 14863 } 14864 if postIndex > l { 14865 return io.ErrUnexpectedEOF 14866 } 14867 m.ChainID = string(dAtA[iNdEx:postIndex]) 14868 iNdEx = postIndex 14869 case 3: 14870 if wireType != 0 { 14871 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 14872 } 14873 m.Height = 0 14874 for shift := uint(0); ; shift += 7 { 14875 if shift >= 64 { 14876 return ErrIntOverflowTypes 14877 } 14878 if iNdEx >= l { 14879 return io.ErrUnexpectedEOF 14880 } 14881 b := dAtA[iNdEx] 14882 iNdEx++ 14883 m.Height |= int64(b&0x7F) << shift 14884 if b < 0x80 { 14885 break 14886 } 14887 } 14888 case 4: 14889 if wireType != 2 { 14890 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 14891 } 14892 var msglen int 14893 for shift := uint(0); ; shift += 7 { 14894 if shift >= 64 { 14895 return ErrIntOverflowTypes 14896 } 14897 if iNdEx >= l { 14898 return io.ErrUnexpectedEOF 14899 } 14900 b := dAtA[iNdEx] 14901 iNdEx++ 14902 msglen |= int(b&0x7F) << shift 14903 if b < 0x80 { 14904 break 14905 } 14906 } 14907 if msglen < 0 { 14908 return ErrInvalidLengthTypes 14909 } 14910 postIndex := iNdEx + msglen 14911 if postIndex < 0 { 14912 return ErrInvalidLengthTypes 14913 } 14914 if postIndex > l { 14915 return io.ErrUnexpectedEOF 14916 } 14917 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 14918 return err 14919 } 14920 iNdEx = postIndex 14921 case 5: 14922 if wireType != 2 { 14923 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockId", wireType) 14924 } 14925 var msglen int 14926 for shift := uint(0); ; shift += 7 { 14927 if shift >= 64 { 14928 return ErrIntOverflowTypes 14929 } 14930 if iNdEx >= l { 14931 return io.ErrUnexpectedEOF 14932 } 14933 b := dAtA[iNdEx] 14934 iNdEx++ 14935 msglen |= int(b&0x7F) << shift 14936 if b < 0x80 { 14937 break 14938 } 14939 } 14940 if msglen < 0 { 14941 return ErrInvalidLengthTypes 14942 } 14943 postIndex := iNdEx + msglen 14944 if postIndex < 0 { 14945 return ErrInvalidLengthTypes 14946 } 14947 if postIndex > l { 14948 return io.ErrUnexpectedEOF 14949 } 14950 if err := m.LastBlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14951 return err 14952 } 14953 iNdEx = postIndex 14954 case 6: 14955 if wireType != 2 { 14956 return fmt.Errorf("proto: wrong wireType = %d for field LastCommitHash", wireType) 14957 } 14958 var byteLen int 14959 for shift := uint(0); ; shift += 7 { 14960 if shift >= 64 { 14961 return ErrIntOverflowTypes 14962 } 14963 if iNdEx >= l { 14964 return io.ErrUnexpectedEOF 14965 } 14966 b := dAtA[iNdEx] 14967 iNdEx++ 14968 byteLen |= int(b&0x7F) << shift 14969 if b < 0x80 { 14970 break 14971 } 14972 } 14973 if byteLen < 0 { 14974 return ErrInvalidLengthTypes 14975 } 14976 postIndex := iNdEx + byteLen 14977 if postIndex < 0 { 14978 return ErrInvalidLengthTypes 14979 } 14980 if postIndex > l { 14981 return io.ErrUnexpectedEOF 14982 } 14983 m.LastCommitHash = append(m.LastCommitHash[:0], dAtA[iNdEx:postIndex]...) 14984 if m.LastCommitHash == nil { 14985 m.LastCommitHash = []byte{} 14986 } 14987 iNdEx = postIndex 14988 case 7: 14989 if wireType != 2 { 14990 return fmt.Errorf("proto: wrong wireType = %d for field DataHash", wireType) 14991 } 14992 var byteLen int 14993 for shift := uint(0); ; shift += 7 { 14994 if shift >= 64 { 14995 return ErrIntOverflowTypes 14996 } 14997 if iNdEx >= l { 14998 return io.ErrUnexpectedEOF 14999 } 15000 b := dAtA[iNdEx] 15001 iNdEx++ 15002 byteLen |= int(b&0x7F) << shift 15003 if b < 0x80 { 15004 break 15005 } 15006 } 15007 if byteLen < 0 { 15008 return ErrInvalidLengthTypes 15009 } 15010 postIndex := iNdEx + byteLen 15011 if postIndex < 0 { 15012 return ErrInvalidLengthTypes 15013 } 15014 if postIndex > l { 15015 return io.ErrUnexpectedEOF 15016 } 15017 m.DataHash = append(m.DataHash[:0], dAtA[iNdEx:postIndex]...) 15018 if m.DataHash == nil { 15019 m.DataHash = []byte{} 15020 } 15021 iNdEx = postIndex 15022 case 8: 15023 if wireType != 2 { 15024 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorsHash", wireType) 15025 } 15026 var byteLen int 15027 for shift := uint(0); ; shift += 7 { 15028 if shift >= 64 { 15029 return ErrIntOverflowTypes 15030 } 15031 if iNdEx >= l { 15032 return io.ErrUnexpectedEOF 15033 } 15034 b := dAtA[iNdEx] 15035 iNdEx++ 15036 byteLen |= int(b&0x7F) << shift 15037 if b < 0x80 { 15038 break 15039 } 15040 } 15041 if byteLen < 0 { 15042 return ErrInvalidLengthTypes 15043 } 15044 postIndex := iNdEx + byteLen 15045 if postIndex < 0 { 15046 return ErrInvalidLengthTypes 15047 } 15048 if postIndex > l { 15049 return io.ErrUnexpectedEOF 15050 } 15051 m.ValidatorsHash = append(m.ValidatorsHash[:0], dAtA[iNdEx:postIndex]...) 15052 if m.ValidatorsHash == nil { 15053 m.ValidatorsHash = []byte{} 15054 } 15055 iNdEx = postIndex 15056 case 9: 15057 if wireType != 2 { 15058 return fmt.Errorf("proto: wrong wireType = %d for field NextValidatorsHash", wireType) 15059 } 15060 var byteLen int 15061 for shift := uint(0); ; shift += 7 { 15062 if shift >= 64 { 15063 return ErrIntOverflowTypes 15064 } 15065 if iNdEx >= l { 15066 return io.ErrUnexpectedEOF 15067 } 15068 b := dAtA[iNdEx] 15069 iNdEx++ 15070 byteLen |= int(b&0x7F) << shift 15071 if b < 0x80 { 15072 break 15073 } 15074 } 15075 if byteLen < 0 { 15076 return ErrInvalidLengthTypes 15077 } 15078 postIndex := iNdEx + byteLen 15079 if postIndex < 0 { 15080 return ErrInvalidLengthTypes 15081 } 15082 if postIndex > l { 15083 return io.ErrUnexpectedEOF 15084 } 15085 m.NextValidatorsHash = append(m.NextValidatorsHash[:0], dAtA[iNdEx:postIndex]...) 15086 if m.NextValidatorsHash == nil { 15087 m.NextValidatorsHash = []byte{} 15088 } 15089 iNdEx = postIndex 15090 case 10: 15091 if wireType != 2 { 15092 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusHash", wireType) 15093 } 15094 var byteLen int 15095 for shift := uint(0); ; shift += 7 { 15096 if shift >= 64 { 15097 return ErrIntOverflowTypes 15098 } 15099 if iNdEx >= l { 15100 return io.ErrUnexpectedEOF 15101 } 15102 b := dAtA[iNdEx] 15103 iNdEx++ 15104 byteLen |= int(b&0x7F) << shift 15105 if b < 0x80 { 15106 break 15107 } 15108 } 15109 if byteLen < 0 { 15110 return ErrInvalidLengthTypes 15111 } 15112 postIndex := iNdEx + byteLen 15113 if postIndex < 0 { 15114 return ErrInvalidLengthTypes 15115 } 15116 if postIndex > l { 15117 return io.ErrUnexpectedEOF 15118 } 15119 m.ConsensusHash = append(m.ConsensusHash[:0], dAtA[iNdEx:postIndex]...) 15120 if m.ConsensusHash == nil { 15121 m.ConsensusHash = []byte{} 15122 } 15123 iNdEx = postIndex 15124 case 11: 15125 if wireType != 2 { 15126 return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType) 15127 } 15128 var byteLen int 15129 for shift := uint(0); ; shift += 7 { 15130 if shift >= 64 { 15131 return ErrIntOverflowTypes 15132 } 15133 if iNdEx >= l { 15134 return io.ErrUnexpectedEOF 15135 } 15136 b := dAtA[iNdEx] 15137 iNdEx++ 15138 byteLen |= int(b&0x7F) << shift 15139 if b < 0x80 { 15140 break 15141 } 15142 } 15143 if byteLen < 0 { 15144 return ErrInvalidLengthTypes 15145 } 15146 postIndex := iNdEx + byteLen 15147 if postIndex < 0 { 15148 return ErrInvalidLengthTypes 15149 } 15150 if postIndex > l { 15151 return io.ErrUnexpectedEOF 15152 } 15153 m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...) 15154 if m.AppHash == nil { 15155 m.AppHash = []byte{} 15156 } 15157 iNdEx = postIndex 15158 case 12: 15159 if wireType != 2 { 15160 return fmt.Errorf("proto: wrong wireType = %d for field LastResultsHash", wireType) 15161 } 15162 var byteLen int 15163 for shift := uint(0); ; shift += 7 { 15164 if shift >= 64 { 15165 return ErrIntOverflowTypes 15166 } 15167 if iNdEx >= l { 15168 return io.ErrUnexpectedEOF 15169 } 15170 b := dAtA[iNdEx] 15171 iNdEx++ 15172 byteLen |= int(b&0x7F) << shift 15173 if b < 0x80 { 15174 break 15175 } 15176 } 15177 if byteLen < 0 { 15178 return ErrInvalidLengthTypes 15179 } 15180 postIndex := iNdEx + byteLen 15181 if postIndex < 0 { 15182 return ErrInvalidLengthTypes 15183 } 15184 if postIndex > l { 15185 return io.ErrUnexpectedEOF 15186 } 15187 m.LastResultsHash = append(m.LastResultsHash[:0], dAtA[iNdEx:postIndex]...) 15188 if m.LastResultsHash == nil { 15189 m.LastResultsHash = []byte{} 15190 } 15191 iNdEx = postIndex 15192 case 13: 15193 if wireType != 2 { 15194 return fmt.Errorf("proto: wrong wireType = %d for field EvidenceHash", wireType) 15195 } 15196 var byteLen int 15197 for shift := uint(0); ; shift += 7 { 15198 if shift >= 64 { 15199 return ErrIntOverflowTypes 15200 } 15201 if iNdEx >= l { 15202 return io.ErrUnexpectedEOF 15203 } 15204 b := dAtA[iNdEx] 15205 iNdEx++ 15206 byteLen |= int(b&0x7F) << shift 15207 if b < 0x80 { 15208 break 15209 } 15210 } 15211 if byteLen < 0 { 15212 return ErrInvalidLengthTypes 15213 } 15214 postIndex := iNdEx + byteLen 15215 if postIndex < 0 { 15216 return ErrInvalidLengthTypes 15217 } 15218 if postIndex > l { 15219 return io.ErrUnexpectedEOF 15220 } 15221 m.EvidenceHash = append(m.EvidenceHash[:0], dAtA[iNdEx:postIndex]...) 15222 if m.EvidenceHash == nil { 15223 m.EvidenceHash = []byte{} 15224 } 15225 iNdEx = postIndex 15226 case 14: 15227 if wireType != 2 { 15228 return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) 15229 } 15230 var byteLen int 15231 for shift := uint(0); ; shift += 7 { 15232 if shift >= 64 { 15233 return ErrIntOverflowTypes 15234 } 15235 if iNdEx >= l { 15236 return io.ErrUnexpectedEOF 15237 } 15238 b := dAtA[iNdEx] 15239 iNdEx++ 15240 byteLen |= int(b&0x7F) << shift 15241 if b < 0x80 { 15242 break 15243 } 15244 } 15245 if byteLen < 0 { 15246 return ErrInvalidLengthTypes 15247 } 15248 postIndex := iNdEx + byteLen 15249 if postIndex < 0 { 15250 return ErrInvalidLengthTypes 15251 } 15252 if postIndex > l { 15253 return io.ErrUnexpectedEOF 15254 } 15255 m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) 15256 if m.ProposerAddress == nil { 15257 m.ProposerAddress = []byte{} 15258 } 15259 iNdEx = postIndex 15260 default: 15261 iNdEx = preIndex 15262 skippy, err := skipTypes(dAtA[iNdEx:]) 15263 if err != nil { 15264 return err 15265 } 15266 if (skippy < 0) || (iNdEx+skippy) < 0 { 15267 return ErrInvalidLengthTypes 15268 } 15269 if (iNdEx + skippy) > l { 15270 return io.ErrUnexpectedEOF 15271 } 15272 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15273 iNdEx += skippy 15274 } 15275 } 15276 15277 if iNdEx > l { 15278 return io.ErrUnexpectedEOF 15279 } 15280 return nil 15281 } 15282 func (m *Version) Unmarshal(dAtA []byte) error { 15283 l := len(dAtA) 15284 iNdEx := 0 15285 for iNdEx < l { 15286 preIndex := iNdEx 15287 var wire uint64 15288 for shift := uint(0); ; shift += 7 { 15289 if shift >= 64 { 15290 return ErrIntOverflowTypes 15291 } 15292 if iNdEx >= l { 15293 return io.ErrUnexpectedEOF 15294 } 15295 b := dAtA[iNdEx] 15296 iNdEx++ 15297 wire |= uint64(b&0x7F) << shift 15298 if b < 0x80 { 15299 break 15300 } 15301 } 15302 fieldNum := int32(wire >> 3) 15303 wireType := int(wire & 0x7) 15304 if wireType == 4 { 15305 return fmt.Errorf("proto: Version: wiretype end group for non-group") 15306 } 15307 if fieldNum <= 0 { 15308 return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire) 15309 } 15310 switch fieldNum { 15311 case 1: 15312 if wireType != 0 { 15313 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 15314 } 15315 m.Block = 0 15316 for shift := uint(0); ; shift += 7 { 15317 if shift >= 64 { 15318 return ErrIntOverflowTypes 15319 } 15320 if iNdEx >= l { 15321 return io.ErrUnexpectedEOF 15322 } 15323 b := dAtA[iNdEx] 15324 iNdEx++ 15325 m.Block |= uint64(b&0x7F) << shift 15326 if b < 0x80 { 15327 break 15328 } 15329 } 15330 case 2: 15331 if wireType != 0 { 15332 return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) 15333 } 15334 m.App = 0 15335 for shift := uint(0); ; shift += 7 { 15336 if shift >= 64 { 15337 return ErrIntOverflowTypes 15338 } 15339 if iNdEx >= l { 15340 return io.ErrUnexpectedEOF 15341 } 15342 b := dAtA[iNdEx] 15343 iNdEx++ 15344 m.App |= uint64(b&0x7F) << shift 15345 if b < 0x80 { 15346 break 15347 } 15348 } 15349 default: 15350 iNdEx = preIndex 15351 skippy, err := skipTypes(dAtA[iNdEx:]) 15352 if err != nil { 15353 return err 15354 } 15355 if (skippy < 0) || (iNdEx+skippy) < 0 { 15356 return ErrInvalidLengthTypes 15357 } 15358 if (iNdEx + skippy) > l { 15359 return io.ErrUnexpectedEOF 15360 } 15361 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15362 iNdEx += skippy 15363 } 15364 } 15365 15366 if iNdEx > l { 15367 return io.ErrUnexpectedEOF 15368 } 15369 return nil 15370 } 15371 func (m *BlockID) Unmarshal(dAtA []byte) error { 15372 l := len(dAtA) 15373 iNdEx := 0 15374 for iNdEx < l { 15375 preIndex := iNdEx 15376 var wire uint64 15377 for shift := uint(0); ; shift += 7 { 15378 if shift >= 64 { 15379 return ErrIntOverflowTypes 15380 } 15381 if iNdEx >= l { 15382 return io.ErrUnexpectedEOF 15383 } 15384 b := dAtA[iNdEx] 15385 iNdEx++ 15386 wire |= uint64(b&0x7F) << shift 15387 if b < 0x80 { 15388 break 15389 } 15390 } 15391 fieldNum := int32(wire >> 3) 15392 wireType := int(wire & 0x7) 15393 if wireType == 4 { 15394 return fmt.Errorf("proto: BlockID: wiretype end group for non-group") 15395 } 15396 if fieldNum <= 0 { 15397 return fmt.Errorf("proto: BlockID: illegal tag %d (wire type %d)", fieldNum, wire) 15398 } 15399 switch fieldNum { 15400 case 1: 15401 if wireType != 2 { 15402 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 15403 } 15404 var byteLen int 15405 for shift := uint(0); ; shift += 7 { 15406 if shift >= 64 { 15407 return ErrIntOverflowTypes 15408 } 15409 if iNdEx >= l { 15410 return io.ErrUnexpectedEOF 15411 } 15412 b := dAtA[iNdEx] 15413 iNdEx++ 15414 byteLen |= int(b&0x7F) << shift 15415 if b < 0x80 { 15416 break 15417 } 15418 } 15419 if byteLen < 0 { 15420 return ErrInvalidLengthTypes 15421 } 15422 postIndex := iNdEx + byteLen 15423 if postIndex < 0 { 15424 return ErrInvalidLengthTypes 15425 } 15426 if postIndex > l { 15427 return io.ErrUnexpectedEOF 15428 } 15429 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 15430 if m.Hash == nil { 15431 m.Hash = []byte{} 15432 } 15433 iNdEx = postIndex 15434 case 2: 15435 if wireType != 2 { 15436 return fmt.Errorf("proto: wrong wireType = %d for field PartsHeader", wireType) 15437 } 15438 var msglen int 15439 for shift := uint(0); ; shift += 7 { 15440 if shift >= 64 { 15441 return ErrIntOverflowTypes 15442 } 15443 if iNdEx >= l { 15444 return io.ErrUnexpectedEOF 15445 } 15446 b := dAtA[iNdEx] 15447 iNdEx++ 15448 msglen |= int(b&0x7F) << shift 15449 if b < 0x80 { 15450 break 15451 } 15452 } 15453 if msglen < 0 { 15454 return ErrInvalidLengthTypes 15455 } 15456 postIndex := iNdEx + msglen 15457 if postIndex < 0 { 15458 return ErrInvalidLengthTypes 15459 } 15460 if postIndex > l { 15461 return io.ErrUnexpectedEOF 15462 } 15463 if err := m.PartsHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15464 return err 15465 } 15466 iNdEx = postIndex 15467 default: 15468 iNdEx = preIndex 15469 skippy, err := skipTypes(dAtA[iNdEx:]) 15470 if err != nil { 15471 return err 15472 } 15473 if (skippy < 0) || (iNdEx+skippy) < 0 { 15474 return ErrInvalidLengthTypes 15475 } 15476 if (iNdEx + skippy) > l { 15477 return io.ErrUnexpectedEOF 15478 } 15479 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15480 iNdEx += skippy 15481 } 15482 } 15483 15484 if iNdEx > l { 15485 return io.ErrUnexpectedEOF 15486 } 15487 return nil 15488 } 15489 func (m *PartSetHeader) Unmarshal(dAtA []byte) error { 15490 l := len(dAtA) 15491 iNdEx := 0 15492 for iNdEx < l { 15493 preIndex := iNdEx 15494 var wire uint64 15495 for shift := uint(0); ; shift += 7 { 15496 if shift >= 64 { 15497 return ErrIntOverflowTypes 15498 } 15499 if iNdEx >= l { 15500 return io.ErrUnexpectedEOF 15501 } 15502 b := dAtA[iNdEx] 15503 iNdEx++ 15504 wire |= uint64(b&0x7F) << shift 15505 if b < 0x80 { 15506 break 15507 } 15508 } 15509 fieldNum := int32(wire >> 3) 15510 wireType := int(wire & 0x7) 15511 if wireType == 4 { 15512 return fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group") 15513 } 15514 if fieldNum <= 0 { 15515 return fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) 15516 } 15517 switch fieldNum { 15518 case 1: 15519 if wireType != 0 { 15520 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 15521 } 15522 m.Total = 0 15523 for shift := uint(0); ; shift += 7 { 15524 if shift >= 64 { 15525 return ErrIntOverflowTypes 15526 } 15527 if iNdEx >= l { 15528 return io.ErrUnexpectedEOF 15529 } 15530 b := dAtA[iNdEx] 15531 iNdEx++ 15532 m.Total |= int32(b&0x7F) << shift 15533 if b < 0x80 { 15534 break 15535 } 15536 } 15537 case 2: 15538 if wireType != 2 { 15539 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 15540 } 15541 var byteLen int 15542 for shift := uint(0); ; shift += 7 { 15543 if shift >= 64 { 15544 return ErrIntOverflowTypes 15545 } 15546 if iNdEx >= l { 15547 return io.ErrUnexpectedEOF 15548 } 15549 b := dAtA[iNdEx] 15550 iNdEx++ 15551 byteLen |= int(b&0x7F) << shift 15552 if b < 0x80 { 15553 break 15554 } 15555 } 15556 if byteLen < 0 { 15557 return ErrInvalidLengthTypes 15558 } 15559 postIndex := iNdEx + byteLen 15560 if postIndex < 0 { 15561 return ErrInvalidLengthTypes 15562 } 15563 if postIndex > l { 15564 return io.ErrUnexpectedEOF 15565 } 15566 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 15567 if m.Hash == nil { 15568 m.Hash = []byte{} 15569 } 15570 iNdEx = postIndex 15571 default: 15572 iNdEx = preIndex 15573 skippy, err := skipTypes(dAtA[iNdEx:]) 15574 if err != nil { 15575 return err 15576 } 15577 if (skippy < 0) || (iNdEx+skippy) < 0 { 15578 return ErrInvalidLengthTypes 15579 } 15580 if (iNdEx + skippy) > l { 15581 return io.ErrUnexpectedEOF 15582 } 15583 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15584 iNdEx += skippy 15585 } 15586 } 15587 15588 if iNdEx > l { 15589 return io.ErrUnexpectedEOF 15590 } 15591 return nil 15592 } 15593 func (m *Validator) Unmarshal(dAtA []byte) error { 15594 l := len(dAtA) 15595 iNdEx := 0 15596 for iNdEx < l { 15597 preIndex := iNdEx 15598 var wire uint64 15599 for shift := uint(0); ; shift += 7 { 15600 if shift >= 64 { 15601 return ErrIntOverflowTypes 15602 } 15603 if iNdEx >= l { 15604 return io.ErrUnexpectedEOF 15605 } 15606 b := dAtA[iNdEx] 15607 iNdEx++ 15608 wire |= uint64(b&0x7F) << shift 15609 if b < 0x80 { 15610 break 15611 } 15612 } 15613 fieldNum := int32(wire >> 3) 15614 wireType := int(wire & 0x7) 15615 if wireType == 4 { 15616 return fmt.Errorf("proto: Validator: wiretype end group for non-group") 15617 } 15618 if fieldNum <= 0 { 15619 return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) 15620 } 15621 switch fieldNum { 15622 case 1: 15623 if wireType != 2 { 15624 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 15625 } 15626 var byteLen int 15627 for shift := uint(0); ; shift += 7 { 15628 if shift >= 64 { 15629 return ErrIntOverflowTypes 15630 } 15631 if iNdEx >= l { 15632 return io.ErrUnexpectedEOF 15633 } 15634 b := dAtA[iNdEx] 15635 iNdEx++ 15636 byteLen |= int(b&0x7F) << shift 15637 if b < 0x80 { 15638 break 15639 } 15640 } 15641 if byteLen < 0 { 15642 return ErrInvalidLengthTypes 15643 } 15644 postIndex := iNdEx + byteLen 15645 if postIndex < 0 { 15646 return ErrInvalidLengthTypes 15647 } 15648 if postIndex > l { 15649 return io.ErrUnexpectedEOF 15650 } 15651 m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) 15652 if m.Address == nil { 15653 m.Address = []byte{} 15654 } 15655 iNdEx = postIndex 15656 case 3: 15657 if wireType != 0 { 15658 return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) 15659 } 15660 m.Power = 0 15661 for shift := uint(0); ; shift += 7 { 15662 if shift >= 64 { 15663 return ErrIntOverflowTypes 15664 } 15665 if iNdEx >= l { 15666 return io.ErrUnexpectedEOF 15667 } 15668 b := dAtA[iNdEx] 15669 iNdEx++ 15670 m.Power |= int64(b&0x7F) << shift 15671 if b < 0x80 { 15672 break 15673 } 15674 } 15675 default: 15676 iNdEx = preIndex 15677 skippy, err := skipTypes(dAtA[iNdEx:]) 15678 if err != nil { 15679 return err 15680 } 15681 if (skippy < 0) || (iNdEx+skippy) < 0 { 15682 return ErrInvalidLengthTypes 15683 } 15684 if (iNdEx + skippy) > l { 15685 return io.ErrUnexpectedEOF 15686 } 15687 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15688 iNdEx += skippy 15689 } 15690 } 15691 15692 if iNdEx > l { 15693 return io.ErrUnexpectedEOF 15694 } 15695 return nil 15696 } 15697 func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error { 15698 l := len(dAtA) 15699 iNdEx := 0 15700 for iNdEx < l { 15701 preIndex := iNdEx 15702 var wire uint64 15703 for shift := uint(0); ; shift += 7 { 15704 if shift >= 64 { 15705 return ErrIntOverflowTypes 15706 } 15707 if iNdEx >= l { 15708 return io.ErrUnexpectedEOF 15709 } 15710 b := dAtA[iNdEx] 15711 iNdEx++ 15712 wire |= uint64(b&0x7F) << shift 15713 if b < 0x80 { 15714 break 15715 } 15716 } 15717 fieldNum := int32(wire >> 3) 15718 wireType := int(wire & 0x7) 15719 if wireType == 4 { 15720 return fmt.Errorf("proto: ValidatorUpdate: wiretype end group for non-group") 15721 } 15722 if fieldNum <= 0 { 15723 return fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire) 15724 } 15725 switch fieldNum { 15726 case 1: 15727 if wireType != 2 { 15728 return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) 15729 } 15730 var msglen int 15731 for shift := uint(0); ; shift += 7 { 15732 if shift >= 64 { 15733 return ErrIntOverflowTypes 15734 } 15735 if iNdEx >= l { 15736 return io.ErrUnexpectedEOF 15737 } 15738 b := dAtA[iNdEx] 15739 iNdEx++ 15740 msglen |= int(b&0x7F) << shift 15741 if b < 0x80 { 15742 break 15743 } 15744 } 15745 if msglen < 0 { 15746 return ErrInvalidLengthTypes 15747 } 15748 postIndex := iNdEx + msglen 15749 if postIndex < 0 { 15750 return ErrInvalidLengthTypes 15751 } 15752 if postIndex > l { 15753 return io.ErrUnexpectedEOF 15754 } 15755 if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15756 return err 15757 } 15758 iNdEx = postIndex 15759 case 2: 15760 if wireType != 0 { 15761 return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) 15762 } 15763 m.Power = 0 15764 for shift := uint(0); ; shift += 7 { 15765 if shift >= 64 { 15766 return ErrIntOverflowTypes 15767 } 15768 if iNdEx >= l { 15769 return io.ErrUnexpectedEOF 15770 } 15771 b := dAtA[iNdEx] 15772 iNdEx++ 15773 m.Power |= int64(b&0x7F) << shift 15774 if b < 0x80 { 15775 break 15776 } 15777 } 15778 default: 15779 iNdEx = preIndex 15780 skippy, err := skipTypes(dAtA[iNdEx:]) 15781 if err != nil { 15782 return err 15783 } 15784 if (skippy < 0) || (iNdEx+skippy) < 0 { 15785 return ErrInvalidLengthTypes 15786 } 15787 if (iNdEx + skippy) > l { 15788 return io.ErrUnexpectedEOF 15789 } 15790 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15791 iNdEx += skippy 15792 } 15793 } 15794 15795 if iNdEx > l { 15796 return io.ErrUnexpectedEOF 15797 } 15798 return nil 15799 } 15800 func (m *VoteInfo) Unmarshal(dAtA []byte) error { 15801 l := len(dAtA) 15802 iNdEx := 0 15803 for iNdEx < l { 15804 preIndex := iNdEx 15805 var wire uint64 15806 for shift := uint(0); ; shift += 7 { 15807 if shift >= 64 { 15808 return ErrIntOverflowTypes 15809 } 15810 if iNdEx >= l { 15811 return io.ErrUnexpectedEOF 15812 } 15813 b := dAtA[iNdEx] 15814 iNdEx++ 15815 wire |= uint64(b&0x7F) << shift 15816 if b < 0x80 { 15817 break 15818 } 15819 } 15820 fieldNum := int32(wire >> 3) 15821 wireType := int(wire & 0x7) 15822 if wireType == 4 { 15823 return fmt.Errorf("proto: VoteInfo: wiretype end group for non-group") 15824 } 15825 if fieldNum <= 0 { 15826 return fmt.Errorf("proto: VoteInfo: illegal tag %d (wire type %d)", fieldNum, wire) 15827 } 15828 switch fieldNum { 15829 case 1: 15830 if wireType != 2 { 15831 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 15832 } 15833 var msglen int 15834 for shift := uint(0); ; shift += 7 { 15835 if shift >= 64 { 15836 return ErrIntOverflowTypes 15837 } 15838 if iNdEx >= l { 15839 return io.ErrUnexpectedEOF 15840 } 15841 b := dAtA[iNdEx] 15842 iNdEx++ 15843 msglen |= int(b&0x7F) << shift 15844 if b < 0x80 { 15845 break 15846 } 15847 } 15848 if msglen < 0 { 15849 return ErrInvalidLengthTypes 15850 } 15851 postIndex := iNdEx + msglen 15852 if postIndex < 0 { 15853 return ErrInvalidLengthTypes 15854 } 15855 if postIndex > l { 15856 return io.ErrUnexpectedEOF 15857 } 15858 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15859 return err 15860 } 15861 iNdEx = postIndex 15862 case 2: 15863 if wireType != 0 { 15864 return fmt.Errorf("proto: wrong wireType = %d for field SignedLastBlock", wireType) 15865 } 15866 var v int 15867 for shift := uint(0); ; shift += 7 { 15868 if shift >= 64 { 15869 return ErrIntOverflowTypes 15870 } 15871 if iNdEx >= l { 15872 return io.ErrUnexpectedEOF 15873 } 15874 b := dAtA[iNdEx] 15875 iNdEx++ 15876 v |= int(b&0x7F) << shift 15877 if b < 0x80 { 15878 break 15879 } 15880 } 15881 m.SignedLastBlock = bool(v != 0) 15882 default: 15883 iNdEx = preIndex 15884 skippy, err := skipTypes(dAtA[iNdEx:]) 15885 if err != nil { 15886 return err 15887 } 15888 if (skippy < 0) || (iNdEx+skippy) < 0 { 15889 return ErrInvalidLengthTypes 15890 } 15891 if (iNdEx + skippy) > l { 15892 return io.ErrUnexpectedEOF 15893 } 15894 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15895 iNdEx += skippy 15896 } 15897 } 15898 15899 if iNdEx > l { 15900 return io.ErrUnexpectedEOF 15901 } 15902 return nil 15903 } 15904 func (m *PubKey) Unmarshal(dAtA []byte) error { 15905 l := len(dAtA) 15906 iNdEx := 0 15907 for iNdEx < l { 15908 preIndex := iNdEx 15909 var wire uint64 15910 for shift := uint(0); ; shift += 7 { 15911 if shift >= 64 { 15912 return ErrIntOverflowTypes 15913 } 15914 if iNdEx >= l { 15915 return io.ErrUnexpectedEOF 15916 } 15917 b := dAtA[iNdEx] 15918 iNdEx++ 15919 wire |= uint64(b&0x7F) << shift 15920 if b < 0x80 { 15921 break 15922 } 15923 } 15924 fieldNum := int32(wire >> 3) 15925 wireType := int(wire & 0x7) 15926 if wireType == 4 { 15927 return fmt.Errorf("proto: PubKey: wiretype end group for non-group") 15928 } 15929 if fieldNum <= 0 { 15930 return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) 15931 } 15932 switch fieldNum { 15933 case 1: 15934 if wireType != 2 { 15935 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 15936 } 15937 var stringLen uint64 15938 for shift := uint(0); ; shift += 7 { 15939 if shift >= 64 { 15940 return ErrIntOverflowTypes 15941 } 15942 if iNdEx >= l { 15943 return io.ErrUnexpectedEOF 15944 } 15945 b := dAtA[iNdEx] 15946 iNdEx++ 15947 stringLen |= uint64(b&0x7F) << shift 15948 if b < 0x80 { 15949 break 15950 } 15951 } 15952 intStringLen := int(stringLen) 15953 if intStringLen < 0 { 15954 return ErrInvalidLengthTypes 15955 } 15956 postIndex := iNdEx + intStringLen 15957 if postIndex < 0 { 15958 return ErrInvalidLengthTypes 15959 } 15960 if postIndex > l { 15961 return io.ErrUnexpectedEOF 15962 } 15963 m.Type = string(dAtA[iNdEx:postIndex]) 15964 iNdEx = postIndex 15965 case 2: 15966 if wireType != 2 { 15967 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 15968 } 15969 var byteLen int 15970 for shift := uint(0); ; shift += 7 { 15971 if shift >= 64 { 15972 return ErrIntOverflowTypes 15973 } 15974 if iNdEx >= l { 15975 return io.ErrUnexpectedEOF 15976 } 15977 b := dAtA[iNdEx] 15978 iNdEx++ 15979 byteLen |= int(b&0x7F) << shift 15980 if b < 0x80 { 15981 break 15982 } 15983 } 15984 if byteLen < 0 { 15985 return ErrInvalidLengthTypes 15986 } 15987 postIndex := iNdEx + byteLen 15988 if postIndex < 0 { 15989 return ErrInvalidLengthTypes 15990 } 15991 if postIndex > l { 15992 return io.ErrUnexpectedEOF 15993 } 15994 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 15995 if m.Data == nil { 15996 m.Data = []byte{} 15997 } 15998 iNdEx = postIndex 15999 default: 16000 iNdEx = preIndex 16001 skippy, err := skipTypes(dAtA[iNdEx:]) 16002 if err != nil { 16003 return err 16004 } 16005 if (skippy < 0) || (iNdEx+skippy) < 0 { 16006 return ErrInvalidLengthTypes 16007 } 16008 if (iNdEx + skippy) > l { 16009 return io.ErrUnexpectedEOF 16010 } 16011 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 16012 iNdEx += skippy 16013 } 16014 } 16015 16016 if iNdEx > l { 16017 return io.ErrUnexpectedEOF 16018 } 16019 return nil 16020 } 16021 func (m *Evidence) Unmarshal(dAtA []byte) error { 16022 l := len(dAtA) 16023 iNdEx := 0 16024 for iNdEx < l { 16025 preIndex := iNdEx 16026 var wire uint64 16027 for shift := uint(0); ; shift += 7 { 16028 if shift >= 64 { 16029 return ErrIntOverflowTypes 16030 } 16031 if iNdEx >= l { 16032 return io.ErrUnexpectedEOF 16033 } 16034 b := dAtA[iNdEx] 16035 iNdEx++ 16036 wire |= uint64(b&0x7F) << shift 16037 if b < 0x80 { 16038 break 16039 } 16040 } 16041 fieldNum := int32(wire >> 3) 16042 wireType := int(wire & 0x7) 16043 if wireType == 4 { 16044 return fmt.Errorf("proto: Evidence: wiretype end group for non-group") 16045 } 16046 if fieldNum <= 0 { 16047 return fmt.Errorf("proto: Evidence: illegal tag %d (wire type %d)", fieldNum, wire) 16048 } 16049 switch fieldNum { 16050 case 1: 16051 if wireType != 2 { 16052 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 16053 } 16054 var stringLen uint64 16055 for shift := uint(0); ; shift += 7 { 16056 if shift >= 64 { 16057 return ErrIntOverflowTypes 16058 } 16059 if iNdEx >= l { 16060 return io.ErrUnexpectedEOF 16061 } 16062 b := dAtA[iNdEx] 16063 iNdEx++ 16064 stringLen |= uint64(b&0x7F) << shift 16065 if b < 0x80 { 16066 break 16067 } 16068 } 16069 intStringLen := int(stringLen) 16070 if intStringLen < 0 { 16071 return ErrInvalidLengthTypes 16072 } 16073 postIndex := iNdEx + intStringLen 16074 if postIndex < 0 { 16075 return ErrInvalidLengthTypes 16076 } 16077 if postIndex > l { 16078 return io.ErrUnexpectedEOF 16079 } 16080 m.Type = string(dAtA[iNdEx:postIndex]) 16081 iNdEx = postIndex 16082 case 2: 16083 if wireType != 2 { 16084 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 16085 } 16086 var msglen int 16087 for shift := uint(0); ; shift += 7 { 16088 if shift >= 64 { 16089 return ErrIntOverflowTypes 16090 } 16091 if iNdEx >= l { 16092 return io.ErrUnexpectedEOF 16093 } 16094 b := dAtA[iNdEx] 16095 iNdEx++ 16096 msglen |= int(b&0x7F) << shift 16097 if b < 0x80 { 16098 break 16099 } 16100 } 16101 if msglen < 0 { 16102 return ErrInvalidLengthTypes 16103 } 16104 postIndex := iNdEx + msglen 16105 if postIndex < 0 { 16106 return ErrInvalidLengthTypes 16107 } 16108 if postIndex > l { 16109 return io.ErrUnexpectedEOF 16110 } 16111 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 16112 return err 16113 } 16114 iNdEx = postIndex 16115 case 3: 16116 if wireType != 0 { 16117 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 16118 } 16119 m.Height = 0 16120 for shift := uint(0); ; shift += 7 { 16121 if shift >= 64 { 16122 return ErrIntOverflowTypes 16123 } 16124 if iNdEx >= l { 16125 return io.ErrUnexpectedEOF 16126 } 16127 b := dAtA[iNdEx] 16128 iNdEx++ 16129 m.Height |= int64(b&0x7F) << shift 16130 if b < 0x80 { 16131 break 16132 } 16133 } 16134 case 4: 16135 if wireType != 2 { 16136 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 16137 } 16138 var msglen int 16139 for shift := uint(0); ; shift += 7 { 16140 if shift >= 64 { 16141 return ErrIntOverflowTypes 16142 } 16143 if iNdEx >= l { 16144 return io.ErrUnexpectedEOF 16145 } 16146 b := dAtA[iNdEx] 16147 iNdEx++ 16148 msglen |= int(b&0x7F) << shift 16149 if b < 0x80 { 16150 break 16151 } 16152 } 16153 if msglen < 0 { 16154 return ErrInvalidLengthTypes 16155 } 16156 postIndex := iNdEx + msglen 16157 if postIndex < 0 { 16158 return ErrInvalidLengthTypes 16159 } 16160 if postIndex > l { 16161 return io.ErrUnexpectedEOF 16162 } 16163 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 16164 return err 16165 } 16166 iNdEx = postIndex 16167 case 5: 16168 if wireType != 0 { 16169 return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType) 16170 } 16171 m.TotalVotingPower = 0 16172 for shift := uint(0); ; shift += 7 { 16173 if shift >= 64 { 16174 return ErrIntOverflowTypes 16175 } 16176 if iNdEx >= l { 16177 return io.ErrUnexpectedEOF 16178 } 16179 b := dAtA[iNdEx] 16180 iNdEx++ 16181 m.TotalVotingPower |= int64(b&0x7F) << shift 16182 if b < 0x80 { 16183 break 16184 } 16185 } 16186 default: 16187 iNdEx = preIndex 16188 skippy, err := skipTypes(dAtA[iNdEx:]) 16189 if err != nil { 16190 return err 16191 } 16192 if (skippy < 0) || (iNdEx+skippy) < 0 { 16193 return ErrInvalidLengthTypes 16194 } 16195 if (iNdEx + skippy) > l { 16196 return io.ErrUnexpectedEOF 16197 } 16198 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 16199 iNdEx += skippy 16200 } 16201 } 16202 16203 if iNdEx > l { 16204 return io.ErrUnexpectedEOF 16205 } 16206 return nil 16207 } 16208 func skipTypes(dAtA []byte) (n int, err error) { 16209 l := len(dAtA) 16210 iNdEx := 0 16211 depth := 0 16212 for iNdEx < l { 16213 var wire uint64 16214 for shift := uint(0); ; shift += 7 { 16215 if shift >= 64 { 16216 return 0, ErrIntOverflowTypes 16217 } 16218 if iNdEx >= l { 16219 return 0, io.ErrUnexpectedEOF 16220 } 16221 b := dAtA[iNdEx] 16222 iNdEx++ 16223 wire |= (uint64(b) & 0x7F) << shift 16224 if b < 0x80 { 16225 break 16226 } 16227 } 16228 wireType := int(wire & 0x7) 16229 switch wireType { 16230 case 0: 16231 for shift := uint(0); ; shift += 7 { 16232 if shift >= 64 { 16233 return 0, ErrIntOverflowTypes 16234 } 16235 if iNdEx >= l { 16236 return 0, io.ErrUnexpectedEOF 16237 } 16238 iNdEx++ 16239 if dAtA[iNdEx-1] < 0x80 { 16240 break 16241 } 16242 } 16243 case 1: 16244 iNdEx += 8 16245 case 2: 16246 var length int 16247 for shift := uint(0); ; shift += 7 { 16248 if shift >= 64 { 16249 return 0, ErrIntOverflowTypes 16250 } 16251 if iNdEx >= l { 16252 return 0, io.ErrUnexpectedEOF 16253 } 16254 b := dAtA[iNdEx] 16255 iNdEx++ 16256 length |= (int(b) & 0x7F) << shift 16257 if b < 0x80 { 16258 break 16259 } 16260 } 16261 if length < 0 { 16262 return 0, ErrInvalidLengthTypes 16263 } 16264 iNdEx += length 16265 case 3: 16266 depth++ 16267 case 4: 16268 if depth == 0 { 16269 return 0, ErrUnexpectedEndOfGroupTypes 16270 } 16271 depth-- 16272 case 5: 16273 iNdEx += 4 16274 default: 16275 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 16276 } 16277 if iNdEx < 0 { 16278 return 0, ErrInvalidLengthTypes 16279 } 16280 if depth == 0 { 16281 return iNdEx, nil 16282 } 16283 } 16284 return 0, io.ErrUnexpectedEOF 16285 } 16286 16287 var ( 16288 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 16289 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 16290 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 16291 )