github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/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 merkle "github.com/fibonacci-chain/fbc/libs/tendermint/crypto/merkle" 13 kv "github.com/fibonacci-chain/fbc/libs/tendermint/libs/kv" 14 _ "github.com/gogo/protobuf/gogoproto" 15 proto "github.com/gogo/protobuf/proto" 16 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 17 golang_proto "github.com/golang/protobuf/proto" 18 _ "github.com/golang/protobuf/ptypes/duration" 19 _ "github.com/golang/protobuf/ptypes/timestamp" 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 XXX_NoUnkeyedLiteral struct{} `json:"-"` 703 XXX_unrecognized []byte `json:"-"` 704 XXX_sizecache int32 `json:"-"` 705 } 706 707 func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} } 708 func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) } 709 func (*RequestCheckTx) ProtoMessage() {} 710 func (*RequestCheckTx) Descriptor() ([]byte, []int) { 711 return fileDescriptor_9f1eaa49c51fa1ac, []int{8} 712 } 713 func (m *RequestCheckTx) XXX_Unmarshal(b []byte) error { 714 return m.Unmarshal(b) 715 } 716 func (m *RequestCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 717 if deterministic { 718 return xxx_messageInfo_RequestCheckTx.Marshal(b, m, deterministic) 719 } else { 720 b = b[:cap(b)] 721 n, err := m.MarshalToSizedBuffer(b) 722 if err != nil { 723 return nil, err 724 } 725 return b[:n], nil 726 } 727 } 728 func (m *RequestCheckTx) XXX_Merge(src proto.Message) { 729 xxx_messageInfo_RequestCheckTx.Merge(m, src) 730 } 731 func (m *RequestCheckTx) XXX_Size() int { 732 return m.Size() 733 } 734 func (m *RequestCheckTx) XXX_DiscardUnknown() { 735 xxx_messageInfo_RequestCheckTx.DiscardUnknown(m) 736 } 737 738 var xxx_messageInfo_RequestCheckTx proto.InternalMessageInfo 739 740 func (m *RequestCheckTx) GetTx() []byte { 741 if m != nil { 742 return m.Tx 743 } 744 return nil 745 } 746 747 func (m *RequestCheckTx) GetType() CheckTxType { 748 if m != nil { 749 return m.Type 750 } 751 return CheckTxType_New 752 } 753 754 func (m *RequestCheckTx) GetFrom() string { 755 if m != nil { 756 return m.From 757 } 758 return "" 759 } 760 761 type RequestDeliverTx struct { 762 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 763 XXX_NoUnkeyedLiteral struct{} `json:"-"` 764 XXX_unrecognized []byte `json:"-"` 765 XXX_sizecache int32 `json:"-"` 766 } 767 768 func (m *RequestDeliverTx) Reset() { *m = RequestDeliverTx{} } 769 func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) } 770 func (*RequestDeliverTx) ProtoMessage() {} 771 func (*RequestDeliverTx) Descriptor() ([]byte, []int) { 772 return fileDescriptor_9f1eaa49c51fa1ac, []int{9} 773 } 774 func (m *RequestDeliverTx) XXX_Unmarshal(b []byte) error { 775 return m.Unmarshal(b) 776 } 777 func (m *RequestDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 778 if deterministic { 779 return xxx_messageInfo_RequestDeliverTx.Marshal(b, m, deterministic) 780 } else { 781 b = b[:cap(b)] 782 n, err := m.MarshalToSizedBuffer(b) 783 if err != nil { 784 return nil, err 785 } 786 return b[:n], nil 787 } 788 } 789 func (m *RequestDeliverTx) XXX_Merge(src proto.Message) { 790 xxx_messageInfo_RequestDeliverTx.Merge(m, src) 791 } 792 func (m *RequestDeliverTx) XXX_Size() int { 793 return m.Size() 794 } 795 func (m *RequestDeliverTx) XXX_DiscardUnknown() { 796 xxx_messageInfo_RequestDeliverTx.DiscardUnknown(m) 797 } 798 799 var xxx_messageInfo_RequestDeliverTx proto.InternalMessageInfo 800 801 func (m *RequestDeliverTx) GetTx() []byte { 802 if m != nil { 803 return m.Tx 804 } 805 return nil 806 } 807 808 type RequestEndBlock struct { 809 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 810 XXX_NoUnkeyedLiteral struct{} `json:"-"` 811 XXX_unrecognized []byte `json:"-"` 812 XXX_sizecache int32 `json:"-"` 813 } 814 815 func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} } 816 func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) } 817 func (*RequestEndBlock) ProtoMessage() {} 818 func (*RequestEndBlock) Descriptor() ([]byte, []int) { 819 return fileDescriptor_9f1eaa49c51fa1ac, []int{10} 820 } 821 func (m *RequestEndBlock) XXX_Unmarshal(b []byte) error { 822 return m.Unmarshal(b) 823 } 824 func (m *RequestEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 825 if deterministic { 826 return xxx_messageInfo_RequestEndBlock.Marshal(b, m, deterministic) 827 } else { 828 b = b[:cap(b)] 829 n, err := m.MarshalToSizedBuffer(b) 830 if err != nil { 831 return nil, err 832 } 833 return b[:n], nil 834 } 835 } 836 func (m *RequestEndBlock) XXX_Merge(src proto.Message) { 837 xxx_messageInfo_RequestEndBlock.Merge(m, src) 838 } 839 func (m *RequestEndBlock) XXX_Size() int { 840 return m.Size() 841 } 842 func (m *RequestEndBlock) XXX_DiscardUnknown() { 843 xxx_messageInfo_RequestEndBlock.DiscardUnknown(m) 844 } 845 846 var xxx_messageInfo_RequestEndBlock proto.InternalMessageInfo 847 848 func (m *RequestEndBlock) GetHeight() int64 { 849 if m != nil { 850 return m.Height 851 } 852 return 0 853 } 854 855 func (m *RequestCommit) Reset() { *m = RequestCommit{} } 856 func (m *RequestCommit) String() string { return proto.CompactTextString(m) } 857 func (*RequestCommit) ProtoMessage() {} 858 func (*RequestCommit) Descriptor() ([]byte, []int) { 859 return fileDescriptor_9f1eaa49c51fa1ac, []int{12} 860 } 861 func (m *RequestCommit) XXX_Unmarshal(b []byte) error { 862 return m.Unmarshal(b) 863 } 864 func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 865 if deterministic { 866 return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic) 867 } else { 868 b = b[:cap(b)] 869 n, err := m.MarshalToSizedBuffer(b) 870 if err != nil { 871 return nil, err 872 } 873 return b[:n], nil 874 } 875 } 876 func (m *RequestCommit) XXX_Merge(src proto.Message) { 877 xxx_messageInfo_RequestCommit.Merge(m, src) 878 } 879 func (m *RequestCommit) XXX_Size() int { 880 return m.Size() 881 } 882 func (m *RequestCommit) XXX_DiscardUnknown() { 883 xxx_messageInfo_RequestCommit.DiscardUnknown(m) 884 } 885 886 var xxx_messageInfo_RequestCommit proto.InternalMessageInfo 887 888 type Response struct { 889 // Types that are valid to be assigned to Value: 890 // *Response_Exception 891 // *Response_Echo 892 // *Response_Flush 893 // *Response_Info 894 // *Response_SetOption 895 // *Response_InitChain 896 // *Response_Query 897 // *Response_BeginBlock 898 // *Response_CheckTx 899 // *Response_DeliverTx 900 // *Response_EndBlock 901 // *Response_Commit 902 Value isResponse_Value `protobuf_oneof:"value"` 903 XXX_NoUnkeyedLiteral struct{} `json:"-"` 904 XXX_unrecognized []byte `json:"-"` 905 XXX_sizecache int32 `json:"-"` 906 } 907 908 func (m *Response) Reset() { *m = Response{} } 909 func (m *Response) String() string { return proto.CompactTextString(m) } 910 func (*Response) ProtoMessage() {} 911 func (*Response) Descriptor() ([]byte, []int) { 912 return fileDescriptor_9f1eaa49c51fa1ac, []int{13} 913 } 914 func (m *Response) XXX_Unmarshal(b []byte) error { 915 return m.Unmarshal(b) 916 } 917 func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 918 if deterministic { 919 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 920 } else { 921 b = b[:cap(b)] 922 n, err := m.MarshalToSizedBuffer(b) 923 if err != nil { 924 return nil, err 925 } 926 return b[:n], nil 927 } 928 } 929 func (m *Response) XXX_Merge(src proto.Message) { 930 xxx_messageInfo_Response.Merge(m, src) 931 } 932 func (m *Response) XXX_Size() int { 933 return m.Size() 934 } 935 func (m *Response) XXX_DiscardUnknown() { 936 xxx_messageInfo_Response.DiscardUnknown(m) 937 } 938 939 var xxx_messageInfo_Response proto.InternalMessageInfo 940 941 type isResponse_Value interface { 942 isResponse_Value() 943 Equal(interface{}) bool 944 MarshalTo([]byte) (int, error) 945 Size() int 946 } 947 948 type Response_Exception struct { 949 Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,proto3,oneof" json:"exception,omitempty"` 950 } 951 type Response_Echo struct { 952 Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 953 } 954 type Response_Flush struct { 955 Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 956 } 957 type Response_Info struct { 958 Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof" json:"info,omitempty"` 959 } 960 type Response_SetOption struct { 961 SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 962 } 963 type Response_InitChain struct { 964 InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 965 } 966 type Response_Query struct { 967 Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof" json:"query,omitempty"` 968 } 969 type Response_BeginBlock struct { 970 BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 971 } 972 type Response_CheckTx struct { 973 CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 974 } 975 type Response_DeliverTx struct { 976 DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 977 } 978 type Response_EndBlock struct { 979 EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 980 } 981 type Response_Commit struct { 982 Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 983 } 984 985 func (*Response_Exception) isResponse_Value() {} 986 func (*Response_Echo) isResponse_Value() {} 987 func (*Response_Flush) isResponse_Value() {} 988 func (*Response_Info) isResponse_Value() {} 989 func (*Response_SetOption) isResponse_Value() {} 990 func (*Response_InitChain) isResponse_Value() {} 991 func (*Response_Query) isResponse_Value() {} 992 func (*Response_BeginBlock) isResponse_Value() {} 993 func (*Response_CheckTx) isResponse_Value() {} 994 func (*Response_DeliverTx) isResponse_Value() {} 995 func (*Response_EndBlock) isResponse_Value() {} 996 func (*Response_Commit) isResponse_Value() {} 997 998 func (m *Response) GetValue() isResponse_Value { 999 if m != nil { 1000 return m.Value 1001 } 1002 return nil 1003 } 1004 1005 func (m *Response) GetException() *ResponseException { 1006 if x, ok := m.GetValue().(*Response_Exception); ok { 1007 return x.Exception 1008 } 1009 return nil 1010 } 1011 1012 func (m *Response) GetEcho() *ResponseEcho { 1013 if x, ok := m.GetValue().(*Response_Echo); ok { 1014 return x.Echo 1015 } 1016 return nil 1017 } 1018 1019 func (m *Response) GetFlush() *ResponseFlush { 1020 if x, ok := m.GetValue().(*Response_Flush); ok { 1021 return x.Flush 1022 } 1023 return nil 1024 } 1025 1026 func (m *Response) GetInfo() *ResponseInfo { 1027 if x, ok := m.GetValue().(*Response_Info); ok { 1028 return x.Info 1029 } 1030 return nil 1031 } 1032 1033 func (m *Response) GetSetOption() *ResponseSetOption { 1034 if x, ok := m.GetValue().(*Response_SetOption); ok { 1035 return x.SetOption 1036 } 1037 return nil 1038 } 1039 1040 func (m *Response) GetInitChain() *ResponseInitChain { 1041 if x, ok := m.GetValue().(*Response_InitChain); ok { 1042 return x.InitChain 1043 } 1044 return nil 1045 } 1046 1047 func (m *Response) GetQuery() *ResponseQuery { 1048 if x, ok := m.GetValue().(*Response_Query); ok { 1049 return x.Query 1050 } 1051 return nil 1052 } 1053 1054 func (m *Response) GetBeginBlock() *ResponseBeginBlock { 1055 if x, ok := m.GetValue().(*Response_BeginBlock); ok { 1056 return x.BeginBlock 1057 } 1058 return nil 1059 } 1060 1061 func (m *Response) GetCheckTx() *ResponseCheckTx { 1062 if x, ok := m.GetValue().(*Response_CheckTx); ok { 1063 return x.CheckTx 1064 } 1065 return nil 1066 } 1067 1068 func (m *Response) GetDeliverTx() *ResponseDeliverTx { 1069 if x, ok := m.GetValue().(*Response_DeliverTx); ok { 1070 return x.DeliverTx 1071 } 1072 return nil 1073 } 1074 1075 func (m *Response) GetEndBlock() *ResponseEndBlock { 1076 if x, ok := m.GetValue().(*Response_EndBlock); ok { 1077 return x.EndBlock 1078 } 1079 return nil 1080 } 1081 1082 func (m *Response) GetCommit() *ResponseCommit { 1083 if x, ok := m.GetValue().(*Response_Commit); ok { 1084 return x.Commit 1085 } 1086 return nil 1087 } 1088 1089 // XXX_OneofWrappers is for the internal use of the proto package. 1090 func (*Response) XXX_OneofWrappers() []interface{} { 1091 return []interface{}{ 1092 (*Response_Exception)(nil), 1093 (*Response_Echo)(nil), 1094 (*Response_Flush)(nil), 1095 (*Response_Info)(nil), 1096 (*Response_SetOption)(nil), 1097 (*Response_InitChain)(nil), 1098 (*Response_Query)(nil), 1099 (*Response_BeginBlock)(nil), 1100 (*Response_CheckTx)(nil), 1101 (*Response_DeliverTx)(nil), 1102 (*Response_EndBlock)(nil), 1103 (*Response_Commit)(nil), 1104 } 1105 } 1106 1107 // nondeterministic 1108 type ResponseException struct { 1109 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` 1110 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1111 XXX_unrecognized []byte `json:"-"` 1112 XXX_sizecache int32 `json:"-"` 1113 } 1114 1115 func (m *ResponseException) Reset() { *m = ResponseException{} } 1116 func (m *ResponseException) String() string { return proto.CompactTextString(m) } 1117 func (*ResponseException) ProtoMessage() {} 1118 func (*ResponseException) Descriptor() ([]byte, []int) { 1119 return fileDescriptor_9f1eaa49c51fa1ac, []int{14} 1120 } 1121 func (m *ResponseException) XXX_Unmarshal(b []byte) error { 1122 return m.Unmarshal(b) 1123 } 1124 func (m *ResponseException) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1125 if deterministic { 1126 return xxx_messageInfo_ResponseException.Marshal(b, m, deterministic) 1127 } else { 1128 b = b[:cap(b)] 1129 n, err := m.MarshalToSizedBuffer(b) 1130 if err != nil { 1131 return nil, err 1132 } 1133 return b[:n], nil 1134 } 1135 } 1136 func (m *ResponseException) XXX_Merge(src proto.Message) { 1137 xxx_messageInfo_ResponseException.Merge(m, src) 1138 } 1139 func (m *ResponseException) XXX_Size() int { 1140 return m.Size() 1141 } 1142 func (m *ResponseException) XXX_DiscardUnknown() { 1143 xxx_messageInfo_ResponseException.DiscardUnknown(m) 1144 } 1145 1146 var xxx_messageInfo_ResponseException proto.InternalMessageInfo 1147 1148 func (m *ResponseException) GetError() string { 1149 if m != nil { 1150 return m.Error 1151 } 1152 return "" 1153 } 1154 1155 type ResponseEcho struct { 1156 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 1157 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1158 XXX_unrecognized []byte `json:"-"` 1159 XXX_sizecache int32 `json:"-"` 1160 } 1161 1162 func (m *ResponseEcho) Reset() { *m = ResponseEcho{} } 1163 func (m *ResponseEcho) String() string { return proto.CompactTextString(m) } 1164 func (*ResponseEcho) ProtoMessage() {} 1165 func (*ResponseEcho) Descriptor() ([]byte, []int) { 1166 return fileDescriptor_9f1eaa49c51fa1ac, []int{15} 1167 } 1168 func (m *ResponseEcho) XXX_Unmarshal(b []byte) error { 1169 return m.Unmarshal(b) 1170 } 1171 func (m *ResponseEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1172 if deterministic { 1173 return xxx_messageInfo_ResponseEcho.Marshal(b, m, deterministic) 1174 } else { 1175 b = b[:cap(b)] 1176 n, err := m.MarshalToSizedBuffer(b) 1177 if err != nil { 1178 return nil, err 1179 } 1180 return b[:n], nil 1181 } 1182 } 1183 func (m *ResponseEcho) XXX_Merge(src proto.Message) { 1184 xxx_messageInfo_ResponseEcho.Merge(m, src) 1185 } 1186 func (m *ResponseEcho) XXX_Size() int { 1187 return m.Size() 1188 } 1189 func (m *ResponseEcho) XXX_DiscardUnknown() { 1190 xxx_messageInfo_ResponseEcho.DiscardUnknown(m) 1191 } 1192 1193 var xxx_messageInfo_ResponseEcho proto.InternalMessageInfo 1194 1195 func (m *ResponseEcho) GetMessage() string { 1196 if m != nil { 1197 return m.Message 1198 } 1199 return "" 1200 } 1201 1202 type ResponseFlush struct { 1203 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1204 XXX_unrecognized []byte `json:"-"` 1205 XXX_sizecache int32 `json:"-"` 1206 } 1207 1208 func (m *ResponseFlush) Reset() { *m = ResponseFlush{} } 1209 func (m *ResponseFlush) String() string { return proto.CompactTextString(m) } 1210 func (*ResponseFlush) ProtoMessage() {} 1211 func (*ResponseFlush) Descriptor() ([]byte, []int) { 1212 return fileDescriptor_9f1eaa49c51fa1ac, []int{16} 1213 } 1214 func (m *ResponseFlush) XXX_Unmarshal(b []byte) error { 1215 return m.Unmarshal(b) 1216 } 1217 func (m *ResponseFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1218 if deterministic { 1219 return xxx_messageInfo_ResponseFlush.Marshal(b, m, deterministic) 1220 } else { 1221 b = b[:cap(b)] 1222 n, err := m.MarshalToSizedBuffer(b) 1223 if err != nil { 1224 return nil, err 1225 } 1226 return b[:n], nil 1227 } 1228 } 1229 func (m *ResponseFlush) XXX_Merge(src proto.Message) { 1230 xxx_messageInfo_ResponseFlush.Merge(m, src) 1231 } 1232 func (m *ResponseFlush) XXX_Size() int { 1233 return m.Size() 1234 } 1235 func (m *ResponseFlush) XXX_DiscardUnknown() { 1236 xxx_messageInfo_ResponseFlush.DiscardUnknown(m) 1237 } 1238 1239 var xxx_messageInfo_ResponseFlush proto.InternalMessageInfo 1240 1241 type ResponseInfo struct { 1242 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 1243 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 1244 AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` 1245 LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` 1246 LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"` 1247 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1248 XXX_unrecognized []byte `json:"-"` 1249 XXX_sizecache int32 `json:"-"` 1250 } 1251 1252 func (m *ResponseInfo) Reset() { *m = ResponseInfo{} } 1253 func (m *ResponseInfo) String() string { return proto.CompactTextString(m) } 1254 func (*ResponseInfo) ProtoMessage() {} 1255 func (*ResponseInfo) Descriptor() ([]byte, []int) { 1256 return fileDescriptor_9f1eaa49c51fa1ac, []int{17} 1257 } 1258 func (m *ResponseInfo) XXX_Unmarshal(b []byte) error { 1259 return m.Unmarshal(b) 1260 } 1261 func (m *ResponseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1262 if deterministic { 1263 return xxx_messageInfo_ResponseInfo.Marshal(b, m, deterministic) 1264 } else { 1265 b = b[:cap(b)] 1266 n, err := m.MarshalToSizedBuffer(b) 1267 if err != nil { 1268 return nil, err 1269 } 1270 return b[:n], nil 1271 } 1272 } 1273 func (m *ResponseInfo) XXX_Merge(src proto.Message) { 1274 xxx_messageInfo_ResponseInfo.Merge(m, src) 1275 } 1276 func (m *ResponseInfo) XXX_Size() int { 1277 return m.Size() 1278 } 1279 func (m *ResponseInfo) XXX_DiscardUnknown() { 1280 xxx_messageInfo_ResponseInfo.DiscardUnknown(m) 1281 } 1282 1283 var xxx_messageInfo_ResponseInfo proto.InternalMessageInfo 1284 1285 func (m *ResponseInfo) GetData() string { 1286 if m != nil { 1287 return m.Data 1288 } 1289 return "" 1290 } 1291 1292 func (m *ResponseInfo) GetVersion() string { 1293 if m != nil { 1294 return m.Version 1295 } 1296 return "" 1297 } 1298 1299 func (m *ResponseInfo) GetAppVersion() uint64 { 1300 if m != nil { 1301 return m.AppVersion 1302 } 1303 return 0 1304 } 1305 1306 func (m *ResponseInfo) GetLastBlockHeight() int64 { 1307 if m != nil { 1308 return m.LastBlockHeight 1309 } 1310 return 0 1311 } 1312 1313 func (m *ResponseInfo) GetLastBlockAppHash() []byte { 1314 if m != nil { 1315 return m.LastBlockAppHash 1316 } 1317 return nil 1318 } 1319 1320 // nondeterministic 1321 type ResponseSetOption struct { 1322 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1323 // bytes data = 2; 1324 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1325 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1326 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1327 XXX_unrecognized []byte `json:"-"` 1328 XXX_sizecache int32 `json:"-"` 1329 } 1330 1331 func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} } 1332 func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) } 1333 func (*ResponseSetOption) ProtoMessage() {} 1334 func (*ResponseSetOption) Descriptor() ([]byte, []int) { 1335 return fileDescriptor_9f1eaa49c51fa1ac, []int{18} 1336 } 1337 func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error { 1338 return m.Unmarshal(b) 1339 } 1340 func (m *ResponseSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1341 if deterministic { 1342 return xxx_messageInfo_ResponseSetOption.Marshal(b, m, deterministic) 1343 } else { 1344 b = b[:cap(b)] 1345 n, err := m.MarshalToSizedBuffer(b) 1346 if err != nil { 1347 return nil, err 1348 } 1349 return b[:n], nil 1350 } 1351 } 1352 func (m *ResponseSetOption) XXX_Merge(src proto.Message) { 1353 xxx_messageInfo_ResponseSetOption.Merge(m, src) 1354 } 1355 func (m *ResponseSetOption) XXX_Size() int { 1356 return m.Size() 1357 } 1358 func (m *ResponseSetOption) XXX_DiscardUnknown() { 1359 xxx_messageInfo_ResponseSetOption.DiscardUnknown(m) 1360 } 1361 1362 var xxx_messageInfo_ResponseSetOption proto.InternalMessageInfo 1363 1364 func (m *ResponseSetOption) GetCode() uint32 { 1365 if m != nil { 1366 return m.Code 1367 } 1368 return 0 1369 } 1370 1371 func (m *ResponseSetOption) GetLog() string { 1372 if m != nil { 1373 return m.Log 1374 } 1375 return "" 1376 } 1377 1378 func (m *ResponseSetOption) GetInfo() string { 1379 if m != nil { 1380 return m.Info 1381 } 1382 return "" 1383 } 1384 1385 type ResponseInitChain struct { 1386 ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` 1387 Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators"` 1388 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1389 XXX_unrecognized []byte `json:"-"` 1390 XXX_sizecache int32 `json:"-"` 1391 } 1392 1393 func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} } 1394 func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) } 1395 func (*ResponseInitChain) ProtoMessage() {} 1396 func (*ResponseInitChain) Descriptor() ([]byte, []int) { 1397 return fileDescriptor_9f1eaa49c51fa1ac, []int{19} 1398 } 1399 func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error { 1400 return m.Unmarshal(b) 1401 } 1402 func (m *ResponseInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1403 if deterministic { 1404 return xxx_messageInfo_ResponseInitChain.Marshal(b, m, deterministic) 1405 } else { 1406 b = b[:cap(b)] 1407 n, err := m.MarshalToSizedBuffer(b) 1408 if err != nil { 1409 return nil, err 1410 } 1411 return b[:n], nil 1412 } 1413 } 1414 func (m *ResponseInitChain) XXX_Merge(src proto.Message) { 1415 xxx_messageInfo_ResponseInitChain.Merge(m, src) 1416 } 1417 func (m *ResponseInitChain) XXX_Size() int { 1418 return m.Size() 1419 } 1420 func (m *ResponseInitChain) XXX_DiscardUnknown() { 1421 xxx_messageInfo_ResponseInitChain.DiscardUnknown(m) 1422 } 1423 1424 var xxx_messageInfo_ResponseInitChain proto.InternalMessageInfo 1425 1426 func (m *ResponseInitChain) GetConsensusParams() *ConsensusParams { 1427 if m != nil { 1428 return m.ConsensusParams 1429 } 1430 return nil 1431 } 1432 1433 func (m *ResponseInitChain) GetValidators() []ValidatorUpdate { 1434 if m != nil { 1435 return m.Validators 1436 } 1437 return nil 1438 } 1439 1440 type ResponseQuery struct { 1441 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1442 // bytes data = 2; // use "value" instead. 1443 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1444 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1445 Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` 1446 Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` 1447 Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` 1448 Proof *merkle.Proof `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` 1449 Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` 1450 Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"` 1451 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1452 XXX_unrecognized []byte `json:"-"` 1453 XXX_sizecache int32 `json:"-"` 1454 } 1455 1456 func (m *ResponseQuery) Reset() { *m = ResponseQuery{} } 1457 func (m *ResponseQuery) String() string { return proto.CompactTextString(m) } 1458 func (*ResponseQuery) ProtoMessage() {} 1459 func (*ResponseQuery) Descriptor() ([]byte, []int) { 1460 return fileDescriptor_9f1eaa49c51fa1ac, []int{20} 1461 } 1462 func (m *ResponseQuery) XXX_Unmarshal(b []byte) error { 1463 return m.Unmarshal(b) 1464 } 1465 func (m *ResponseQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1466 if deterministic { 1467 return xxx_messageInfo_ResponseQuery.Marshal(b, m, deterministic) 1468 } else { 1469 b = b[:cap(b)] 1470 n, err := m.MarshalToSizedBuffer(b) 1471 if err != nil { 1472 return nil, err 1473 } 1474 return b[:n], nil 1475 } 1476 } 1477 func (m *ResponseQuery) XXX_Merge(src proto.Message) { 1478 xxx_messageInfo_ResponseQuery.Merge(m, src) 1479 } 1480 func (m *ResponseQuery) XXX_Size() int { 1481 return m.Size() 1482 } 1483 func (m *ResponseQuery) XXX_DiscardUnknown() { 1484 xxx_messageInfo_ResponseQuery.DiscardUnknown(m) 1485 } 1486 1487 var xxx_messageInfo_ResponseQuery proto.InternalMessageInfo 1488 1489 func (m *ResponseQuery) GetCode() uint32 { 1490 if m != nil { 1491 return m.Code 1492 } 1493 return 0 1494 } 1495 1496 func (m *ResponseQuery) GetLog() string { 1497 if m != nil { 1498 return m.Log 1499 } 1500 return "" 1501 } 1502 1503 func (m *ResponseQuery) GetInfo() string { 1504 if m != nil { 1505 return m.Info 1506 } 1507 return "" 1508 } 1509 1510 func (m *ResponseQuery) GetIndex() int64 { 1511 if m != nil { 1512 return m.Index 1513 } 1514 return 0 1515 } 1516 1517 func (m *ResponseQuery) GetKey() []byte { 1518 if m != nil { 1519 return m.Key 1520 } 1521 return nil 1522 } 1523 1524 func (m *ResponseQuery) GetValue() []byte { 1525 if m != nil { 1526 return m.Value 1527 } 1528 return nil 1529 } 1530 1531 func (m *ResponseQuery) GetProof() *merkle.Proof { 1532 if m != nil { 1533 return m.Proof 1534 } 1535 return nil 1536 } 1537 1538 func (m *ResponseQuery) GetHeight() int64 { 1539 if m != nil { 1540 return m.Height 1541 } 1542 return 0 1543 } 1544 1545 func (m *ResponseQuery) GetCodespace() string { 1546 if m != nil { 1547 return m.Codespace 1548 } 1549 return "" 1550 } 1551 1552 type ResponseBeginBlock struct { 1553 Events []Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` 1554 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1555 XXX_unrecognized []byte `json:"-"` 1556 XXX_sizecache int32 `json:"-"` 1557 } 1558 1559 func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} } 1560 func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) } 1561 func (*ResponseBeginBlock) ProtoMessage() {} 1562 func (*ResponseBeginBlock) Descriptor() ([]byte, []int) { 1563 return fileDescriptor_9f1eaa49c51fa1ac, []int{21} 1564 } 1565 func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error { 1566 return m.Unmarshal(b) 1567 } 1568 func (m *ResponseBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1569 if deterministic { 1570 return xxx_messageInfo_ResponseBeginBlock.Marshal(b, m, deterministic) 1571 } else { 1572 b = b[:cap(b)] 1573 n, err := m.MarshalToSizedBuffer(b) 1574 if err != nil { 1575 return nil, err 1576 } 1577 return b[:n], nil 1578 } 1579 } 1580 func (m *ResponseBeginBlock) XXX_Merge(src proto.Message) { 1581 xxx_messageInfo_ResponseBeginBlock.Merge(m, src) 1582 } 1583 func (m *ResponseBeginBlock) XXX_Size() int { 1584 return m.Size() 1585 } 1586 func (m *ResponseBeginBlock) XXX_DiscardUnknown() { 1587 xxx_messageInfo_ResponseBeginBlock.DiscardUnknown(m) 1588 } 1589 1590 var xxx_messageInfo_ResponseBeginBlock proto.InternalMessageInfo 1591 1592 func (m *ResponseBeginBlock) GetEvents() []Event { 1593 if m != nil { 1594 return m.Events 1595 } 1596 return nil 1597 } 1598 1599 type ResponseCheckTx struct { 1600 Tx TxEssentials 1601 SenderNonce uint64 1602 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1603 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1604 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1605 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1606 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` 1607 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` 1608 Events []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 1609 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 1610 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1611 XXX_unrecognized []byte `json:"-"` 1612 XXX_sizecache int32 `json:"-"` 1613 } 1614 1615 func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} } 1616 func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) } 1617 func (*ResponseCheckTx) ProtoMessage() {} 1618 func (*ResponseCheckTx) Descriptor() ([]byte, []int) { 1619 return fileDescriptor_9f1eaa49c51fa1ac, []int{22} 1620 } 1621 func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error { 1622 return m.Unmarshal(b) 1623 } 1624 func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1625 if deterministic { 1626 return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic) 1627 } else { 1628 b = b[:cap(b)] 1629 n, err := m.MarshalToSizedBuffer(b) 1630 if err != nil { 1631 return nil, err 1632 } 1633 return b[:n], nil 1634 } 1635 } 1636 func (m *ResponseCheckTx) XXX_Merge(src proto.Message) { 1637 xxx_messageInfo_ResponseCheckTx.Merge(m, src) 1638 } 1639 func (m *ResponseCheckTx) XXX_Size() int { 1640 return m.Size() 1641 } 1642 func (m *ResponseCheckTx) XXX_DiscardUnknown() { 1643 xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m) 1644 } 1645 1646 var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo 1647 1648 func (m *ResponseCheckTx) GetCode() uint32 { 1649 if m != nil { 1650 return m.Code 1651 } 1652 return 0 1653 } 1654 1655 func (m *ResponseCheckTx) GetData() []byte { 1656 if m != nil { 1657 return m.Data 1658 } 1659 return nil 1660 } 1661 1662 func (m *ResponseCheckTx) GetLog() string { 1663 if m != nil { 1664 return m.Log 1665 } 1666 return "" 1667 } 1668 1669 func (m *ResponseCheckTx) GetInfo() string { 1670 if m != nil { 1671 return m.Info 1672 } 1673 return "" 1674 } 1675 1676 func (m *ResponseCheckTx) GetGasWanted() int64 { 1677 if m != nil { 1678 return m.GasWanted 1679 } 1680 return 0 1681 } 1682 1683 func (m *ResponseCheckTx) GetGasUsed() int64 { 1684 if m != nil { 1685 return m.GasUsed 1686 } 1687 return 0 1688 } 1689 1690 func (m *ResponseCheckTx) GetEvents() []Event { 1691 if m != nil { 1692 return m.Events 1693 } 1694 return nil 1695 } 1696 1697 func (m *ResponseCheckTx) GetCodespace() string { 1698 if m != nil { 1699 return m.Codespace 1700 } 1701 return "" 1702 } 1703 1704 type ResponseDeliverTx struct { 1705 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1706 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1707 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1708 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1709 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gas_wanted,proto3" json:"gas_wanted,omitempty"` 1710 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gas_used,proto3" json:"gas_used,omitempty"` 1711 Events []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 1712 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 1713 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1714 XXX_unrecognized []byte `json:"-"` 1715 XXX_sizecache int32 `json:"-"` 1716 } 1717 1718 func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} } 1719 func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) } 1720 func (*ResponseDeliverTx) ProtoMessage() {} 1721 func (*ResponseDeliverTx) Descriptor() ([]byte, []int) { 1722 return fileDescriptor_9f1eaa49c51fa1ac, []int{23} 1723 } 1724 func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error { 1725 return m.Unmarshal(b) 1726 } 1727 func (m *ResponseDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1728 if deterministic { 1729 return xxx_messageInfo_ResponseDeliverTx.Marshal(b, m, deterministic) 1730 } else { 1731 b = b[:cap(b)] 1732 n, err := m.MarshalToSizedBuffer(b) 1733 if err != nil { 1734 return nil, err 1735 } 1736 return b[:n], nil 1737 } 1738 } 1739 func (m *ResponseDeliverTx) XXX_Merge(src proto.Message) { 1740 xxx_messageInfo_ResponseDeliverTx.Merge(m, src) 1741 } 1742 func (m *ResponseDeliverTx) XXX_Size() int { 1743 return m.Size() 1744 } 1745 func (m *ResponseDeliverTx) XXX_DiscardUnknown() { 1746 xxx_messageInfo_ResponseDeliverTx.DiscardUnknown(m) 1747 } 1748 1749 var xxx_messageInfo_ResponseDeliverTx proto.InternalMessageInfo 1750 1751 func (m *ResponseDeliverTx) GetCode() uint32 { 1752 if m != nil { 1753 return m.Code 1754 } 1755 return 0 1756 } 1757 1758 func (m *ResponseDeliverTx) GetData() []byte { 1759 if m != nil { 1760 return m.Data 1761 } 1762 return nil 1763 } 1764 1765 func (m *ResponseDeliverTx) GetLog() string { 1766 if m != nil { 1767 return m.Log 1768 } 1769 return "" 1770 } 1771 1772 func (m *ResponseDeliverTx) GetInfo() string { 1773 if m != nil { 1774 return m.Info 1775 } 1776 return "" 1777 } 1778 1779 func (m *ResponseDeliverTx) GetGasWanted() int64 { 1780 if m != nil { 1781 return m.GasWanted 1782 } 1783 return 0 1784 } 1785 1786 func (m *ResponseDeliverTx) GetGasUsed() int64 { 1787 if m != nil { 1788 return m.GasUsed 1789 } 1790 return 0 1791 } 1792 1793 func (m *ResponseDeliverTx) GetEvents() []Event { 1794 if m != nil { 1795 return m.Events 1796 } 1797 return nil 1798 } 1799 1800 func (m *ResponseDeliverTx) GetCodespace() string { 1801 if m != nil { 1802 return m.Codespace 1803 } 1804 return "" 1805 } 1806 1807 type ResponseEndBlock struct { 1808 ValidatorUpdates []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates"` 1809 ConsensusParamUpdates *ConsensusParams `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates,proto3" json:"consensus_param_updates,omitempty"` 1810 Events []Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` 1811 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1812 XXX_unrecognized []byte `json:"-"` 1813 XXX_sizecache int32 `json:"-"` 1814 } 1815 1816 func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} } 1817 func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) } 1818 func (*ResponseEndBlock) ProtoMessage() {} 1819 func (*ResponseEndBlock) Descriptor() ([]byte, []int) { 1820 return fileDescriptor_9f1eaa49c51fa1ac, []int{24} 1821 } 1822 func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error { 1823 return m.Unmarshal(b) 1824 } 1825 func (m *ResponseEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1826 if deterministic { 1827 return xxx_messageInfo_ResponseEndBlock.Marshal(b, m, deterministic) 1828 } else { 1829 b = b[:cap(b)] 1830 n, err := m.MarshalToSizedBuffer(b) 1831 if err != nil { 1832 return nil, err 1833 } 1834 return b[:n], nil 1835 } 1836 } 1837 func (m *ResponseEndBlock) XXX_Merge(src proto.Message) { 1838 xxx_messageInfo_ResponseEndBlock.Merge(m, src) 1839 } 1840 func (m *ResponseEndBlock) XXX_Size() int { 1841 return m.Size() 1842 } 1843 func (m *ResponseEndBlock) XXX_DiscardUnknown() { 1844 xxx_messageInfo_ResponseEndBlock.DiscardUnknown(m) 1845 } 1846 1847 var xxx_messageInfo_ResponseEndBlock proto.InternalMessageInfo 1848 1849 func (m *ResponseEndBlock) GetValidatorUpdates() []ValidatorUpdate { 1850 if m != nil { 1851 return m.ValidatorUpdates 1852 } 1853 return nil 1854 } 1855 1856 func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams { 1857 if m != nil { 1858 return m.ConsensusParamUpdates 1859 } 1860 return nil 1861 } 1862 1863 func (m *ResponseEndBlock) GetEvents() []Event { 1864 if m != nil { 1865 return m.Events 1866 } 1867 return nil 1868 } 1869 1870 func (m *ResponseCommit) Reset() { *m = ResponseCommit{} } 1871 func (m *ResponseCommit) String() string { return proto.CompactTextString(m) } 1872 func (*ResponseCommit) ProtoMessage() {} 1873 func (*ResponseCommit) Descriptor() ([]byte, []int) { 1874 return fileDescriptor_9f1eaa49c51fa1ac, []int{25} 1875 } 1876 func (m *ResponseCommit) XXX_Unmarshal(b []byte) error { 1877 return m.Unmarshal(b) 1878 } 1879 func (m *ResponseCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1880 if deterministic { 1881 return xxx_messageInfo_ResponseCommit.Marshal(b, m, deterministic) 1882 } else { 1883 b = b[:cap(b)] 1884 n, err := m.MarshalToSizedBuffer(b) 1885 if err != nil { 1886 return nil, err 1887 } 1888 return b[:n], nil 1889 } 1890 } 1891 func (m *ResponseCommit) XXX_Merge(src proto.Message) { 1892 xxx_messageInfo_ResponseCommit.Merge(m, src) 1893 } 1894 func (m *ResponseCommit) XXX_Size() int { 1895 return m.Size() 1896 } 1897 func (m *ResponseCommit) XXX_DiscardUnknown() { 1898 xxx_messageInfo_ResponseCommit.DiscardUnknown(m) 1899 } 1900 1901 var xxx_messageInfo_ResponseCommit proto.InternalMessageInfo 1902 1903 func (m *ResponseCommit) GetData() []byte { 1904 if m != nil { 1905 return m.Data 1906 } 1907 return nil 1908 } 1909 1910 func (m *ResponseCommit) GetRetainHeight() int64 { 1911 if m != nil { 1912 return m.RetainHeight 1913 } 1914 return 0 1915 } 1916 1917 // ConsensusParams contains all consensus-relevant parameters 1918 // that can be adjusted by the abci app 1919 type ConsensusParams struct { 1920 Block *BlockParams `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` 1921 Evidence *EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"` 1922 Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` 1923 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1924 XXX_unrecognized []byte `json:"-"` 1925 XXX_sizecache int32 `json:"-"` 1926 } 1927 1928 func (m *ConsensusParams) Reset() { *m = ConsensusParams{} } 1929 func (m *ConsensusParams) String() string { return proto.CompactTextString(m) } 1930 func (*ConsensusParams) ProtoMessage() {} 1931 func (*ConsensusParams) Descriptor() ([]byte, []int) { 1932 return fileDescriptor_9f1eaa49c51fa1ac, []int{26} 1933 } 1934 func (m *ConsensusParams) XXX_Unmarshal(b []byte) error { 1935 return m.Unmarshal(b) 1936 } 1937 func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1938 if deterministic { 1939 return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic) 1940 } else { 1941 b = b[:cap(b)] 1942 n, err := m.MarshalToSizedBuffer(b) 1943 if err != nil { 1944 return nil, err 1945 } 1946 return b[:n], nil 1947 } 1948 } 1949 func (m *ConsensusParams) XXX_Merge(src proto.Message) { 1950 xxx_messageInfo_ConsensusParams.Merge(m, src) 1951 } 1952 func (m *ConsensusParams) XXX_Size() int { 1953 return m.Size() 1954 } 1955 func (m *ConsensusParams) XXX_DiscardUnknown() { 1956 xxx_messageInfo_ConsensusParams.DiscardUnknown(m) 1957 } 1958 1959 var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo 1960 1961 func (m *ConsensusParams) GetBlock() *BlockParams { 1962 if m != nil { 1963 return m.Block 1964 } 1965 return nil 1966 } 1967 1968 func (m *ConsensusParams) GetEvidence() *EvidenceParams { 1969 if m != nil { 1970 return m.Evidence 1971 } 1972 return nil 1973 } 1974 1975 func (m *ConsensusParams) GetValidator() *ValidatorParams { 1976 if m != nil { 1977 return m.Validator 1978 } 1979 return nil 1980 } 1981 1982 // BlockParams contains limits on the block size. 1983 type BlockParams struct { 1984 // Note: must be greater than 0 1985 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` 1986 // Note: must be greater or equal to -1 1987 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` 1988 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1989 XXX_unrecognized []byte `json:"-"` 1990 XXX_sizecache int32 `json:"-"` 1991 } 1992 1993 func (m *BlockParams) Reset() { *m = BlockParams{} } 1994 func (m *BlockParams) String() string { return proto.CompactTextString(m) } 1995 func (*BlockParams) ProtoMessage() {} 1996 func (*BlockParams) Descriptor() ([]byte, []int) { 1997 return fileDescriptor_9f1eaa49c51fa1ac, []int{27} 1998 } 1999 func (m *BlockParams) XXX_Unmarshal(b []byte) error { 2000 return m.Unmarshal(b) 2001 } 2002 func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2003 if deterministic { 2004 return xxx_messageInfo_BlockParams.Marshal(b, m, deterministic) 2005 } else { 2006 b = b[:cap(b)] 2007 n, err := m.MarshalToSizedBuffer(b) 2008 if err != nil { 2009 return nil, err 2010 } 2011 return b[:n], nil 2012 } 2013 } 2014 func (m *BlockParams) XXX_Merge(src proto.Message) { 2015 xxx_messageInfo_BlockParams.Merge(m, src) 2016 } 2017 func (m *BlockParams) XXX_Size() int { 2018 return m.Size() 2019 } 2020 func (m *BlockParams) XXX_DiscardUnknown() { 2021 xxx_messageInfo_BlockParams.DiscardUnknown(m) 2022 } 2023 2024 var xxx_messageInfo_BlockParams proto.InternalMessageInfo 2025 2026 func (m *BlockParams) GetMaxBytes() int64 { 2027 if m != nil { 2028 return m.MaxBytes 2029 } 2030 return 0 2031 } 2032 2033 func (m *BlockParams) GetMaxGas() int64 { 2034 if m != nil { 2035 return m.MaxGas 2036 } 2037 return 0 2038 } 2039 2040 type EvidenceParams struct { 2041 // Note: must be greater than 0 2042 MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"` 2043 MaxAgeDuration time.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3,stdduration" json:"max_age_duration"` 2044 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2045 XXX_unrecognized []byte `json:"-"` 2046 XXX_sizecache int32 `json:"-"` 2047 } 2048 2049 func (m *EvidenceParams) Reset() { *m = EvidenceParams{} } 2050 func (m *EvidenceParams) String() string { return proto.CompactTextString(m) } 2051 func (*EvidenceParams) ProtoMessage() {} 2052 func (*EvidenceParams) Descriptor() ([]byte, []int) { 2053 return fileDescriptor_9f1eaa49c51fa1ac, []int{28} 2054 } 2055 func (m *EvidenceParams) XXX_Unmarshal(b []byte) error { 2056 return m.Unmarshal(b) 2057 } 2058 func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2059 if deterministic { 2060 return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic) 2061 } else { 2062 b = b[:cap(b)] 2063 n, err := m.MarshalToSizedBuffer(b) 2064 if err != nil { 2065 return nil, err 2066 } 2067 return b[:n], nil 2068 } 2069 } 2070 func (m *EvidenceParams) XXX_Merge(src proto.Message) { 2071 xxx_messageInfo_EvidenceParams.Merge(m, src) 2072 } 2073 func (m *EvidenceParams) XXX_Size() int { 2074 return m.Size() 2075 } 2076 func (m *EvidenceParams) XXX_DiscardUnknown() { 2077 xxx_messageInfo_EvidenceParams.DiscardUnknown(m) 2078 } 2079 2080 var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo 2081 2082 func (m *EvidenceParams) GetMaxAgeNumBlocks() int64 { 2083 if m != nil { 2084 return m.MaxAgeNumBlocks 2085 } 2086 return 0 2087 } 2088 2089 func (m *EvidenceParams) GetMaxAgeDuration() time.Duration { 2090 if m != nil { 2091 return m.MaxAgeDuration 2092 } 2093 return 0 2094 } 2095 2096 // ValidatorParams contains limits on validators. 2097 type ValidatorParams struct { 2098 PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"` 2099 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2100 XXX_unrecognized []byte `json:"-"` 2101 XXX_sizecache int32 `json:"-"` 2102 } 2103 2104 func (m *ValidatorParams) Reset() { *m = ValidatorParams{} } 2105 func (m *ValidatorParams) String() string { return proto.CompactTextString(m) } 2106 func (*ValidatorParams) ProtoMessage() {} 2107 func (*ValidatorParams) Descriptor() ([]byte, []int) { 2108 return fileDescriptor_9f1eaa49c51fa1ac, []int{29} 2109 } 2110 func (m *ValidatorParams) XXX_Unmarshal(b []byte) error { 2111 return m.Unmarshal(b) 2112 } 2113 func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2114 if deterministic { 2115 return xxx_messageInfo_ValidatorParams.Marshal(b, m, deterministic) 2116 } else { 2117 b = b[:cap(b)] 2118 n, err := m.MarshalToSizedBuffer(b) 2119 if err != nil { 2120 return nil, err 2121 } 2122 return b[:n], nil 2123 } 2124 } 2125 func (m *ValidatorParams) XXX_Merge(src proto.Message) { 2126 xxx_messageInfo_ValidatorParams.Merge(m, src) 2127 } 2128 func (m *ValidatorParams) XXX_Size() int { 2129 return m.Size() 2130 } 2131 func (m *ValidatorParams) XXX_DiscardUnknown() { 2132 xxx_messageInfo_ValidatorParams.DiscardUnknown(m) 2133 } 2134 2135 var xxx_messageInfo_ValidatorParams proto.InternalMessageInfo 2136 2137 func (m *ValidatorParams) GetPubKeyTypes() []string { 2138 if m != nil { 2139 return m.PubKeyTypes 2140 } 2141 return nil 2142 } 2143 2144 type LastCommitInfo struct { 2145 Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` 2146 Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes"` 2147 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2148 XXX_unrecognized []byte `json:"-"` 2149 XXX_sizecache int32 `json:"-"` 2150 } 2151 2152 func (m *LastCommitInfo) Reset() { *m = LastCommitInfo{} } 2153 func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) } 2154 func (*LastCommitInfo) ProtoMessage() {} 2155 func (*LastCommitInfo) Descriptor() ([]byte, []int) { 2156 return fileDescriptor_9f1eaa49c51fa1ac, []int{30} 2157 } 2158 func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error { 2159 return m.Unmarshal(b) 2160 } 2161 func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2162 if deterministic { 2163 return xxx_messageInfo_LastCommitInfo.Marshal(b, m, deterministic) 2164 } else { 2165 b = b[:cap(b)] 2166 n, err := m.MarshalToSizedBuffer(b) 2167 if err != nil { 2168 return nil, err 2169 } 2170 return b[:n], nil 2171 } 2172 } 2173 func (m *LastCommitInfo) XXX_Merge(src proto.Message) { 2174 xxx_messageInfo_LastCommitInfo.Merge(m, src) 2175 } 2176 func (m *LastCommitInfo) XXX_Size() int { 2177 return m.Size() 2178 } 2179 func (m *LastCommitInfo) XXX_DiscardUnknown() { 2180 xxx_messageInfo_LastCommitInfo.DiscardUnknown(m) 2181 } 2182 2183 var xxx_messageInfo_LastCommitInfo proto.InternalMessageInfo 2184 2185 func (m *LastCommitInfo) GetRound() int32 { 2186 if m != nil { 2187 return m.Round 2188 } 2189 return 0 2190 } 2191 2192 func (m *LastCommitInfo) GetVotes() []VoteInfo { 2193 if m != nil { 2194 return m.Votes 2195 } 2196 return nil 2197 } 2198 2199 type Event struct { 2200 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2201 Attributes []kv.Pair `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` 2202 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2203 XXX_unrecognized []byte `json:"-"` 2204 XXX_sizecache int32 `json:"-"` 2205 } 2206 2207 func (m *Event) Reset() { *m = Event{} } 2208 func (m *Event) String() string { return proto.CompactTextString(m) } 2209 func (*Event) ProtoMessage() {} 2210 func (*Event) Descriptor() ([]byte, []int) { 2211 return fileDescriptor_9f1eaa49c51fa1ac, []int{31} 2212 } 2213 func (m *Event) XXX_Unmarshal(b []byte) error { 2214 return m.Unmarshal(b) 2215 } 2216 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2217 if deterministic { 2218 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 2219 } else { 2220 b = b[:cap(b)] 2221 n, err := m.MarshalToSizedBuffer(b) 2222 if err != nil { 2223 return nil, err 2224 } 2225 return b[:n], nil 2226 } 2227 } 2228 func (m *Event) XXX_Merge(src proto.Message) { 2229 xxx_messageInfo_Event.Merge(m, src) 2230 } 2231 func (m *Event) XXX_Size() int { 2232 return m.Size() 2233 } 2234 func (m *Event) XXX_DiscardUnknown() { 2235 xxx_messageInfo_Event.DiscardUnknown(m) 2236 } 2237 2238 var xxx_messageInfo_Event proto.InternalMessageInfo 2239 2240 func (m *Event) GetType() string { 2241 if m != nil { 2242 return m.Type 2243 } 2244 return "" 2245 } 2246 2247 func (m *Event) GetAttributes() []kv.Pair { 2248 if m != nil { 2249 return m.Attributes 2250 } 2251 return nil 2252 } 2253 2254 type Header struct { 2255 // basic block info 2256 Version Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` 2257 ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 2258 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 2259 Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` 2260 // prev block info 2261 LastBlockId BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"` 2262 // hashes of block data 2263 LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` 2264 DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` 2265 // hashes from the app output from the prev block 2266 ValidatorsHash []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"` 2267 NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` 2268 ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"` 2269 AppHash []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` 2270 LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` 2271 // consensus info 2272 EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"` 2273 ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` 2274 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2275 XXX_unrecognized []byte `json:"-"` 2276 XXX_sizecache int32 `json:"-"` 2277 } 2278 2279 func (m *Header) Reset() { *m = Header{} } 2280 func (m *Header) String() string { return proto.CompactTextString(m) } 2281 func (*Header) ProtoMessage() {} 2282 func (*Header) Descriptor() ([]byte, []int) { 2283 return fileDescriptor_9f1eaa49c51fa1ac, []int{32} 2284 } 2285 func (m *Header) XXX_Unmarshal(b []byte) error { 2286 return m.Unmarshal(b) 2287 } 2288 func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2289 if deterministic { 2290 return xxx_messageInfo_Header.Marshal(b, m, deterministic) 2291 } else { 2292 b = b[:cap(b)] 2293 n, err := m.MarshalToSizedBuffer(b) 2294 if err != nil { 2295 return nil, err 2296 } 2297 return b[:n], nil 2298 } 2299 } 2300 func (m *Header) XXX_Merge(src proto.Message) { 2301 xxx_messageInfo_Header.Merge(m, src) 2302 } 2303 func (m *Header) XXX_Size() int { 2304 return m.Size() 2305 } 2306 func (m *Header) XXX_DiscardUnknown() { 2307 xxx_messageInfo_Header.DiscardUnknown(m) 2308 } 2309 2310 var xxx_messageInfo_Header proto.InternalMessageInfo 2311 2312 func (m *Header) GetVersion() Version { 2313 if m != nil { 2314 return m.Version 2315 } 2316 return Version{} 2317 } 2318 2319 func (m *Header) GetChainID() string { 2320 if m != nil { 2321 return m.ChainID 2322 } 2323 return "" 2324 } 2325 2326 func (m *Header) GetHeight() int64 { 2327 if m != nil { 2328 return m.Height 2329 } 2330 return 0 2331 } 2332 2333 func (m *Header) GetTime() time.Time { 2334 if m != nil { 2335 return m.Time 2336 } 2337 return time.Time{} 2338 } 2339 2340 func (m *Header) GetLastBlockId() BlockID { 2341 if m != nil { 2342 return m.LastBlockId 2343 } 2344 return BlockID{} 2345 } 2346 2347 func (m *Header) GetLastCommitHash() []byte { 2348 if m != nil { 2349 return m.LastCommitHash 2350 } 2351 return nil 2352 } 2353 2354 func (m *Header) GetDataHash() []byte { 2355 if m != nil { 2356 return m.DataHash 2357 } 2358 return nil 2359 } 2360 2361 func (m *Header) GetValidatorsHash() []byte { 2362 if m != nil { 2363 return m.ValidatorsHash 2364 } 2365 return nil 2366 } 2367 2368 func (m *Header) GetNextValidatorsHash() []byte { 2369 if m != nil { 2370 return m.NextValidatorsHash 2371 } 2372 return nil 2373 } 2374 2375 func (m *Header) GetConsensusHash() []byte { 2376 if m != nil { 2377 return m.ConsensusHash 2378 } 2379 return nil 2380 } 2381 2382 func (m *Header) GetAppHash() []byte { 2383 if m != nil { 2384 return m.AppHash 2385 } 2386 return nil 2387 } 2388 2389 func (m *Header) GetLastResultsHash() []byte { 2390 if m != nil { 2391 return m.LastResultsHash 2392 } 2393 return nil 2394 } 2395 2396 func (m *Header) GetEvidenceHash() []byte { 2397 if m != nil { 2398 return m.EvidenceHash 2399 } 2400 return nil 2401 } 2402 2403 func (m *Header) GetProposerAddress() []byte { 2404 if m != nil { 2405 return m.ProposerAddress 2406 } 2407 return nil 2408 } 2409 2410 type Version struct { 2411 Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"` 2412 App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"` 2413 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2414 XXX_unrecognized []byte `json:"-"` 2415 XXX_sizecache int32 `json:"-"` 2416 } 2417 2418 func (m *Version) Reset() { *m = Version{} } 2419 func (m *Version) String() string { return proto.CompactTextString(m) } 2420 func (*Version) ProtoMessage() {} 2421 func (*Version) Descriptor() ([]byte, []int) { 2422 return fileDescriptor_9f1eaa49c51fa1ac, []int{33} 2423 } 2424 func (m *Version) XXX_Unmarshal(b []byte) error { 2425 return m.Unmarshal(b) 2426 } 2427 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2428 if deterministic { 2429 return xxx_messageInfo_Version.Marshal(b, m, deterministic) 2430 } else { 2431 b = b[:cap(b)] 2432 n, err := m.MarshalToSizedBuffer(b) 2433 if err != nil { 2434 return nil, err 2435 } 2436 return b[:n], nil 2437 } 2438 } 2439 func (m *Version) XXX_Merge(src proto.Message) { 2440 xxx_messageInfo_Version.Merge(m, src) 2441 } 2442 func (m *Version) XXX_Size() int { 2443 return m.Size() 2444 } 2445 func (m *Version) XXX_DiscardUnknown() { 2446 xxx_messageInfo_Version.DiscardUnknown(m) 2447 } 2448 2449 var xxx_messageInfo_Version proto.InternalMessageInfo 2450 2451 func (m *Version) GetBlock() uint64 { 2452 if m != nil { 2453 return m.Block 2454 } 2455 return 0 2456 } 2457 2458 func (m *Version) GetApp() uint64 { 2459 if m != nil { 2460 return m.App 2461 } 2462 return 0 2463 } 2464 2465 type BlockID struct { 2466 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 2467 PartsHeader PartSetHeader `protobuf:"bytes,2,opt,name=parts_header,json=partsHeader,proto3" json:"parts_header"` 2468 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2469 XXX_unrecognized []byte `json:"-"` 2470 XXX_sizecache int32 `json:"-"` 2471 } 2472 2473 func (m *BlockID) Reset() { *m = BlockID{} } 2474 func (m *BlockID) String() string { return proto.CompactTextString(m) } 2475 func (*BlockID) ProtoMessage() {} 2476 func (*BlockID) Descriptor() ([]byte, []int) { 2477 return fileDescriptor_9f1eaa49c51fa1ac, []int{34} 2478 } 2479 func (m *BlockID) XXX_Unmarshal(b []byte) error { 2480 return m.Unmarshal(b) 2481 } 2482 func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2483 if deterministic { 2484 return xxx_messageInfo_BlockID.Marshal(b, m, deterministic) 2485 } else { 2486 b = b[:cap(b)] 2487 n, err := m.MarshalToSizedBuffer(b) 2488 if err != nil { 2489 return nil, err 2490 } 2491 return b[:n], nil 2492 } 2493 } 2494 func (m *BlockID) XXX_Merge(src proto.Message) { 2495 xxx_messageInfo_BlockID.Merge(m, src) 2496 } 2497 func (m *BlockID) XXX_Size() int { 2498 return m.Size() 2499 } 2500 func (m *BlockID) XXX_DiscardUnknown() { 2501 xxx_messageInfo_BlockID.DiscardUnknown(m) 2502 } 2503 2504 var xxx_messageInfo_BlockID proto.InternalMessageInfo 2505 2506 func (m *BlockID) GetHash() []byte { 2507 if m != nil { 2508 return m.Hash 2509 } 2510 return nil 2511 } 2512 2513 func (m *BlockID) GetPartsHeader() PartSetHeader { 2514 if m != nil { 2515 return m.PartsHeader 2516 } 2517 return PartSetHeader{} 2518 } 2519 2520 type PartSetHeader struct { 2521 Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` 2522 Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 2523 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2524 XXX_unrecognized []byte `json:"-"` 2525 XXX_sizecache int32 `json:"-"` 2526 } 2527 2528 func (m *PartSetHeader) Reset() { *m = PartSetHeader{} } 2529 func (m *PartSetHeader) String() string { return proto.CompactTextString(m) } 2530 func (*PartSetHeader) ProtoMessage() {} 2531 func (*PartSetHeader) Descriptor() ([]byte, []int) { 2532 return fileDescriptor_9f1eaa49c51fa1ac, []int{35} 2533 } 2534 func (m *PartSetHeader) XXX_Unmarshal(b []byte) error { 2535 return m.Unmarshal(b) 2536 } 2537 func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2538 if deterministic { 2539 return xxx_messageInfo_PartSetHeader.Marshal(b, m, deterministic) 2540 } else { 2541 b = b[:cap(b)] 2542 n, err := m.MarshalToSizedBuffer(b) 2543 if err != nil { 2544 return nil, err 2545 } 2546 return b[:n], nil 2547 } 2548 } 2549 func (m *PartSetHeader) XXX_Merge(src proto.Message) { 2550 xxx_messageInfo_PartSetHeader.Merge(m, src) 2551 } 2552 func (m *PartSetHeader) XXX_Size() int { 2553 return m.Size() 2554 } 2555 func (m *PartSetHeader) XXX_DiscardUnknown() { 2556 xxx_messageInfo_PartSetHeader.DiscardUnknown(m) 2557 } 2558 2559 var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo 2560 2561 func (m *PartSetHeader) GetTotal() int32 { 2562 if m != nil { 2563 return m.Total 2564 } 2565 return 0 2566 } 2567 2568 func (m *PartSetHeader) GetHash() []byte { 2569 if m != nil { 2570 return m.Hash 2571 } 2572 return nil 2573 } 2574 2575 // Validator 2576 type Validator struct { 2577 Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 2578 // PubKey pub_key = 2 [(gogoproto.nullable)=false]; 2579 Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` 2580 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2581 XXX_unrecognized []byte `json:"-"` 2582 XXX_sizecache int32 `json:"-"` 2583 } 2584 2585 func (m *Validator) Reset() { *m = Validator{} } 2586 func (m *Validator) String() string { return proto.CompactTextString(m) } 2587 func (*Validator) ProtoMessage() {} 2588 func (*Validator) Descriptor() ([]byte, []int) { 2589 return fileDescriptor_9f1eaa49c51fa1ac, []int{36} 2590 } 2591 func (m *Validator) XXX_Unmarshal(b []byte) error { 2592 return m.Unmarshal(b) 2593 } 2594 func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2595 if deterministic { 2596 return xxx_messageInfo_Validator.Marshal(b, m, deterministic) 2597 } else { 2598 b = b[:cap(b)] 2599 n, err := m.MarshalToSizedBuffer(b) 2600 if err != nil { 2601 return nil, err 2602 } 2603 return b[:n], nil 2604 } 2605 } 2606 func (m *Validator) XXX_Merge(src proto.Message) { 2607 xxx_messageInfo_Validator.Merge(m, src) 2608 } 2609 func (m *Validator) XXX_Size() int { 2610 return m.Size() 2611 } 2612 func (m *Validator) XXX_DiscardUnknown() { 2613 xxx_messageInfo_Validator.DiscardUnknown(m) 2614 } 2615 2616 var xxx_messageInfo_Validator proto.InternalMessageInfo 2617 2618 func (m *Validator) GetAddress() []byte { 2619 if m != nil { 2620 return m.Address 2621 } 2622 return nil 2623 } 2624 2625 func (m *Validator) GetPower() int64 { 2626 if m != nil { 2627 return m.Power 2628 } 2629 return 0 2630 } 2631 2632 // ValidatorUpdate 2633 type ValidatorUpdate struct { 2634 PubKey PubKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` 2635 Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` 2636 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2637 XXX_unrecognized []byte `json:"-"` 2638 XXX_sizecache int32 `json:"-"` 2639 } 2640 2641 func (m *ValidatorUpdate) Reset() { *m = ValidatorUpdate{} } 2642 func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) } 2643 func (*ValidatorUpdate) ProtoMessage() {} 2644 func (*ValidatorUpdate) Descriptor() ([]byte, []int) { 2645 return fileDescriptor_9f1eaa49c51fa1ac, []int{37} 2646 } 2647 func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error { 2648 return m.Unmarshal(b) 2649 } 2650 func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2651 if deterministic { 2652 return xxx_messageInfo_ValidatorUpdate.Marshal(b, m, deterministic) 2653 } else { 2654 b = b[:cap(b)] 2655 n, err := m.MarshalToSizedBuffer(b) 2656 if err != nil { 2657 return nil, err 2658 } 2659 return b[:n], nil 2660 } 2661 } 2662 func (m *ValidatorUpdate) XXX_Merge(src proto.Message) { 2663 xxx_messageInfo_ValidatorUpdate.Merge(m, src) 2664 } 2665 func (m *ValidatorUpdate) XXX_Size() int { 2666 return m.Size() 2667 } 2668 func (m *ValidatorUpdate) XXX_DiscardUnknown() { 2669 xxx_messageInfo_ValidatorUpdate.DiscardUnknown(m) 2670 } 2671 2672 var xxx_messageInfo_ValidatorUpdate proto.InternalMessageInfo 2673 2674 func (m *ValidatorUpdate) GetPubKey() PubKey { 2675 if m != nil { 2676 return m.PubKey 2677 } 2678 return PubKey{} 2679 } 2680 2681 func (m *ValidatorUpdate) GetPower() int64 { 2682 if m != nil { 2683 return m.Power 2684 } 2685 return 0 2686 } 2687 2688 // VoteInfo 2689 type VoteInfo struct { 2690 Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"` 2691 SignedLastBlock bool `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"` 2692 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2693 XXX_unrecognized []byte `json:"-"` 2694 XXX_sizecache int32 `json:"-"` 2695 } 2696 2697 func (m *VoteInfo) Reset() { *m = VoteInfo{} } 2698 func (m *VoteInfo) String() string { return proto.CompactTextString(m) } 2699 func (*VoteInfo) ProtoMessage() {} 2700 func (*VoteInfo) Descriptor() ([]byte, []int) { 2701 return fileDescriptor_9f1eaa49c51fa1ac, []int{38} 2702 } 2703 func (m *VoteInfo) XXX_Unmarshal(b []byte) error { 2704 return m.Unmarshal(b) 2705 } 2706 func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2707 if deterministic { 2708 return xxx_messageInfo_VoteInfo.Marshal(b, m, deterministic) 2709 } else { 2710 b = b[:cap(b)] 2711 n, err := m.MarshalToSizedBuffer(b) 2712 if err != nil { 2713 return nil, err 2714 } 2715 return b[:n], nil 2716 } 2717 } 2718 func (m *VoteInfo) XXX_Merge(src proto.Message) { 2719 xxx_messageInfo_VoteInfo.Merge(m, src) 2720 } 2721 func (m *VoteInfo) XXX_Size() int { 2722 return m.Size() 2723 } 2724 func (m *VoteInfo) XXX_DiscardUnknown() { 2725 xxx_messageInfo_VoteInfo.DiscardUnknown(m) 2726 } 2727 2728 var xxx_messageInfo_VoteInfo proto.InternalMessageInfo 2729 2730 func (m *VoteInfo) GetValidator() Validator { 2731 if m != nil { 2732 return m.Validator 2733 } 2734 return Validator{} 2735 } 2736 2737 func (m *VoteInfo) GetSignedLastBlock() bool { 2738 if m != nil { 2739 return m.SignedLastBlock 2740 } 2741 return false 2742 } 2743 2744 type PubKey struct { 2745 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2746 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 2747 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2748 XXX_unrecognized []byte `json:"-"` 2749 XXX_sizecache int32 `json:"-"` 2750 } 2751 2752 func (m *PubKey) Reset() { *m = PubKey{} } 2753 func (m *PubKey) String() string { return proto.CompactTextString(m) } 2754 func (*PubKey) ProtoMessage() {} 2755 func (*PubKey) Descriptor() ([]byte, []int) { 2756 return fileDescriptor_9f1eaa49c51fa1ac, []int{39} 2757 } 2758 func (m *PubKey) XXX_Unmarshal(b []byte) error { 2759 return m.Unmarshal(b) 2760 } 2761 func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2762 if deterministic { 2763 return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) 2764 } else { 2765 b = b[:cap(b)] 2766 n, err := m.MarshalToSizedBuffer(b) 2767 if err != nil { 2768 return nil, err 2769 } 2770 return b[:n], nil 2771 } 2772 } 2773 func (m *PubKey) XXX_Merge(src proto.Message) { 2774 xxx_messageInfo_PubKey.Merge(m, src) 2775 } 2776 func (m *PubKey) XXX_Size() int { 2777 return m.Size() 2778 } 2779 func (m *PubKey) XXX_DiscardUnknown() { 2780 xxx_messageInfo_PubKey.DiscardUnknown(m) 2781 } 2782 2783 var xxx_messageInfo_PubKey proto.InternalMessageInfo 2784 2785 func (m *PubKey) GetType() string { 2786 if m != nil { 2787 return m.Type 2788 } 2789 return "" 2790 } 2791 2792 func (m *PubKey) GetData() []byte { 2793 if m != nil { 2794 return m.Data 2795 } 2796 return nil 2797 } 2798 2799 type Evidence struct { 2800 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2801 Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"` 2802 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 2803 Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` 2804 TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` 2805 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2806 XXX_unrecognized []byte `json:"-"` 2807 XXX_sizecache int32 `json:"-"` 2808 } 2809 2810 func (m *Evidence) Reset() { *m = Evidence{} } 2811 func (m *Evidence) String() string { return proto.CompactTextString(m) } 2812 func (*Evidence) ProtoMessage() {} 2813 func (*Evidence) Descriptor() ([]byte, []int) { 2814 return fileDescriptor_9f1eaa49c51fa1ac, []int{40} 2815 } 2816 func (m *Evidence) XXX_Unmarshal(b []byte) error { 2817 return m.Unmarshal(b) 2818 } 2819 func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2820 if deterministic { 2821 return xxx_messageInfo_Evidence.Marshal(b, m, deterministic) 2822 } else { 2823 b = b[:cap(b)] 2824 n, err := m.MarshalToSizedBuffer(b) 2825 if err != nil { 2826 return nil, err 2827 } 2828 return b[:n], nil 2829 } 2830 } 2831 func (m *Evidence) XXX_Merge(src proto.Message) { 2832 xxx_messageInfo_Evidence.Merge(m, src) 2833 } 2834 func (m *Evidence) XXX_Size() int { 2835 return m.Size() 2836 } 2837 func (m *Evidence) XXX_DiscardUnknown() { 2838 xxx_messageInfo_Evidence.DiscardUnknown(m) 2839 } 2840 2841 var xxx_messageInfo_Evidence proto.InternalMessageInfo 2842 2843 func (m *Evidence) GetType() string { 2844 if m != nil { 2845 return m.Type 2846 } 2847 return "" 2848 } 2849 2850 func (m *Evidence) GetValidator() Validator { 2851 if m != nil { 2852 return m.Validator 2853 } 2854 return Validator{} 2855 } 2856 2857 func (m *Evidence) GetHeight() int64 { 2858 if m != nil { 2859 return m.Height 2860 } 2861 return 0 2862 } 2863 2864 func (m *Evidence) GetTime() time.Time { 2865 if m != nil { 2866 return m.Time 2867 } 2868 return time.Time{} 2869 } 2870 2871 func (m *Evidence) GetTotalVotingPower() int64 { 2872 if m != nil { 2873 return m.TotalVotingPower 2874 } 2875 return 0 2876 } 2877 2878 func init() { 2879 proto.RegisterEnum("tendermint.abci.types.CheckTxType", CheckTxType_name, CheckTxType_value) 2880 golang_proto.RegisterEnum("tendermint.abci.types.CheckTxType", CheckTxType_name, CheckTxType_value) 2881 proto.RegisterType((*Request)(nil), "tendermint.abci.types.Request") 2882 golang_proto.RegisterType((*Request)(nil), "tendermint.abci.types.Request") 2883 proto.RegisterType((*RequestEcho)(nil), "tendermint.abci.types.RequestEcho") 2884 golang_proto.RegisterType((*RequestEcho)(nil), "tendermint.abci.types.RequestEcho") 2885 proto.RegisterType((*RequestFlush)(nil), "tendermint.abci.types.RequestFlush") 2886 golang_proto.RegisterType((*RequestFlush)(nil), "tendermint.abci.types.RequestFlush") 2887 proto.RegisterType((*RequestInfo)(nil), "tendermint.abci.types.RequestInfo") 2888 golang_proto.RegisterType((*RequestInfo)(nil), "tendermint.abci.types.RequestInfo") 2889 proto.RegisterType((*RequestSetOption)(nil), "tendermint.abci.types.RequestSetOption") 2890 golang_proto.RegisterType((*RequestSetOption)(nil), "tendermint.abci.types.RequestSetOption") 2891 proto.RegisterType((*RequestInitChain)(nil), "tendermint.abci.types.RequestInitChain") 2892 golang_proto.RegisterType((*RequestInitChain)(nil), "tendermint.abci.types.RequestInitChain") 2893 proto.RegisterType((*RequestQuery)(nil), "tendermint.abci.types.RequestQuery") 2894 golang_proto.RegisterType((*RequestQuery)(nil), "tendermint.abci.types.RequestQuery") 2895 proto.RegisterType((*RequestBeginBlock)(nil), "tendermint.abci.types.RequestBeginBlock") 2896 golang_proto.RegisterType((*RequestBeginBlock)(nil), "tendermint.abci.types.RequestBeginBlock") 2897 proto.RegisterType((*RequestCheckTx)(nil), "tendermint.abci.types.RequestCheckTx") 2898 golang_proto.RegisterType((*RequestCheckTx)(nil), "tendermint.abci.types.RequestCheckTx") 2899 proto.RegisterType((*RequestDeliverTx)(nil), "tendermint.abci.types.RequestDeliverTx") 2900 golang_proto.RegisterType((*RequestDeliverTx)(nil), "tendermint.abci.types.RequestDeliverTx") 2901 proto.RegisterType((*RequestEndBlock)(nil), "tendermint.abci.types.RequestEndBlock") 2902 golang_proto.RegisterType((*RequestEndBlock)(nil), "tendermint.abci.types.RequestEndBlock") 2903 proto.RegisterType((*RequestCommit)(nil), "tendermint.abci.types.RequestCommit") 2904 golang_proto.RegisterType((*RequestCommit)(nil), "tendermint.abci.types.RequestCommit") 2905 proto.RegisterType((*Response)(nil), "tendermint.abci.types.Response") 2906 golang_proto.RegisterType((*Response)(nil), "tendermint.abci.types.Response") 2907 proto.RegisterType((*ResponseException)(nil), "tendermint.abci.types.ResponseException") 2908 golang_proto.RegisterType((*ResponseException)(nil), "tendermint.abci.types.ResponseException") 2909 proto.RegisterType((*ResponseEcho)(nil), "tendermint.abci.types.ResponseEcho") 2910 golang_proto.RegisterType((*ResponseEcho)(nil), "tendermint.abci.types.ResponseEcho") 2911 proto.RegisterType((*ResponseFlush)(nil), "tendermint.abci.types.ResponseFlush") 2912 golang_proto.RegisterType((*ResponseFlush)(nil), "tendermint.abci.types.ResponseFlush") 2913 proto.RegisterType((*ResponseInfo)(nil), "tendermint.abci.types.ResponseInfo") 2914 golang_proto.RegisterType((*ResponseInfo)(nil), "tendermint.abci.types.ResponseInfo") 2915 proto.RegisterType((*ResponseSetOption)(nil), "tendermint.abci.types.ResponseSetOption") 2916 golang_proto.RegisterType((*ResponseSetOption)(nil), "tendermint.abci.types.ResponseSetOption") 2917 proto.RegisterType((*ResponseInitChain)(nil), "tendermint.abci.types.ResponseInitChain") 2918 golang_proto.RegisterType((*ResponseInitChain)(nil), "tendermint.abci.types.ResponseInitChain") 2919 proto.RegisterType((*ResponseQuery)(nil), "tendermint.abci.types.ResponseQuery") 2920 golang_proto.RegisterType((*ResponseQuery)(nil), "tendermint.abci.types.ResponseQuery") 2921 proto.RegisterType((*ResponseBeginBlock)(nil), "tendermint.abci.types.ResponseBeginBlock") 2922 golang_proto.RegisterType((*ResponseBeginBlock)(nil), "tendermint.abci.types.ResponseBeginBlock") 2923 proto.RegisterType((*ResponseCheckTx)(nil), "tendermint.abci.types.ResponseCheckTx") 2924 golang_proto.RegisterType((*ResponseCheckTx)(nil), "tendermint.abci.types.ResponseCheckTx") 2925 proto.RegisterType((*ResponseDeliverTx)(nil), "tendermint.abci.types.ResponseDeliverTx") 2926 golang_proto.RegisterType((*ResponseDeliverTx)(nil), "tendermint.abci.types.ResponseDeliverTx") 2927 proto.RegisterType((*ResponseEndBlock)(nil), "tendermint.abci.types.ResponseEndBlock") 2928 golang_proto.RegisterType((*ResponseEndBlock)(nil), "tendermint.abci.types.ResponseEndBlock") 2929 proto.RegisterType((*ResponseCommit)(nil), "tendermint.abci.types.ResponseCommit") 2930 golang_proto.RegisterType((*ResponseCommit)(nil), "tendermint.abci.types.ResponseCommit") 2931 proto.RegisterType((*ConsensusParams)(nil), "tendermint.abci.types.ConsensusParams") 2932 golang_proto.RegisterType((*ConsensusParams)(nil), "tendermint.abci.types.ConsensusParams") 2933 proto.RegisterType((*BlockParams)(nil), "tendermint.abci.types.BlockParams") 2934 golang_proto.RegisterType((*BlockParams)(nil), "tendermint.abci.types.BlockParams") 2935 proto.RegisterType((*EvidenceParams)(nil), "tendermint.abci.types.EvidenceParams") 2936 golang_proto.RegisterType((*EvidenceParams)(nil), "tendermint.abci.types.EvidenceParams") 2937 proto.RegisterType((*ValidatorParams)(nil), "tendermint.abci.types.ValidatorParams") 2938 golang_proto.RegisterType((*ValidatorParams)(nil), "tendermint.abci.types.ValidatorParams") 2939 proto.RegisterType((*LastCommitInfo)(nil), "tendermint.abci.types.LastCommitInfo") 2940 golang_proto.RegisterType((*LastCommitInfo)(nil), "tendermint.abci.types.LastCommitInfo") 2941 proto.RegisterType((*Event)(nil), "tendermint.abci.types.Event") 2942 golang_proto.RegisterType((*Event)(nil), "tendermint.abci.types.Event") 2943 proto.RegisterType((*Header)(nil), "tendermint.abci.types.Header") 2944 golang_proto.RegisterType((*Header)(nil), "tendermint.abci.types.Header") 2945 proto.RegisterType((*Version)(nil), "tendermint.abci.types.Version") 2946 golang_proto.RegisterType((*Version)(nil), "tendermint.abci.types.Version") 2947 proto.RegisterType((*BlockID)(nil), "tendermint.abci.types.BlockID") 2948 golang_proto.RegisterType((*BlockID)(nil), "tendermint.abci.types.BlockID") 2949 proto.RegisterType((*PartSetHeader)(nil), "tendermint.abci.types.PartSetHeader") 2950 golang_proto.RegisterType((*PartSetHeader)(nil), "tendermint.abci.types.PartSetHeader") 2951 proto.RegisterType((*Validator)(nil), "tendermint.abci.types.Validator") 2952 golang_proto.RegisterType((*Validator)(nil), "tendermint.abci.types.Validator") 2953 proto.RegisterType((*ValidatorUpdate)(nil), "tendermint.abci.types.ValidatorUpdate") 2954 golang_proto.RegisterType((*ValidatorUpdate)(nil), "tendermint.abci.types.ValidatorUpdate") 2955 proto.RegisterType((*VoteInfo)(nil), "tendermint.abci.types.VoteInfo") 2956 golang_proto.RegisterType((*VoteInfo)(nil), "tendermint.abci.types.VoteInfo") 2957 proto.RegisterType((*PubKey)(nil), "tendermint.abci.types.PubKey") 2958 golang_proto.RegisterType((*PubKey)(nil), "tendermint.abci.types.PubKey") 2959 proto.RegisterType((*Evidence)(nil), "tendermint.abci.types.Evidence") 2960 golang_proto.RegisterType((*Evidence)(nil), "tendermint.abci.types.Evidence") 2961 } 2962 2963 func init() { proto.RegisterFile("abci/types/types.proto", fileDescriptor_9f1eaa49c51fa1ac) } 2964 func init() { golang_proto.RegisterFile("abci/types/types.proto", fileDescriptor_9f1eaa49c51fa1ac) } 2965 2966 var fileDescriptor_9f1eaa49c51fa1ac = []byte{ 2967 // 2458 bytes of a gzipped FileDescriptorProto 2968 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0x3d, 0x70, 0x1b, 0xc7, 2969 0xf5, 0xe7, 0x81, 0x20, 0x3e, 0x1e, 0xf8, 0x01, 0xad, 0x64, 0x1b, 0xc6, 0x5f, 0x22, 0x35, 0x47, 2970 0x4b, 0xa2, 0x6c, 0xff, 0x41, 0x87, 0x19, 0x65, 0xac, 0x48, 0xe3, 0x0c, 0x41, 0x4a, 0x21, 0xc7, 2971 0x92, 0x4c, 0x9f, 0x24, 0x46, 0x49, 0x66, 0x7c, 0xb3, 0xc0, 0xad, 0x80, 0x1b, 0x02, 0x77, 0xe7, 2972 0xbb, 0x05, 0x44, 0x64, 0x52, 0xa4, 0xcb, 0x64, 0x26, 0x45, 0xca, 0x34, 0xe9, 0x53, 0xa6, 0x70, 2973 0xe1, 0x32, 0xa5, 0x8b, 0x14, 0x29, 0x52, 0x2b, 0x09, 0x93, 0x2a, 0xe3, 0x32, 0x93, 0x49, 0x99, 2974 0x79, 0xbb, 0x7b, 0x5f, 0x20, 0x3e, 0x4e, 0x8e, 0xba, 0x34, 0xc0, 0xed, 0xde, 0x7b, 0x6f, 0x77, 2975 0xdf, 0xbe, 0x8f, 0xdf, 0x7b, 0x07, 0x6f, 0xd2, 0x56, 0xdb, 0xde, 0xe6, 0x23, 0x8f, 0x05, 0xf2, 2976 0xb7, 0xe1, 0xf9, 0x2e, 0x77, 0xc9, 0x1b, 0x9c, 0x39, 0x16, 0xf3, 0xfb, 0xb6, 0xc3, 0x1b, 0x48, 2977 0xd2, 0x10, 0x2f, 0xeb, 0xd7, 0x79, 0xd7, 0xf6, 0x2d, 0xd3, 0xa3, 0x3e, 0x1f, 0x6d, 0x0b, 0xca, 2978 0xed, 0x8e, 0xdb, 0x71, 0xe3, 0x27, 0xc9, 0x5e, 0xaf, 0xb7, 0xfd, 0x91, 0xc7, 0xdd, 0xed, 0x3e, 2979 0xf3, 0x4f, 0x7a, 0x4c, 0xfd, 0xa9, 0x77, 0x17, 0x7b, 0x76, 0x2b, 0xd8, 0x3e, 0x19, 0x26, 0xd7, 2980 0xab, 0x6f, 0x74, 0x5c, 0xb7, 0xd3, 0x63, 0x52, 0x66, 0x6b, 0xf0, 0x7c, 0x9b, 0xdb, 0x7d, 0x16, 2981 0x70, 0xda, 0xf7, 0x14, 0xc1, 0xfa, 0x38, 0x81, 0x35, 0xf0, 0x29, 0xb7, 0x5d, 0x47, 0xbe, 0xd7, 2982 0xff, 0xb5, 0x04, 0x45, 0x83, 0x7d, 0x3e, 0x60, 0x01, 0x27, 0x1f, 0x42, 0x9e, 0xb5, 0xbb, 0x6e, 2983 0x2d, 0x77, 0x55, 0xdb, 0xaa, 0xec, 0xe8, 0x8d, 0x89, 0x67, 0x69, 0x28, 0xea, 0x7b, 0xed, 0xae, 2984 0x7b, 0xb0, 0x60, 0x08, 0x0e, 0x72, 0x07, 0x96, 0x9e, 0xf7, 0x06, 0x41, 0xb7, 0xb6, 0x28, 0x58, 2985 0x37, 0x67, 0xb3, 0xde, 0x47, 0xd2, 0x83, 0x05, 0x43, 0xf2, 0xe0, 0xb2, 0xb6, 0xf3, 0xdc, 0xad, 2986 0xe5, 0xb3, 0x2c, 0x7b, 0xe8, 0x3c, 0x17, 0xcb, 0x22, 0x07, 0x39, 0x00, 0x08, 0x18, 0x37, 0x5d, 2987 0x0f, 0x0f, 0x54, 0x5b, 0x12, 0xfc, 0x37, 0x66, 0xf3, 0x3f, 0x66, 0xfc, 0x13, 0x41, 0x7e, 0xb0, 2988 0x60, 0x94, 0x83, 0x70, 0x80, 0x92, 0x6c, 0xc7, 0xe6, 0x66, 0xbb, 0x4b, 0x6d, 0xa7, 0x56, 0xc8, 2989 0x22, 0xe9, 0xd0, 0xb1, 0xf9, 0x1e, 0x92, 0xa3, 0x24, 0x3b, 0x1c, 0xa0, 0x2a, 0x3e, 0x1f, 0x30, 2990 0x7f, 0x54, 0x2b, 0x66, 0x51, 0xc5, 0xa7, 0x48, 0x8a, 0xaa, 0x10, 0x3c, 0xe4, 0x63, 0xa8, 0xb4, 2991 0x58, 0xc7, 0x76, 0xcc, 0x56, 0xcf, 0x6d, 0x9f, 0xd4, 0x4a, 0x42, 0xc4, 0xd6, 0x6c, 0x11, 0x4d, 2992 0x64, 0x68, 0x22, 0xfd, 0xc1, 0x82, 0x01, 0xad, 0x68, 0x44, 0x9a, 0x50, 0x6a, 0x77, 0x59, 0xfb, 2993 0xc4, 0xe4, 0xa7, 0xb5, 0xb2, 0x90, 0x74, 0x6d, 0xb6, 0xa4, 0x3d, 0xa4, 0x7e, 0x72, 0x7a, 0xb0, 2994 0x60, 0x14, 0xdb, 0xf2, 0x11, 0xf5, 0x62, 0xb1, 0x9e, 0x3d, 0x64, 0x3e, 0x4a, 0xb9, 0x98, 0x45, 2995 0x2f, 0xfb, 0x92, 0x5e, 0xc8, 0x29, 0x5b, 0xe1, 0x80, 0xdc, 0x83, 0x32, 0x73, 0x2c, 0x75, 0xb0, 2996 0x8a, 0x10, 0x74, 0x7d, 0x8e, 0x85, 0x39, 0x56, 0x78, 0xac, 0x12, 0x53, 0xcf, 0xe4, 0x23, 0x28, 2997 0xb4, 0xdd, 0x7e, 0xdf, 0xe6, 0xb5, 0x65, 0x21, 0xe3, 0x9d, 0x39, 0x47, 0x12, 0xb4, 0x07, 0x0b, 2998 0x86, 0xe2, 0x6a, 0x16, 0x61, 0x69, 0x48, 0x7b, 0x03, 0xa6, 0xdf, 0x80, 0x4a, 0xc2, 0x92, 0x49, 2999 0x0d, 0x8a, 0x7d, 0x16, 0x04, 0xb4, 0xc3, 0x6a, 0xda, 0x55, 0x6d, 0xab, 0x6c, 0x84, 0x43, 0x7d, 3000 0x15, 0x96, 0x93, 0x76, 0xab, 0xf7, 0x23, 0x46, 0xb4, 0x45, 0x64, 0x1c, 0x32, 0x3f, 0x40, 0x03, 3001 0x54, 0x8c, 0x6a, 0x48, 0x36, 0x61, 0x45, 0x9c, 0xd6, 0x0c, 0xdf, 0xa3, 0x5f, 0xe5, 0x8d, 0x65, 3002 0x31, 0x79, 0xac, 0x88, 0x36, 0xa0, 0xe2, 0xed, 0x78, 0x11, 0xc9, 0xa2, 0x20, 0x01, 0x6f, 0xc7, 3003 0x53, 0x04, 0xfa, 0x77, 0xa1, 0x3a, 0x6e, 0xba, 0xa4, 0x0a, 0x8b, 0x27, 0x6c, 0xa4, 0xd6, 0xc3, 3004 0x47, 0x72, 0x49, 0x1d, 0x4b, 0xac, 0x51, 0x36, 0xd4, 0x19, 0x7f, 0x97, 0x8b, 0x98, 0x23, 0x6b, 3005 0x45, 0x77, 0xc3, 0x20, 0x21, 0xb8, 0x2b, 0x3b, 0xf5, 0x86, 0x0c, 0x10, 0x8d, 0x30, 0x40, 0x34, 3006 0x9e, 0x84, 0x11, 0xa4, 0x59, 0xfa, 0xea, 0xe5, 0xc6, 0xc2, 0xaf, 0xfe, 0xbc, 0xa1, 0x19, 0x82, 3007 0x83, 0xbc, 0x8d, 0x06, 0x45, 0x6d, 0xc7, 0xb4, 0x2d, 0xb5, 0x4e, 0x51, 0x8c, 0x0f, 0x2d, 0xf2, 3008 0x29, 0x54, 0xdb, 0xae, 0x13, 0x30, 0x27, 0x18, 0x04, 0x18, 0xe6, 0x68, 0x3f, 0x50, 0xb1, 0x60, 3009 0xda, 0x25, 0xef, 0x85, 0xe4, 0x47, 0x82, 0xda, 0x58, 0x6b, 0xa7, 0x27, 0xc8, 0x03, 0x80, 0x21, 3010 0xed, 0xd9, 0x16, 0xe5, 0xae, 0x1f, 0xd4, 0xf2, 0x57, 0x17, 0x67, 0x08, 0x3b, 0x0e, 0x09, 0x9f, 3011 0x7a, 0x16, 0xe5, 0xac, 0x99, 0xc7, 0x9d, 0x1b, 0x09, 0x7e, 0x72, 0x1d, 0xd6, 0xa8, 0xe7, 0x99, 3012 0x01, 0xa7, 0x9c, 0x99, 0xad, 0x11, 0x67, 0x81, 0x88, 0x17, 0xcb, 0xc6, 0x0a, 0xf5, 0xbc, 0xc7, 3013 0x38, 0xdb, 0xc4, 0x49, 0xdd, 0x8a, 0x6e, 0x5b, 0xb8, 0x26, 0x21, 0x90, 0xb7, 0x28, 0xa7, 0x42, 3014 0x5b, 0xcb, 0x86, 0x78, 0xc6, 0x39, 0x8f, 0xf2, 0xae, 0xd2, 0x81, 0x78, 0x26, 0x6f, 0x42, 0xa1, 3015 0xcb, 0xec, 0x4e, 0x97, 0x8b, 0x63, 0x2f, 0x1a, 0x6a, 0x84, 0x17, 0xe3, 0xf9, 0xee, 0x90, 0x89, 3016 0xe8, 0x56, 0x32, 0xe4, 0x40, 0xff, 0x22, 0x07, 0x17, 0xce, 0xb9, 0x2f, 0xca, 0xed, 0xd2, 0xa0, 3017 0x1b, 0xae, 0x85, 0xcf, 0xe4, 0x0e, 0xca, 0xa5, 0x16, 0xf3, 0x55, 0x54, 0xbe, 0x32, 0x45, 0x03, 3018 0x07, 0x82, 0x48, 0x1d, 0x5c, 0xb1, 0x90, 0xa7, 0x50, 0xed, 0xd1, 0x80, 0x9b, 0xd2, 0xf6, 0x4d, 3019 0x11, 0x65, 0x17, 0x67, 0x46, 0x82, 0x07, 0x34, 0xf4, 0x19, 0x34, 0x6e, 0x25, 0x6e, 0xb5, 0x97, 3020 0x9a, 0x25, 0xcf, 0xe0, 0x52, 0x6b, 0xf4, 0x13, 0xea, 0x70, 0xdb, 0x61, 0xe6, 0xb9, 0x3b, 0xda, 3021 0x98, 0x22, 0xfa, 0xde, 0xd0, 0xb6, 0x98, 0xd3, 0x0e, 0x2f, 0xe7, 0x62, 0x24, 0xe2, 0x38, 0xbe, 3022 0xa5, 0x2b, 0x00, 0x83, 0x80, 0x99, 0x16, 0xeb, 0x71, 0x2a, 0x2f, 0xa8, 0x64, 0x94, 0x07, 0x01, 3023 0xdb, 0x17, 0x13, 0xfa, 0x33, 0x58, 0x4d, 0x87, 0x2a, 0xb2, 0x0a, 0x39, 0x7e, 0xaa, 0x14, 0x96, 3024 0xe3, 0xa7, 0xe4, 0x3b, 0x90, 0xc7, 0xd5, 0x84, 0xb2, 0x56, 0xa7, 0xe6, 0x12, 0xc5, 0xfd, 0x64, 3025 0xe4, 0x31, 0x43, 0xd0, 0xeb, 0x7a, 0xe4, 0x28, 0x51, 0xf8, 0x1a, 0x97, 0xad, 0xdf, 0x84, 0xb5, 3026 0xb1, 0xc8, 0x94, 0xb8, 0x75, 0x2d, 0x79, 0xeb, 0xfa, 0x3e, 0x14, 0xe4, 0x96, 0xd1, 0x67, 0x70, 3027 0x61, 0xd3, 0x0f, 0x3c, 0x25, 0xaa, 0x88, 0x63, 0x23, 0xf0, 0xd0, 0xf5, 0xe5, 0x41, 0x85, 0x3d, 3028 0x8a, 0x2d, 0x2f, 0x1b, 0x20, 0xa7, 0xd0, 0x18, 0xf5, 0xfb, 0xb0, 0x92, 0x0a, 0x63, 0xe4, 0x16, 3029 0x14, 0x94, 0x6a, 0xb4, 0x99, 0xc6, 0x20, 0xd7, 0x36, 0x14, 0xb1, 0xfe, 0x87, 0x02, 0x94, 0x0c, 3030 0x16, 0x78, 0xe8, 0x60, 0xe4, 0x00, 0xca, 0xec, 0xb4, 0xcd, 0x64, 0xca, 0xd4, 0xe6, 0x24, 0x18, 3031 0xc9, 0x73, 0x2f, 0xa4, 0xc7, 0x88, 0x1e, 0x31, 0x93, 0xdb, 0x29, 0xb8, 0xb0, 0x39, 0x4f, 0x48, 3032 0x12, 0x2f, 0xdc, 0x4d, 0xe3, 0x85, 0x77, 0xe6, 0xf0, 0x8e, 0x01, 0x86, 0xdb, 0x29, 0xc0, 0x30, 3033 0x6f, 0xe1, 0x14, 0x62, 0x38, 0x9c, 0x80, 0x18, 0xe6, 0x1d, 0x7f, 0x0a, 0x64, 0x38, 0x9c, 0x00, 3034 0x19, 0xb6, 0xe6, 0xee, 0x65, 0x22, 0x66, 0xb8, 0x9b, 0xc6, 0x0c, 0xf3, 0xd4, 0x31, 0x06, 0x1a, 3035 0x1e, 0x4c, 0x02, 0x0d, 0x37, 0xe7, 0xc8, 0x98, 0x8a, 0x1a, 0xf6, 0xce, 0xa1, 0x86, 0xeb, 0x73, 3036 0x44, 0x4d, 0x80, 0x0d, 0x87, 0x29, 0xd8, 0x00, 0x99, 0x74, 0x33, 0x05, 0x37, 0xdc, 0x3f, 0x8f, 3037 0x1b, 0x6e, 0xcc, 0x33, 0xb5, 0x49, 0xc0, 0xe1, 0x7b, 0x63, 0xc0, 0xe1, 0xda, 0xbc, 0x53, 0x4d, 3038 0x45, 0x0e, 0x37, 0x31, 0x76, 0x8f, 0x79, 0x06, 0xc6, 0x79, 0xe6, 0xfb, 0xae, 0xaf, 0x92, 0xb2, 3039 0x1c, 0xe8, 0x5b, 0x98, 0x4d, 0x62, 0xfb, 0x9f, 0x81, 0x32, 0xd6, 0xd0, 0xd7, 0x13, 0xd6, 0xae, 3040 0x7f, 0xa9, 0xc5, 0xbc, 0x22, 0xea, 0x26, 0x33, 0x51, 0x59, 0x65, 0xa2, 0x04, 0xf8, 0xc8, 0xa5, 3041 0xc1, 0xc7, 0x06, 0x54, 0x30, 0xdf, 0x8d, 0xe1, 0x0a, 0xea, 0x85, 0xb8, 0x82, 0xbc, 0x0b, 0x17, 3042 0x44, 0x6e, 0x90, 0x10, 0x45, 0x45, 0xb1, 0xbc, 0x88, 0x62, 0x6b, 0xf8, 0x42, 0x6a, 0x50, 0x26, 3043 0xb1, 0xff, 0x87, 0x8b, 0x09, 0x5a, 0x94, 0x2b, 0xf2, 0x94, 0x4c, 0xa0, 0xd5, 0x88, 0x7a, 0xd7, 3044 0xf3, 0x0e, 0x68, 0xd0, 0xd5, 0x1f, 0xc6, 0x0a, 0x8a, 0x31, 0x0b, 0x81, 0x7c, 0xdb, 0xb5, 0xe4, 3045 0xb9, 0x57, 0x0c, 0xf1, 0x8c, 0x38, 0xa6, 0xe7, 0x76, 0xc4, 0xe6, 0xca, 0x06, 0x3e, 0x22, 0x55, 3046 0xe4, 0xda, 0x65, 0xe9, 0xb3, 0xfa, 0x17, 0x5a, 0x2c, 0x2f, 0x86, 0x31, 0x93, 0x10, 0x87, 0xf6, 3047 0x3a, 0x11, 0x47, 0xee, 0xbf, 0x43, 0x1c, 0xfa, 0x3f, 0xb5, 0xf8, 0x4a, 0x23, 0x2c, 0xf1, 0xcd, 3048 0x54, 0x80, 0xd6, 0x65, 0x3b, 0x16, 0x3b, 0x15, 0x2a, 0x5f, 0x34, 0xe4, 0x20, 0x84, 0x81, 0x05, 3049 0x71, 0x0d, 0x69, 0x18, 0x58, 0x14, 0x73, 0x72, 0x40, 0x6e, 0x09, 0x0c, 0xe2, 0x3e, 0x57, 0xa1, 3050 0x21, 0x95, 0xa0, 0x65, 0xc1, 0xd9, 0x50, 0x95, 0xe6, 0x11, 0x92, 0x19, 0x92, 0x3a, 0x91, 0xdc, 3051 0xca, 0x29, 0x48, 0x73, 0x19, 0xca, 0xb8, 0xf5, 0xc0, 0xa3, 0x6d, 0x26, 0x7c, 0xbb, 0x6c, 0xc4, 3052 0x13, 0xba, 0x05, 0xe4, 0x7c, 0x8c, 0x21, 0x8f, 0xa0, 0xc0, 0x86, 0xcc, 0xe1, 0x78, 0x47, 0xa8, 3053 0xd6, 0xcb, 0x53, 0x41, 0x02, 0x73, 0x78, 0xb3, 0x86, 0xca, 0xfc, 0xc7, 0xcb, 0x8d, 0xaa, 0xe4, 3054 0x79, 0xdf, 0xed, 0xdb, 0x9c, 0xf5, 0x3d, 0x3e, 0x32, 0x94, 0x14, 0xfd, 0xe7, 0x39, 0x4c, 0xc6, 3055 0xa9, 0xf8, 0x33, 0x51, 0xbd, 0xa1, 0xd3, 0xe4, 0x12, 0xf0, 0x2d, 0x9b, 0xca, 0xaf, 0x00, 0x74, 3056 0x68, 0x60, 0xbe, 0xa0, 0x0e, 0x67, 0x96, 0xd2, 0x7b, 0xb9, 0x43, 0x83, 0x1f, 0x88, 0x09, 0xcc, 3057 0xeb, 0xf8, 0x7a, 0x10, 0x30, 0x4b, 0x5c, 0xc0, 0xa2, 0x51, 0xec, 0xd0, 0xe0, 0x69, 0xc0, 0xac, 3058 0xc4, 0x59, 0x8b, 0xaf, 0xe3, 0xac, 0x69, 0x7d, 0x97, 0xc6, 0xf5, 0xfd, 0x8b, 0x5c, 0xec, 0x1d, 3059 0x31, 0x76, 0xf9, 0xdf, 0xd4, 0xc5, 0x6f, 0x44, 0xbd, 0x93, 0x4e, 0x02, 0xe4, 0x87, 0x70, 0x21, 3060 0xf2, 0x4a, 0x73, 0x20, 0xbc, 0x35, 0xb4, 0xc2, 0x57, 0x73, 0xee, 0xea, 0x30, 0x3d, 0x1d, 0x90, 3061 0xcf, 0xe0, 0xad, 0xb1, 0x18, 0x14, 0x2d, 0x90, 0x7b, 0xa5, 0x50, 0xf4, 0x46, 0x3a, 0x14, 0x85, 3062 0xf2, 0x63, 0xed, 0x2d, 0xbe, 0x16, 0xaf, 0xf9, 0x99, 0x86, 0x00, 0x3a, 0x99, 0xdf, 0x26, 0x1a, 3063 0xc5, 0x26, 0xac, 0xf8, 0x8c, 0x63, 0xa1, 0x97, 0x2a, 0x69, 0x96, 0xe5, 0xa4, 0xca, 0x09, 0x31, 3064 0x16, 0xcd, 0xbf, 0x0a, 0x16, 0xfd, 0x93, 0x06, 0x6b, 0x63, 0xa7, 0x27, 0x1f, 0xc2, 0x92, 0x4c, 3065 0xef, 0xda, 0xcc, 0x0e, 0x90, 0xb8, 0x4e, 0xa5, 0x30, 0xc9, 0x40, 0x76, 0xa1, 0xc4, 0x54, 0x59, 3066 0xa1, 0x34, 0x7e, 0x6d, 0x4e, 0xf5, 0xa1, 0xf8, 0x23, 0x36, 0xb2, 0x0f, 0xe5, 0xe8, 0x5e, 0xe7, 3067 0x94, 0xac, 0x91, 0x59, 0x28, 0x21, 0x31, 0xa3, 0xbe, 0x07, 0x95, 0xc4, 0xf6, 0xc8, 0xff, 0x41, 3068 0xb9, 0x4f, 0x4f, 0x55, 0x9d, 0x29, 0x4b, 0x83, 0x52, 0x9f, 0x9e, 0x8a, 0x12, 0x93, 0xbc, 0x05, 3069 0x45, 0x7c, 0xd9, 0xa1, 0xd2, 0x4a, 0x16, 0x8d, 0x42, 0x9f, 0x9e, 0x7e, 0x9f, 0x06, 0xfa, 0x2f, 3070 0x35, 0x58, 0x4d, 0xef, 0x93, 0xbc, 0x07, 0x04, 0x69, 0x69, 0x87, 0x99, 0xce, 0xa0, 0x2f, 0x13, 3071 0x70, 0x28, 0x71, 0xad, 0x4f, 0x4f, 0x77, 0x3b, 0xec, 0xd1, 0xa0, 0x2f, 0x96, 0x0e, 0xc8, 0x43, 3072 0xa8, 0x86, 0xc4, 0x61, 0x97, 0x4f, 0x69, 0xe5, 0xed, 0x73, 0x55, 0xfe, 0xbe, 0x22, 0x90, 0x45, 3073 0xfe, 0xaf, 0xb1, 0xc8, 0x5f, 0x95, 0xf2, 0xc2, 0x37, 0xfa, 0x2d, 0x58, 0x1b, 0x3b, 0x31, 0xd1, 3074 0x61, 0xc5, 0x1b, 0xb4, 0xcc, 0x13, 0x36, 0x32, 0x85, 0x4a, 0x84, 0x1f, 0x95, 0x8d, 0x8a, 0x37, 3075 0x68, 0x7d, 0xcc, 0x46, 0x58, 0x4f, 0x05, 0x7a, 0x1b, 0x56, 0xd3, 0x55, 0x24, 0x66, 0x25, 0xdf, 3076 0x1d, 0x38, 0x96, 0xd8, 0xf7, 0x92, 0x21, 0x07, 0xe4, 0x0e, 0x2c, 0x0d, 0x5d, 0xe9, 0x2a, 0xb3, 3077 0xca, 0xc6, 0x63, 0x97, 0xb3, 0x44, 0x2d, 0x2a, 0x79, 0xf4, 0x00, 0x96, 0x84, 0xd1, 0xa3, 0xfd, 3078 0x8a, 0x82, 0x4f, 0xa1, 0x22, 0x7c, 0x26, 0xc7, 0x00, 0x94, 0x73, 0xdf, 0x6e, 0x0d, 0x62, 0xf1, 3079 0xb5, 0xa4, 0xf8, 0x9e, 0xdd, 0x0a, 0x1a, 0x27, 0xc3, 0xc6, 0x11, 0xb5, 0xfd, 0xe6, 0x65, 0xe5, 3080 0x36, 0x97, 0x62, 0x9e, 0x84, 0xeb, 0x24, 0x24, 0xe9, 0x5f, 0xe7, 0xa1, 0x20, 0xeb, 0x6c, 0xf2, 3081 0x51, 0xba, 0xeb, 0x53, 0xd9, 0x59, 0x9f, 0xb6, 0x7d, 0x49, 0xa5, 0x76, 0x1f, 0xc1, 0xb3, 0xeb, 3082 0xe3, 0xad, 0x94, 0x66, 0xe5, 0xec, 0xe5, 0x46, 0x51, 0x40, 0x9b, 0xc3, 0xfd, 0xb8, 0xaf, 0x32, 3083 0xad, 0xad, 0x10, 0x36, 0x71, 0xf2, 0xaf, 0xdc, 0xc4, 0x39, 0x80, 0x95, 0x04, 0x96, 0xb3, 0x2d, 3084 0x55, 0x04, 0xad, 0xcf, 0x72, 0xba, 0xc3, 0x7d, 0xb5, 0xff, 0x4a, 0x84, 0xf5, 0x0e, 0x2d, 0xb2, 3085 0x95, 0xee, 0x2e, 0x08, 0x48, 0x28, 0xb1, 0x48, 0xa2, 0x61, 0x80, 0x80, 0x10, 0xdd, 0x01, 0x03, 3086 0x8b, 0x24, 0x91, 0xd0, 0xa4, 0x84, 0x13, 0xe2, 0xe5, 0x0d, 0x58, 0x8b, 0x51, 0x93, 0x24, 0x29, 3087 0x49, 0x29, 0xf1, 0xb4, 0x20, 0xfc, 0x00, 0x2e, 0x39, 0xec, 0x94, 0x9b, 0xe3, 0xd4, 0x65, 0x41, 3088 0x4d, 0xf0, 0xdd, 0x71, 0x9a, 0xe3, 0x1a, 0xac, 0xc6, 0xf1, 0x59, 0xd0, 0x82, 0xec, 0xf9, 0x44, 3089 0xb3, 0x82, 0x0c, 0x6b, 0xf4, 0x10, 0xd3, 0x56, 0x54, 0x8d, 0x2e, 0xa1, 0x6c, 0x84, 0x92, 0x7d, 3090 0x16, 0x0c, 0x7a, 0x5c, 0x09, 0x59, 0x16, 0x34, 0x02, 0x25, 0x1b, 0x72, 0x5e, 0xd0, 0x6e, 0xc2, 3091 0x4a, 0x18, 0x55, 0x24, 0xdd, 0x8a, 0xa0, 0x5b, 0x0e, 0x27, 0x05, 0xd1, 0x4d, 0xa8, 0x7a, 0xbe, 3092 0xeb, 0xb9, 0x01, 0xf3, 0x4d, 0x6a, 0x59, 0x3e, 0x0b, 0x82, 0xda, 0xaa, 0x94, 0x17, 0xce, 0xef, 3093 0xca, 0x69, 0xfd, 0x5b, 0x50, 0x0c, 0xc1, 0xfa, 0x25, 0x58, 0x6a, 0x46, 0x11, 0x32, 0x6f, 0xc8, 3094 0x01, 0x26, 0xef, 0x5d, 0xcf, 0x53, 0x6d, 0x45, 0x7c, 0xd4, 0x7b, 0x50, 0x54, 0x17, 0x36, 0xb1, 3095 0x99, 0xf4, 0x10, 0x96, 0x3d, 0xea, 0xe3, 0x31, 0x92, 0x2d, 0xa5, 0x69, 0xe5, 0xe6, 0x11, 0xf5, 3096 0xf9, 0x63, 0xc6, 0x53, 0x9d, 0xa5, 0x8a, 0xe0, 0x97, 0x53, 0xfa, 0x6d, 0x58, 0x49, 0xd1, 0xe0, 3097 0x36, 0xb9, 0xcb, 0x69, 0x2f, 0x74, 0x74, 0x31, 0x88, 0x76, 0x92, 0x8b, 0x77, 0xa2, 0xdf, 0x81, 3098 0x72, 0x74, 0x57, 0x58, 0xc5, 0x84, 0xaa, 0x08, 0x5b, 0x24, 0x72, 0x28, 0xba, 0x67, 0xee, 0x0b, 3099 0xe6, 0x2b, 0xeb, 0x97, 0x03, 0x9d, 0x25, 0x02, 0x93, 0x4c, 0x95, 0xe4, 0x2e, 0x14, 0x55, 0x60, 3100 0x9a, 0xd3, 0x1a, 0x39, 0x12, 0x91, 0x2a, 0xec, 0x93, 0xc9, 0xb8, 0x15, 0x2f, 0x93, 0x4b, 0x2e, 3101 0xf3, 0x53, 0x28, 0x85, 0xc1, 0x27, 0x9d, 0x25, 0xe4, 0x0a, 0x57, 0xe7, 0x65, 0x09, 0xb5, 0x48, 3102 0xcc, 0x88, 0xd6, 0x14, 0xd8, 0x1d, 0x87, 0x59, 0x66, 0xec, 0x82, 0x62, 0xcd, 0x92, 0xb1, 0x26, 3103 0x5f, 0x3c, 0x08, 0xfd, 0x4b, 0xff, 0x00, 0x0a, 0x72, 0xaf, 0x13, 0x43, 0xdc, 0x84, 0xb4, 0xad, 3104 0xff, 0x5d, 0x83, 0x52, 0x98, 0x3e, 0x26, 0x32, 0xa5, 0x0e, 0x91, 0xfb, 0xa6, 0x87, 0x78, 0xfd, 3105 0x21, 0xe9, 0x7d, 0x20, 0xc2, 0x52, 0xcc, 0xa1, 0xcb, 0x6d, 0xa7, 0x63, 0xca, 0xbb, 0x90, 0x30, 3106 0xb3, 0x2a, 0xde, 0x1c, 0x8b, 0x17, 0x47, 0x38, 0xff, 0xee, 0x26, 0x54, 0x12, 0xfd, 0x3b, 0x52, 3107 0x84, 0xc5, 0x47, 0xec, 0x45, 0x75, 0x81, 0x54, 0xa0, 0x68, 0x30, 0xd1, 0x80, 0xa8, 0x6a, 0x3b, 3108 0x5f, 0x17, 0x61, 0x6d, 0xb7, 0xb9, 0x77, 0xb8, 0xeb, 0x79, 0x3d, 0xbb, 0x2d, 0xf2, 0x19, 0xf9, 3109 0x04, 0xf2, 0xa2, 0x08, 0xcf, 0xf0, 0x61, 0xab, 0x9e, 0xa5, 0x9b, 0x45, 0x0c, 0x58, 0x12, 0xb5, 3110 0x3a, 0xc9, 0xf2, 0xbd, 0xab, 0x9e, 0xa9, 0xc9, 0x85, 0x9b, 0x14, 0x06, 0x97, 0xe1, 0x33, 0x58, 3111 0x3d, 0x4b, 0xe7, 0x8b, 0x7c, 0x06, 0xe5, 0xb8, 0x08, 0xcf, 0xfa, 0x71, 0xac, 0x9e, 0xb9, 0x27, 3112 0x86, 0xf2, 0xe3, 0xb2, 0x23, 0xeb, 0xa7, 0xa1, 0x7a, 0xe6, 0x66, 0x10, 0x79, 0x06, 0xc5, 0xb0, 3113 0xc0, 0xcb, 0xf6, 0xf9, 0xaa, 0x9e, 0xb1, 0x5f, 0x85, 0xd7, 0x27, 0xeb, 0xf2, 0x2c, 0xdf, 0xe8, 3114 0xea, 0x99, 0x9a, 0x72, 0xe4, 0x29, 0x14, 0x14, 0xb0, 0xce, 0xf4, 0x61, 0xaa, 0x9e, 0xad, 0x0b, 3115 0x85, 0x4a, 0x8e, 0x3b, 0x1f, 0x59, 0xbf, 0x4b, 0xd6, 0x33, 0x77, 0x23, 0x09, 0x05, 0x48, 0x14, 3116 0xeb, 0x99, 0x3f, 0x38, 0xd6, 0xb3, 0x77, 0x19, 0xc9, 0x8f, 0xa1, 0x14, 0x95, 0x64, 0x19, 0x3f, 3117 0xfc, 0xd5, 0xb3, 0x36, 0xfa, 0x9a, 0x87, 0xff, 0xfe, 0xeb, 0xba, 0xf6, 0xdb, 0xb3, 0x75, 0xed, 3118 0xcb, 0xb3, 0x75, 0xed, 0xab, 0xb3, 0x75, 0xed, 0x8f, 0x67, 0xeb, 0xda, 0x5f, 0xce, 0xd6, 0xb5, 3119 0xdf, 0xff, 0x6d, 0x5d, 0xfb, 0xd1, 0x7b, 0x1d, 0x9b, 0x77, 0x07, 0xad, 0x46, 0xdb, 0xed, 0x6f, 3120 0xc7, 0x02, 0x93, 0x8f, 0xf1, 0xd7, 0xfc, 0x56, 0x41, 0x04, 0xac, 0x6f, 0xff, 0x27, 0x00, 0x00, 3121 0xff, 0xff, 0xd6, 0x1b, 0x60, 0x6f, 0xe2, 0x1f, 0x00, 0x00, 3122 } 3123 3124 func (this *Request) Equal(that interface{}) bool { 3125 if that == nil { 3126 return this == nil 3127 } 3128 3129 that1, ok := that.(*Request) 3130 if !ok { 3131 that2, ok := that.(Request) 3132 if ok { 3133 that1 = &that2 3134 } else { 3135 return false 3136 } 3137 } 3138 if that1 == nil { 3139 return this == nil 3140 } else if this == nil { 3141 return false 3142 } 3143 if that1.Value == nil { 3144 if this.Value != nil { 3145 return false 3146 } 3147 } else if this.Value == nil { 3148 return false 3149 } else if !this.Value.Equal(that1.Value) { 3150 return false 3151 } 3152 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3153 return false 3154 } 3155 return true 3156 } 3157 func (this *Request_Echo) Equal(that interface{}) bool { 3158 if that == nil { 3159 return this == nil 3160 } 3161 3162 that1, ok := that.(*Request_Echo) 3163 if !ok { 3164 that2, ok := that.(Request_Echo) 3165 if ok { 3166 that1 = &that2 3167 } else { 3168 return false 3169 } 3170 } 3171 if that1 == nil { 3172 return this == nil 3173 } else if this == nil { 3174 return false 3175 } 3176 if !this.Echo.Equal(that1.Echo) { 3177 return false 3178 } 3179 return true 3180 } 3181 func (this *Request_Flush) Equal(that interface{}) bool { 3182 if that == nil { 3183 return this == nil 3184 } 3185 3186 that1, ok := that.(*Request_Flush) 3187 if !ok { 3188 that2, ok := that.(Request_Flush) 3189 if ok { 3190 that1 = &that2 3191 } else { 3192 return false 3193 } 3194 } 3195 if that1 == nil { 3196 return this == nil 3197 } else if this == nil { 3198 return false 3199 } 3200 if !this.Flush.Equal(that1.Flush) { 3201 return false 3202 } 3203 return true 3204 } 3205 func (this *Request_Info) Equal(that interface{}) bool { 3206 if that == nil { 3207 return this == nil 3208 } 3209 3210 that1, ok := that.(*Request_Info) 3211 if !ok { 3212 that2, ok := that.(Request_Info) 3213 if ok { 3214 that1 = &that2 3215 } else { 3216 return false 3217 } 3218 } 3219 if that1 == nil { 3220 return this == nil 3221 } else if this == nil { 3222 return false 3223 } 3224 if !this.Info.Equal(that1.Info) { 3225 return false 3226 } 3227 return true 3228 } 3229 func (this *Request_SetOption) Equal(that interface{}) bool { 3230 if that == nil { 3231 return this == nil 3232 } 3233 3234 that1, ok := that.(*Request_SetOption) 3235 if !ok { 3236 that2, ok := that.(Request_SetOption) 3237 if ok { 3238 that1 = &that2 3239 } else { 3240 return false 3241 } 3242 } 3243 if that1 == nil { 3244 return this == nil 3245 } else if this == nil { 3246 return false 3247 } 3248 if !this.SetOption.Equal(that1.SetOption) { 3249 return false 3250 } 3251 return true 3252 } 3253 func (this *Request_InitChain) Equal(that interface{}) bool { 3254 if that == nil { 3255 return this == nil 3256 } 3257 3258 that1, ok := that.(*Request_InitChain) 3259 if !ok { 3260 that2, ok := that.(Request_InitChain) 3261 if ok { 3262 that1 = &that2 3263 } else { 3264 return false 3265 } 3266 } 3267 if that1 == nil { 3268 return this == nil 3269 } else if this == nil { 3270 return false 3271 } 3272 if !this.InitChain.Equal(that1.InitChain) { 3273 return false 3274 } 3275 return true 3276 } 3277 func (this *Request_Query) Equal(that interface{}) bool { 3278 if that == nil { 3279 return this == nil 3280 } 3281 3282 that1, ok := that.(*Request_Query) 3283 if !ok { 3284 that2, ok := that.(Request_Query) 3285 if ok { 3286 that1 = &that2 3287 } else { 3288 return false 3289 } 3290 } 3291 if that1 == nil { 3292 return this == nil 3293 } else if this == nil { 3294 return false 3295 } 3296 if !this.Query.Equal(that1.Query) { 3297 return false 3298 } 3299 return true 3300 } 3301 func (this *Request_BeginBlock) Equal(that interface{}) bool { 3302 if that == nil { 3303 return this == nil 3304 } 3305 3306 that1, ok := that.(*Request_BeginBlock) 3307 if !ok { 3308 that2, ok := that.(Request_BeginBlock) 3309 if ok { 3310 that1 = &that2 3311 } else { 3312 return false 3313 } 3314 } 3315 if that1 == nil { 3316 return this == nil 3317 } else if this == nil { 3318 return false 3319 } 3320 if !this.BeginBlock.Equal(that1.BeginBlock) { 3321 return false 3322 } 3323 return true 3324 } 3325 func (this *Request_CheckTx) Equal(that interface{}) bool { 3326 if that == nil { 3327 return this == nil 3328 } 3329 3330 that1, ok := that.(*Request_CheckTx) 3331 if !ok { 3332 that2, ok := that.(Request_CheckTx) 3333 if ok { 3334 that1 = &that2 3335 } else { 3336 return false 3337 } 3338 } 3339 if that1 == nil { 3340 return this == nil 3341 } else if this == nil { 3342 return false 3343 } 3344 if !this.CheckTx.Equal(that1.CheckTx) { 3345 return false 3346 } 3347 return true 3348 } 3349 func (this *Request_DeliverTx) Equal(that interface{}) bool { 3350 if that == nil { 3351 return this == nil 3352 } 3353 3354 that1, ok := that.(*Request_DeliverTx) 3355 if !ok { 3356 that2, ok := that.(Request_DeliverTx) 3357 if ok { 3358 that1 = &that2 3359 } else { 3360 return false 3361 } 3362 } 3363 if that1 == nil { 3364 return this == nil 3365 } else if this == nil { 3366 return false 3367 } 3368 if !this.DeliverTx.Equal(that1.DeliverTx) { 3369 return false 3370 } 3371 return true 3372 } 3373 func (this *Request_EndBlock) Equal(that interface{}) bool { 3374 if that == nil { 3375 return this == nil 3376 } 3377 3378 that1, ok := that.(*Request_EndBlock) 3379 if !ok { 3380 that2, ok := that.(Request_EndBlock) 3381 if ok { 3382 that1 = &that2 3383 } else { 3384 return false 3385 } 3386 } 3387 if that1 == nil { 3388 return this == nil 3389 } else if this == nil { 3390 return false 3391 } 3392 if !this.EndBlock.Equal(that1.EndBlock) { 3393 return false 3394 } 3395 return true 3396 } 3397 func (this *Request_Commit) Equal(that interface{}) bool { 3398 if that == nil { 3399 return this == nil 3400 } 3401 3402 that1, ok := that.(*Request_Commit) 3403 if !ok { 3404 that2, ok := that.(Request_Commit) 3405 if ok { 3406 that1 = &that2 3407 } else { 3408 return false 3409 } 3410 } 3411 if that1 == nil { 3412 return this == nil 3413 } else if this == nil { 3414 return false 3415 } 3416 if !this.Commit.Equal(that1.Commit) { 3417 return false 3418 } 3419 return true 3420 } 3421 func (this *RequestEcho) Equal(that interface{}) bool { 3422 if that == nil { 3423 return this == nil 3424 } 3425 3426 that1, ok := that.(*RequestEcho) 3427 if !ok { 3428 that2, ok := that.(RequestEcho) 3429 if ok { 3430 that1 = &that2 3431 } else { 3432 return false 3433 } 3434 } 3435 if that1 == nil { 3436 return this == nil 3437 } else if this == nil { 3438 return false 3439 } 3440 if this.Message != that1.Message { 3441 return false 3442 } 3443 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3444 return false 3445 } 3446 return true 3447 } 3448 func (this *RequestFlush) Equal(that interface{}) bool { 3449 if that == nil { 3450 return this == nil 3451 } 3452 3453 that1, ok := that.(*RequestFlush) 3454 if !ok { 3455 that2, ok := that.(RequestFlush) 3456 if ok { 3457 that1 = &that2 3458 } else { 3459 return false 3460 } 3461 } 3462 if that1 == nil { 3463 return this == nil 3464 } else if this == nil { 3465 return false 3466 } 3467 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3468 return false 3469 } 3470 return true 3471 } 3472 func (this *RequestInfo) Equal(that interface{}) bool { 3473 if that == nil { 3474 return this == nil 3475 } 3476 3477 that1, ok := that.(*RequestInfo) 3478 if !ok { 3479 that2, ok := that.(RequestInfo) 3480 if ok { 3481 that1 = &that2 3482 } else { 3483 return false 3484 } 3485 } 3486 if that1 == nil { 3487 return this == nil 3488 } else if this == nil { 3489 return false 3490 } 3491 if this.Version != that1.Version { 3492 return false 3493 } 3494 if this.BlockVersion != that1.BlockVersion { 3495 return false 3496 } 3497 if this.P2PVersion != that1.P2PVersion { 3498 return false 3499 } 3500 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3501 return false 3502 } 3503 return true 3504 } 3505 func (this *RequestSetOption) Equal(that interface{}) bool { 3506 if that == nil { 3507 return this == nil 3508 } 3509 3510 that1, ok := that.(*RequestSetOption) 3511 if !ok { 3512 that2, ok := that.(RequestSetOption) 3513 if ok { 3514 that1 = &that2 3515 } else { 3516 return false 3517 } 3518 } 3519 if that1 == nil { 3520 return this == nil 3521 } else if this == nil { 3522 return false 3523 } 3524 if this.Key != that1.Key { 3525 return false 3526 } 3527 if this.Value != that1.Value { 3528 return false 3529 } 3530 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3531 return false 3532 } 3533 return true 3534 } 3535 func (this *RequestInitChain) Equal(that interface{}) bool { 3536 if that == nil { 3537 return this == nil 3538 } 3539 3540 that1, ok := that.(*RequestInitChain) 3541 if !ok { 3542 that2, ok := that.(RequestInitChain) 3543 if ok { 3544 that1 = &that2 3545 } else { 3546 return false 3547 } 3548 } 3549 if that1 == nil { 3550 return this == nil 3551 } else if this == nil { 3552 return false 3553 } 3554 if !this.Time.Equal(that1.Time) { 3555 return false 3556 } 3557 if this.ChainId != that1.ChainId { 3558 return false 3559 } 3560 if !this.ConsensusParams.Equal(that1.ConsensusParams) { 3561 return false 3562 } 3563 if len(this.Validators) != len(that1.Validators) { 3564 return false 3565 } 3566 for i := range this.Validators { 3567 if !this.Validators[i].Equal(&that1.Validators[i]) { 3568 return false 3569 } 3570 } 3571 if !bytes.Equal(this.AppStateBytes, that1.AppStateBytes) { 3572 return false 3573 } 3574 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3575 return false 3576 } 3577 return true 3578 } 3579 func (this *RequestQuery) Equal(that interface{}) bool { 3580 if that == nil { 3581 return this == nil 3582 } 3583 3584 that1, ok := that.(*RequestQuery) 3585 if !ok { 3586 that2, ok := that.(RequestQuery) 3587 if ok { 3588 that1 = &that2 3589 } else { 3590 return false 3591 } 3592 } 3593 if that1 == nil { 3594 return this == nil 3595 } else if this == nil { 3596 return false 3597 } 3598 if !bytes.Equal(this.Data, that1.Data) { 3599 return false 3600 } 3601 if this.Path != that1.Path { 3602 return false 3603 } 3604 if this.Height != that1.Height { 3605 return false 3606 } 3607 if this.Prove != that1.Prove { 3608 return false 3609 } 3610 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3611 return false 3612 } 3613 return true 3614 } 3615 func (this *RequestBeginBlock) Equal(that interface{}) bool { 3616 if that == nil { 3617 return this == nil 3618 } 3619 3620 that1, ok := that.(*RequestBeginBlock) 3621 if !ok { 3622 that2, ok := that.(RequestBeginBlock) 3623 if ok { 3624 that1 = &that2 3625 } else { 3626 return false 3627 } 3628 } 3629 if that1 == nil { 3630 return this == nil 3631 } else if this == nil { 3632 return false 3633 } 3634 if !bytes.Equal(this.Hash, that1.Hash) { 3635 return false 3636 } 3637 if !this.Header.Equal(&that1.Header) { 3638 return false 3639 } 3640 if !this.LastCommitInfo.Equal(&that1.LastCommitInfo) { 3641 return false 3642 } 3643 if len(this.ByzantineValidators) != len(that1.ByzantineValidators) { 3644 return false 3645 } 3646 for i := range this.ByzantineValidators { 3647 if !this.ByzantineValidators[i].Equal(&that1.ByzantineValidators[i]) { 3648 return false 3649 } 3650 } 3651 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3652 return false 3653 } 3654 return true 3655 } 3656 func (this *RequestCheckTx) Equal(that interface{}) bool { 3657 if that == nil { 3658 return this == nil 3659 } 3660 3661 that1, ok := that.(*RequestCheckTx) 3662 if !ok { 3663 that2, ok := that.(RequestCheckTx) 3664 if ok { 3665 that1 = &that2 3666 } else { 3667 return false 3668 } 3669 } 3670 if that1 == nil { 3671 return this == nil 3672 } else if this == nil { 3673 return false 3674 } 3675 if !bytes.Equal(this.Tx, that1.Tx) { 3676 return false 3677 } 3678 if this.Type != that1.Type { 3679 return false 3680 } 3681 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3682 return false 3683 } 3684 return true 3685 } 3686 func (this *RequestDeliverTx) Equal(that interface{}) bool { 3687 if that == nil { 3688 return this == nil 3689 } 3690 3691 that1, ok := that.(*RequestDeliverTx) 3692 if !ok { 3693 that2, ok := that.(RequestDeliverTx) 3694 if ok { 3695 that1 = &that2 3696 } else { 3697 return false 3698 } 3699 } 3700 if that1 == nil { 3701 return this == nil 3702 } else if this == nil { 3703 return false 3704 } 3705 if !bytes.Equal(this.Tx, that1.Tx) { 3706 return false 3707 } 3708 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3709 return false 3710 } 3711 return true 3712 } 3713 func (this *RequestEndBlock) Equal(that interface{}) bool { 3714 if that == nil { 3715 return this == nil 3716 } 3717 3718 that1, ok := that.(*RequestEndBlock) 3719 if !ok { 3720 that2, ok := that.(RequestEndBlock) 3721 if ok { 3722 that1 = &that2 3723 } else { 3724 return false 3725 } 3726 } 3727 if that1 == nil { 3728 return this == nil 3729 } else if this == nil { 3730 return false 3731 } 3732 if this.Height != that1.Height { 3733 return false 3734 } 3735 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3736 return false 3737 } 3738 return true 3739 } 3740 func (this *RequestCommit) Equal(that interface{}) bool { 3741 if that == nil { 3742 return this == nil 3743 } 3744 3745 that1, ok := that.(*RequestCommit) 3746 if !ok { 3747 that2, ok := that.(RequestCommit) 3748 if ok { 3749 that1 = &that2 3750 } else { 3751 return false 3752 } 3753 } 3754 if that1 == nil { 3755 return this == nil 3756 } else if this == nil { 3757 return false 3758 } 3759 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3760 return false 3761 } 3762 return true 3763 } 3764 func (this *Response) Equal(that interface{}) bool { 3765 if that == nil { 3766 return this == nil 3767 } 3768 3769 that1, ok := that.(*Response) 3770 if !ok { 3771 that2, ok := that.(Response) 3772 if ok { 3773 that1 = &that2 3774 } else { 3775 return false 3776 } 3777 } 3778 if that1 == nil { 3779 return this == nil 3780 } else if this == nil { 3781 return false 3782 } 3783 if that1.Value == nil { 3784 if this.Value != nil { 3785 return false 3786 } 3787 } else if this.Value == nil { 3788 return false 3789 } else if !this.Value.Equal(that1.Value) { 3790 return false 3791 } 3792 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3793 return false 3794 } 3795 return true 3796 } 3797 func (this *Response_Exception) Equal(that interface{}) bool { 3798 if that == nil { 3799 return this == nil 3800 } 3801 3802 that1, ok := that.(*Response_Exception) 3803 if !ok { 3804 that2, ok := that.(Response_Exception) 3805 if ok { 3806 that1 = &that2 3807 } else { 3808 return false 3809 } 3810 } 3811 if that1 == nil { 3812 return this == nil 3813 } else if this == nil { 3814 return false 3815 } 3816 if !this.Exception.Equal(that1.Exception) { 3817 return false 3818 } 3819 return true 3820 } 3821 func (this *Response_Echo) Equal(that interface{}) bool { 3822 if that == nil { 3823 return this == nil 3824 } 3825 3826 that1, ok := that.(*Response_Echo) 3827 if !ok { 3828 that2, ok := that.(Response_Echo) 3829 if ok { 3830 that1 = &that2 3831 } else { 3832 return false 3833 } 3834 } 3835 if that1 == nil { 3836 return this == nil 3837 } else if this == nil { 3838 return false 3839 } 3840 if !this.Echo.Equal(that1.Echo) { 3841 return false 3842 } 3843 return true 3844 } 3845 func (this *Response_Flush) Equal(that interface{}) bool { 3846 if that == nil { 3847 return this == nil 3848 } 3849 3850 that1, ok := that.(*Response_Flush) 3851 if !ok { 3852 that2, ok := that.(Response_Flush) 3853 if ok { 3854 that1 = &that2 3855 } else { 3856 return false 3857 } 3858 } 3859 if that1 == nil { 3860 return this == nil 3861 } else if this == nil { 3862 return false 3863 } 3864 if !this.Flush.Equal(that1.Flush) { 3865 return false 3866 } 3867 return true 3868 } 3869 func (this *Response_Info) Equal(that interface{}) bool { 3870 if that == nil { 3871 return this == nil 3872 } 3873 3874 that1, ok := that.(*Response_Info) 3875 if !ok { 3876 that2, ok := that.(Response_Info) 3877 if ok { 3878 that1 = &that2 3879 } else { 3880 return false 3881 } 3882 } 3883 if that1 == nil { 3884 return this == nil 3885 } else if this == nil { 3886 return false 3887 } 3888 if !this.Info.Equal(that1.Info) { 3889 return false 3890 } 3891 return true 3892 } 3893 func (this *Response_SetOption) Equal(that interface{}) bool { 3894 if that == nil { 3895 return this == nil 3896 } 3897 3898 that1, ok := that.(*Response_SetOption) 3899 if !ok { 3900 that2, ok := that.(Response_SetOption) 3901 if ok { 3902 that1 = &that2 3903 } else { 3904 return false 3905 } 3906 } 3907 if that1 == nil { 3908 return this == nil 3909 } else if this == nil { 3910 return false 3911 } 3912 if !this.SetOption.Equal(that1.SetOption) { 3913 return false 3914 } 3915 return true 3916 } 3917 func (this *Response_InitChain) Equal(that interface{}) bool { 3918 if that == nil { 3919 return this == nil 3920 } 3921 3922 that1, ok := that.(*Response_InitChain) 3923 if !ok { 3924 that2, ok := that.(Response_InitChain) 3925 if ok { 3926 that1 = &that2 3927 } else { 3928 return false 3929 } 3930 } 3931 if that1 == nil { 3932 return this == nil 3933 } else if this == nil { 3934 return false 3935 } 3936 if !this.InitChain.Equal(that1.InitChain) { 3937 return false 3938 } 3939 return true 3940 } 3941 func (this *Response_Query) Equal(that interface{}) bool { 3942 if that == nil { 3943 return this == nil 3944 } 3945 3946 that1, ok := that.(*Response_Query) 3947 if !ok { 3948 that2, ok := that.(Response_Query) 3949 if ok { 3950 that1 = &that2 3951 } else { 3952 return false 3953 } 3954 } 3955 if that1 == nil { 3956 return this == nil 3957 } else if this == nil { 3958 return false 3959 } 3960 if !this.Query.Equal(that1.Query) { 3961 return false 3962 } 3963 return true 3964 } 3965 func (this *Response_BeginBlock) Equal(that interface{}) bool { 3966 if that == nil { 3967 return this == nil 3968 } 3969 3970 that1, ok := that.(*Response_BeginBlock) 3971 if !ok { 3972 that2, ok := that.(Response_BeginBlock) 3973 if ok { 3974 that1 = &that2 3975 } else { 3976 return false 3977 } 3978 } 3979 if that1 == nil { 3980 return this == nil 3981 } else if this == nil { 3982 return false 3983 } 3984 if !this.BeginBlock.Equal(that1.BeginBlock) { 3985 return false 3986 } 3987 return true 3988 } 3989 func (this *Response_CheckTx) Equal(that interface{}) bool { 3990 if that == nil { 3991 return this == nil 3992 } 3993 3994 that1, ok := that.(*Response_CheckTx) 3995 if !ok { 3996 that2, ok := that.(Response_CheckTx) 3997 if ok { 3998 that1 = &that2 3999 } else { 4000 return false 4001 } 4002 } 4003 if that1 == nil { 4004 return this == nil 4005 } else if this == nil { 4006 return false 4007 } 4008 if !this.CheckTx.Equal(that1.CheckTx) { 4009 return false 4010 } 4011 return true 4012 } 4013 func (this *Response_DeliverTx) Equal(that interface{}) bool { 4014 if that == nil { 4015 return this == nil 4016 } 4017 4018 that1, ok := that.(*Response_DeliverTx) 4019 if !ok { 4020 that2, ok := that.(Response_DeliverTx) 4021 if ok { 4022 that1 = &that2 4023 } else { 4024 return false 4025 } 4026 } 4027 if that1 == nil { 4028 return this == nil 4029 } else if this == nil { 4030 return false 4031 } 4032 if !this.DeliverTx.Equal(that1.DeliverTx) { 4033 return false 4034 } 4035 return true 4036 } 4037 func (this *Response_EndBlock) Equal(that interface{}) bool { 4038 if that == nil { 4039 return this == nil 4040 } 4041 4042 that1, ok := that.(*Response_EndBlock) 4043 if !ok { 4044 that2, ok := that.(Response_EndBlock) 4045 if ok { 4046 that1 = &that2 4047 } else { 4048 return false 4049 } 4050 } 4051 if that1 == nil { 4052 return this == nil 4053 } else if this == nil { 4054 return false 4055 } 4056 if !this.EndBlock.Equal(that1.EndBlock) { 4057 return false 4058 } 4059 return true 4060 } 4061 func (this *Response_Commit) Equal(that interface{}) bool { 4062 if that == nil { 4063 return this == nil 4064 } 4065 4066 that1, ok := that.(*Response_Commit) 4067 if !ok { 4068 that2, ok := that.(Response_Commit) 4069 if ok { 4070 that1 = &that2 4071 } else { 4072 return false 4073 } 4074 } 4075 if that1 == nil { 4076 return this == nil 4077 } else if this == nil { 4078 return false 4079 } 4080 if !this.Commit.Equal(that1.Commit) { 4081 return false 4082 } 4083 return true 4084 } 4085 func (this *ResponseException) Equal(that interface{}) bool { 4086 if that == nil { 4087 return this == nil 4088 } 4089 4090 that1, ok := that.(*ResponseException) 4091 if !ok { 4092 that2, ok := that.(ResponseException) 4093 if ok { 4094 that1 = &that2 4095 } else { 4096 return false 4097 } 4098 } 4099 if that1 == nil { 4100 return this == nil 4101 } else if this == nil { 4102 return false 4103 } 4104 if this.Error != that1.Error { 4105 return false 4106 } 4107 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4108 return false 4109 } 4110 return true 4111 } 4112 func (this *ResponseEcho) Equal(that interface{}) bool { 4113 if that == nil { 4114 return this == nil 4115 } 4116 4117 that1, ok := that.(*ResponseEcho) 4118 if !ok { 4119 that2, ok := that.(ResponseEcho) 4120 if ok { 4121 that1 = &that2 4122 } else { 4123 return false 4124 } 4125 } 4126 if that1 == nil { 4127 return this == nil 4128 } else if this == nil { 4129 return false 4130 } 4131 if this.Message != that1.Message { 4132 return false 4133 } 4134 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4135 return false 4136 } 4137 return true 4138 } 4139 func (this *ResponseFlush) Equal(that interface{}) bool { 4140 if that == nil { 4141 return this == nil 4142 } 4143 4144 that1, ok := that.(*ResponseFlush) 4145 if !ok { 4146 that2, ok := that.(ResponseFlush) 4147 if ok { 4148 that1 = &that2 4149 } else { 4150 return false 4151 } 4152 } 4153 if that1 == nil { 4154 return this == nil 4155 } else if this == nil { 4156 return false 4157 } 4158 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4159 return false 4160 } 4161 return true 4162 } 4163 func (this *ResponseInfo) Equal(that interface{}) bool { 4164 if that == nil { 4165 return this == nil 4166 } 4167 4168 that1, ok := that.(*ResponseInfo) 4169 if !ok { 4170 that2, ok := that.(ResponseInfo) 4171 if ok { 4172 that1 = &that2 4173 } else { 4174 return false 4175 } 4176 } 4177 if that1 == nil { 4178 return this == nil 4179 } else if this == nil { 4180 return false 4181 } 4182 if this.Data != that1.Data { 4183 return false 4184 } 4185 if this.Version != that1.Version { 4186 return false 4187 } 4188 if this.AppVersion != that1.AppVersion { 4189 return false 4190 } 4191 if this.LastBlockHeight != that1.LastBlockHeight { 4192 return false 4193 } 4194 if !bytes.Equal(this.LastBlockAppHash, that1.LastBlockAppHash) { 4195 return false 4196 } 4197 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4198 return false 4199 } 4200 return true 4201 } 4202 func (this *ResponseSetOption) Equal(that interface{}) bool { 4203 if that == nil { 4204 return this == nil 4205 } 4206 4207 that1, ok := that.(*ResponseSetOption) 4208 if !ok { 4209 that2, ok := that.(ResponseSetOption) 4210 if ok { 4211 that1 = &that2 4212 } else { 4213 return false 4214 } 4215 } 4216 if that1 == nil { 4217 return this == nil 4218 } else if this == nil { 4219 return false 4220 } 4221 if this.Code != that1.Code { 4222 return false 4223 } 4224 if this.Log != that1.Log { 4225 return false 4226 } 4227 if this.Info != that1.Info { 4228 return false 4229 } 4230 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4231 return false 4232 } 4233 return true 4234 } 4235 func (this *ResponseInitChain) Equal(that interface{}) bool { 4236 if that == nil { 4237 return this == nil 4238 } 4239 4240 that1, ok := that.(*ResponseInitChain) 4241 if !ok { 4242 that2, ok := that.(ResponseInitChain) 4243 if ok { 4244 that1 = &that2 4245 } else { 4246 return false 4247 } 4248 } 4249 if that1 == nil { 4250 return this == nil 4251 } else if this == nil { 4252 return false 4253 } 4254 if !this.ConsensusParams.Equal(that1.ConsensusParams) { 4255 return false 4256 } 4257 if len(this.Validators) != len(that1.Validators) { 4258 return false 4259 } 4260 for i := range this.Validators { 4261 if !this.Validators[i].Equal(&that1.Validators[i]) { 4262 return false 4263 } 4264 } 4265 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4266 return false 4267 } 4268 return true 4269 } 4270 func (this *ResponseQuery) Equal(that interface{}) bool { 4271 if that == nil { 4272 return this == nil 4273 } 4274 4275 that1, ok := that.(*ResponseQuery) 4276 if !ok { 4277 that2, ok := that.(ResponseQuery) 4278 if ok { 4279 that1 = &that2 4280 } else { 4281 return false 4282 } 4283 } 4284 if that1 == nil { 4285 return this == nil 4286 } else if this == nil { 4287 return false 4288 } 4289 if this.Code != that1.Code { 4290 return false 4291 } 4292 if this.Log != that1.Log { 4293 return false 4294 } 4295 if this.Info != that1.Info { 4296 return false 4297 } 4298 if this.Index != that1.Index { 4299 return false 4300 } 4301 if !bytes.Equal(this.Key, that1.Key) { 4302 return false 4303 } 4304 if !bytes.Equal(this.Value, that1.Value) { 4305 return false 4306 } 4307 if !this.Proof.Equal(that1.Proof) { 4308 return false 4309 } 4310 if this.Height != that1.Height { 4311 return false 4312 } 4313 if this.Codespace != that1.Codespace { 4314 return false 4315 } 4316 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4317 return false 4318 } 4319 return true 4320 } 4321 func (this *ResponseBeginBlock) Equal(that interface{}) bool { 4322 if that == nil { 4323 return this == nil 4324 } 4325 4326 that1, ok := that.(*ResponseBeginBlock) 4327 if !ok { 4328 that2, ok := that.(ResponseBeginBlock) 4329 if ok { 4330 that1 = &that2 4331 } else { 4332 return false 4333 } 4334 } 4335 if that1 == nil { 4336 return this == nil 4337 } else if this == nil { 4338 return false 4339 } 4340 if len(this.Events) != len(that1.Events) { 4341 return false 4342 } 4343 for i := range this.Events { 4344 if !this.Events[i].Equal(&that1.Events[i]) { 4345 return false 4346 } 4347 } 4348 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4349 return false 4350 } 4351 return true 4352 } 4353 func (this *ResponseCheckTx) Equal(that interface{}) bool { 4354 if that == nil { 4355 return this == nil 4356 } 4357 4358 that1, ok := that.(*ResponseCheckTx) 4359 if !ok { 4360 that2, ok := that.(ResponseCheckTx) 4361 if ok { 4362 that1 = &that2 4363 } else { 4364 return false 4365 } 4366 } 4367 if that1 == nil { 4368 return this == nil 4369 } else if this == nil { 4370 return false 4371 } 4372 if this.Code != that1.Code { 4373 return false 4374 } 4375 if !bytes.Equal(this.Data, that1.Data) { 4376 return false 4377 } 4378 if this.Log != that1.Log { 4379 return false 4380 } 4381 if this.Info != that1.Info { 4382 return false 4383 } 4384 if this.GasWanted != that1.GasWanted { 4385 return false 4386 } 4387 if this.GasUsed != that1.GasUsed { 4388 return false 4389 } 4390 if len(this.Events) != len(that1.Events) { 4391 return false 4392 } 4393 for i := range this.Events { 4394 if !this.Events[i].Equal(&that1.Events[i]) { 4395 return false 4396 } 4397 } 4398 if this.Codespace != that1.Codespace { 4399 return false 4400 } 4401 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4402 return false 4403 } 4404 return true 4405 } 4406 func (this *ResponseDeliverTx) Equal(that interface{}) bool { 4407 if that == nil { 4408 return this == nil 4409 } 4410 4411 that1, ok := that.(*ResponseDeliverTx) 4412 if !ok { 4413 that2, ok := that.(ResponseDeliverTx) 4414 if ok { 4415 that1 = &that2 4416 } else { 4417 return false 4418 } 4419 } 4420 if that1 == nil { 4421 return this == nil 4422 } else if this == nil { 4423 return false 4424 } 4425 if this.Code != that1.Code { 4426 return false 4427 } 4428 if !bytes.Equal(this.Data, that1.Data) { 4429 return false 4430 } 4431 if this.Log != that1.Log { 4432 return false 4433 } 4434 if this.Info != that1.Info { 4435 return false 4436 } 4437 if this.GasWanted != that1.GasWanted { 4438 return false 4439 } 4440 if this.GasUsed != that1.GasUsed { 4441 return false 4442 } 4443 if len(this.Events) != len(that1.Events) { 4444 return false 4445 } 4446 for i := range this.Events { 4447 if !this.Events[i].Equal(&that1.Events[i]) { 4448 return false 4449 } 4450 } 4451 if this.Codespace != that1.Codespace { 4452 return false 4453 } 4454 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4455 return false 4456 } 4457 return true 4458 } 4459 func (this *ResponseEndBlock) Equal(that interface{}) bool { 4460 if that == nil { 4461 return this == nil 4462 } 4463 4464 that1, ok := that.(*ResponseEndBlock) 4465 if !ok { 4466 that2, ok := that.(ResponseEndBlock) 4467 if ok { 4468 that1 = &that2 4469 } else { 4470 return false 4471 } 4472 } 4473 if that1 == nil { 4474 return this == nil 4475 } else if this == nil { 4476 return false 4477 } 4478 if len(this.ValidatorUpdates) != len(that1.ValidatorUpdates) { 4479 return false 4480 } 4481 for i := range this.ValidatorUpdates { 4482 if !this.ValidatorUpdates[i].Equal(&that1.ValidatorUpdates[i]) { 4483 return false 4484 } 4485 } 4486 if !this.ConsensusParamUpdates.Equal(that1.ConsensusParamUpdates) { 4487 return false 4488 } 4489 if len(this.Events) != len(that1.Events) { 4490 return false 4491 } 4492 for i := range this.Events { 4493 if !this.Events[i].Equal(&that1.Events[i]) { 4494 return false 4495 } 4496 } 4497 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4498 return false 4499 } 4500 return true 4501 } 4502 func (this *ResponseCommit) Equal(that interface{}) bool { 4503 if that == nil { 4504 return this == nil 4505 } 4506 4507 that1, ok := that.(*ResponseCommit) 4508 if !ok { 4509 that2, ok := that.(ResponseCommit) 4510 if ok { 4511 that1 = &that2 4512 } else { 4513 return false 4514 } 4515 } 4516 if that1 == nil { 4517 return this == nil 4518 } else if this == nil { 4519 return false 4520 } 4521 if !bytes.Equal(this.Data, that1.Data) { 4522 return false 4523 } 4524 if this.RetainHeight != that1.RetainHeight { 4525 return false 4526 } 4527 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4528 return false 4529 } 4530 return true 4531 } 4532 func (this *ConsensusParams) Equal(that interface{}) bool { 4533 if that == nil { 4534 return this == nil 4535 } 4536 4537 that1, ok := that.(*ConsensusParams) 4538 if !ok { 4539 that2, ok := that.(ConsensusParams) 4540 if ok { 4541 that1 = &that2 4542 } else { 4543 return false 4544 } 4545 } 4546 if that1 == nil { 4547 return this == nil 4548 } else if this == nil { 4549 return false 4550 } 4551 if !this.Block.Equal(that1.Block) { 4552 return false 4553 } 4554 if !this.Evidence.Equal(that1.Evidence) { 4555 return false 4556 } 4557 if !this.Validator.Equal(that1.Validator) { 4558 return false 4559 } 4560 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4561 return false 4562 } 4563 return true 4564 } 4565 func (this *BlockParams) Equal(that interface{}) bool { 4566 if that == nil { 4567 return this == nil 4568 } 4569 4570 that1, ok := that.(*BlockParams) 4571 if !ok { 4572 that2, ok := that.(BlockParams) 4573 if ok { 4574 that1 = &that2 4575 } else { 4576 return false 4577 } 4578 } 4579 if that1 == nil { 4580 return this == nil 4581 } else if this == nil { 4582 return false 4583 } 4584 if this.MaxBytes != that1.MaxBytes { 4585 return false 4586 } 4587 if this.MaxGas != that1.MaxGas { 4588 return false 4589 } 4590 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4591 return false 4592 } 4593 return true 4594 } 4595 func (this *EvidenceParams) Equal(that interface{}) bool { 4596 if that == nil { 4597 return this == nil 4598 } 4599 4600 that1, ok := that.(*EvidenceParams) 4601 if !ok { 4602 that2, ok := that.(EvidenceParams) 4603 if ok { 4604 that1 = &that2 4605 } else { 4606 return false 4607 } 4608 } 4609 if that1 == nil { 4610 return this == nil 4611 } else if this == nil { 4612 return false 4613 } 4614 if this.MaxAgeNumBlocks != that1.MaxAgeNumBlocks { 4615 return false 4616 } 4617 if this.MaxAgeDuration != that1.MaxAgeDuration { 4618 return false 4619 } 4620 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4621 return false 4622 } 4623 return true 4624 } 4625 func (this *ValidatorParams) Equal(that interface{}) bool { 4626 if that == nil { 4627 return this == nil 4628 } 4629 4630 that1, ok := that.(*ValidatorParams) 4631 if !ok { 4632 that2, ok := that.(ValidatorParams) 4633 if ok { 4634 that1 = &that2 4635 } else { 4636 return false 4637 } 4638 } 4639 if that1 == nil { 4640 return this == nil 4641 } else if this == nil { 4642 return false 4643 } 4644 if len(this.PubKeyTypes) != len(that1.PubKeyTypes) { 4645 return false 4646 } 4647 for i := range this.PubKeyTypes { 4648 if this.PubKeyTypes[i] != that1.PubKeyTypes[i] { 4649 return false 4650 } 4651 } 4652 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4653 return false 4654 } 4655 return true 4656 } 4657 func (this *LastCommitInfo) Equal(that interface{}) bool { 4658 if that == nil { 4659 return this == nil 4660 } 4661 4662 that1, ok := that.(*LastCommitInfo) 4663 if !ok { 4664 that2, ok := that.(LastCommitInfo) 4665 if ok { 4666 that1 = &that2 4667 } else { 4668 return false 4669 } 4670 } 4671 if that1 == nil { 4672 return this == nil 4673 } else if this == nil { 4674 return false 4675 } 4676 if this.Round != that1.Round { 4677 return false 4678 } 4679 if len(this.Votes) != len(that1.Votes) { 4680 return false 4681 } 4682 for i := range this.Votes { 4683 if !this.Votes[i].Equal(&that1.Votes[i]) { 4684 return false 4685 } 4686 } 4687 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4688 return false 4689 } 4690 return true 4691 } 4692 func (this *Event) Equal(that interface{}) bool { 4693 if that == nil { 4694 return this == nil 4695 } 4696 4697 that1, ok := that.(*Event) 4698 if !ok { 4699 that2, ok := that.(Event) 4700 if ok { 4701 that1 = &that2 4702 } else { 4703 return false 4704 } 4705 } 4706 if that1 == nil { 4707 return this == nil 4708 } else if this == nil { 4709 return false 4710 } 4711 if this.Type != that1.Type { 4712 return false 4713 } 4714 if len(this.Attributes) != len(that1.Attributes) { 4715 return false 4716 } 4717 for i := range this.Attributes { 4718 if !this.Attributes[i].Equal(&that1.Attributes[i]) { 4719 return false 4720 } 4721 } 4722 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4723 return false 4724 } 4725 return true 4726 } 4727 func (this *Header) Equal(that interface{}) bool { 4728 if that == nil { 4729 return this == nil 4730 } 4731 4732 that1, ok := that.(*Header) 4733 if !ok { 4734 that2, ok := that.(Header) 4735 if ok { 4736 that1 = &that2 4737 } else { 4738 return false 4739 } 4740 } 4741 if that1 == nil { 4742 return this == nil 4743 } else if this == nil { 4744 return false 4745 } 4746 if !this.Version.Equal(&that1.Version) { 4747 return false 4748 } 4749 if this.ChainID != that1.ChainID { 4750 return false 4751 } 4752 if this.Height != that1.Height { 4753 return false 4754 } 4755 if !this.Time.Equal(that1.Time) { 4756 return false 4757 } 4758 if !this.LastBlockId.Equal(&that1.LastBlockId) { 4759 return false 4760 } 4761 if !bytes.Equal(this.LastCommitHash, that1.LastCommitHash) { 4762 return false 4763 } 4764 if !bytes.Equal(this.DataHash, that1.DataHash) { 4765 return false 4766 } 4767 if !bytes.Equal(this.ValidatorsHash, that1.ValidatorsHash) { 4768 return false 4769 } 4770 if !bytes.Equal(this.NextValidatorsHash, that1.NextValidatorsHash) { 4771 return false 4772 } 4773 if !bytes.Equal(this.ConsensusHash, that1.ConsensusHash) { 4774 return false 4775 } 4776 if !bytes.Equal(this.AppHash, that1.AppHash) { 4777 return false 4778 } 4779 if !bytes.Equal(this.LastResultsHash, that1.LastResultsHash) { 4780 return false 4781 } 4782 if !bytes.Equal(this.EvidenceHash, that1.EvidenceHash) { 4783 return false 4784 } 4785 if !bytes.Equal(this.ProposerAddress, that1.ProposerAddress) { 4786 return false 4787 } 4788 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4789 return false 4790 } 4791 return true 4792 } 4793 func (this *Version) Equal(that interface{}) bool { 4794 if that == nil { 4795 return this == nil 4796 } 4797 4798 that1, ok := that.(*Version) 4799 if !ok { 4800 that2, ok := that.(Version) 4801 if ok { 4802 that1 = &that2 4803 } else { 4804 return false 4805 } 4806 } 4807 if that1 == nil { 4808 return this == nil 4809 } else if this == nil { 4810 return false 4811 } 4812 if this.Block != that1.Block { 4813 return false 4814 } 4815 if this.App != that1.App { 4816 return false 4817 } 4818 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4819 return false 4820 } 4821 return true 4822 } 4823 func (this *BlockID) Equal(that interface{}) bool { 4824 if that == nil { 4825 return this == nil 4826 } 4827 4828 that1, ok := that.(*BlockID) 4829 if !ok { 4830 that2, ok := that.(BlockID) 4831 if ok { 4832 that1 = &that2 4833 } else { 4834 return false 4835 } 4836 } 4837 if that1 == nil { 4838 return this == nil 4839 } else if this == nil { 4840 return false 4841 } 4842 if !bytes.Equal(this.Hash, that1.Hash) { 4843 return false 4844 } 4845 if !this.PartsHeader.Equal(&that1.PartsHeader) { 4846 return false 4847 } 4848 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4849 return false 4850 } 4851 return true 4852 } 4853 func (this *PartSetHeader) Equal(that interface{}) bool { 4854 if that == nil { 4855 return this == nil 4856 } 4857 4858 that1, ok := that.(*PartSetHeader) 4859 if !ok { 4860 that2, ok := that.(PartSetHeader) 4861 if ok { 4862 that1 = &that2 4863 } else { 4864 return false 4865 } 4866 } 4867 if that1 == nil { 4868 return this == nil 4869 } else if this == nil { 4870 return false 4871 } 4872 if this.Total != that1.Total { 4873 return false 4874 } 4875 if !bytes.Equal(this.Hash, that1.Hash) { 4876 return false 4877 } 4878 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4879 return false 4880 } 4881 return true 4882 } 4883 func (this *Validator) Equal(that interface{}) bool { 4884 if that == nil { 4885 return this == nil 4886 } 4887 4888 that1, ok := that.(*Validator) 4889 if !ok { 4890 that2, ok := that.(Validator) 4891 if ok { 4892 that1 = &that2 4893 } else { 4894 return false 4895 } 4896 } 4897 if that1 == nil { 4898 return this == nil 4899 } else if this == nil { 4900 return false 4901 } 4902 if !bytes.Equal(this.Address, that1.Address) { 4903 return false 4904 } 4905 if this.Power != that1.Power { 4906 return false 4907 } 4908 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4909 return false 4910 } 4911 return true 4912 } 4913 func (this *ValidatorUpdate) Equal(that interface{}) bool { 4914 if that == nil { 4915 return this == nil 4916 } 4917 4918 that1, ok := that.(*ValidatorUpdate) 4919 if !ok { 4920 that2, ok := that.(ValidatorUpdate) 4921 if ok { 4922 that1 = &that2 4923 } else { 4924 return false 4925 } 4926 } 4927 if that1 == nil { 4928 return this == nil 4929 } else if this == nil { 4930 return false 4931 } 4932 if !this.PubKey.Equal(&that1.PubKey) { 4933 return false 4934 } 4935 if this.Power != that1.Power { 4936 return false 4937 } 4938 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4939 return false 4940 } 4941 return true 4942 } 4943 func (this *VoteInfo) Equal(that interface{}) bool { 4944 if that == nil { 4945 return this == nil 4946 } 4947 4948 that1, ok := that.(*VoteInfo) 4949 if !ok { 4950 that2, ok := that.(VoteInfo) 4951 if ok { 4952 that1 = &that2 4953 } else { 4954 return false 4955 } 4956 } 4957 if that1 == nil { 4958 return this == nil 4959 } else if this == nil { 4960 return false 4961 } 4962 if !this.Validator.Equal(&that1.Validator) { 4963 return false 4964 } 4965 if this.SignedLastBlock != that1.SignedLastBlock { 4966 return false 4967 } 4968 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4969 return false 4970 } 4971 return true 4972 } 4973 func (this *PubKey) Equal(that interface{}) bool { 4974 if that == nil { 4975 return this == nil 4976 } 4977 4978 that1, ok := that.(*PubKey) 4979 if !ok { 4980 that2, ok := that.(PubKey) 4981 if ok { 4982 that1 = &that2 4983 } else { 4984 return false 4985 } 4986 } 4987 if that1 == nil { 4988 return this == nil 4989 } else if this == nil { 4990 return false 4991 } 4992 if this.Type != that1.Type { 4993 return false 4994 } 4995 if !bytes.Equal(this.Data, that1.Data) { 4996 return false 4997 } 4998 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 4999 return false 5000 } 5001 return true 5002 } 5003 func (this *Evidence) Equal(that interface{}) bool { 5004 if that == nil { 5005 return this == nil 5006 } 5007 5008 that1, ok := that.(*Evidence) 5009 if !ok { 5010 that2, ok := that.(Evidence) 5011 if ok { 5012 that1 = &that2 5013 } else { 5014 return false 5015 } 5016 } 5017 if that1 == nil { 5018 return this == nil 5019 } else if this == nil { 5020 return false 5021 } 5022 if this.Type != that1.Type { 5023 return false 5024 } 5025 if !this.Validator.Equal(&that1.Validator) { 5026 return false 5027 } 5028 if this.Height != that1.Height { 5029 return false 5030 } 5031 if !this.Time.Equal(that1.Time) { 5032 return false 5033 } 5034 if this.TotalVotingPower != that1.TotalVotingPower { 5035 return false 5036 } 5037 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 5038 return false 5039 } 5040 return true 5041 } 5042 5043 // Reference imports to suppress errors if they are not otherwise used. 5044 var _ context.Context 5045 var _ grpc.ClientConn 5046 5047 // This is a compile-time assertion to ensure that this generated file 5048 // is compatible with the grpc package it is being compiled against. 5049 const _ = grpc.SupportPackageIsVersion4 5050 5051 // ABCIApplicationClient is the client API for ABCIApplication service. 5052 // 5053 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 5054 type ABCIApplicationClient interface { 5055 Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) 5056 Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) 5057 Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) 5058 SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) 5059 DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) 5060 CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) 5061 Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) 5062 Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) 5063 InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) 5064 BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) 5065 EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) 5066 } 5067 5068 type aBCIApplicationClient struct { 5069 cc *grpc.ClientConn 5070 } 5071 5072 func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient { 5073 return &aBCIApplicationClient{cc} 5074 } 5075 5076 func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) { 5077 out := new(ResponseEcho) 5078 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Echo", in, out, opts...) 5079 if err != nil { 5080 return nil, err 5081 } 5082 return out, nil 5083 } 5084 5085 func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) { 5086 out := new(ResponseFlush) 5087 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Flush", in, out, opts...) 5088 if err != nil { 5089 return nil, err 5090 } 5091 return out, nil 5092 } 5093 5094 func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) { 5095 out := new(ResponseInfo) 5096 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Info", in, out, opts...) 5097 if err != nil { 5098 return nil, err 5099 } 5100 return out, nil 5101 } 5102 5103 func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) { 5104 out := new(ResponseSetOption) 5105 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/SetOption", in, out, opts...) 5106 if err != nil { 5107 return nil, err 5108 } 5109 return out, nil 5110 } 5111 5112 func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) { 5113 out := new(ResponseDeliverTx) 5114 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/DeliverTx", in, out, opts...) 5115 if err != nil { 5116 return nil, err 5117 } 5118 return out, nil 5119 } 5120 5121 func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) { 5122 out := new(ResponseCheckTx) 5123 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/CheckTx", in, out, opts...) 5124 if err != nil { 5125 return nil, err 5126 } 5127 return out, nil 5128 } 5129 5130 func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) { 5131 out := new(ResponseQuery) 5132 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Query", in, out, opts...) 5133 if err != nil { 5134 return nil, err 5135 } 5136 return out, nil 5137 } 5138 5139 func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) { 5140 out := new(ResponseCommit) 5141 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/Commit", in, out, opts...) 5142 if err != nil { 5143 return nil, err 5144 } 5145 return out, nil 5146 } 5147 5148 func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) { 5149 out := new(ResponseInitChain) 5150 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/InitChain", in, out, opts...) 5151 if err != nil { 5152 return nil, err 5153 } 5154 return out, nil 5155 } 5156 5157 func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) { 5158 out := new(ResponseBeginBlock) 5159 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/BeginBlock", in, out, opts...) 5160 if err != nil { 5161 return nil, err 5162 } 5163 return out, nil 5164 } 5165 5166 func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) { 5167 out := new(ResponseEndBlock) 5168 err := c.cc.Invoke(ctx, "/tendermint.abci.types.ABCIApplication/EndBlock", in, out, opts...) 5169 if err != nil { 5170 return nil, err 5171 } 5172 return out, nil 5173 } 5174 5175 // ABCIApplicationServer is the server API for ABCIApplication service. 5176 type ABCIApplicationServer interface { 5177 Echo(context.Context, *RequestEcho) (*ResponseEcho, error) 5178 Flush(context.Context, *RequestFlush) (*ResponseFlush, error) 5179 Info(context.Context, *RequestInfo) (*ResponseInfo, error) 5180 SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error) 5181 DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error) 5182 CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error) 5183 Query(context.Context, *RequestQuery) (*ResponseQuery, error) 5184 Commit(context.Context, *RequestCommit) (*ResponseCommit, error) 5185 InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error) 5186 BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error) 5187 EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error) 5188 } 5189 5190 // UnimplementedABCIApplicationServer can be embedded to have forward compatible implementations. 5191 type UnimplementedABCIApplicationServer struct { 5192 } 5193 5194 func (*UnimplementedABCIApplicationServer) Echo(ctx context.Context, req *RequestEcho) (*ResponseEcho, error) { 5195 return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") 5196 } 5197 func (*UnimplementedABCIApplicationServer) Flush(ctx context.Context, req *RequestFlush) (*ResponseFlush, error) { 5198 return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") 5199 } 5200 func (*UnimplementedABCIApplicationServer) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error) { 5201 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") 5202 } 5203 func (*UnimplementedABCIApplicationServer) SetOption(ctx context.Context, req *RequestSetOption) (*ResponseSetOption, error) { 5204 return nil, status.Errorf(codes.Unimplemented, "method SetOption not implemented") 5205 } 5206 func (*UnimplementedABCIApplicationServer) DeliverTx(ctx context.Context, req *RequestDeliverTx) (*ResponseDeliverTx, error) { 5207 return nil, status.Errorf(codes.Unimplemented, "method DeliverTx not implemented") 5208 } 5209 func (*UnimplementedABCIApplicationServer) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error) { 5210 return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented") 5211 } 5212 func (*UnimplementedABCIApplicationServer) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error) { 5213 return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") 5214 } 5215 func (*UnimplementedABCIApplicationServer) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error) { 5216 return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") 5217 } 5218 func (*UnimplementedABCIApplicationServer) InitChain(ctx context.Context, req *RequestInitChain) (*ResponseInitChain, error) { 5219 return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented") 5220 } 5221 func (*UnimplementedABCIApplicationServer) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*ResponseBeginBlock, error) { 5222 return nil, status.Errorf(codes.Unimplemented, "method BeginBlock not implemented") 5223 } 5224 func (*UnimplementedABCIApplicationServer) EndBlock(ctx context.Context, req *RequestEndBlock) (*ResponseEndBlock, error) { 5225 return nil, status.Errorf(codes.Unimplemented, "method EndBlock not implemented") 5226 } 5227 5228 func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) { 5229 s.RegisterService(&_ABCIApplication_serviceDesc, srv) 5230 } 5231 5232 func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5233 in := new(RequestEcho) 5234 if err := dec(in); err != nil { 5235 return nil, err 5236 } 5237 if interceptor == nil { 5238 return srv.(ABCIApplicationServer).Echo(ctx, in) 5239 } 5240 info := &grpc.UnaryServerInfo{ 5241 Server: srv, 5242 FullMethod: "/tendermint.abci.types.ABCIApplication/Echo", 5243 } 5244 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5245 return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho)) 5246 } 5247 return interceptor(ctx, in, info, handler) 5248 } 5249 5250 func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5251 in := new(RequestFlush) 5252 if err := dec(in); err != nil { 5253 return nil, err 5254 } 5255 if interceptor == nil { 5256 return srv.(ABCIApplicationServer).Flush(ctx, in) 5257 } 5258 info := &grpc.UnaryServerInfo{ 5259 Server: srv, 5260 FullMethod: "/tendermint.abci.types.ABCIApplication/Flush", 5261 } 5262 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5263 return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush)) 5264 } 5265 return interceptor(ctx, in, info, handler) 5266 } 5267 5268 func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5269 in := new(RequestInfo) 5270 if err := dec(in); err != nil { 5271 return nil, err 5272 } 5273 if interceptor == nil { 5274 return srv.(ABCIApplicationServer).Info(ctx, in) 5275 } 5276 info := &grpc.UnaryServerInfo{ 5277 Server: srv, 5278 FullMethod: "/tendermint.abci.types.ABCIApplication/Info", 5279 } 5280 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5281 return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo)) 5282 } 5283 return interceptor(ctx, in, info, handler) 5284 } 5285 5286 func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5287 in := new(RequestSetOption) 5288 if err := dec(in); err != nil { 5289 return nil, err 5290 } 5291 if interceptor == nil { 5292 return srv.(ABCIApplicationServer).SetOption(ctx, in) 5293 } 5294 info := &grpc.UnaryServerInfo{ 5295 Server: srv, 5296 FullMethod: "/tendermint.abci.types.ABCIApplication/SetOption", 5297 } 5298 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5299 return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption)) 5300 } 5301 return interceptor(ctx, in, info, handler) 5302 } 5303 5304 func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5305 in := new(RequestDeliverTx) 5306 if err := dec(in); err != nil { 5307 return nil, err 5308 } 5309 if interceptor == nil { 5310 return srv.(ABCIApplicationServer).DeliverTx(ctx, in) 5311 } 5312 info := &grpc.UnaryServerInfo{ 5313 Server: srv, 5314 FullMethod: "/tendermint.abci.types.ABCIApplication/DeliverTx", 5315 } 5316 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5317 return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx)) 5318 } 5319 return interceptor(ctx, in, info, handler) 5320 } 5321 5322 func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5323 in := new(RequestCheckTx) 5324 if err := dec(in); err != nil { 5325 return nil, err 5326 } 5327 if interceptor == nil { 5328 return srv.(ABCIApplicationServer).CheckTx(ctx, in) 5329 } 5330 info := &grpc.UnaryServerInfo{ 5331 Server: srv, 5332 FullMethod: "/tendermint.abci.types.ABCIApplication/CheckTx", 5333 } 5334 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5335 return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx)) 5336 } 5337 return interceptor(ctx, in, info, handler) 5338 } 5339 5340 func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5341 in := new(RequestQuery) 5342 if err := dec(in); err != nil { 5343 return nil, err 5344 } 5345 if interceptor == nil { 5346 return srv.(ABCIApplicationServer).Query(ctx, in) 5347 } 5348 info := &grpc.UnaryServerInfo{ 5349 Server: srv, 5350 FullMethod: "/tendermint.abci.types.ABCIApplication/Query", 5351 } 5352 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5353 return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery)) 5354 } 5355 return interceptor(ctx, in, info, handler) 5356 } 5357 5358 func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5359 in := new(RequestCommit) 5360 if err := dec(in); err != nil { 5361 return nil, err 5362 } 5363 if interceptor == nil { 5364 return srv.(ABCIApplicationServer).Commit(ctx, in) 5365 } 5366 info := &grpc.UnaryServerInfo{ 5367 Server: srv, 5368 FullMethod: "/tendermint.abci.types.ABCIApplication/Commit", 5369 } 5370 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5371 return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit)) 5372 } 5373 return interceptor(ctx, in, info, handler) 5374 } 5375 5376 func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5377 in := new(RequestInitChain) 5378 if err := dec(in); err != nil { 5379 return nil, err 5380 } 5381 if interceptor == nil { 5382 return srv.(ABCIApplicationServer).InitChain(ctx, in) 5383 } 5384 info := &grpc.UnaryServerInfo{ 5385 Server: srv, 5386 FullMethod: "/tendermint.abci.types.ABCIApplication/InitChain", 5387 } 5388 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5389 return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain)) 5390 } 5391 return interceptor(ctx, in, info, handler) 5392 } 5393 5394 func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5395 in := new(RequestBeginBlock) 5396 if err := dec(in); err != nil { 5397 return nil, err 5398 } 5399 if interceptor == nil { 5400 return srv.(ABCIApplicationServer).BeginBlock(ctx, in) 5401 } 5402 info := &grpc.UnaryServerInfo{ 5403 Server: srv, 5404 FullMethod: "/tendermint.abci.types.ABCIApplication/BeginBlock", 5405 } 5406 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5407 return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock)) 5408 } 5409 return interceptor(ctx, in, info, handler) 5410 } 5411 5412 func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 5413 in := new(RequestEndBlock) 5414 if err := dec(in); err != nil { 5415 return nil, err 5416 } 5417 if interceptor == nil { 5418 return srv.(ABCIApplicationServer).EndBlock(ctx, in) 5419 } 5420 info := &grpc.UnaryServerInfo{ 5421 Server: srv, 5422 FullMethod: "/tendermint.abci.types.ABCIApplication/EndBlock", 5423 } 5424 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 5425 return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock)) 5426 } 5427 return interceptor(ctx, in, info, handler) 5428 } 5429 5430 var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ 5431 ServiceName: "tendermint.abci.types.ABCIApplication", 5432 HandlerType: (*ABCIApplicationServer)(nil), 5433 Methods: []grpc.MethodDesc{ 5434 { 5435 MethodName: "Echo", 5436 Handler: _ABCIApplication_Echo_Handler, 5437 }, 5438 { 5439 MethodName: "Flush", 5440 Handler: _ABCIApplication_Flush_Handler, 5441 }, 5442 { 5443 MethodName: "Info", 5444 Handler: _ABCIApplication_Info_Handler, 5445 }, 5446 { 5447 MethodName: "SetOption", 5448 Handler: _ABCIApplication_SetOption_Handler, 5449 }, 5450 { 5451 MethodName: "DeliverTx", 5452 Handler: _ABCIApplication_DeliverTx_Handler, 5453 }, 5454 { 5455 MethodName: "CheckTx", 5456 Handler: _ABCIApplication_CheckTx_Handler, 5457 }, 5458 { 5459 MethodName: "Query", 5460 Handler: _ABCIApplication_Query_Handler, 5461 }, 5462 { 5463 MethodName: "Commit", 5464 Handler: _ABCIApplication_Commit_Handler, 5465 }, 5466 { 5467 MethodName: "InitChain", 5468 Handler: _ABCIApplication_InitChain_Handler, 5469 }, 5470 { 5471 MethodName: "BeginBlock", 5472 Handler: _ABCIApplication_BeginBlock_Handler, 5473 }, 5474 { 5475 MethodName: "EndBlock", 5476 Handler: _ABCIApplication_EndBlock_Handler, 5477 }, 5478 }, 5479 Streams: []grpc.StreamDesc{}, 5480 Metadata: "abci/types/types.proto", 5481 } 5482 5483 func (m *Request) Marshal() (dAtA []byte, err error) { 5484 size := m.Size() 5485 dAtA = make([]byte, size) 5486 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5487 if err != nil { 5488 return nil, err 5489 } 5490 return dAtA[:n], nil 5491 } 5492 5493 func (m *Request) MarshalTo(dAtA []byte) (int, error) { 5494 size := m.Size() 5495 return m.MarshalToSizedBuffer(dAtA[:size]) 5496 } 5497 5498 func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5499 i := len(dAtA) 5500 _ = i 5501 var l int 5502 _ = l 5503 if m.XXX_unrecognized != nil { 5504 i -= len(m.XXX_unrecognized) 5505 copy(dAtA[i:], m.XXX_unrecognized) 5506 } 5507 if m.Value != nil { 5508 { 5509 size := m.Value.Size() 5510 i -= size 5511 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 5512 return 0, err 5513 } 5514 } 5515 } 5516 return len(dAtA) - i, nil 5517 } 5518 5519 func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) { 5520 size := m.Size() 5521 return m.MarshalToSizedBuffer(dAtA[:size]) 5522 } 5523 5524 func (m *Request_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5525 i := len(dAtA) 5526 if m.Echo != nil { 5527 { 5528 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 5529 if err != nil { 5530 return 0, err 5531 } 5532 i -= size 5533 i = encodeVarintTypes(dAtA, i, uint64(size)) 5534 } 5535 i-- 5536 dAtA[i] = 0x12 5537 } 5538 return len(dAtA) - i, nil 5539 } 5540 func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) { 5541 size := m.Size() 5542 return m.MarshalToSizedBuffer(dAtA[:size]) 5543 } 5544 5545 func (m *Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5546 i := len(dAtA) 5547 if m.Flush != nil { 5548 { 5549 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 5550 if err != nil { 5551 return 0, err 5552 } 5553 i -= size 5554 i = encodeVarintTypes(dAtA, i, uint64(size)) 5555 } 5556 i-- 5557 dAtA[i] = 0x1a 5558 } 5559 return len(dAtA) - i, nil 5560 } 5561 func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) { 5562 size := m.Size() 5563 return m.MarshalToSizedBuffer(dAtA[:size]) 5564 } 5565 5566 func (m *Request_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5567 i := len(dAtA) 5568 if m.Info != nil { 5569 { 5570 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 5571 if err != nil { 5572 return 0, err 5573 } 5574 i -= size 5575 i = encodeVarintTypes(dAtA, i, uint64(size)) 5576 } 5577 i-- 5578 dAtA[i] = 0x22 5579 } 5580 return len(dAtA) - i, nil 5581 } 5582 func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) { 5583 size := m.Size() 5584 return m.MarshalToSizedBuffer(dAtA[:size]) 5585 } 5586 5587 func (m *Request_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5588 i := len(dAtA) 5589 if m.SetOption != nil { 5590 { 5591 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 5592 if err != nil { 5593 return 0, err 5594 } 5595 i -= size 5596 i = encodeVarintTypes(dAtA, i, uint64(size)) 5597 } 5598 i-- 5599 dAtA[i] = 0x2a 5600 } 5601 return len(dAtA) - i, nil 5602 } 5603 func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) { 5604 size := m.Size() 5605 return m.MarshalToSizedBuffer(dAtA[:size]) 5606 } 5607 5608 func (m *Request_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5609 i := len(dAtA) 5610 if m.InitChain != nil { 5611 { 5612 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 5613 if err != nil { 5614 return 0, err 5615 } 5616 i -= size 5617 i = encodeVarintTypes(dAtA, i, uint64(size)) 5618 } 5619 i-- 5620 dAtA[i] = 0x32 5621 } 5622 return len(dAtA) - i, nil 5623 } 5624 func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) { 5625 size := m.Size() 5626 return m.MarshalToSizedBuffer(dAtA[:size]) 5627 } 5628 5629 func (m *Request_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5630 i := len(dAtA) 5631 if m.Query != nil { 5632 { 5633 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 5634 if err != nil { 5635 return 0, err 5636 } 5637 i -= size 5638 i = encodeVarintTypes(dAtA, i, uint64(size)) 5639 } 5640 i-- 5641 dAtA[i] = 0x3a 5642 } 5643 return len(dAtA) - i, nil 5644 } 5645 func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 5646 size := m.Size() 5647 return m.MarshalToSizedBuffer(dAtA[:size]) 5648 } 5649 5650 func (m *Request_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5651 i := len(dAtA) 5652 if m.BeginBlock != nil { 5653 { 5654 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 5655 if err != nil { 5656 return 0, err 5657 } 5658 i -= size 5659 i = encodeVarintTypes(dAtA, i, uint64(size)) 5660 } 5661 i-- 5662 dAtA[i] = 0x42 5663 } 5664 return len(dAtA) - i, nil 5665 } 5666 func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) { 5667 size := m.Size() 5668 return m.MarshalToSizedBuffer(dAtA[:size]) 5669 } 5670 5671 func (m *Request_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5672 i := len(dAtA) 5673 if m.CheckTx != nil { 5674 { 5675 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 5676 if err != nil { 5677 return 0, err 5678 } 5679 i -= size 5680 i = encodeVarintTypes(dAtA, i, uint64(size)) 5681 } 5682 i-- 5683 dAtA[i] = 0x4a 5684 } 5685 return len(dAtA) - i, nil 5686 } 5687 func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) { 5688 size := m.Size() 5689 return m.MarshalToSizedBuffer(dAtA[:size]) 5690 } 5691 5692 func (m *Request_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5693 i := len(dAtA) 5694 if m.EndBlock != nil { 5695 { 5696 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 5697 if err != nil { 5698 return 0, err 5699 } 5700 i -= size 5701 i = encodeVarintTypes(dAtA, i, uint64(size)) 5702 } 5703 i-- 5704 dAtA[i] = 0x5a 5705 } 5706 return len(dAtA) - i, nil 5707 } 5708 func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) { 5709 size := m.Size() 5710 return m.MarshalToSizedBuffer(dAtA[:size]) 5711 } 5712 5713 func (m *Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5714 i := len(dAtA) 5715 if m.Commit != nil { 5716 { 5717 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 5718 if err != nil { 5719 return 0, err 5720 } 5721 i -= size 5722 i = encodeVarintTypes(dAtA, i, uint64(size)) 5723 } 5724 i-- 5725 dAtA[i] = 0x62 5726 } 5727 return len(dAtA) - i, nil 5728 } 5729 func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 5730 size := m.Size() 5731 return m.MarshalToSizedBuffer(dAtA[:size]) 5732 } 5733 5734 func (m *Request_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5735 i := len(dAtA) 5736 if m.DeliverTx != nil { 5737 { 5738 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 5739 if err != nil { 5740 return 0, err 5741 } 5742 i -= size 5743 i = encodeVarintTypes(dAtA, i, uint64(size)) 5744 } 5745 i-- 5746 dAtA[i] = 0x1 5747 i-- 5748 dAtA[i] = 0x9a 5749 } 5750 return len(dAtA) - i, nil 5751 } 5752 func (m *RequestEcho) Marshal() (dAtA []byte, err error) { 5753 size := m.Size() 5754 dAtA = make([]byte, size) 5755 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5756 if err != nil { 5757 return nil, err 5758 } 5759 return dAtA[:n], nil 5760 } 5761 5762 func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) { 5763 size := m.Size() 5764 return m.MarshalToSizedBuffer(dAtA[:size]) 5765 } 5766 5767 func (m *RequestEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5768 i := len(dAtA) 5769 _ = i 5770 var l int 5771 _ = l 5772 if m.XXX_unrecognized != nil { 5773 i -= len(m.XXX_unrecognized) 5774 copy(dAtA[i:], m.XXX_unrecognized) 5775 } 5776 if len(m.Message) > 0 { 5777 i -= len(m.Message) 5778 copy(dAtA[i:], m.Message) 5779 i = encodeVarintTypes(dAtA, i, uint64(len(m.Message))) 5780 i-- 5781 dAtA[i] = 0xa 5782 } 5783 return len(dAtA) - i, nil 5784 } 5785 5786 func (m *RequestFlush) Marshal() (dAtA []byte, err error) { 5787 size := m.Size() 5788 dAtA = make([]byte, size) 5789 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5790 if err != nil { 5791 return nil, err 5792 } 5793 return dAtA[:n], nil 5794 } 5795 5796 func (m *RequestFlush) MarshalTo(dAtA []byte) (int, error) { 5797 size := m.Size() 5798 return m.MarshalToSizedBuffer(dAtA[:size]) 5799 } 5800 5801 func (m *RequestFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5802 i := len(dAtA) 5803 _ = i 5804 var l int 5805 _ = l 5806 if m.XXX_unrecognized != nil { 5807 i -= len(m.XXX_unrecognized) 5808 copy(dAtA[i:], m.XXX_unrecognized) 5809 } 5810 return len(dAtA) - i, nil 5811 } 5812 5813 func (m *RequestInfo) Marshal() (dAtA []byte, err error) { 5814 size := m.Size() 5815 dAtA = make([]byte, size) 5816 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5817 if err != nil { 5818 return nil, err 5819 } 5820 return dAtA[:n], nil 5821 } 5822 5823 func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) { 5824 size := m.Size() 5825 return m.MarshalToSizedBuffer(dAtA[:size]) 5826 } 5827 5828 func (m *RequestInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5829 i := len(dAtA) 5830 _ = i 5831 var l int 5832 _ = l 5833 if m.XXX_unrecognized != nil { 5834 i -= len(m.XXX_unrecognized) 5835 copy(dAtA[i:], m.XXX_unrecognized) 5836 } 5837 if m.P2PVersion != 0 { 5838 i = encodeVarintTypes(dAtA, i, uint64(m.P2PVersion)) 5839 i-- 5840 dAtA[i] = 0x18 5841 } 5842 if m.BlockVersion != 0 { 5843 i = encodeVarintTypes(dAtA, i, uint64(m.BlockVersion)) 5844 i-- 5845 dAtA[i] = 0x10 5846 } 5847 if len(m.Version) > 0 { 5848 i -= len(m.Version) 5849 copy(dAtA[i:], m.Version) 5850 i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) 5851 i-- 5852 dAtA[i] = 0xa 5853 } 5854 return len(dAtA) - i, nil 5855 } 5856 5857 func (m *RequestSetOption) Marshal() (dAtA []byte, err error) { 5858 size := m.Size() 5859 dAtA = make([]byte, size) 5860 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5861 if err != nil { 5862 return nil, err 5863 } 5864 return dAtA[:n], nil 5865 } 5866 5867 func (m *RequestSetOption) MarshalTo(dAtA []byte) (int, error) { 5868 size := m.Size() 5869 return m.MarshalToSizedBuffer(dAtA[:size]) 5870 } 5871 5872 func (m *RequestSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5873 i := len(dAtA) 5874 _ = i 5875 var l int 5876 _ = l 5877 if m.XXX_unrecognized != nil { 5878 i -= len(m.XXX_unrecognized) 5879 copy(dAtA[i:], m.XXX_unrecognized) 5880 } 5881 if len(m.Value) > 0 { 5882 i -= len(m.Value) 5883 copy(dAtA[i:], m.Value) 5884 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 5885 i-- 5886 dAtA[i] = 0x12 5887 } 5888 if len(m.Key) > 0 { 5889 i -= len(m.Key) 5890 copy(dAtA[i:], m.Key) 5891 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 5892 i-- 5893 dAtA[i] = 0xa 5894 } 5895 return len(dAtA) - i, nil 5896 } 5897 5898 func (m *RequestInitChain) Marshal() (dAtA []byte, err error) { 5899 size := m.Size() 5900 dAtA = make([]byte, size) 5901 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5902 if err != nil { 5903 return nil, err 5904 } 5905 return dAtA[:n], nil 5906 } 5907 5908 func (m *RequestInitChain) MarshalTo(dAtA []byte) (int, error) { 5909 size := m.Size() 5910 return m.MarshalToSizedBuffer(dAtA[:size]) 5911 } 5912 5913 func (m *RequestInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5914 i := len(dAtA) 5915 _ = i 5916 var l int 5917 _ = l 5918 if m.XXX_unrecognized != nil { 5919 i -= len(m.XXX_unrecognized) 5920 copy(dAtA[i:], m.XXX_unrecognized) 5921 } 5922 if len(m.AppStateBytes) > 0 { 5923 i -= len(m.AppStateBytes) 5924 copy(dAtA[i:], m.AppStateBytes) 5925 i = encodeVarintTypes(dAtA, i, uint64(len(m.AppStateBytes))) 5926 i-- 5927 dAtA[i] = 0x2a 5928 } 5929 if len(m.Validators) > 0 { 5930 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 5931 { 5932 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5933 if err != nil { 5934 return 0, err 5935 } 5936 i -= size 5937 i = encodeVarintTypes(dAtA, i, uint64(size)) 5938 } 5939 i-- 5940 dAtA[i] = 0x22 5941 } 5942 } 5943 if m.ConsensusParams != nil { 5944 { 5945 size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) 5946 if err != nil { 5947 return 0, err 5948 } 5949 i -= size 5950 i = encodeVarintTypes(dAtA, i, uint64(size)) 5951 } 5952 i-- 5953 dAtA[i] = 0x1a 5954 } 5955 if len(m.ChainId) > 0 { 5956 i -= len(m.ChainId) 5957 copy(dAtA[i:], m.ChainId) 5958 i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId))) 5959 i-- 5960 dAtA[i] = 0x12 5961 } 5962 n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 5963 if err13 != nil { 5964 return 0, err13 5965 } 5966 i -= n13 5967 i = encodeVarintTypes(dAtA, i, uint64(n13)) 5968 i-- 5969 dAtA[i] = 0xa 5970 return len(dAtA) - i, nil 5971 } 5972 5973 func (m *RequestQuery) Marshal() (dAtA []byte, err error) { 5974 size := m.Size() 5975 dAtA = make([]byte, size) 5976 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5977 if err != nil { 5978 return nil, err 5979 } 5980 return dAtA[:n], nil 5981 } 5982 5983 func (m *RequestQuery) MarshalTo(dAtA []byte) (int, error) { 5984 size := m.Size() 5985 return m.MarshalToSizedBuffer(dAtA[:size]) 5986 } 5987 5988 func (m *RequestQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5989 i := len(dAtA) 5990 _ = i 5991 var l int 5992 _ = l 5993 if m.XXX_unrecognized != nil { 5994 i -= len(m.XXX_unrecognized) 5995 copy(dAtA[i:], m.XXX_unrecognized) 5996 } 5997 if m.Prove { 5998 i-- 5999 if m.Prove { 6000 dAtA[i] = 1 6001 } else { 6002 dAtA[i] = 0 6003 } 6004 i-- 6005 dAtA[i] = 0x20 6006 } 6007 if m.Height != 0 { 6008 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6009 i-- 6010 dAtA[i] = 0x18 6011 } 6012 if len(m.Path) > 0 { 6013 i -= len(m.Path) 6014 copy(dAtA[i:], m.Path) 6015 i = encodeVarintTypes(dAtA, i, uint64(len(m.Path))) 6016 i-- 6017 dAtA[i] = 0x12 6018 } 6019 if len(m.Data) > 0 { 6020 i -= len(m.Data) 6021 copy(dAtA[i:], m.Data) 6022 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 6023 i-- 6024 dAtA[i] = 0xa 6025 } 6026 return len(dAtA) - i, nil 6027 } 6028 6029 func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) { 6030 size := m.Size() 6031 dAtA = make([]byte, size) 6032 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6033 if err != nil { 6034 return nil, err 6035 } 6036 return dAtA[:n], nil 6037 } 6038 6039 func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) { 6040 size := m.Size() 6041 return m.MarshalToSizedBuffer(dAtA[:size]) 6042 } 6043 6044 func (m *RequestBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6045 i := len(dAtA) 6046 _ = i 6047 var l int 6048 _ = l 6049 if m.XXX_unrecognized != nil { 6050 i -= len(m.XXX_unrecognized) 6051 copy(dAtA[i:], m.XXX_unrecognized) 6052 } 6053 if len(m.ByzantineValidators) > 0 { 6054 for iNdEx := len(m.ByzantineValidators) - 1; iNdEx >= 0; iNdEx-- { 6055 { 6056 size, err := m.ByzantineValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6057 if err != nil { 6058 return 0, err 6059 } 6060 i -= size 6061 i = encodeVarintTypes(dAtA, i, uint64(size)) 6062 } 6063 i-- 6064 dAtA[i] = 0x22 6065 } 6066 } 6067 { 6068 size, err := m.LastCommitInfo.MarshalToSizedBuffer(dAtA[:i]) 6069 if err != nil { 6070 return 0, err 6071 } 6072 i -= size 6073 i = encodeVarintTypes(dAtA, i, uint64(size)) 6074 } 6075 i-- 6076 dAtA[i] = 0x1a 6077 { 6078 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) 6079 if err != nil { 6080 return 0, err 6081 } 6082 i -= size 6083 i = encodeVarintTypes(dAtA, i, uint64(size)) 6084 } 6085 i-- 6086 dAtA[i] = 0x12 6087 if len(m.Hash) > 0 { 6088 i -= len(m.Hash) 6089 copy(dAtA[i:], m.Hash) 6090 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 6091 i-- 6092 dAtA[i] = 0xa 6093 } 6094 return len(dAtA) - i, nil 6095 } 6096 6097 func (m *RequestCheckTx) Marshal() (dAtA []byte, err error) { 6098 size := m.Size() 6099 dAtA = make([]byte, size) 6100 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6101 if err != nil { 6102 return nil, err 6103 } 6104 return dAtA[:n], nil 6105 } 6106 6107 func (m *RequestCheckTx) MarshalTo(dAtA []byte) (int, error) { 6108 size := m.Size() 6109 return m.MarshalToSizedBuffer(dAtA[:size]) 6110 } 6111 6112 func (m *RequestCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6113 i := len(dAtA) 6114 _ = i 6115 var l int 6116 _ = l 6117 if m.XXX_unrecognized != nil { 6118 i -= len(m.XXX_unrecognized) 6119 copy(dAtA[i:], m.XXX_unrecognized) 6120 } 6121 if m.Type != 0 { 6122 i = encodeVarintTypes(dAtA, i, uint64(m.Type)) 6123 i-- 6124 dAtA[i] = 0x10 6125 } 6126 if len(m.Tx) > 0 { 6127 i -= len(m.Tx) 6128 copy(dAtA[i:], m.Tx) 6129 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 6130 i-- 6131 dAtA[i] = 0xa 6132 } 6133 return len(dAtA) - i, nil 6134 } 6135 6136 func (m *RequestDeliverTx) Marshal() (dAtA []byte, err error) { 6137 size := m.Size() 6138 dAtA = make([]byte, size) 6139 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6140 if err != nil { 6141 return nil, err 6142 } 6143 return dAtA[:n], nil 6144 } 6145 6146 func (m *RequestDeliverTx) MarshalTo(dAtA []byte) (int, error) { 6147 size := m.Size() 6148 return m.MarshalToSizedBuffer(dAtA[:size]) 6149 } 6150 6151 func (m *RequestDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6152 i := len(dAtA) 6153 _ = i 6154 var l int 6155 _ = l 6156 if m.XXX_unrecognized != nil { 6157 i -= len(m.XXX_unrecognized) 6158 copy(dAtA[i:], m.XXX_unrecognized) 6159 } 6160 if len(m.Tx) > 0 { 6161 i -= len(m.Tx) 6162 copy(dAtA[i:], m.Tx) 6163 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 6164 i-- 6165 dAtA[i] = 0xa 6166 } 6167 return len(dAtA) - i, nil 6168 } 6169 6170 func (m *RequestEndBlock) Marshal() (dAtA []byte, err error) { 6171 size := m.Size() 6172 dAtA = make([]byte, size) 6173 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6174 if err != nil { 6175 return nil, err 6176 } 6177 return dAtA[:n], nil 6178 } 6179 6180 func (m *RequestEndBlock) MarshalTo(dAtA []byte) (int, error) { 6181 size := m.Size() 6182 return m.MarshalToSizedBuffer(dAtA[:size]) 6183 } 6184 6185 func (m *RequestEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6186 i := len(dAtA) 6187 _ = i 6188 var l int 6189 _ = l 6190 if m.XXX_unrecognized != nil { 6191 i -= len(m.XXX_unrecognized) 6192 copy(dAtA[i:], m.XXX_unrecognized) 6193 } 6194 if m.Height != 0 { 6195 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6196 i-- 6197 dAtA[i] = 0x8 6198 } 6199 return len(dAtA) - i, nil 6200 } 6201 6202 func (m *RequestCommit) Marshal() (dAtA []byte, err error) { 6203 size := m.Size() 6204 dAtA = make([]byte, size) 6205 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6206 if err != nil { 6207 return nil, err 6208 } 6209 return dAtA[:n], nil 6210 } 6211 6212 func (m *RequestCommit) MarshalTo(dAtA []byte) (int, error) { 6213 size := m.Size() 6214 return m.MarshalToSizedBuffer(dAtA[:size]) 6215 } 6216 6217 func (m *RequestCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6218 i := len(dAtA) 6219 _ = i 6220 var l int 6221 _ = l 6222 if m.XXX_unrecognized != nil { 6223 i -= len(m.XXX_unrecognized) 6224 copy(dAtA[i:], m.XXX_unrecognized) 6225 } 6226 return len(dAtA) - i, nil 6227 } 6228 6229 func (m *Response) Marshal() (dAtA []byte, err error) { 6230 size := m.Size() 6231 dAtA = make([]byte, size) 6232 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6233 if err != nil { 6234 return nil, err 6235 } 6236 return dAtA[:n], nil 6237 } 6238 6239 func (m *Response) MarshalTo(dAtA []byte) (int, error) { 6240 size := m.Size() 6241 return m.MarshalToSizedBuffer(dAtA[:size]) 6242 } 6243 6244 func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6245 i := len(dAtA) 6246 _ = i 6247 var l int 6248 _ = l 6249 if m.XXX_unrecognized != nil { 6250 i -= len(m.XXX_unrecognized) 6251 copy(dAtA[i:], m.XXX_unrecognized) 6252 } 6253 if m.Value != nil { 6254 { 6255 size := m.Value.Size() 6256 i -= size 6257 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 6258 return 0, err 6259 } 6260 } 6261 } 6262 return len(dAtA) - i, nil 6263 } 6264 6265 func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) { 6266 size := m.Size() 6267 return m.MarshalToSizedBuffer(dAtA[:size]) 6268 } 6269 6270 func (m *Response_Exception) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6271 i := len(dAtA) 6272 if m.Exception != nil { 6273 { 6274 size, err := m.Exception.MarshalToSizedBuffer(dAtA[:i]) 6275 if err != nil { 6276 return 0, err 6277 } 6278 i -= size 6279 i = encodeVarintTypes(dAtA, i, uint64(size)) 6280 } 6281 i-- 6282 dAtA[i] = 0xa 6283 } 6284 return len(dAtA) - i, nil 6285 } 6286 func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) { 6287 size := m.Size() 6288 return m.MarshalToSizedBuffer(dAtA[:size]) 6289 } 6290 6291 func (m *Response_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6292 i := len(dAtA) 6293 if m.Echo != nil { 6294 { 6295 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 6296 if err != nil { 6297 return 0, err 6298 } 6299 i -= size 6300 i = encodeVarintTypes(dAtA, i, uint64(size)) 6301 } 6302 i-- 6303 dAtA[i] = 0x12 6304 } 6305 return len(dAtA) - i, nil 6306 } 6307 func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) { 6308 size := m.Size() 6309 return m.MarshalToSizedBuffer(dAtA[:size]) 6310 } 6311 6312 func (m *Response_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6313 i := len(dAtA) 6314 if m.Flush != nil { 6315 { 6316 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 6317 if err != nil { 6318 return 0, err 6319 } 6320 i -= size 6321 i = encodeVarintTypes(dAtA, i, uint64(size)) 6322 } 6323 i-- 6324 dAtA[i] = 0x1a 6325 } 6326 return len(dAtA) - i, nil 6327 } 6328 func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) { 6329 size := m.Size() 6330 return m.MarshalToSizedBuffer(dAtA[:size]) 6331 } 6332 6333 func (m *Response_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6334 i := len(dAtA) 6335 if m.Info != nil { 6336 { 6337 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 6338 if err != nil { 6339 return 0, err 6340 } 6341 i -= size 6342 i = encodeVarintTypes(dAtA, i, uint64(size)) 6343 } 6344 i-- 6345 dAtA[i] = 0x22 6346 } 6347 return len(dAtA) - i, nil 6348 } 6349 func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) { 6350 size := m.Size() 6351 return m.MarshalToSizedBuffer(dAtA[:size]) 6352 } 6353 6354 func (m *Response_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6355 i := len(dAtA) 6356 if m.SetOption != nil { 6357 { 6358 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 6359 if err != nil { 6360 return 0, err 6361 } 6362 i -= size 6363 i = encodeVarintTypes(dAtA, i, uint64(size)) 6364 } 6365 i-- 6366 dAtA[i] = 0x2a 6367 } 6368 return len(dAtA) - i, nil 6369 } 6370 func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) { 6371 size := m.Size() 6372 return m.MarshalToSizedBuffer(dAtA[:size]) 6373 } 6374 6375 func (m *Response_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6376 i := len(dAtA) 6377 if m.InitChain != nil { 6378 { 6379 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 6380 if err != nil { 6381 return 0, err 6382 } 6383 i -= size 6384 i = encodeVarintTypes(dAtA, i, uint64(size)) 6385 } 6386 i-- 6387 dAtA[i] = 0x32 6388 } 6389 return len(dAtA) - i, nil 6390 } 6391 func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) { 6392 size := m.Size() 6393 return m.MarshalToSizedBuffer(dAtA[:size]) 6394 } 6395 6396 func (m *Response_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6397 i := len(dAtA) 6398 if m.Query != nil { 6399 { 6400 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 6401 if err != nil { 6402 return 0, err 6403 } 6404 i -= size 6405 i = encodeVarintTypes(dAtA, i, uint64(size)) 6406 } 6407 i-- 6408 dAtA[i] = 0x3a 6409 } 6410 return len(dAtA) - i, nil 6411 } 6412 func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 6413 size := m.Size() 6414 return m.MarshalToSizedBuffer(dAtA[:size]) 6415 } 6416 6417 func (m *Response_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6418 i := len(dAtA) 6419 if m.BeginBlock != nil { 6420 { 6421 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 6422 if err != nil { 6423 return 0, err 6424 } 6425 i -= size 6426 i = encodeVarintTypes(dAtA, i, uint64(size)) 6427 } 6428 i-- 6429 dAtA[i] = 0x42 6430 } 6431 return len(dAtA) - i, nil 6432 } 6433 func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) { 6434 size := m.Size() 6435 return m.MarshalToSizedBuffer(dAtA[:size]) 6436 } 6437 6438 func (m *Response_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6439 i := len(dAtA) 6440 if m.CheckTx != nil { 6441 { 6442 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 6443 if err != nil { 6444 return 0, err 6445 } 6446 i -= size 6447 i = encodeVarintTypes(dAtA, i, uint64(size)) 6448 } 6449 i-- 6450 dAtA[i] = 0x4a 6451 } 6452 return len(dAtA) - i, nil 6453 } 6454 func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 6455 size := m.Size() 6456 return m.MarshalToSizedBuffer(dAtA[:size]) 6457 } 6458 6459 func (m *Response_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6460 i := len(dAtA) 6461 if m.DeliverTx != nil { 6462 { 6463 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 6464 if err != nil { 6465 return 0, err 6466 } 6467 i -= size 6468 i = encodeVarintTypes(dAtA, i, uint64(size)) 6469 } 6470 i-- 6471 dAtA[i] = 0x52 6472 } 6473 return len(dAtA) - i, nil 6474 } 6475 func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) { 6476 size := m.Size() 6477 return m.MarshalToSizedBuffer(dAtA[:size]) 6478 } 6479 6480 func (m *Response_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6481 i := len(dAtA) 6482 if m.EndBlock != nil { 6483 { 6484 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 6485 if err != nil { 6486 return 0, err 6487 } 6488 i -= size 6489 i = encodeVarintTypes(dAtA, i, uint64(size)) 6490 } 6491 i-- 6492 dAtA[i] = 0x5a 6493 } 6494 return len(dAtA) - i, nil 6495 } 6496 func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) { 6497 size := m.Size() 6498 return m.MarshalToSizedBuffer(dAtA[:size]) 6499 } 6500 6501 func (m *Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6502 i := len(dAtA) 6503 if m.Commit != nil { 6504 { 6505 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 6506 if err != nil { 6507 return 0, err 6508 } 6509 i -= size 6510 i = encodeVarintTypes(dAtA, i, uint64(size)) 6511 } 6512 i-- 6513 dAtA[i] = 0x62 6514 } 6515 return len(dAtA) - i, nil 6516 } 6517 func (m *ResponseException) Marshal() (dAtA []byte, err error) { 6518 size := m.Size() 6519 dAtA = make([]byte, size) 6520 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6521 if err != nil { 6522 return nil, err 6523 } 6524 return dAtA[:n], nil 6525 } 6526 6527 func (m *ResponseException) MarshalTo(dAtA []byte) (int, error) { 6528 size := m.Size() 6529 return m.MarshalToSizedBuffer(dAtA[:size]) 6530 } 6531 6532 func (m *ResponseException) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6533 i := len(dAtA) 6534 _ = i 6535 var l int 6536 _ = l 6537 if m.XXX_unrecognized != nil { 6538 i -= len(m.XXX_unrecognized) 6539 copy(dAtA[i:], m.XXX_unrecognized) 6540 } 6541 if len(m.Error) > 0 { 6542 i -= len(m.Error) 6543 copy(dAtA[i:], m.Error) 6544 i = encodeVarintTypes(dAtA, i, uint64(len(m.Error))) 6545 i-- 6546 dAtA[i] = 0xa 6547 } 6548 return len(dAtA) - i, nil 6549 } 6550 6551 func (m *ResponseEcho) Marshal() (dAtA []byte, err error) { 6552 size := m.Size() 6553 dAtA = make([]byte, size) 6554 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6555 if err != nil { 6556 return nil, err 6557 } 6558 return dAtA[:n], nil 6559 } 6560 6561 func (m *ResponseEcho) MarshalTo(dAtA []byte) (int, error) { 6562 size := m.Size() 6563 return m.MarshalToSizedBuffer(dAtA[:size]) 6564 } 6565 6566 func (m *ResponseEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6567 i := len(dAtA) 6568 _ = i 6569 var l int 6570 _ = l 6571 if m.XXX_unrecognized != nil { 6572 i -= len(m.XXX_unrecognized) 6573 copy(dAtA[i:], m.XXX_unrecognized) 6574 } 6575 if len(m.Message) > 0 { 6576 i -= len(m.Message) 6577 copy(dAtA[i:], m.Message) 6578 i = encodeVarintTypes(dAtA, i, uint64(len(m.Message))) 6579 i-- 6580 dAtA[i] = 0xa 6581 } 6582 return len(dAtA) - i, nil 6583 } 6584 6585 func (m *ResponseFlush) Marshal() (dAtA []byte, err error) { 6586 size := m.Size() 6587 dAtA = make([]byte, size) 6588 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6589 if err != nil { 6590 return nil, err 6591 } 6592 return dAtA[:n], nil 6593 } 6594 6595 func (m *ResponseFlush) MarshalTo(dAtA []byte) (int, error) { 6596 size := m.Size() 6597 return m.MarshalToSizedBuffer(dAtA[:size]) 6598 } 6599 6600 func (m *ResponseFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6601 i := len(dAtA) 6602 _ = i 6603 var l int 6604 _ = l 6605 if m.XXX_unrecognized != nil { 6606 i -= len(m.XXX_unrecognized) 6607 copy(dAtA[i:], m.XXX_unrecognized) 6608 } 6609 return len(dAtA) - i, nil 6610 } 6611 6612 func (m *ResponseInfo) Marshal() (dAtA []byte, err error) { 6613 size := m.Size() 6614 dAtA = make([]byte, size) 6615 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6616 if err != nil { 6617 return nil, err 6618 } 6619 return dAtA[:n], nil 6620 } 6621 6622 func (m *ResponseInfo) MarshalTo(dAtA []byte) (int, error) { 6623 size := m.Size() 6624 return m.MarshalToSizedBuffer(dAtA[:size]) 6625 } 6626 6627 func (m *ResponseInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6628 i := len(dAtA) 6629 _ = i 6630 var l int 6631 _ = l 6632 if m.XXX_unrecognized != nil { 6633 i -= len(m.XXX_unrecognized) 6634 copy(dAtA[i:], m.XXX_unrecognized) 6635 } 6636 if len(m.LastBlockAppHash) > 0 { 6637 i -= len(m.LastBlockAppHash) 6638 copy(dAtA[i:], m.LastBlockAppHash) 6639 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastBlockAppHash))) 6640 i-- 6641 dAtA[i] = 0x2a 6642 } 6643 if m.LastBlockHeight != 0 { 6644 i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight)) 6645 i-- 6646 dAtA[i] = 0x20 6647 } 6648 if m.AppVersion != 0 { 6649 i = encodeVarintTypes(dAtA, i, uint64(m.AppVersion)) 6650 i-- 6651 dAtA[i] = 0x18 6652 } 6653 if len(m.Version) > 0 { 6654 i -= len(m.Version) 6655 copy(dAtA[i:], m.Version) 6656 i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) 6657 i-- 6658 dAtA[i] = 0x12 6659 } 6660 if len(m.Data) > 0 { 6661 i -= len(m.Data) 6662 copy(dAtA[i:], m.Data) 6663 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 6664 i-- 6665 dAtA[i] = 0xa 6666 } 6667 return len(dAtA) - i, nil 6668 } 6669 6670 func (m *ResponseSetOption) Marshal() (dAtA []byte, err error) { 6671 size := m.Size() 6672 dAtA = make([]byte, size) 6673 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6674 if err != nil { 6675 return nil, err 6676 } 6677 return dAtA[:n], nil 6678 } 6679 6680 func (m *ResponseSetOption) MarshalTo(dAtA []byte) (int, error) { 6681 size := m.Size() 6682 return m.MarshalToSizedBuffer(dAtA[:size]) 6683 } 6684 6685 func (m *ResponseSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6686 i := len(dAtA) 6687 _ = i 6688 var l int 6689 _ = l 6690 if m.XXX_unrecognized != nil { 6691 i -= len(m.XXX_unrecognized) 6692 copy(dAtA[i:], m.XXX_unrecognized) 6693 } 6694 if len(m.Info) > 0 { 6695 i -= len(m.Info) 6696 copy(dAtA[i:], m.Info) 6697 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 6698 i-- 6699 dAtA[i] = 0x22 6700 } 6701 if len(m.Log) > 0 { 6702 i -= len(m.Log) 6703 copy(dAtA[i:], m.Log) 6704 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 6705 i-- 6706 dAtA[i] = 0x1a 6707 } 6708 if m.Code != 0 { 6709 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 6710 i-- 6711 dAtA[i] = 0x8 6712 } 6713 return len(dAtA) - i, nil 6714 } 6715 6716 func (m *ResponseInitChain) Marshal() (dAtA []byte, err error) { 6717 size := m.Size() 6718 dAtA = make([]byte, size) 6719 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6720 if err != nil { 6721 return nil, err 6722 } 6723 return dAtA[:n], nil 6724 } 6725 6726 func (m *ResponseInitChain) MarshalTo(dAtA []byte) (int, error) { 6727 size := m.Size() 6728 return m.MarshalToSizedBuffer(dAtA[:size]) 6729 } 6730 6731 func (m *ResponseInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6732 i := len(dAtA) 6733 _ = i 6734 var l int 6735 _ = l 6736 if m.XXX_unrecognized != nil { 6737 i -= len(m.XXX_unrecognized) 6738 copy(dAtA[i:], m.XXX_unrecognized) 6739 } 6740 if len(m.Validators) > 0 { 6741 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 6742 { 6743 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6744 if err != nil { 6745 return 0, err 6746 } 6747 i -= size 6748 i = encodeVarintTypes(dAtA, i, uint64(size)) 6749 } 6750 i-- 6751 dAtA[i] = 0x12 6752 } 6753 } 6754 if m.ConsensusParams != nil { 6755 { 6756 size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) 6757 if err != nil { 6758 return 0, err 6759 } 6760 i -= size 6761 i = encodeVarintTypes(dAtA, i, uint64(size)) 6762 } 6763 i-- 6764 dAtA[i] = 0xa 6765 } 6766 return len(dAtA) - i, nil 6767 } 6768 6769 func (m *ResponseQuery) Marshal() (dAtA []byte, err error) { 6770 size := m.Size() 6771 dAtA = make([]byte, size) 6772 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6773 if err != nil { 6774 return nil, err 6775 } 6776 return dAtA[:n], nil 6777 } 6778 6779 func (m *ResponseQuery) MarshalTo(dAtA []byte) (int, error) { 6780 size := m.Size() 6781 return m.MarshalToSizedBuffer(dAtA[:size]) 6782 } 6783 6784 func (m *ResponseQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6785 i := len(dAtA) 6786 _ = i 6787 var l int 6788 _ = l 6789 if m.XXX_unrecognized != nil { 6790 i -= len(m.XXX_unrecognized) 6791 copy(dAtA[i:], m.XXX_unrecognized) 6792 } 6793 if len(m.Codespace) > 0 { 6794 i -= len(m.Codespace) 6795 copy(dAtA[i:], m.Codespace) 6796 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 6797 i-- 6798 dAtA[i] = 0x52 6799 } 6800 if m.Height != 0 { 6801 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6802 i-- 6803 dAtA[i] = 0x48 6804 } 6805 if m.Proof != nil { 6806 { 6807 size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) 6808 if err != nil { 6809 return 0, err 6810 } 6811 i -= size 6812 i = encodeVarintTypes(dAtA, i, uint64(size)) 6813 } 6814 i-- 6815 dAtA[i] = 0x42 6816 } 6817 if len(m.Value) > 0 { 6818 i -= len(m.Value) 6819 copy(dAtA[i:], m.Value) 6820 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 6821 i-- 6822 dAtA[i] = 0x3a 6823 } 6824 if len(m.Key) > 0 { 6825 i -= len(m.Key) 6826 copy(dAtA[i:], m.Key) 6827 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 6828 i-- 6829 dAtA[i] = 0x32 6830 } 6831 if m.Index != 0 { 6832 i = encodeVarintTypes(dAtA, i, uint64(m.Index)) 6833 i-- 6834 dAtA[i] = 0x28 6835 } 6836 if len(m.Info) > 0 { 6837 i -= len(m.Info) 6838 copy(dAtA[i:], m.Info) 6839 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 6840 i-- 6841 dAtA[i] = 0x22 6842 } 6843 if len(m.Log) > 0 { 6844 i -= len(m.Log) 6845 copy(dAtA[i:], m.Log) 6846 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 6847 i-- 6848 dAtA[i] = 0x1a 6849 } 6850 if m.Code != 0 { 6851 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 6852 i-- 6853 dAtA[i] = 0x8 6854 } 6855 return len(dAtA) - i, nil 6856 } 6857 6858 func (m *ResponseBeginBlock) Marshal() (dAtA []byte, err error) { 6859 size := m.Size() 6860 dAtA = make([]byte, size) 6861 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6862 if err != nil { 6863 return nil, err 6864 } 6865 return dAtA[:n], nil 6866 } 6867 6868 func (m *ResponseBeginBlock) MarshalTo(dAtA []byte) (int, error) { 6869 size := m.Size() 6870 return m.MarshalToSizedBuffer(dAtA[:size]) 6871 } 6872 6873 func (m *ResponseBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6874 i := len(dAtA) 6875 _ = i 6876 var l int 6877 _ = l 6878 if m.XXX_unrecognized != nil { 6879 i -= len(m.XXX_unrecognized) 6880 copy(dAtA[i:], m.XXX_unrecognized) 6881 } 6882 if len(m.Events) > 0 { 6883 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 6884 { 6885 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6886 if err != nil { 6887 return 0, err 6888 } 6889 i -= size 6890 i = encodeVarintTypes(dAtA, i, uint64(size)) 6891 } 6892 i-- 6893 dAtA[i] = 0xa 6894 } 6895 } 6896 return len(dAtA) - i, nil 6897 } 6898 6899 func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) { 6900 size := m.Size() 6901 dAtA = make([]byte, size) 6902 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6903 if err != nil { 6904 return nil, err 6905 } 6906 return dAtA[:n], nil 6907 } 6908 6909 func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) { 6910 size := m.Size() 6911 return m.MarshalToSizedBuffer(dAtA[:size]) 6912 } 6913 6914 func (m *ResponseCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6915 i := len(dAtA) 6916 _ = i 6917 var l int 6918 _ = l 6919 if m.XXX_unrecognized != nil { 6920 i -= len(m.XXX_unrecognized) 6921 copy(dAtA[i:], m.XXX_unrecognized) 6922 } 6923 if len(m.Codespace) > 0 { 6924 i -= len(m.Codespace) 6925 copy(dAtA[i:], m.Codespace) 6926 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 6927 i-- 6928 dAtA[i] = 0x42 6929 } 6930 if len(m.Events) > 0 { 6931 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 6932 { 6933 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6934 if err != nil { 6935 return 0, err 6936 } 6937 i -= size 6938 i = encodeVarintTypes(dAtA, i, uint64(size)) 6939 } 6940 i-- 6941 dAtA[i] = 0x3a 6942 } 6943 } 6944 if m.GasUsed != 0 { 6945 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 6946 i-- 6947 dAtA[i] = 0x30 6948 } 6949 if m.GasWanted != 0 { 6950 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 6951 i-- 6952 dAtA[i] = 0x28 6953 } 6954 if len(m.Info) > 0 { 6955 i -= len(m.Info) 6956 copy(dAtA[i:], m.Info) 6957 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 6958 i-- 6959 dAtA[i] = 0x22 6960 } 6961 if len(m.Log) > 0 { 6962 i -= len(m.Log) 6963 copy(dAtA[i:], m.Log) 6964 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 6965 i-- 6966 dAtA[i] = 0x1a 6967 } 6968 if len(m.Data) > 0 { 6969 i -= len(m.Data) 6970 copy(dAtA[i:], m.Data) 6971 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 6972 i-- 6973 dAtA[i] = 0x12 6974 } 6975 if m.Code != 0 { 6976 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 6977 i-- 6978 dAtA[i] = 0x8 6979 } 6980 return len(dAtA) - i, nil 6981 } 6982 6983 func (m *ResponseDeliverTx) Marshal() (dAtA []byte, err error) { 6984 size := m.Size() 6985 dAtA = make([]byte, size) 6986 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6987 if err != nil { 6988 return nil, err 6989 } 6990 return dAtA[:n], nil 6991 } 6992 6993 func (m *ResponseDeliverTx) MarshalTo(dAtA []byte) (int, error) { 6994 size := m.Size() 6995 return m.MarshalToSizedBuffer(dAtA[:size]) 6996 } 6997 6998 func (m *ResponseDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6999 i := len(dAtA) 7000 _ = i 7001 var l int 7002 _ = l 7003 if m.XXX_unrecognized != nil { 7004 i -= len(m.XXX_unrecognized) 7005 copy(dAtA[i:], m.XXX_unrecognized) 7006 } 7007 if len(m.Codespace) > 0 { 7008 i -= len(m.Codespace) 7009 copy(dAtA[i:], m.Codespace) 7010 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 7011 i-- 7012 dAtA[i] = 0x42 7013 } 7014 if len(m.Events) > 0 { 7015 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 7016 { 7017 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7018 if err != nil { 7019 return 0, err 7020 } 7021 i -= size 7022 i = encodeVarintTypes(dAtA, i, uint64(size)) 7023 } 7024 i-- 7025 dAtA[i] = 0x3a 7026 } 7027 } 7028 if m.GasUsed != 0 { 7029 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 7030 i-- 7031 dAtA[i] = 0x30 7032 } 7033 if m.GasWanted != 0 { 7034 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 7035 i-- 7036 dAtA[i] = 0x28 7037 } 7038 if len(m.Info) > 0 { 7039 i -= len(m.Info) 7040 copy(dAtA[i:], m.Info) 7041 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 7042 i-- 7043 dAtA[i] = 0x22 7044 } 7045 if len(m.Log) > 0 { 7046 i -= len(m.Log) 7047 copy(dAtA[i:], m.Log) 7048 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 7049 i-- 7050 dAtA[i] = 0x1a 7051 } 7052 if len(m.Data) > 0 { 7053 i -= len(m.Data) 7054 copy(dAtA[i:], m.Data) 7055 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 7056 i-- 7057 dAtA[i] = 0x12 7058 } 7059 if m.Code != 0 { 7060 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 7061 i-- 7062 dAtA[i] = 0x8 7063 } 7064 return len(dAtA) - i, nil 7065 } 7066 7067 func (m *ResponseEndBlock) Marshal() (dAtA []byte, err error) { 7068 size := m.Size() 7069 dAtA = make([]byte, size) 7070 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7071 if err != nil { 7072 return nil, err 7073 } 7074 return dAtA[:n], nil 7075 } 7076 7077 func (m *ResponseEndBlock) MarshalTo(dAtA []byte) (int, error) { 7078 size := m.Size() 7079 return m.MarshalToSizedBuffer(dAtA[:size]) 7080 } 7081 7082 func (m *ResponseEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7083 i := len(dAtA) 7084 _ = i 7085 var l int 7086 _ = l 7087 if m.XXX_unrecognized != nil { 7088 i -= len(m.XXX_unrecognized) 7089 copy(dAtA[i:], m.XXX_unrecognized) 7090 } 7091 if len(m.Events) > 0 { 7092 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 7093 { 7094 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7095 if err != nil { 7096 return 0, err 7097 } 7098 i -= size 7099 i = encodeVarintTypes(dAtA, i, uint64(size)) 7100 } 7101 i-- 7102 dAtA[i] = 0x1a 7103 } 7104 } 7105 if m.ConsensusParamUpdates != nil { 7106 { 7107 size, err := m.ConsensusParamUpdates.MarshalToSizedBuffer(dAtA[:i]) 7108 if err != nil { 7109 return 0, err 7110 } 7111 i -= size 7112 i = encodeVarintTypes(dAtA, i, uint64(size)) 7113 } 7114 i-- 7115 dAtA[i] = 0x12 7116 } 7117 if len(m.ValidatorUpdates) > 0 { 7118 for iNdEx := len(m.ValidatorUpdates) - 1; iNdEx >= 0; iNdEx-- { 7119 { 7120 size, err := m.ValidatorUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7121 if err != nil { 7122 return 0, err 7123 } 7124 i -= size 7125 i = encodeVarintTypes(dAtA, i, uint64(size)) 7126 } 7127 i-- 7128 dAtA[i] = 0xa 7129 } 7130 } 7131 return len(dAtA) - i, nil 7132 } 7133 7134 func (m *ResponseCommit) Marshal() (dAtA []byte, err error) { 7135 size := m.Size() 7136 dAtA = make([]byte, size) 7137 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7138 if err != nil { 7139 return nil, err 7140 } 7141 return dAtA[:n], nil 7142 } 7143 7144 func (m *ResponseCommit) MarshalTo(dAtA []byte) (int, error) { 7145 size := m.Size() 7146 return m.MarshalToSizedBuffer(dAtA[:size]) 7147 } 7148 7149 func (m *ResponseCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7150 i := len(dAtA) 7151 _ = i 7152 var l int 7153 _ = l 7154 if m.XXX_unrecognized != nil { 7155 i -= len(m.XXX_unrecognized) 7156 copy(dAtA[i:], m.XXX_unrecognized) 7157 } 7158 if m.RetainHeight != 0 { 7159 i = encodeVarintTypes(dAtA, i, uint64(m.RetainHeight)) 7160 i-- 7161 dAtA[i] = 0x18 7162 } 7163 if len(m.Data) > 0 { 7164 i -= len(m.Data) 7165 copy(dAtA[i:], m.Data) 7166 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 7167 i-- 7168 dAtA[i] = 0x12 7169 } 7170 return len(dAtA) - i, nil 7171 } 7172 7173 func (m *ConsensusParams) Marshal() (dAtA []byte, err error) { 7174 size := m.Size() 7175 dAtA = make([]byte, size) 7176 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7177 if err != nil { 7178 return nil, err 7179 } 7180 return dAtA[:n], nil 7181 } 7182 7183 func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) { 7184 size := m.Size() 7185 return m.MarshalToSizedBuffer(dAtA[:size]) 7186 } 7187 7188 func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7189 i := len(dAtA) 7190 _ = i 7191 var l int 7192 _ = l 7193 if m.XXX_unrecognized != nil { 7194 i -= len(m.XXX_unrecognized) 7195 copy(dAtA[i:], m.XXX_unrecognized) 7196 } 7197 if m.Validator != nil { 7198 { 7199 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 7200 if err != nil { 7201 return 0, err 7202 } 7203 i -= size 7204 i = encodeVarintTypes(dAtA, i, uint64(size)) 7205 } 7206 i-- 7207 dAtA[i] = 0x1a 7208 } 7209 if m.Evidence != nil { 7210 { 7211 size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i]) 7212 if err != nil { 7213 return 0, err 7214 } 7215 i -= size 7216 i = encodeVarintTypes(dAtA, i, uint64(size)) 7217 } 7218 i-- 7219 dAtA[i] = 0x12 7220 } 7221 if m.Block != nil { 7222 { 7223 size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) 7224 if err != nil { 7225 return 0, err 7226 } 7227 i -= size 7228 i = encodeVarintTypes(dAtA, i, uint64(size)) 7229 } 7230 i-- 7231 dAtA[i] = 0xa 7232 } 7233 return len(dAtA) - i, nil 7234 } 7235 7236 func (m *BlockParams) Marshal() (dAtA []byte, err error) { 7237 size := m.Size() 7238 dAtA = make([]byte, size) 7239 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7240 if err != nil { 7241 return nil, err 7242 } 7243 return dAtA[:n], nil 7244 } 7245 7246 func (m *BlockParams) MarshalTo(dAtA []byte) (int, error) { 7247 size := m.Size() 7248 return m.MarshalToSizedBuffer(dAtA[:size]) 7249 } 7250 7251 func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7252 i := len(dAtA) 7253 _ = i 7254 var l int 7255 _ = l 7256 if m.XXX_unrecognized != nil { 7257 i -= len(m.XXX_unrecognized) 7258 copy(dAtA[i:], m.XXX_unrecognized) 7259 } 7260 if m.MaxGas != 0 { 7261 i = encodeVarintTypes(dAtA, i, uint64(m.MaxGas)) 7262 i-- 7263 dAtA[i] = 0x10 7264 } 7265 if m.MaxBytes != 0 { 7266 i = encodeVarintTypes(dAtA, i, uint64(m.MaxBytes)) 7267 i-- 7268 dAtA[i] = 0x8 7269 } 7270 return len(dAtA) - i, nil 7271 } 7272 7273 func (m *EvidenceParams) Marshal() (dAtA []byte, err error) { 7274 size := m.Size() 7275 dAtA = make([]byte, size) 7276 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7277 if err != nil { 7278 return nil, err 7279 } 7280 return dAtA[:n], nil 7281 } 7282 7283 func (m *EvidenceParams) MarshalTo(dAtA []byte) (int, error) { 7284 size := m.Size() 7285 return m.MarshalToSizedBuffer(dAtA[:size]) 7286 } 7287 7288 func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7289 i := len(dAtA) 7290 _ = i 7291 var l int 7292 _ = l 7293 if m.XXX_unrecognized != nil { 7294 i -= len(m.XXX_unrecognized) 7295 copy(dAtA[i:], m.XXX_unrecognized) 7296 } 7297 n36, err36 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MaxAgeDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxAgeDuration):]) 7298 if err36 != nil { 7299 return 0, err36 7300 } 7301 i -= n36 7302 i = encodeVarintTypes(dAtA, i, uint64(n36)) 7303 i-- 7304 dAtA[i] = 0x12 7305 if m.MaxAgeNumBlocks != 0 { 7306 i = encodeVarintTypes(dAtA, i, uint64(m.MaxAgeNumBlocks)) 7307 i-- 7308 dAtA[i] = 0x8 7309 } 7310 return len(dAtA) - i, nil 7311 } 7312 7313 func (m *ValidatorParams) Marshal() (dAtA []byte, err error) { 7314 size := m.Size() 7315 dAtA = make([]byte, size) 7316 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7317 if err != nil { 7318 return nil, err 7319 } 7320 return dAtA[:n], nil 7321 } 7322 7323 func (m *ValidatorParams) MarshalTo(dAtA []byte) (int, error) { 7324 size := m.Size() 7325 return m.MarshalToSizedBuffer(dAtA[:size]) 7326 } 7327 7328 func (m *ValidatorParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7329 i := len(dAtA) 7330 _ = i 7331 var l int 7332 _ = l 7333 if m.XXX_unrecognized != nil { 7334 i -= len(m.XXX_unrecognized) 7335 copy(dAtA[i:], m.XXX_unrecognized) 7336 } 7337 if len(m.PubKeyTypes) > 0 { 7338 for iNdEx := len(m.PubKeyTypes) - 1; iNdEx >= 0; iNdEx-- { 7339 i -= len(m.PubKeyTypes[iNdEx]) 7340 copy(dAtA[i:], m.PubKeyTypes[iNdEx]) 7341 i = encodeVarintTypes(dAtA, i, uint64(len(m.PubKeyTypes[iNdEx]))) 7342 i-- 7343 dAtA[i] = 0xa 7344 } 7345 } 7346 return len(dAtA) - i, nil 7347 } 7348 7349 func (m *LastCommitInfo) Marshal() (dAtA []byte, err error) { 7350 size := m.Size() 7351 dAtA = make([]byte, size) 7352 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7353 if err != nil { 7354 return nil, err 7355 } 7356 return dAtA[:n], nil 7357 } 7358 7359 func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error) { 7360 size := m.Size() 7361 return m.MarshalToSizedBuffer(dAtA[:size]) 7362 } 7363 7364 func (m *LastCommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7365 i := len(dAtA) 7366 _ = i 7367 var l int 7368 _ = l 7369 if m.XXX_unrecognized != nil { 7370 i -= len(m.XXX_unrecognized) 7371 copy(dAtA[i:], m.XXX_unrecognized) 7372 } 7373 if len(m.Votes) > 0 { 7374 for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- { 7375 { 7376 size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7377 if err != nil { 7378 return 0, err 7379 } 7380 i -= size 7381 i = encodeVarintTypes(dAtA, i, uint64(size)) 7382 } 7383 i-- 7384 dAtA[i] = 0x12 7385 } 7386 } 7387 if m.Round != 0 { 7388 i = encodeVarintTypes(dAtA, i, uint64(m.Round)) 7389 i-- 7390 dAtA[i] = 0x8 7391 } 7392 return len(dAtA) - i, nil 7393 } 7394 7395 func (m *Event) Marshal() (dAtA []byte, err error) { 7396 size := m.Size() 7397 dAtA = make([]byte, size) 7398 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7399 if err != nil { 7400 return nil, err 7401 } 7402 return dAtA[:n], nil 7403 } 7404 7405 func (m *Event) MarshalTo(dAtA []byte) (int, error) { 7406 size := m.Size() 7407 return m.MarshalToSizedBuffer(dAtA[:size]) 7408 } 7409 7410 func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7411 i := len(dAtA) 7412 _ = i 7413 var l int 7414 _ = l 7415 if m.XXX_unrecognized != nil { 7416 i -= len(m.XXX_unrecognized) 7417 copy(dAtA[i:], m.XXX_unrecognized) 7418 } 7419 if len(m.Attributes) > 0 { 7420 for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { 7421 { 7422 size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7423 if err != nil { 7424 return 0, err 7425 } 7426 i -= size 7427 i = encodeVarintTypes(dAtA, i, uint64(size)) 7428 } 7429 i-- 7430 dAtA[i] = 0x12 7431 } 7432 } 7433 if len(m.Type) > 0 { 7434 i -= len(m.Type) 7435 copy(dAtA[i:], m.Type) 7436 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 7437 i-- 7438 dAtA[i] = 0xa 7439 } 7440 return len(dAtA) - i, nil 7441 } 7442 7443 func (m *Header) Marshal() (dAtA []byte, err error) { 7444 size := m.Size() 7445 dAtA = make([]byte, size) 7446 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7447 if err != nil { 7448 return nil, err 7449 } 7450 return dAtA[:n], nil 7451 } 7452 7453 func (m *Header) MarshalTo(dAtA []byte) (int, error) { 7454 size := m.Size() 7455 return m.MarshalToSizedBuffer(dAtA[:size]) 7456 } 7457 7458 func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7459 i := len(dAtA) 7460 _ = i 7461 var l int 7462 _ = l 7463 if m.XXX_unrecognized != nil { 7464 i -= len(m.XXX_unrecognized) 7465 copy(dAtA[i:], m.XXX_unrecognized) 7466 } 7467 if len(m.ProposerAddress) > 0 { 7468 i -= len(m.ProposerAddress) 7469 copy(dAtA[i:], m.ProposerAddress) 7470 i = encodeVarintTypes(dAtA, i, uint64(len(m.ProposerAddress))) 7471 i-- 7472 dAtA[i] = 0x72 7473 } 7474 if len(m.EvidenceHash) > 0 { 7475 i -= len(m.EvidenceHash) 7476 copy(dAtA[i:], m.EvidenceHash) 7477 i = encodeVarintTypes(dAtA, i, uint64(len(m.EvidenceHash))) 7478 i-- 7479 dAtA[i] = 0x6a 7480 } 7481 if len(m.LastResultsHash) > 0 { 7482 i -= len(m.LastResultsHash) 7483 copy(dAtA[i:], m.LastResultsHash) 7484 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastResultsHash))) 7485 i-- 7486 dAtA[i] = 0x62 7487 } 7488 if len(m.AppHash) > 0 { 7489 i -= len(m.AppHash) 7490 copy(dAtA[i:], m.AppHash) 7491 i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash))) 7492 i-- 7493 dAtA[i] = 0x5a 7494 } 7495 if len(m.ConsensusHash) > 0 { 7496 i -= len(m.ConsensusHash) 7497 copy(dAtA[i:], m.ConsensusHash) 7498 i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusHash))) 7499 i-- 7500 dAtA[i] = 0x52 7501 } 7502 if len(m.NextValidatorsHash) > 0 { 7503 i -= len(m.NextValidatorsHash) 7504 copy(dAtA[i:], m.NextValidatorsHash) 7505 i = encodeVarintTypes(dAtA, i, uint64(len(m.NextValidatorsHash))) 7506 i-- 7507 dAtA[i] = 0x4a 7508 } 7509 if len(m.ValidatorsHash) > 0 { 7510 i -= len(m.ValidatorsHash) 7511 copy(dAtA[i:], m.ValidatorsHash) 7512 i = encodeVarintTypes(dAtA, i, uint64(len(m.ValidatorsHash))) 7513 i-- 7514 dAtA[i] = 0x42 7515 } 7516 if len(m.DataHash) > 0 { 7517 i -= len(m.DataHash) 7518 copy(dAtA[i:], m.DataHash) 7519 i = encodeVarintTypes(dAtA, i, uint64(len(m.DataHash))) 7520 i-- 7521 dAtA[i] = 0x3a 7522 } 7523 if len(m.LastCommitHash) > 0 { 7524 i -= len(m.LastCommitHash) 7525 copy(dAtA[i:], m.LastCommitHash) 7526 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastCommitHash))) 7527 i-- 7528 dAtA[i] = 0x32 7529 } 7530 { 7531 size, err := m.LastBlockId.MarshalToSizedBuffer(dAtA[:i]) 7532 if err != nil { 7533 return 0, err 7534 } 7535 i -= size 7536 i = encodeVarintTypes(dAtA, i, uint64(size)) 7537 } 7538 i-- 7539 dAtA[i] = 0x2a 7540 n38, err38 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 7541 if err38 != nil { 7542 return 0, err38 7543 } 7544 i -= n38 7545 i = encodeVarintTypes(dAtA, i, uint64(n38)) 7546 i-- 7547 dAtA[i] = 0x22 7548 if m.Height != 0 { 7549 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 7550 i-- 7551 dAtA[i] = 0x18 7552 } 7553 if len(m.ChainID) > 0 { 7554 i -= len(m.ChainID) 7555 copy(dAtA[i:], m.ChainID) 7556 i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainID))) 7557 i-- 7558 dAtA[i] = 0x12 7559 } 7560 { 7561 size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) 7562 if err != nil { 7563 return 0, err 7564 } 7565 i -= size 7566 i = encodeVarintTypes(dAtA, i, uint64(size)) 7567 } 7568 i-- 7569 dAtA[i] = 0xa 7570 return len(dAtA) - i, nil 7571 } 7572 7573 func (m *Version) Marshal() (dAtA []byte, err error) { 7574 size := m.Size() 7575 dAtA = make([]byte, size) 7576 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7577 if err != nil { 7578 return nil, err 7579 } 7580 return dAtA[:n], nil 7581 } 7582 7583 func (m *Version) MarshalTo(dAtA []byte) (int, error) { 7584 size := m.Size() 7585 return m.MarshalToSizedBuffer(dAtA[:size]) 7586 } 7587 7588 func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7589 i := len(dAtA) 7590 _ = i 7591 var l int 7592 _ = l 7593 if m.XXX_unrecognized != nil { 7594 i -= len(m.XXX_unrecognized) 7595 copy(dAtA[i:], m.XXX_unrecognized) 7596 } 7597 if m.App != 0 { 7598 i = encodeVarintTypes(dAtA, i, uint64(m.App)) 7599 i-- 7600 dAtA[i] = 0x10 7601 } 7602 if m.Block != 0 { 7603 i = encodeVarintTypes(dAtA, i, uint64(m.Block)) 7604 i-- 7605 dAtA[i] = 0x8 7606 } 7607 return len(dAtA) - i, nil 7608 } 7609 7610 func (m *BlockID) Marshal() (dAtA []byte, err error) { 7611 size := m.Size() 7612 dAtA = make([]byte, size) 7613 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7614 if err != nil { 7615 return nil, err 7616 } 7617 return dAtA[:n], nil 7618 } 7619 7620 func (m *BlockID) MarshalTo(dAtA []byte) (int, error) { 7621 size := m.Size() 7622 return m.MarshalToSizedBuffer(dAtA[:size]) 7623 } 7624 7625 func (m *BlockID) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7626 i := len(dAtA) 7627 _ = i 7628 var l int 7629 _ = l 7630 if m.XXX_unrecognized != nil { 7631 i -= len(m.XXX_unrecognized) 7632 copy(dAtA[i:], m.XXX_unrecognized) 7633 } 7634 { 7635 size, err := m.PartsHeader.MarshalToSizedBuffer(dAtA[:i]) 7636 if err != nil { 7637 return 0, err 7638 } 7639 i -= size 7640 i = encodeVarintTypes(dAtA, i, uint64(size)) 7641 } 7642 i-- 7643 dAtA[i] = 0x12 7644 if len(m.Hash) > 0 { 7645 i -= len(m.Hash) 7646 copy(dAtA[i:], m.Hash) 7647 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 7648 i-- 7649 dAtA[i] = 0xa 7650 } 7651 return len(dAtA) - i, nil 7652 } 7653 7654 func (m *PartSetHeader) Marshal() (dAtA []byte, err error) { 7655 size := m.Size() 7656 dAtA = make([]byte, size) 7657 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7658 if err != nil { 7659 return nil, err 7660 } 7661 return dAtA[:n], nil 7662 } 7663 7664 func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error) { 7665 size := m.Size() 7666 return m.MarshalToSizedBuffer(dAtA[:size]) 7667 } 7668 7669 func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7670 i := len(dAtA) 7671 _ = i 7672 var l int 7673 _ = l 7674 if m.XXX_unrecognized != nil { 7675 i -= len(m.XXX_unrecognized) 7676 copy(dAtA[i:], m.XXX_unrecognized) 7677 } 7678 if len(m.Hash) > 0 { 7679 i -= len(m.Hash) 7680 copy(dAtA[i:], m.Hash) 7681 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 7682 i-- 7683 dAtA[i] = 0x12 7684 } 7685 if m.Total != 0 { 7686 i = encodeVarintTypes(dAtA, i, uint64(m.Total)) 7687 i-- 7688 dAtA[i] = 0x8 7689 } 7690 return len(dAtA) - i, nil 7691 } 7692 7693 func (m *Validator) Marshal() (dAtA []byte, err error) { 7694 size := m.Size() 7695 dAtA = make([]byte, size) 7696 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7697 if err != nil { 7698 return nil, err 7699 } 7700 return dAtA[:n], nil 7701 } 7702 7703 func (m *Validator) MarshalTo(dAtA []byte) (int, error) { 7704 size := m.Size() 7705 return m.MarshalToSizedBuffer(dAtA[:size]) 7706 } 7707 7708 func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7709 i := len(dAtA) 7710 _ = i 7711 var l int 7712 _ = l 7713 if m.XXX_unrecognized != nil { 7714 i -= len(m.XXX_unrecognized) 7715 copy(dAtA[i:], m.XXX_unrecognized) 7716 } 7717 if m.Power != 0 { 7718 i = encodeVarintTypes(dAtA, i, uint64(m.Power)) 7719 i-- 7720 dAtA[i] = 0x18 7721 } 7722 if len(m.Address) > 0 { 7723 i -= len(m.Address) 7724 copy(dAtA[i:], m.Address) 7725 i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) 7726 i-- 7727 dAtA[i] = 0xa 7728 } 7729 return len(dAtA) - i, nil 7730 } 7731 7732 func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error) { 7733 size := m.Size() 7734 dAtA = make([]byte, size) 7735 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7736 if err != nil { 7737 return nil, err 7738 } 7739 return dAtA[:n], nil 7740 } 7741 7742 func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error) { 7743 size := m.Size() 7744 return m.MarshalToSizedBuffer(dAtA[:size]) 7745 } 7746 7747 func (m *ValidatorUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7748 i := len(dAtA) 7749 _ = i 7750 var l int 7751 _ = l 7752 if m.XXX_unrecognized != nil { 7753 i -= len(m.XXX_unrecognized) 7754 copy(dAtA[i:], m.XXX_unrecognized) 7755 } 7756 if m.Power != 0 { 7757 i = encodeVarintTypes(dAtA, i, uint64(m.Power)) 7758 i-- 7759 dAtA[i] = 0x10 7760 } 7761 { 7762 size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i]) 7763 if err != nil { 7764 return 0, err 7765 } 7766 i -= size 7767 i = encodeVarintTypes(dAtA, i, uint64(size)) 7768 } 7769 i-- 7770 dAtA[i] = 0xa 7771 return len(dAtA) - i, nil 7772 } 7773 7774 func (m *VoteInfo) Marshal() (dAtA []byte, err error) { 7775 size := m.Size() 7776 dAtA = make([]byte, size) 7777 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7778 if err != nil { 7779 return nil, err 7780 } 7781 return dAtA[:n], nil 7782 } 7783 7784 func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error) { 7785 size := m.Size() 7786 return m.MarshalToSizedBuffer(dAtA[:size]) 7787 } 7788 7789 func (m *VoteInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7790 i := len(dAtA) 7791 _ = i 7792 var l int 7793 _ = l 7794 if m.XXX_unrecognized != nil { 7795 i -= len(m.XXX_unrecognized) 7796 copy(dAtA[i:], m.XXX_unrecognized) 7797 } 7798 if m.SignedLastBlock { 7799 i-- 7800 if m.SignedLastBlock { 7801 dAtA[i] = 1 7802 } else { 7803 dAtA[i] = 0 7804 } 7805 i-- 7806 dAtA[i] = 0x10 7807 } 7808 { 7809 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 7810 if err != nil { 7811 return 0, err 7812 } 7813 i -= size 7814 i = encodeVarintTypes(dAtA, i, uint64(size)) 7815 } 7816 i-- 7817 dAtA[i] = 0xa 7818 return len(dAtA) - i, nil 7819 } 7820 7821 func (m *PubKey) Marshal() (dAtA []byte, err error) { 7822 size := m.Size() 7823 dAtA = make([]byte, size) 7824 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7825 if err != nil { 7826 return nil, err 7827 } 7828 return dAtA[:n], nil 7829 } 7830 7831 func (m *PubKey) MarshalTo(dAtA []byte) (int, error) { 7832 size := m.Size() 7833 return m.MarshalToSizedBuffer(dAtA[:size]) 7834 } 7835 7836 func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7837 i := len(dAtA) 7838 _ = i 7839 var l int 7840 _ = l 7841 if m.XXX_unrecognized != nil { 7842 i -= len(m.XXX_unrecognized) 7843 copy(dAtA[i:], m.XXX_unrecognized) 7844 } 7845 if len(m.Data) > 0 { 7846 i -= len(m.Data) 7847 copy(dAtA[i:], m.Data) 7848 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 7849 i-- 7850 dAtA[i] = 0x12 7851 } 7852 if len(m.Type) > 0 { 7853 i -= len(m.Type) 7854 copy(dAtA[i:], m.Type) 7855 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 7856 i-- 7857 dAtA[i] = 0xa 7858 } 7859 return len(dAtA) - i, nil 7860 } 7861 7862 func (m *Evidence) Marshal() (dAtA []byte, err error) { 7863 size := m.Size() 7864 dAtA = make([]byte, size) 7865 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7866 if err != nil { 7867 return nil, err 7868 } 7869 return dAtA[:n], nil 7870 } 7871 7872 func (m *Evidence) MarshalTo(dAtA []byte) (int, error) { 7873 size := m.Size() 7874 return m.MarshalToSizedBuffer(dAtA[:size]) 7875 } 7876 7877 func (m *Evidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7878 i := len(dAtA) 7879 _ = i 7880 var l int 7881 _ = l 7882 if m.XXX_unrecognized != nil { 7883 i -= len(m.XXX_unrecognized) 7884 copy(dAtA[i:], m.XXX_unrecognized) 7885 } 7886 if m.TotalVotingPower != 0 { 7887 i = encodeVarintTypes(dAtA, i, uint64(m.TotalVotingPower)) 7888 i-- 7889 dAtA[i] = 0x28 7890 } 7891 n43, err43 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 7892 if err43 != nil { 7893 return 0, err43 7894 } 7895 i -= n43 7896 i = encodeVarintTypes(dAtA, i, uint64(n43)) 7897 i-- 7898 dAtA[i] = 0x22 7899 if m.Height != 0 { 7900 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 7901 i-- 7902 dAtA[i] = 0x18 7903 } 7904 { 7905 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 7906 if err != nil { 7907 return 0, err 7908 } 7909 i -= size 7910 i = encodeVarintTypes(dAtA, i, uint64(size)) 7911 } 7912 i-- 7913 dAtA[i] = 0x12 7914 if len(m.Type) > 0 { 7915 i -= len(m.Type) 7916 copy(dAtA[i:], m.Type) 7917 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 7918 i-- 7919 dAtA[i] = 0xa 7920 } 7921 return len(dAtA) - i, nil 7922 } 7923 7924 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 7925 offset -= sovTypes(v) 7926 base := offset 7927 for v >= 1<<7 { 7928 dAtA[offset] = uint8(v&0x7f | 0x80) 7929 v >>= 7 7930 offset++ 7931 } 7932 dAtA[offset] = uint8(v) 7933 return base 7934 } 7935 func NewPopulatedRequest(r randyTypes, easy bool) *Request { 7936 this := &Request{} 7937 oneofNumber_Value := []int32{2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19}[r.Intn(11)] 7938 switch oneofNumber_Value { 7939 case 2: 7940 this.Value = NewPopulatedRequest_Echo(r, easy) 7941 case 3: 7942 this.Value = NewPopulatedRequest_Flush(r, easy) 7943 case 4: 7944 this.Value = NewPopulatedRequest_Info(r, easy) 7945 case 5: 7946 this.Value = NewPopulatedRequest_SetOption(r, easy) 7947 case 6: 7948 this.Value = NewPopulatedRequest_InitChain(r, easy) 7949 case 7: 7950 this.Value = NewPopulatedRequest_Query(r, easy) 7951 case 8: 7952 this.Value = NewPopulatedRequest_BeginBlock(r, easy) 7953 case 9: 7954 this.Value = NewPopulatedRequest_CheckTx(r, easy) 7955 case 11: 7956 this.Value = NewPopulatedRequest_EndBlock(r, easy) 7957 case 12: 7958 this.Value = NewPopulatedRequest_Commit(r, easy) 7959 case 19: 7960 this.Value = NewPopulatedRequest_DeliverTx(r, easy) 7961 } 7962 if !easy && r.Intn(10) != 0 { 7963 this.XXX_unrecognized = randUnrecognizedTypes(r, 20) 7964 } 7965 return this 7966 } 7967 7968 func NewPopulatedRequest_Echo(r randyTypes, easy bool) *Request_Echo { 7969 this := &Request_Echo{} 7970 this.Echo = NewPopulatedRequestEcho(r, easy) 7971 return this 7972 } 7973 func NewPopulatedRequest_Flush(r randyTypes, easy bool) *Request_Flush { 7974 this := &Request_Flush{} 7975 this.Flush = NewPopulatedRequestFlush(r, easy) 7976 return this 7977 } 7978 func NewPopulatedRequest_Info(r randyTypes, easy bool) *Request_Info { 7979 this := &Request_Info{} 7980 this.Info = NewPopulatedRequestInfo(r, easy) 7981 return this 7982 } 7983 func NewPopulatedRequest_SetOption(r randyTypes, easy bool) *Request_SetOption { 7984 this := &Request_SetOption{} 7985 this.SetOption = NewPopulatedRequestSetOption(r, easy) 7986 return this 7987 } 7988 func NewPopulatedRequest_InitChain(r randyTypes, easy bool) *Request_InitChain { 7989 this := &Request_InitChain{} 7990 this.InitChain = NewPopulatedRequestInitChain(r, easy) 7991 return this 7992 } 7993 func NewPopulatedRequest_Query(r randyTypes, easy bool) *Request_Query { 7994 this := &Request_Query{} 7995 this.Query = NewPopulatedRequestQuery(r, easy) 7996 return this 7997 } 7998 func NewPopulatedRequest_BeginBlock(r randyTypes, easy bool) *Request_BeginBlock { 7999 this := &Request_BeginBlock{} 8000 this.BeginBlock = NewPopulatedRequestBeginBlock(r, easy) 8001 return this 8002 } 8003 func NewPopulatedRequest_CheckTx(r randyTypes, easy bool) *Request_CheckTx { 8004 this := &Request_CheckTx{} 8005 this.CheckTx = NewPopulatedRequestCheckTx(r, easy) 8006 return this 8007 } 8008 func NewPopulatedRequest_EndBlock(r randyTypes, easy bool) *Request_EndBlock { 8009 this := &Request_EndBlock{} 8010 this.EndBlock = NewPopulatedRequestEndBlock(r, easy) 8011 return this 8012 } 8013 func NewPopulatedRequest_Commit(r randyTypes, easy bool) *Request_Commit { 8014 this := &Request_Commit{} 8015 this.Commit = NewPopulatedRequestCommit(r, easy) 8016 return this 8017 } 8018 func NewPopulatedRequest_DeliverTx(r randyTypes, easy bool) *Request_DeliverTx { 8019 this := &Request_DeliverTx{} 8020 this.DeliverTx = NewPopulatedRequestDeliverTx(r, easy) 8021 return this 8022 } 8023 func NewPopulatedRequestEcho(r randyTypes, easy bool) *RequestEcho { 8024 this := &RequestEcho{} 8025 this.Message = string(randStringTypes(r)) 8026 if !easy && r.Intn(10) != 0 { 8027 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8028 } 8029 return this 8030 } 8031 8032 func NewPopulatedRequestFlush(r randyTypes, easy bool) *RequestFlush { 8033 this := &RequestFlush{} 8034 if !easy && r.Intn(10) != 0 { 8035 this.XXX_unrecognized = randUnrecognizedTypes(r, 1) 8036 } 8037 return this 8038 } 8039 8040 func NewPopulatedRequestInfo(r randyTypes, easy bool) *RequestInfo { 8041 this := &RequestInfo{} 8042 this.Version = string(randStringTypes(r)) 8043 this.BlockVersion = uint64(uint64(r.Uint32())) 8044 this.P2PVersion = uint64(uint64(r.Uint32())) 8045 if !easy && r.Intn(10) != 0 { 8046 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8047 } 8048 return this 8049 } 8050 8051 func NewPopulatedRequestSetOption(r randyTypes, easy bool) *RequestSetOption { 8052 this := &RequestSetOption{} 8053 this.Key = string(randStringTypes(r)) 8054 this.Value = string(randStringTypes(r)) 8055 if !easy && r.Intn(10) != 0 { 8056 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8057 } 8058 return this 8059 } 8060 8061 func NewPopulatedRequestInitChain(r randyTypes, easy bool) *RequestInitChain { 8062 this := &RequestInitChain{} 8063 v1 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy) 8064 this.Time = *v1 8065 this.ChainId = string(randStringTypes(r)) 8066 if r.Intn(5) != 0 { 8067 this.ConsensusParams = NewPopulatedConsensusParams(r, easy) 8068 } 8069 if r.Intn(5) != 0 { 8070 v2 := r.Intn(5) 8071 this.Validators = make([]ValidatorUpdate, v2) 8072 for i := 0; i < v2; i++ { 8073 v3 := NewPopulatedValidatorUpdate(r, easy) 8074 this.Validators[i] = *v3 8075 } 8076 } 8077 v4 := r.Intn(100) 8078 this.AppStateBytes = make([]byte, v4) 8079 for i := 0; i < v4; i++ { 8080 this.AppStateBytes[i] = byte(r.Intn(256)) 8081 } 8082 if !easy && r.Intn(10) != 0 { 8083 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8084 } 8085 return this 8086 } 8087 8088 func NewPopulatedRequestQuery(r randyTypes, easy bool) *RequestQuery { 8089 this := &RequestQuery{} 8090 v5 := r.Intn(100) 8091 this.Data = make([]byte, v5) 8092 for i := 0; i < v5; i++ { 8093 this.Data[i] = byte(r.Intn(256)) 8094 } 8095 this.Path = string(randStringTypes(r)) 8096 this.Height = int64(r.Int63()) 8097 if r.Intn(2) == 0 { 8098 this.Height *= -1 8099 } 8100 this.Prove = bool(bool(r.Intn(2) == 0)) 8101 if !easy && r.Intn(10) != 0 { 8102 this.XXX_unrecognized = randUnrecognizedTypes(r, 5) 8103 } 8104 return this 8105 } 8106 8107 func NewPopulatedRequestBeginBlock(r randyTypes, easy bool) *RequestBeginBlock { 8108 this := &RequestBeginBlock{} 8109 v6 := r.Intn(100) 8110 this.Hash = make([]byte, v6) 8111 for i := 0; i < v6; i++ { 8112 this.Hash[i] = byte(r.Intn(256)) 8113 } 8114 v7 := NewPopulatedHeader(r, easy) 8115 this.Header = *v7 8116 v8 := NewPopulatedLastCommitInfo(r, easy) 8117 this.LastCommitInfo = *v8 8118 if r.Intn(5) != 0 { 8119 v9 := r.Intn(5) 8120 this.ByzantineValidators = make([]Evidence, v9) 8121 for i := 0; i < v9; i++ { 8122 v10 := NewPopulatedEvidence(r, easy) 8123 this.ByzantineValidators[i] = *v10 8124 } 8125 } 8126 if !easy && r.Intn(10) != 0 { 8127 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8128 } 8129 return this 8130 } 8131 8132 func NewPopulatedRequestCheckTx(r randyTypes, easy bool) *RequestCheckTx { 8133 this := &RequestCheckTx{} 8134 v11 := r.Intn(100) 8135 this.Tx = make([]byte, v11) 8136 for i := 0; i < v11; i++ { 8137 this.Tx[i] = byte(r.Intn(256)) 8138 } 8139 this.Type = CheckTxType([]int32{0, 1}[r.Intn(2)]) 8140 if !easy && r.Intn(10) != 0 { 8141 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8142 } 8143 return this 8144 } 8145 8146 func NewPopulatedRequestDeliverTx(r randyTypes, easy bool) *RequestDeliverTx { 8147 this := &RequestDeliverTx{} 8148 v12 := r.Intn(100) 8149 this.Tx = make([]byte, v12) 8150 for i := 0; i < v12; i++ { 8151 this.Tx[i] = byte(r.Intn(256)) 8152 } 8153 if !easy && r.Intn(10) != 0 { 8154 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8155 } 8156 return this 8157 } 8158 8159 func NewPopulatedRequestEndBlock(r randyTypes, easy bool) *RequestEndBlock { 8160 this := &RequestEndBlock{} 8161 this.Height = int64(r.Int63()) 8162 if r.Intn(2) == 0 { 8163 this.Height *= -1 8164 } 8165 if !easy && r.Intn(10) != 0 { 8166 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8167 } 8168 return this 8169 } 8170 8171 func NewPopulatedRequestCommit(r randyTypes, easy bool) *RequestCommit { 8172 this := &RequestCommit{} 8173 if !easy && r.Intn(10) != 0 { 8174 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8175 } 8176 return this 8177 } 8178 8179 func NewPopulatedResponse(r randyTypes, easy bool) *Response { 8180 this := &Response{} 8181 oneofNumber_Value := []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}[r.Intn(12)] 8182 switch oneofNumber_Value { 8183 case 1: 8184 this.Value = NewPopulatedResponse_Exception(r, easy) 8185 case 2: 8186 this.Value = NewPopulatedResponse_Echo(r, easy) 8187 case 3: 8188 this.Value = NewPopulatedResponse_Flush(r, easy) 8189 case 4: 8190 this.Value = NewPopulatedResponse_Info(r, easy) 8191 case 5: 8192 this.Value = NewPopulatedResponse_SetOption(r, easy) 8193 case 6: 8194 this.Value = NewPopulatedResponse_InitChain(r, easy) 8195 case 7: 8196 this.Value = NewPopulatedResponse_Query(r, easy) 8197 case 8: 8198 this.Value = NewPopulatedResponse_BeginBlock(r, easy) 8199 case 9: 8200 this.Value = NewPopulatedResponse_CheckTx(r, easy) 8201 case 10: 8202 this.Value = NewPopulatedResponse_DeliverTx(r, easy) 8203 case 11: 8204 this.Value = NewPopulatedResponse_EndBlock(r, easy) 8205 case 12: 8206 this.Value = NewPopulatedResponse_Commit(r, easy) 8207 } 8208 if !easy && r.Intn(10) != 0 { 8209 this.XXX_unrecognized = randUnrecognizedTypes(r, 13) 8210 } 8211 return this 8212 } 8213 8214 func NewPopulatedResponse_Exception(r randyTypes, easy bool) *Response_Exception { 8215 this := &Response_Exception{} 8216 this.Exception = NewPopulatedResponseException(r, easy) 8217 return this 8218 } 8219 func NewPopulatedResponse_Echo(r randyTypes, easy bool) *Response_Echo { 8220 this := &Response_Echo{} 8221 this.Echo = NewPopulatedResponseEcho(r, easy) 8222 return this 8223 } 8224 func NewPopulatedResponse_Flush(r randyTypes, easy bool) *Response_Flush { 8225 this := &Response_Flush{} 8226 this.Flush = NewPopulatedResponseFlush(r, easy) 8227 return this 8228 } 8229 func NewPopulatedResponse_Info(r randyTypes, easy bool) *Response_Info { 8230 this := &Response_Info{} 8231 this.Info = NewPopulatedResponseInfo(r, easy) 8232 return this 8233 } 8234 func NewPopulatedResponse_SetOption(r randyTypes, easy bool) *Response_SetOption { 8235 this := &Response_SetOption{} 8236 this.SetOption = NewPopulatedResponseSetOption(r, easy) 8237 return this 8238 } 8239 func NewPopulatedResponse_InitChain(r randyTypes, easy bool) *Response_InitChain { 8240 this := &Response_InitChain{} 8241 this.InitChain = NewPopulatedResponseInitChain(r, easy) 8242 return this 8243 } 8244 func NewPopulatedResponse_Query(r randyTypes, easy bool) *Response_Query { 8245 this := &Response_Query{} 8246 this.Query = NewPopulatedResponseQuery(r, easy) 8247 return this 8248 } 8249 func NewPopulatedResponse_BeginBlock(r randyTypes, easy bool) *Response_BeginBlock { 8250 this := &Response_BeginBlock{} 8251 this.BeginBlock = NewPopulatedResponseBeginBlock(r, easy) 8252 return this 8253 } 8254 func NewPopulatedResponse_CheckTx(r randyTypes, easy bool) *Response_CheckTx { 8255 this := &Response_CheckTx{} 8256 this.CheckTx = NewPopulatedResponseCheckTx(r, easy) 8257 return this 8258 } 8259 func NewPopulatedResponse_DeliverTx(r randyTypes, easy bool) *Response_DeliverTx { 8260 this := &Response_DeliverTx{} 8261 this.DeliverTx = NewPopulatedResponseDeliverTx(r, easy) 8262 return this 8263 } 8264 func NewPopulatedResponse_EndBlock(r randyTypes, easy bool) *Response_EndBlock { 8265 this := &Response_EndBlock{} 8266 this.EndBlock = NewPopulatedResponseEndBlock(r, easy) 8267 return this 8268 } 8269 func NewPopulatedResponse_Commit(r randyTypes, easy bool) *Response_Commit { 8270 this := &Response_Commit{} 8271 this.Commit = NewPopulatedResponseCommit(r, easy) 8272 return this 8273 } 8274 func NewPopulatedResponseException(r randyTypes, easy bool) *ResponseException { 8275 this := &ResponseException{} 8276 this.Error = string(randStringTypes(r)) 8277 if !easy && r.Intn(10) != 0 { 8278 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8279 } 8280 return this 8281 } 8282 8283 func NewPopulatedResponseEcho(r randyTypes, easy bool) *ResponseEcho { 8284 this := &ResponseEcho{} 8285 this.Message = string(randStringTypes(r)) 8286 if !easy && r.Intn(10) != 0 { 8287 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8288 } 8289 return this 8290 } 8291 8292 func NewPopulatedResponseFlush(r randyTypes, easy bool) *ResponseFlush { 8293 this := &ResponseFlush{} 8294 if !easy && r.Intn(10) != 0 { 8295 this.XXX_unrecognized = randUnrecognizedTypes(r, 1) 8296 } 8297 return this 8298 } 8299 8300 func NewPopulatedResponseInfo(r randyTypes, easy bool) *ResponseInfo { 8301 this := &ResponseInfo{} 8302 this.Data = string(randStringTypes(r)) 8303 this.Version = string(randStringTypes(r)) 8304 this.AppVersion = uint64(uint64(r.Uint32())) 8305 this.LastBlockHeight = int64(r.Int63()) 8306 if r.Intn(2) == 0 { 8307 this.LastBlockHeight *= -1 8308 } 8309 v15 := r.Intn(100) 8310 this.LastBlockAppHash = make([]byte, v15) 8311 for i := 0; i < v15; i++ { 8312 this.LastBlockAppHash[i] = byte(r.Intn(256)) 8313 } 8314 if !easy && r.Intn(10) != 0 { 8315 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8316 } 8317 return this 8318 } 8319 8320 func NewPopulatedResponseSetOption(r randyTypes, easy bool) *ResponseSetOption { 8321 this := &ResponseSetOption{} 8322 this.Code = uint32(r.Uint32()) 8323 this.Log = string(randStringTypes(r)) 8324 this.Info = string(randStringTypes(r)) 8325 if !easy && r.Intn(10) != 0 { 8326 this.XXX_unrecognized = randUnrecognizedTypes(r, 5) 8327 } 8328 return this 8329 } 8330 8331 func NewPopulatedResponseInitChain(r randyTypes, easy bool) *ResponseInitChain { 8332 this := &ResponseInitChain{} 8333 if r.Intn(5) != 0 { 8334 this.ConsensusParams = NewPopulatedConsensusParams(r, easy) 8335 } 8336 if r.Intn(5) != 0 { 8337 v16 := r.Intn(5) 8338 this.Validators = make([]ValidatorUpdate, v16) 8339 for i := 0; i < v16; i++ { 8340 v17 := NewPopulatedValidatorUpdate(r, easy) 8341 this.Validators[i] = *v17 8342 } 8343 } 8344 if !easy && r.Intn(10) != 0 { 8345 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8346 } 8347 return this 8348 } 8349 8350 func NewPopulatedResponseQuery(r randyTypes, easy bool) *ResponseQuery { 8351 this := &ResponseQuery{} 8352 this.Code = uint32(r.Uint32()) 8353 this.Log = string(randStringTypes(r)) 8354 this.Info = string(randStringTypes(r)) 8355 this.Index = int64(r.Int63()) 8356 if r.Intn(2) == 0 { 8357 this.Index *= -1 8358 } 8359 v18 := r.Intn(100) 8360 this.Key = make([]byte, v18) 8361 for i := 0; i < v18; i++ { 8362 this.Key[i] = byte(r.Intn(256)) 8363 } 8364 v19 := r.Intn(100) 8365 this.Value = make([]byte, v19) 8366 for i := 0; i < v19; i++ { 8367 this.Value[i] = byte(r.Intn(256)) 8368 } 8369 if r.Intn(5) != 0 { 8370 this.Proof = merkle.NewPopulatedProof(r, easy) 8371 } 8372 this.Height = int64(r.Int63()) 8373 if r.Intn(2) == 0 { 8374 this.Height *= -1 8375 } 8376 this.Codespace = string(randStringTypes(r)) 8377 if !easy && r.Intn(10) != 0 { 8378 this.XXX_unrecognized = randUnrecognizedTypes(r, 11) 8379 } 8380 return this 8381 } 8382 8383 func NewPopulatedResponseBeginBlock(r randyTypes, easy bool) *ResponseBeginBlock { 8384 this := &ResponseBeginBlock{} 8385 if r.Intn(5) != 0 { 8386 v20 := r.Intn(5) 8387 this.Events = make([]Event, v20) 8388 for i := 0; i < v20; i++ { 8389 v21 := NewPopulatedEvent(r, easy) 8390 this.Events[i] = *v21 8391 } 8392 } 8393 if !easy && r.Intn(10) != 0 { 8394 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8395 } 8396 return this 8397 } 8398 8399 func NewPopulatedResponseCheckTx(r randyTypes, easy bool) *ResponseCheckTx { 8400 this := &ResponseCheckTx{} 8401 this.Code = uint32(r.Uint32()) 8402 v22 := r.Intn(100) 8403 this.Data = make([]byte, v22) 8404 for i := 0; i < v22; i++ { 8405 this.Data[i] = byte(r.Intn(256)) 8406 } 8407 this.Log = string(randStringTypes(r)) 8408 this.Info = string(randStringTypes(r)) 8409 this.GasWanted = int64(r.Int63()) 8410 if r.Intn(2) == 0 { 8411 this.GasWanted *= -1 8412 } 8413 this.GasUsed = int64(r.Int63()) 8414 if r.Intn(2) == 0 { 8415 this.GasUsed *= -1 8416 } 8417 if r.Intn(5) != 0 { 8418 v23 := r.Intn(5) 8419 this.Events = make([]Event, v23) 8420 for i := 0; i < v23; i++ { 8421 v24 := NewPopulatedEvent(r, easy) 8422 this.Events[i] = *v24 8423 } 8424 } 8425 this.Codespace = string(randStringTypes(r)) 8426 if !easy && r.Intn(10) != 0 { 8427 this.XXX_unrecognized = randUnrecognizedTypes(r, 9) 8428 } 8429 return this 8430 } 8431 8432 func NewPopulatedResponseDeliverTx(r randyTypes, easy bool) *ResponseDeliverTx { 8433 this := &ResponseDeliverTx{} 8434 this.Code = uint32(r.Uint32()) 8435 v25 := r.Intn(100) 8436 this.Data = make([]byte, v25) 8437 for i := 0; i < v25; i++ { 8438 this.Data[i] = byte(r.Intn(256)) 8439 } 8440 this.Log = string(randStringTypes(r)) 8441 this.Info = string(randStringTypes(r)) 8442 this.GasWanted = int64(r.Int63()) 8443 if r.Intn(2) == 0 { 8444 this.GasWanted *= -1 8445 } 8446 this.GasUsed = int64(r.Int63()) 8447 if r.Intn(2) == 0 { 8448 this.GasUsed *= -1 8449 } 8450 if r.Intn(5) != 0 { 8451 v26 := r.Intn(5) 8452 this.Events = make([]Event, v26) 8453 for i := 0; i < v26; i++ { 8454 v27 := NewPopulatedEvent(r, easy) 8455 this.Events[i] = *v27 8456 } 8457 } 8458 this.Codespace = string(randStringTypes(r)) 8459 if !easy && r.Intn(10) != 0 { 8460 this.XXX_unrecognized = randUnrecognizedTypes(r, 9) 8461 } 8462 return this 8463 } 8464 8465 func NewPopulatedResponseEndBlock(r randyTypes, easy bool) *ResponseEndBlock { 8466 this := &ResponseEndBlock{} 8467 if r.Intn(5) != 0 { 8468 v28 := r.Intn(5) 8469 this.ValidatorUpdates = make([]ValidatorUpdate, v28) 8470 for i := 0; i < v28; i++ { 8471 v29 := NewPopulatedValidatorUpdate(r, easy) 8472 this.ValidatorUpdates[i] = *v29 8473 } 8474 } 8475 if r.Intn(5) != 0 { 8476 this.ConsensusParamUpdates = NewPopulatedConsensusParams(r, easy) 8477 } 8478 if r.Intn(5) != 0 { 8479 v30 := r.Intn(5) 8480 this.Events = make([]Event, v30) 8481 for i := 0; i < v30; i++ { 8482 v31 := NewPopulatedEvent(r, easy) 8483 this.Events[i] = *v31 8484 } 8485 } 8486 if !easy && r.Intn(10) != 0 { 8487 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8488 } 8489 return this 8490 } 8491 8492 func NewPopulatedResponseCommit(r randyTypes, easy bool) *ResponseCommit { 8493 this := &ResponseCommit{} 8494 v32 := r.Intn(100) 8495 this.Data = make([]byte, v32) 8496 for i := 0; i < v32; i++ { 8497 this.Data[i] = byte(r.Intn(256)) 8498 } 8499 this.RetainHeight = int64(r.Int63()) 8500 if r.Intn(2) == 0 { 8501 this.RetainHeight *= -1 8502 } 8503 if !easy && r.Intn(10) != 0 { 8504 this.XXX_unrecognized = randUnrecognizedTypes(r, 5) 8505 } 8506 return this 8507 } 8508 8509 func NewPopulatedConsensusParams(r randyTypes, easy bool) *ConsensusParams { 8510 this := &ConsensusParams{} 8511 if r.Intn(5) != 0 { 8512 this.Block = NewPopulatedBlockParams(r, easy) 8513 } 8514 if r.Intn(5) != 0 { 8515 this.Evidence = NewPopulatedEvidenceParams(r, easy) 8516 } 8517 if r.Intn(5) != 0 { 8518 this.Validator = NewPopulatedValidatorParams(r, easy) 8519 } 8520 if !easy && r.Intn(10) != 0 { 8521 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8522 } 8523 return this 8524 } 8525 8526 func NewPopulatedBlockParams(r randyTypes, easy bool) *BlockParams { 8527 this := &BlockParams{} 8528 this.MaxBytes = int64(r.Int63()) 8529 if r.Intn(2) == 0 { 8530 this.MaxBytes *= -1 8531 } 8532 this.MaxGas = int64(r.Int63()) 8533 if r.Intn(2) == 0 { 8534 this.MaxGas *= -1 8535 } 8536 if !easy && r.Intn(10) != 0 { 8537 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8538 } 8539 return this 8540 } 8541 8542 func NewPopulatedEvidenceParams(r randyTypes, easy bool) *EvidenceParams { 8543 this := &EvidenceParams{} 8544 this.MaxAgeNumBlocks = int64(r.Int63()) 8545 if r.Intn(2) == 0 { 8546 this.MaxAgeNumBlocks *= -1 8547 } 8548 v33 := github_com_gogo_protobuf_types.NewPopulatedStdDuration(r, easy) 8549 this.MaxAgeDuration = *v33 8550 if !easy && r.Intn(10) != 0 { 8551 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8552 } 8553 return this 8554 } 8555 8556 func NewPopulatedValidatorParams(r randyTypes, easy bool) *ValidatorParams { 8557 this := &ValidatorParams{} 8558 v34 := r.Intn(10) 8559 this.PubKeyTypes = make([]string, v34) 8560 for i := 0; i < v34; i++ { 8561 this.PubKeyTypes[i] = string(randStringTypes(r)) 8562 } 8563 if !easy && r.Intn(10) != 0 { 8564 this.XXX_unrecognized = randUnrecognizedTypes(r, 2) 8565 } 8566 return this 8567 } 8568 8569 func NewPopulatedLastCommitInfo(r randyTypes, easy bool) *LastCommitInfo { 8570 this := &LastCommitInfo{} 8571 this.Round = int32(r.Int31()) 8572 if r.Intn(2) == 0 { 8573 this.Round *= -1 8574 } 8575 if r.Intn(5) != 0 { 8576 v35 := r.Intn(5) 8577 this.Votes = make([]VoteInfo, v35) 8578 for i := 0; i < v35; i++ { 8579 v36 := NewPopulatedVoteInfo(r, easy) 8580 this.Votes[i] = *v36 8581 } 8582 } 8583 if !easy && r.Intn(10) != 0 { 8584 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8585 } 8586 return this 8587 } 8588 8589 func NewPopulatedEvent(r randyTypes, easy bool) *Event { 8590 this := &Event{} 8591 this.Type = string(randStringTypes(r)) 8592 if r.Intn(5) != 0 { 8593 v37 := r.Intn(5) 8594 this.Attributes = make([]kv.Pair, v37) 8595 for i := 0; i < v37; i++ { 8596 v38 := kv.NewPopulatedPair(r, easy) 8597 this.Attributes[i] = *v38 8598 } 8599 } 8600 if !easy && r.Intn(10) != 0 { 8601 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8602 } 8603 return this 8604 } 8605 8606 func NewPopulatedHeader(r randyTypes, easy bool) *Header { 8607 this := &Header{} 8608 v39 := NewPopulatedVersion(r, easy) 8609 this.Version = *v39 8610 this.ChainID = string(randStringTypes(r)) 8611 this.Height = int64(r.Int63()) 8612 if r.Intn(2) == 0 { 8613 this.Height *= -1 8614 } 8615 v40 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy) 8616 this.Time = *v40 8617 v41 := NewPopulatedBlockID(r, easy) 8618 this.LastBlockId = *v41 8619 v42 := r.Intn(100) 8620 this.LastCommitHash = make([]byte, v42) 8621 for i := 0; i < v42; i++ { 8622 this.LastCommitHash[i] = byte(r.Intn(256)) 8623 } 8624 v43 := r.Intn(100) 8625 this.DataHash = make([]byte, v43) 8626 for i := 0; i < v43; i++ { 8627 this.DataHash[i] = byte(r.Intn(256)) 8628 } 8629 v44 := r.Intn(100) 8630 this.ValidatorsHash = make([]byte, v44) 8631 for i := 0; i < v44; i++ { 8632 this.ValidatorsHash[i] = byte(r.Intn(256)) 8633 } 8634 v45 := r.Intn(100) 8635 this.NextValidatorsHash = make([]byte, v45) 8636 for i := 0; i < v45; i++ { 8637 this.NextValidatorsHash[i] = byte(r.Intn(256)) 8638 } 8639 v46 := r.Intn(100) 8640 this.ConsensusHash = make([]byte, v46) 8641 for i := 0; i < v46; i++ { 8642 this.ConsensusHash[i] = byte(r.Intn(256)) 8643 } 8644 v47 := r.Intn(100) 8645 this.AppHash = make([]byte, v47) 8646 for i := 0; i < v47; i++ { 8647 this.AppHash[i] = byte(r.Intn(256)) 8648 } 8649 v48 := r.Intn(100) 8650 this.LastResultsHash = make([]byte, v48) 8651 for i := 0; i < v48; i++ { 8652 this.LastResultsHash[i] = byte(r.Intn(256)) 8653 } 8654 v49 := r.Intn(100) 8655 this.EvidenceHash = make([]byte, v49) 8656 for i := 0; i < v49; i++ { 8657 this.EvidenceHash[i] = byte(r.Intn(256)) 8658 } 8659 v50 := r.Intn(100) 8660 this.ProposerAddress = make([]byte, v50) 8661 for i := 0; i < v50; i++ { 8662 this.ProposerAddress[i] = byte(r.Intn(256)) 8663 } 8664 if !easy && r.Intn(10) != 0 { 8665 this.XXX_unrecognized = randUnrecognizedTypes(r, 15) 8666 } 8667 return this 8668 } 8669 8670 func NewPopulatedVersion(r randyTypes, easy bool) *Version { 8671 this := &Version{} 8672 this.Block = uint64(uint64(r.Uint32())) 8673 this.App = uint64(uint64(r.Uint32())) 8674 if !easy && r.Intn(10) != 0 { 8675 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8676 } 8677 return this 8678 } 8679 8680 func NewPopulatedBlockID(r randyTypes, easy bool) *BlockID { 8681 this := &BlockID{} 8682 v51 := r.Intn(100) 8683 this.Hash = make([]byte, v51) 8684 for i := 0; i < v51; i++ { 8685 this.Hash[i] = byte(r.Intn(256)) 8686 } 8687 v52 := NewPopulatedPartSetHeader(r, easy) 8688 this.PartsHeader = *v52 8689 if !easy && r.Intn(10) != 0 { 8690 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8691 } 8692 return this 8693 } 8694 8695 func NewPopulatedPartSetHeader(r randyTypes, easy bool) *PartSetHeader { 8696 this := &PartSetHeader{} 8697 this.Total = int32(r.Int31()) 8698 if r.Intn(2) == 0 { 8699 this.Total *= -1 8700 } 8701 v53 := r.Intn(100) 8702 this.Hash = make([]byte, v53) 8703 for i := 0; i < v53; i++ { 8704 this.Hash[i] = byte(r.Intn(256)) 8705 } 8706 if !easy && r.Intn(10) != 0 { 8707 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8708 } 8709 return this 8710 } 8711 8712 func NewPopulatedValidator(r randyTypes, easy bool) *Validator { 8713 this := &Validator{} 8714 v54 := r.Intn(100) 8715 this.Address = make([]byte, v54) 8716 for i := 0; i < v54; i++ { 8717 this.Address[i] = byte(r.Intn(256)) 8718 } 8719 this.Power = int64(r.Int63()) 8720 if r.Intn(2) == 0 { 8721 this.Power *= -1 8722 } 8723 if !easy && r.Intn(10) != 0 { 8724 this.XXX_unrecognized = randUnrecognizedTypes(r, 4) 8725 } 8726 return this 8727 } 8728 8729 func NewPopulatedValidatorUpdate(r randyTypes, easy bool) *ValidatorUpdate { 8730 this := &ValidatorUpdate{} 8731 v55 := NewPopulatedPubKey(r, easy) 8732 this.PubKey = *v55 8733 this.Power = int64(r.Int63()) 8734 if r.Intn(2) == 0 { 8735 this.Power *= -1 8736 } 8737 if !easy && r.Intn(10) != 0 { 8738 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8739 } 8740 return this 8741 } 8742 8743 func NewPopulatedVoteInfo(r randyTypes, easy bool) *VoteInfo { 8744 this := &VoteInfo{} 8745 v56 := NewPopulatedValidator(r, easy) 8746 this.Validator = *v56 8747 this.SignedLastBlock = bool(bool(r.Intn(2) == 0)) 8748 if !easy && r.Intn(10) != 0 { 8749 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8750 } 8751 return this 8752 } 8753 8754 func NewPopulatedPubKey(r randyTypes, easy bool) *PubKey { 8755 this := &PubKey{} 8756 this.Type = string(randStringTypes(r)) 8757 v57 := r.Intn(100) 8758 this.Data = make([]byte, v57) 8759 for i := 0; i < v57; i++ { 8760 this.Data[i] = byte(r.Intn(256)) 8761 } 8762 if !easy && r.Intn(10) != 0 { 8763 this.XXX_unrecognized = randUnrecognizedTypes(r, 3) 8764 } 8765 return this 8766 } 8767 8768 func NewPopulatedEvidence(r randyTypes, easy bool) *Evidence { 8769 this := &Evidence{} 8770 this.Type = string(randStringTypes(r)) 8771 v58 := NewPopulatedValidator(r, easy) 8772 this.Validator = *v58 8773 this.Height = int64(r.Int63()) 8774 if r.Intn(2) == 0 { 8775 this.Height *= -1 8776 } 8777 v59 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy) 8778 this.Time = *v59 8779 this.TotalVotingPower = int64(r.Int63()) 8780 if r.Intn(2) == 0 { 8781 this.TotalVotingPower *= -1 8782 } 8783 if !easy && r.Intn(10) != 0 { 8784 this.XXX_unrecognized = randUnrecognizedTypes(r, 6) 8785 } 8786 return this 8787 } 8788 8789 type randyTypes interface { 8790 Float32() float32 8791 Float64() float64 8792 Int63() int64 8793 Int31() int32 8794 Uint32() uint32 8795 Intn(n int) int 8796 } 8797 8798 func randUTF8RuneTypes(r randyTypes) rune { 8799 ru := r.Intn(62) 8800 if ru < 10 { 8801 return rune(ru + 48) 8802 } else if ru < 36 { 8803 return rune(ru + 55) 8804 } 8805 return rune(ru + 61) 8806 } 8807 func randStringTypes(r randyTypes) string { 8808 v60 := r.Intn(100) 8809 tmps := make([]rune, v60) 8810 for i := 0; i < v60; i++ { 8811 tmps[i] = randUTF8RuneTypes(r) 8812 } 8813 return string(tmps) 8814 } 8815 func randUnrecognizedTypes(r randyTypes, maxFieldNumber int) (dAtA []byte) { 8816 l := r.Intn(5) 8817 for i := 0; i < l; i++ { 8818 wire := r.Intn(4) 8819 if wire == 3 { 8820 wire = 5 8821 } 8822 fieldNumber := maxFieldNumber + r.Intn(100) 8823 dAtA = randFieldTypes(dAtA, r, fieldNumber, wire) 8824 } 8825 return dAtA 8826 } 8827 func randFieldTypes(dAtA []byte, r randyTypes, fieldNumber int, wire int) []byte { 8828 key := uint32(fieldNumber)<<3 | uint32(wire) 8829 switch wire { 8830 case 0: 8831 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8832 v61 := r.Int63() 8833 if r.Intn(2) == 0 { 8834 v61 *= -1 8835 } 8836 dAtA = encodeVarintPopulateTypes(dAtA, uint64(v61)) 8837 case 1: 8838 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8839 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))) 8840 case 2: 8841 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8842 ll := r.Intn(100) 8843 dAtA = encodeVarintPopulateTypes(dAtA, uint64(ll)) 8844 for j := 0; j < ll; j++ { 8845 dAtA = append(dAtA, byte(r.Intn(256))) 8846 } 8847 default: 8848 dAtA = encodeVarintPopulateTypes(dAtA, uint64(key)) 8849 dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) 8850 } 8851 return dAtA 8852 } 8853 func encodeVarintPopulateTypes(dAtA []byte, v uint64) []byte { 8854 for v >= 1<<7 { 8855 dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) 8856 v >>= 7 8857 } 8858 dAtA = append(dAtA, uint8(v)) 8859 return dAtA 8860 } 8861 func (m *Request) Size() (n int) { 8862 if m == nil { 8863 return 0 8864 } 8865 var l int 8866 _ = l 8867 if m.Value != nil { 8868 n += m.Value.Size() 8869 } 8870 if m.XXX_unrecognized != nil { 8871 n += len(m.XXX_unrecognized) 8872 } 8873 return n 8874 } 8875 8876 func (m *Request_Echo) Size() (n int) { 8877 if m == nil { 8878 return 0 8879 } 8880 var l int 8881 _ = l 8882 if m.Echo != nil { 8883 l = m.Echo.Size() 8884 n += 1 + l + sovTypes(uint64(l)) 8885 } 8886 return n 8887 } 8888 func (m *Request_Flush) Size() (n int) { 8889 if m == nil { 8890 return 0 8891 } 8892 var l int 8893 _ = l 8894 if m.Flush != nil { 8895 l = m.Flush.Size() 8896 n += 1 + l + sovTypes(uint64(l)) 8897 } 8898 return n 8899 } 8900 func (m *Request_Info) Size() (n int) { 8901 if m == nil { 8902 return 0 8903 } 8904 var l int 8905 _ = l 8906 if m.Info != nil { 8907 l = m.Info.Size() 8908 n += 1 + l + sovTypes(uint64(l)) 8909 } 8910 return n 8911 } 8912 func (m *Request_SetOption) Size() (n int) { 8913 if m == nil { 8914 return 0 8915 } 8916 var l int 8917 _ = l 8918 if m.SetOption != nil { 8919 l = m.SetOption.Size() 8920 n += 1 + l + sovTypes(uint64(l)) 8921 } 8922 return n 8923 } 8924 func (m *Request_InitChain) Size() (n int) { 8925 if m == nil { 8926 return 0 8927 } 8928 var l int 8929 _ = l 8930 if m.InitChain != nil { 8931 l = m.InitChain.Size() 8932 n += 1 + l + sovTypes(uint64(l)) 8933 } 8934 return n 8935 } 8936 func (m *Request_Query) Size() (n int) { 8937 if m == nil { 8938 return 0 8939 } 8940 var l int 8941 _ = l 8942 if m.Query != nil { 8943 l = m.Query.Size() 8944 n += 1 + l + sovTypes(uint64(l)) 8945 } 8946 return n 8947 } 8948 func (m *Request_BeginBlock) Size() (n int) { 8949 if m == nil { 8950 return 0 8951 } 8952 var l int 8953 _ = l 8954 if m.BeginBlock != nil { 8955 l = m.BeginBlock.Size() 8956 n += 1 + l + sovTypes(uint64(l)) 8957 } 8958 return n 8959 } 8960 func (m *Request_CheckTx) Size() (n int) { 8961 if m == nil { 8962 return 0 8963 } 8964 var l int 8965 _ = l 8966 if m.CheckTx != nil { 8967 l = m.CheckTx.Size() 8968 n += 1 + l + sovTypes(uint64(l)) 8969 } 8970 return n 8971 } 8972 func (m *Request_EndBlock) Size() (n int) { 8973 if m == nil { 8974 return 0 8975 } 8976 var l int 8977 _ = l 8978 if m.EndBlock != nil { 8979 l = m.EndBlock.Size() 8980 n += 1 + l + sovTypes(uint64(l)) 8981 } 8982 return n 8983 } 8984 func (m *Request_Commit) Size() (n int) { 8985 if m == nil { 8986 return 0 8987 } 8988 var l int 8989 _ = l 8990 if m.Commit != nil { 8991 l = m.Commit.Size() 8992 n += 1 + l + sovTypes(uint64(l)) 8993 } 8994 return n 8995 } 8996 func (m *Request_DeliverTx) Size() (n int) { 8997 if m == nil { 8998 return 0 8999 } 9000 var l int 9001 _ = l 9002 if m.DeliverTx != nil { 9003 l = m.DeliverTx.Size() 9004 n += 2 + l + sovTypes(uint64(l)) 9005 } 9006 return n 9007 } 9008 func (m *RequestEcho) Size() (n int) { 9009 if m == nil { 9010 return 0 9011 } 9012 var l int 9013 _ = l 9014 l = len(m.Message) 9015 if l > 0 { 9016 n += 1 + l + sovTypes(uint64(l)) 9017 } 9018 if m.XXX_unrecognized != nil { 9019 n += len(m.XXX_unrecognized) 9020 } 9021 return n 9022 } 9023 9024 func (m *RequestFlush) Size() (n int) { 9025 if m == nil { 9026 return 0 9027 } 9028 var l int 9029 _ = l 9030 if m.XXX_unrecognized != nil { 9031 n += len(m.XXX_unrecognized) 9032 } 9033 return n 9034 } 9035 9036 func (m *RequestInfo) Size() (n int) { 9037 if m == nil { 9038 return 0 9039 } 9040 var l int 9041 _ = l 9042 l = len(m.Version) 9043 if l > 0 { 9044 n += 1 + l + sovTypes(uint64(l)) 9045 } 9046 if m.BlockVersion != 0 { 9047 n += 1 + sovTypes(uint64(m.BlockVersion)) 9048 } 9049 if m.P2PVersion != 0 { 9050 n += 1 + sovTypes(uint64(m.P2PVersion)) 9051 } 9052 if m.XXX_unrecognized != nil { 9053 n += len(m.XXX_unrecognized) 9054 } 9055 return n 9056 } 9057 9058 func (m *RequestSetOption) Size() (n int) { 9059 if m == nil { 9060 return 0 9061 } 9062 var l int 9063 _ = l 9064 l = len(m.Key) 9065 if l > 0 { 9066 n += 1 + l + sovTypes(uint64(l)) 9067 } 9068 l = len(m.Value) 9069 if l > 0 { 9070 n += 1 + l + sovTypes(uint64(l)) 9071 } 9072 if m.XXX_unrecognized != nil { 9073 n += len(m.XXX_unrecognized) 9074 } 9075 return n 9076 } 9077 9078 func (m *RequestInitChain) Size() (n int) { 9079 if m == nil { 9080 return 0 9081 } 9082 var l int 9083 _ = l 9084 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 9085 n += 1 + l + sovTypes(uint64(l)) 9086 l = len(m.ChainId) 9087 if l > 0 { 9088 n += 1 + l + sovTypes(uint64(l)) 9089 } 9090 if m.ConsensusParams != nil { 9091 l = m.ConsensusParams.Size() 9092 n += 1 + l + sovTypes(uint64(l)) 9093 } 9094 if len(m.Validators) > 0 { 9095 for _, e := range m.Validators { 9096 l = e.Size() 9097 n += 1 + l + sovTypes(uint64(l)) 9098 } 9099 } 9100 l = len(m.AppStateBytes) 9101 if l > 0 { 9102 n += 1 + l + sovTypes(uint64(l)) 9103 } 9104 if m.XXX_unrecognized != nil { 9105 n += len(m.XXX_unrecognized) 9106 } 9107 return n 9108 } 9109 9110 func (m *RequestQuery) Size() (n int) { 9111 if m == nil { 9112 return 0 9113 } 9114 var l int 9115 _ = l 9116 l = len(m.Data) 9117 if l > 0 { 9118 n += 1 + l + sovTypes(uint64(l)) 9119 } 9120 l = len(m.Path) 9121 if l > 0 { 9122 n += 1 + l + sovTypes(uint64(l)) 9123 } 9124 if m.Height != 0 { 9125 n += 1 + sovTypes(uint64(m.Height)) 9126 } 9127 if m.Prove { 9128 n += 2 9129 } 9130 if m.XXX_unrecognized != nil { 9131 n += len(m.XXX_unrecognized) 9132 } 9133 return n 9134 } 9135 9136 func (m *RequestBeginBlock) Size() (n int) { 9137 if m == nil { 9138 return 0 9139 } 9140 var l int 9141 _ = l 9142 l = len(m.Hash) 9143 if l > 0 { 9144 n += 1 + l + sovTypes(uint64(l)) 9145 } 9146 l = m.Header.Size() 9147 n += 1 + l + sovTypes(uint64(l)) 9148 l = m.LastCommitInfo.Size() 9149 n += 1 + l + sovTypes(uint64(l)) 9150 if len(m.ByzantineValidators) > 0 { 9151 for _, e := range m.ByzantineValidators { 9152 l = e.Size() 9153 n += 1 + l + sovTypes(uint64(l)) 9154 } 9155 } 9156 if m.XXX_unrecognized != nil { 9157 n += len(m.XXX_unrecognized) 9158 } 9159 return n 9160 } 9161 9162 func (m *RequestCheckTx) Size() (n int) { 9163 if m == nil { 9164 return 0 9165 } 9166 var l int 9167 _ = l 9168 l = len(m.Tx) 9169 if l > 0 { 9170 n += 1 + l + sovTypes(uint64(l)) 9171 } 9172 if m.Type != 0 { 9173 n += 1 + sovTypes(uint64(m.Type)) 9174 } 9175 if m.XXX_unrecognized != nil { 9176 n += len(m.XXX_unrecognized) 9177 } 9178 return n 9179 } 9180 9181 func (m *RequestDeliverTx) Size() (n int) { 9182 if m == nil { 9183 return 0 9184 } 9185 var l int 9186 _ = l 9187 l = len(m.Tx) 9188 if l > 0 { 9189 n += 1 + l + sovTypes(uint64(l)) 9190 } 9191 if m.XXX_unrecognized != nil { 9192 n += len(m.XXX_unrecognized) 9193 } 9194 return n 9195 } 9196 9197 func (m *RequestEndBlock) Size() (n int) { 9198 if m == nil { 9199 return 0 9200 } 9201 var l int 9202 _ = l 9203 if m.Height != 0 { 9204 n += 1 + sovTypes(uint64(m.Height)) 9205 } 9206 if m.XXX_unrecognized != nil { 9207 n += len(m.XXX_unrecognized) 9208 } 9209 return n 9210 } 9211 9212 func (m *RequestCommit) Size() (n int) { 9213 if m == nil { 9214 return 0 9215 } 9216 var l int 9217 _ = l 9218 if m.XXX_unrecognized != nil { 9219 n += len(m.XXX_unrecognized) 9220 } 9221 return n 9222 } 9223 9224 func (m *Response) Size() (n int) { 9225 if m == nil { 9226 return 0 9227 } 9228 var l int 9229 _ = l 9230 if m.Value != nil { 9231 n += m.Value.Size() 9232 } 9233 if m.XXX_unrecognized != nil { 9234 n += len(m.XXX_unrecognized) 9235 } 9236 return n 9237 } 9238 9239 func (m *Response_Exception) Size() (n int) { 9240 if m == nil { 9241 return 0 9242 } 9243 var l int 9244 _ = l 9245 if m.Exception != nil { 9246 l = m.Exception.Size() 9247 n += 1 + l + sovTypes(uint64(l)) 9248 } 9249 return n 9250 } 9251 func (m *Response_Echo) Size() (n int) { 9252 if m == nil { 9253 return 0 9254 } 9255 var l int 9256 _ = l 9257 if m.Echo != nil { 9258 l = m.Echo.Size() 9259 n += 1 + l + sovTypes(uint64(l)) 9260 } 9261 return n 9262 } 9263 func (m *Response_Flush) Size() (n int) { 9264 if m == nil { 9265 return 0 9266 } 9267 var l int 9268 _ = l 9269 if m.Flush != nil { 9270 l = m.Flush.Size() 9271 n += 1 + l + sovTypes(uint64(l)) 9272 } 9273 return n 9274 } 9275 func (m *Response_Info) Size() (n int) { 9276 if m == nil { 9277 return 0 9278 } 9279 var l int 9280 _ = l 9281 if m.Info != nil { 9282 l = m.Info.Size() 9283 n += 1 + l + sovTypes(uint64(l)) 9284 } 9285 return n 9286 } 9287 func (m *Response_SetOption) Size() (n int) { 9288 if m == nil { 9289 return 0 9290 } 9291 var l int 9292 _ = l 9293 if m.SetOption != nil { 9294 l = m.SetOption.Size() 9295 n += 1 + l + sovTypes(uint64(l)) 9296 } 9297 return n 9298 } 9299 func (m *Response_InitChain) Size() (n int) { 9300 if m == nil { 9301 return 0 9302 } 9303 var l int 9304 _ = l 9305 if m.InitChain != nil { 9306 l = m.InitChain.Size() 9307 n += 1 + l + sovTypes(uint64(l)) 9308 } 9309 return n 9310 } 9311 func (m *Response_Query) Size() (n int) { 9312 if m == nil { 9313 return 0 9314 } 9315 var l int 9316 _ = l 9317 if m.Query != nil { 9318 l = m.Query.Size() 9319 n += 1 + l + sovTypes(uint64(l)) 9320 } 9321 return n 9322 } 9323 func (m *Response_BeginBlock) Size() (n int) { 9324 if m == nil { 9325 return 0 9326 } 9327 var l int 9328 _ = l 9329 if m.BeginBlock != nil { 9330 l = m.BeginBlock.Size() 9331 n += 1 + l + sovTypes(uint64(l)) 9332 } 9333 return n 9334 } 9335 func (m *Response_CheckTx) Size() (n int) { 9336 if m == nil { 9337 return 0 9338 } 9339 var l int 9340 _ = l 9341 if m.CheckTx != nil { 9342 l = m.CheckTx.Size() 9343 n += 1 + l + sovTypes(uint64(l)) 9344 } 9345 return n 9346 } 9347 func (m *Response_DeliverTx) Size() (n int) { 9348 if m == nil { 9349 return 0 9350 } 9351 var l int 9352 _ = l 9353 if m.DeliverTx != nil { 9354 l = m.DeliverTx.Size() 9355 n += 1 + l + sovTypes(uint64(l)) 9356 } 9357 return n 9358 } 9359 func (m *Response_EndBlock) Size() (n int) { 9360 if m == nil { 9361 return 0 9362 } 9363 var l int 9364 _ = l 9365 if m.EndBlock != nil { 9366 l = m.EndBlock.Size() 9367 n += 1 + l + sovTypes(uint64(l)) 9368 } 9369 return n 9370 } 9371 func (m *Response_Commit) Size() (n int) { 9372 if m == nil { 9373 return 0 9374 } 9375 var l int 9376 _ = l 9377 if m.Commit != nil { 9378 l = m.Commit.Size() 9379 n += 1 + l + sovTypes(uint64(l)) 9380 } 9381 return n 9382 } 9383 func (m *ResponseException) Size() (n int) { 9384 if m == nil { 9385 return 0 9386 } 9387 var l int 9388 _ = l 9389 l = len(m.Error) 9390 if l > 0 { 9391 n += 1 + l + sovTypes(uint64(l)) 9392 } 9393 if m.XXX_unrecognized != nil { 9394 n += len(m.XXX_unrecognized) 9395 } 9396 return n 9397 } 9398 9399 func (m *ResponseEcho) Size() (n int) { 9400 if m == nil { 9401 return 0 9402 } 9403 var l int 9404 _ = l 9405 l = len(m.Message) 9406 if l > 0 { 9407 n += 1 + l + sovTypes(uint64(l)) 9408 } 9409 if m.XXX_unrecognized != nil { 9410 n += len(m.XXX_unrecognized) 9411 } 9412 return n 9413 } 9414 9415 func (m *ResponseFlush) Size() (n int) { 9416 if m == nil { 9417 return 0 9418 } 9419 var l int 9420 _ = l 9421 if m.XXX_unrecognized != nil { 9422 n += len(m.XXX_unrecognized) 9423 } 9424 return n 9425 } 9426 9427 func (m *ResponseInfo) Size() (n int) { 9428 if m == nil { 9429 return 0 9430 } 9431 var l int 9432 _ = l 9433 l = len(m.Data) 9434 if l > 0 { 9435 n += 1 + l + sovTypes(uint64(l)) 9436 } 9437 l = len(m.Version) 9438 if l > 0 { 9439 n += 1 + l + sovTypes(uint64(l)) 9440 } 9441 if m.AppVersion != 0 { 9442 n += 1 + sovTypes(uint64(m.AppVersion)) 9443 } 9444 if m.LastBlockHeight != 0 { 9445 n += 1 + sovTypes(uint64(m.LastBlockHeight)) 9446 } 9447 l = len(m.LastBlockAppHash) 9448 if l > 0 { 9449 n += 1 + l + sovTypes(uint64(l)) 9450 } 9451 if m.XXX_unrecognized != nil { 9452 n += len(m.XXX_unrecognized) 9453 } 9454 return n 9455 } 9456 9457 func (m *ResponseSetOption) Size() (n int) { 9458 if m == nil { 9459 return 0 9460 } 9461 var l int 9462 _ = l 9463 if m.Code != 0 { 9464 n += 1 + sovTypes(uint64(m.Code)) 9465 } 9466 l = len(m.Log) 9467 if l > 0 { 9468 n += 1 + l + sovTypes(uint64(l)) 9469 } 9470 l = len(m.Info) 9471 if l > 0 { 9472 n += 1 + l + sovTypes(uint64(l)) 9473 } 9474 if m.XXX_unrecognized != nil { 9475 n += len(m.XXX_unrecognized) 9476 } 9477 return n 9478 } 9479 9480 func (m *ResponseInitChain) Size() (n int) { 9481 if m == nil { 9482 return 0 9483 } 9484 var l int 9485 _ = l 9486 if m.ConsensusParams != nil { 9487 l = m.ConsensusParams.Size() 9488 n += 1 + l + sovTypes(uint64(l)) 9489 } 9490 if len(m.Validators) > 0 { 9491 for _, e := range m.Validators { 9492 l = e.Size() 9493 n += 1 + l + sovTypes(uint64(l)) 9494 } 9495 } 9496 if m.XXX_unrecognized != nil { 9497 n += len(m.XXX_unrecognized) 9498 } 9499 return n 9500 } 9501 9502 func (m *ResponseQuery) Size() (n int) { 9503 if m == nil { 9504 return 0 9505 } 9506 var l int 9507 _ = l 9508 if m.Code != 0 { 9509 n += 1 + sovTypes(uint64(m.Code)) 9510 } 9511 l = len(m.Log) 9512 if l > 0 { 9513 n += 1 + l + sovTypes(uint64(l)) 9514 } 9515 l = len(m.Info) 9516 if l > 0 { 9517 n += 1 + l + sovTypes(uint64(l)) 9518 } 9519 if m.Index != 0 { 9520 n += 1 + sovTypes(uint64(m.Index)) 9521 } 9522 l = len(m.Key) 9523 if l > 0 { 9524 n += 1 + l + sovTypes(uint64(l)) 9525 } 9526 l = len(m.Value) 9527 if l > 0 { 9528 n += 1 + l + sovTypes(uint64(l)) 9529 } 9530 if m.Proof != nil { 9531 l = m.Proof.Size() 9532 n += 1 + l + sovTypes(uint64(l)) 9533 } 9534 if m.Height != 0 { 9535 n += 1 + sovTypes(uint64(m.Height)) 9536 } 9537 l = len(m.Codespace) 9538 if l > 0 { 9539 n += 1 + l + sovTypes(uint64(l)) 9540 } 9541 if m.XXX_unrecognized != nil { 9542 n += len(m.XXX_unrecognized) 9543 } 9544 return n 9545 } 9546 9547 func (m *ResponseBeginBlock) Size() (n int) { 9548 if m == nil { 9549 return 0 9550 } 9551 var l int 9552 _ = l 9553 if len(m.Events) > 0 { 9554 for _, e := range m.Events { 9555 l = e.Size() 9556 n += 1 + l + sovTypes(uint64(l)) 9557 } 9558 } 9559 if m.XXX_unrecognized != nil { 9560 n += len(m.XXX_unrecognized) 9561 } 9562 return n 9563 } 9564 9565 func (m *ResponseCheckTx) Size() (n int) { 9566 if m == nil { 9567 return 0 9568 } 9569 var l int 9570 _ = l 9571 if m.Code != 0 { 9572 n += 1 + sovTypes(uint64(m.Code)) 9573 } 9574 l = len(m.Data) 9575 if l > 0 { 9576 n += 1 + l + sovTypes(uint64(l)) 9577 } 9578 l = len(m.Log) 9579 if l > 0 { 9580 n += 1 + l + sovTypes(uint64(l)) 9581 } 9582 l = len(m.Info) 9583 if l > 0 { 9584 n += 1 + l + sovTypes(uint64(l)) 9585 } 9586 if m.GasWanted != 0 { 9587 n += 1 + sovTypes(uint64(m.GasWanted)) 9588 } 9589 if m.GasUsed != 0 { 9590 n += 1 + sovTypes(uint64(m.GasUsed)) 9591 } 9592 if len(m.Events) > 0 { 9593 for _, e := range m.Events { 9594 l = e.Size() 9595 n += 1 + l + sovTypes(uint64(l)) 9596 } 9597 } 9598 l = len(m.Codespace) 9599 if l > 0 { 9600 n += 1 + l + sovTypes(uint64(l)) 9601 } 9602 if m.XXX_unrecognized != nil { 9603 n += len(m.XXX_unrecognized) 9604 } 9605 return n 9606 } 9607 9608 func (m *ResponseDeliverTx) Size() (n int) { 9609 if m == nil { 9610 return 0 9611 } 9612 var l int 9613 _ = l 9614 if m.Code != 0 { 9615 n += 1 + sovTypes(uint64(m.Code)) 9616 } 9617 l = len(m.Data) 9618 if l > 0 { 9619 n += 1 + l + sovTypes(uint64(l)) 9620 } 9621 l = len(m.Log) 9622 if l > 0 { 9623 n += 1 + l + sovTypes(uint64(l)) 9624 } 9625 l = len(m.Info) 9626 if l > 0 { 9627 n += 1 + l + sovTypes(uint64(l)) 9628 } 9629 if m.GasWanted != 0 { 9630 n += 1 + sovTypes(uint64(m.GasWanted)) 9631 } 9632 if m.GasUsed != 0 { 9633 n += 1 + sovTypes(uint64(m.GasUsed)) 9634 } 9635 if len(m.Events) > 0 { 9636 for _, e := range m.Events { 9637 l = e.Size() 9638 n += 1 + l + sovTypes(uint64(l)) 9639 } 9640 } 9641 l = len(m.Codespace) 9642 if l > 0 { 9643 n += 1 + l + sovTypes(uint64(l)) 9644 } 9645 if m.XXX_unrecognized != nil { 9646 n += len(m.XXX_unrecognized) 9647 } 9648 return n 9649 } 9650 9651 func (m *ResponseEndBlock) Size() (n int) { 9652 if m == nil { 9653 return 0 9654 } 9655 var l int 9656 _ = l 9657 if len(m.ValidatorUpdates) > 0 { 9658 for _, e := range m.ValidatorUpdates { 9659 l = e.Size() 9660 n += 1 + l + sovTypes(uint64(l)) 9661 } 9662 } 9663 if m.ConsensusParamUpdates != nil { 9664 l = m.ConsensusParamUpdates.Size() 9665 n += 1 + l + sovTypes(uint64(l)) 9666 } 9667 if len(m.Events) > 0 { 9668 for _, e := range m.Events { 9669 l = e.Size() 9670 n += 1 + l + sovTypes(uint64(l)) 9671 } 9672 } 9673 if m.XXX_unrecognized != nil { 9674 n += len(m.XXX_unrecognized) 9675 } 9676 return n 9677 } 9678 9679 func (m *ResponseCommit) Size() (n int) { 9680 if m == nil { 9681 return 0 9682 } 9683 var l int 9684 _ = l 9685 l = len(m.Data) 9686 if l > 0 { 9687 n += 1 + l + sovTypes(uint64(l)) 9688 } 9689 if m.RetainHeight != 0 { 9690 n += 1 + sovTypes(uint64(m.RetainHeight)) 9691 } 9692 if m.XXX_unrecognized != nil { 9693 n += len(m.XXX_unrecognized) 9694 } 9695 return n 9696 } 9697 9698 func (m *ConsensusParams) Size() (n int) { 9699 if m == nil { 9700 return 0 9701 } 9702 var l int 9703 _ = l 9704 if m.Block != nil { 9705 l = m.Block.Size() 9706 n += 1 + l + sovTypes(uint64(l)) 9707 } 9708 if m.Evidence != nil { 9709 l = m.Evidence.Size() 9710 n += 1 + l + sovTypes(uint64(l)) 9711 } 9712 if m.Validator != nil { 9713 l = m.Validator.Size() 9714 n += 1 + l + sovTypes(uint64(l)) 9715 } 9716 if m.XXX_unrecognized != nil { 9717 n += len(m.XXX_unrecognized) 9718 } 9719 return n 9720 } 9721 9722 func (m *BlockParams) Size() (n int) { 9723 if m == nil { 9724 return 0 9725 } 9726 var l int 9727 _ = l 9728 if m.MaxBytes != 0 { 9729 n += 1 + sovTypes(uint64(m.MaxBytes)) 9730 } 9731 if m.MaxGas != 0 { 9732 n += 1 + sovTypes(uint64(m.MaxGas)) 9733 } 9734 if m.XXX_unrecognized != nil { 9735 n += len(m.XXX_unrecognized) 9736 } 9737 return n 9738 } 9739 9740 func (m *EvidenceParams) Size() (n int) { 9741 if m == nil { 9742 return 0 9743 } 9744 var l int 9745 _ = l 9746 if m.MaxAgeNumBlocks != 0 { 9747 n += 1 + sovTypes(uint64(m.MaxAgeNumBlocks)) 9748 } 9749 l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxAgeDuration) 9750 n += 1 + l + sovTypes(uint64(l)) 9751 if m.XXX_unrecognized != nil { 9752 n += len(m.XXX_unrecognized) 9753 } 9754 return n 9755 } 9756 9757 func (m *ValidatorParams) Size() (n int) { 9758 if m == nil { 9759 return 0 9760 } 9761 var l int 9762 _ = l 9763 if len(m.PubKeyTypes) > 0 { 9764 for _, s := range m.PubKeyTypes { 9765 l = len(s) 9766 n += 1 + l + sovTypes(uint64(l)) 9767 } 9768 } 9769 if m.XXX_unrecognized != nil { 9770 n += len(m.XXX_unrecognized) 9771 } 9772 return n 9773 } 9774 9775 func (m *LastCommitInfo) Size() (n int) { 9776 if m == nil { 9777 return 0 9778 } 9779 var l int 9780 _ = l 9781 if m.Round != 0 { 9782 n += 1 + sovTypes(uint64(m.Round)) 9783 } 9784 if len(m.Votes) > 0 { 9785 for _, e := range m.Votes { 9786 l = e.Size() 9787 n += 1 + l + sovTypes(uint64(l)) 9788 } 9789 } 9790 if m.XXX_unrecognized != nil { 9791 n += len(m.XXX_unrecognized) 9792 } 9793 return n 9794 } 9795 9796 func (m *Event) Size() (n int) { 9797 if m == nil { 9798 return 0 9799 } 9800 var l int 9801 _ = l 9802 l = len(m.Type) 9803 if l > 0 { 9804 n += 1 + l + sovTypes(uint64(l)) 9805 } 9806 if len(m.Attributes) > 0 { 9807 for _, e := range m.Attributes { 9808 l = e.Size() 9809 n += 1 + l + sovTypes(uint64(l)) 9810 } 9811 } 9812 if m.XXX_unrecognized != nil { 9813 n += len(m.XXX_unrecognized) 9814 } 9815 return n 9816 } 9817 9818 func (m *Header) Size() (n int) { 9819 if m == nil { 9820 return 0 9821 } 9822 var l int 9823 _ = l 9824 l = m.Version.Size() 9825 n += 1 + l + sovTypes(uint64(l)) 9826 l = len(m.ChainID) 9827 if l > 0 { 9828 n += 1 + l + sovTypes(uint64(l)) 9829 } 9830 if m.Height != 0 { 9831 n += 1 + sovTypes(uint64(m.Height)) 9832 } 9833 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 9834 n += 1 + l + sovTypes(uint64(l)) 9835 l = m.LastBlockId.Size() 9836 n += 1 + l + sovTypes(uint64(l)) 9837 l = len(m.LastCommitHash) 9838 if l > 0 { 9839 n += 1 + l + sovTypes(uint64(l)) 9840 } 9841 l = len(m.DataHash) 9842 if l > 0 { 9843 n += 1 + l + sovTypes(uint64(l)) 9844 } 9845 l = len(m.ValidatorsHash) 9846 if l > 0 { 9847 n += 1 + l + sovTypes(uint64(l)) 9848 } 9849 l = len(m.NextValidatorsHash) 9850 if l > 0 { 9851 n += 1 + l + sovTypes(uint64(l)) 9852 } 9853 l = len(m.ConsensusHash) 9854 if l > 0 { 9855 n += 1 + l + sovTypes(uint64(l)) 9856 } 9857 l = len(m.AppHash) 9858 if l > 0 { 9859 n += 1 + l + sovTypes(uint64(l)) 9860 } 9861 l = len(m.LastResultsHash) 9862 if l > 0 { 9863 n += 1 + l + sovTypes(uint64(l)) 9864 } 9865 l = len(m.EvidenceHash) 9866 if l > 0 { 9867 n += 1 + l + sovTypes(uint64(l)) 9868 } 9869 l = len(m.ProposerAddress) 9870 if l > 0 { 9871 n += 1 + l + sovTypes(uint64(l)) 9872 } 9873 if m.XXX_unrecognized != nil { 9874 n += len(m.XXX_unrecognized) 9875 } 9876 return n 9877 } 9878 9879 func (m *Version) Size() (n int) { 9880 if m == nil { 9881 return 0 9882 } 9883 var l int 9884 _ = l 9885 if m.Block != 0 { 9886 n += 1 + sovTypes(uint64(m.Block)) 9887 } 9888 if m.App != 0 { 9889 n += 1 + sovTypes(uint64(m.App)) 9890 } 9891 if m.XXX_unrecognized != nil { 9892 n += len(m.XXX_unrecognized) 9893 } 9894 return n 9895 } 9896 9897 func (m *BlockID) Size() (n int) { 9898 if m == nil { 9899 return 0 9900 } 9901 var l int 9902 _ = l 9903 l = len(m.Hash) 9904 if l > 0 { 9905 n += 1 + l + sovTypes(uint64(l)) 9906 } 9907 l = m.PartsHeader.Size() 9908 n += 1 + l + sovTypes(uint64(l)) 9909 if m.XXX_unrecognized != nil { 9910 n += len(m.XXX_unrecognized) 9911 } 9912 return n 9913 } 9914 9915 func (m *PartSetHeader) Size() (n int) { 9916 if m == nil { 9917 return 0 9918 } 9919 var l int 9920 _ = l 9921 if m.Total != 0 { 9922 n += 1 + sovTypes(uint64(m.Total)) 9923 } 9924 l = len(m.Hash) 9925 if l > 0 { 9926 n += 1 + l + sovTypes(uint64(l)) 9927 } 9928 if m.XXX_unrecognized != nil { 9929 n += len(m.XXX_unrecognized) 9930 } 9931 return n 9932 } 9933 9934 func (m *Validator) Size() (n int) { 9935 if m == nil { 9936 return 0 9937 } 9938 var l int 9939 _ = l 9940 l = len(m.Address) 9941 if l > 0 { 9942 n += 1 + l + sovTypes(uint64(l)) 9943 } 9944 if m.Power != 0 { 9945 n += 1 + sovTypes(uint64(m.Power)) 9946 } 9947 if m.XXX_unrecognized != nil { 9948 n += len(m.XXX_unrecognized) 9949 } 9950 return n 9951 } 9952 9953 func (m *ValidatorUpdate) Size() (n int) { 9954 if m == nil { 9955 return 0 9956 } 9957 var l int 9958 _ = l 9959 l = m.PubKey.Size() 9960 n += 1 + l + sovTypes(uint64(l)) 9961 if m.Power != 0 { 9962 n += 1 + sovTypes(uint64(m.Power)) 9963 } 9964 if m.XXX_unrecognized != nil { 9965 n += len(m.XXX_unrecognized) 9966 } 9967 return n 9968 } 9969 9970 func (m *VoteInfo) Size() (n int) { 9971 if m == nil { 9972 return 0 9973 } 9974 var l int 9975 _ = l 9976 l = m.Validator.Size() 9977 n += 1 + l + sovTypes(uint64(l)) 9978 if m.SignedLastBlock { 9979 n += 2 9980 } 9981 if m.XXX_unrecognized != nil { 9982 n += len(m.XXX_unrecognized) 9983 } 9984 return n 9985 } 9986 9987 func (m *PubKey) Size() (n int) { 9988 if m == nil { 9989 return 0 9990 } 9991 var l int 9992 _ = l 9993 l = len(m.Type) 9994 if l > 0 { 9995 n += 1 + l + sovTypes(uint64(l)) 9996 } 9997 l = len(m.Data) 9998 if l > 0 { 9999 n += 1 + l + sovTypes(uint64(l)) 10000 } 10001 if m.XXX_unrecognized != nil { 10002 n += len(m.XXX_unrecognized) 10003 } 10004 return n 10005 } 10006 10007 func (m *Evidence) Size() (n int) { 10008 if m == nil { 10009 return 0 10010 } 10011 var l int 10012 _ = l 10013 l = len(m.Type) 10014 if l > 0 { 10015 n += 1 + l + sovTypes(uint64(l)) 10016 } 10017 l = m.Validator.Size() 10018 n += 1 + l + sovTypes(uint64(l)) 10019 if m.Height != 0 { 10020 n += 1 + sovTypes(uint64(m.Height)) 10021 } 10022 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 10023 n += 1 + l + sovTypes(uint64(l)) 10024 if m.TotalVotingPower != 0 { 10025 n += 1 + sovTypes(uint64(m.TotalVotingPower)) 10026 } 10027 if m.XXX_unrecognized != nil { 10028 n += len(m.XXX_unrecognized) 10029 } 10030 return n 10031 } 10032 10033 func sovTypes(x uint64) (n int) { 10034 return (math_bits.Len64(x|1) + 6) / 7 10035 } 10036 func sozTypes(x uint64) (n int) { 10037 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 10038 } 10039 func (m *Request) Unmarshal(dAtA []byte) error { 10040 l := len(dAtA) 10041 iNdEx := 0 10042 for iNdEx < l { 10043 preIndex := iNdEx 10044 var wire uint64 10045 for shift := uint(0); ; shift += 7 { 10046 if shift >= 64 { 10047 return ErrIntOverflowTypes 10048 } 10049 if iNdEx >= l { 10050 return io.ErrUnexpectedEOF 10051 } 10052 b := dAtA[iNdEx] 10053 iNdEx++ 10054 wire |= uint64(b&0x7F) << shift 10055 if b < 0x80 { 10056 break 10057 } 10058 } 10059 fieldNum := int32(wire >> 3) 10060 wireType := int(wire & 0x7) 10061 if wireType == 4 { 10062 return fmt.Errorf("proto: Request: wiretype end group for non-group") 10063 } 10064 if fieldNum <= 0 { 10065 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 10066 } 10067 switch fieldNum { 10068 case 2: 10069 if wireType != 2 { 10070 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 10071 } 10072 var msglen int 10073 for shift := uint(0); ; shift += 7 { 10074 if shift >= 64 { 10075 return ErrIntOverflowTypes 10076 } 10077 if iNdEx >= l { 10078 return io.ErrUnexpectedEOF 10079 } 10080 b := dAtA[iNdEx] 10081 iNdEx++ 10082 msglen |= int(b&0x7F) << shift 10083 if b < 0x80 { 10084 break 10085 } 10086 } 10087 if msglen < 0 { 10088 return ErrInvalidLengthTypes 10089 } 10090 postIndex := iNdEx + msglen 10091 if postIndex < 0 { 10092 return ErrInvalidLengthTypes 10093 } 10094 if postIndex > l { 10095 return io.ErrUnexpectedEOF 10096 } 10097 v := &RequestEcho{} 10098 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10099 return err 10100 } 10101 m.Value = &Request_Echo{v} 10102 iNdEx = postIndex 10103 case 3: 10104 if wireType != 2 { 10105 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 10106 } 10107 var msglen int 10108 for shift := uint(0); ; shift += 7 { 10109 if shift >= 64 { 10110 return ErrIntOverflowTypes 10111 } 10112 if iNdEx >= l { 10113 return io.ErrUnexpectedEOF 10114 } 10115 b := dAtA[iNdEx] 10116 iNdEx++ 10117 msglen |= int(b&0x7F) << shift 10118 if b < 0x80 { 10119 break 10120 } 10121 } 10122 if msglen < 0 { 10123 return ErrInvalidLengthTypes 10124 } 10125 postIndex := iNdEx + msglen 10126 if postIndex < 0 { 10127 return ErrInvalidLengthTypes 10128 } 10129 if postIndex > l { 10130 return io.ErrUnexpectedEOF 10131 } 10132 v := &RequestFlush{} 10133 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10134 return err 10135 } 10136 m.Value = &Request_Flush{v} 10137 iNdEx = postIndex 10138 case 4: 10139 if wireType != 2 { 10140 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 10141 } 10142 var msglen int 10143 for shift := uint(0); ; shift += 7 { 10144 if shift >= 64 { 10145 return ErrIntOverflowTypes 10146 } 10147 if iNdEx >= l { 10148 return io.ErrUnexpectedEOF 10149 } 10150 b := dAtA[iNdEx] 10151 iNdEx++ 10152 msglen |= int(b&0x7F) << shift 10153 if b < 0x80 { 10154 break 10155 } 10156 } 10157 if msglen < 0 { 10158 return ErrInvalidLengthTypes 10159 } 10160 postIndex := iNdEx + msglen 10161 if postIndex < 0 { 10162 return ErrInvalidLengthTypes 10163 } 10164 if postIndex > l { 10165 return io.ErrUnexpectedEOF 10166 } 10167 v := &RequestInfo{} 10168 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10169 return err 10170 } 10171 m.Value = &Request_Info{v} 10172 iNdEx = postIndex 10173 case 5: 10174 if wireType != 2 { 10175 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 10176 } 10177 var msglen int 10178 for shift := uint(0); ; shift += 7 { 10179 if shift >= 64 { 10180 return ErrIntOverflowTypes 10181 } 10182 if iNdEx >= l { 10183 return io.ErrUnexpectedEOF 10184 } 10185 b := dAtA[iNdEx] 10186 iNdEx++ 10187 msglen |= int(b&0x7F) << shift 10188 if b < 0x80 { 10189 break 10190 } 10191 } 10192 if msglen < 0 { 10193 return ErrInvalidLengthTypes 10194 } 10195 postIndex := iNdEx + msglen 10196 if postIndex < 0 { 10197 return ErrInvalidLengthTypes 10198 } 10199 if postIndex > l { 10200 return io.ErrUnexpectedEOF 10201 } 10202 v := &RequestSetOption{} 10203 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10204 return err 10205 } 10206 m.Value = &Request_SetOption{v} 10207 iNdEx = postIndex 10208 case 6: 10209 if wireType != 2 { 10210 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 10211 } 10212 var msglen int 10213 for shift := uint(0); ; shift += 7 { 10214 if shift >= 64 { 10215 return ErrIntOverflowTypes 10216 } 10217 if iNdEx >= l { 10218 return io.ErrUnexpectedEOF 10219 } 10220 b := dAtA[iNdEx] 10221 iNdEx++ 10222 msglen |= int(b&0x7F) << shift 10223 if b < 0x80 { 10224 break 10225 } 10226 } 10227 if msglen < 0 { 10228 return ErrInvalidLengthTypes 10229 } 10230 postIndex := iNdEx + msglen 10231 if postIndex < 0 { 10232 return ErrInvalidLengthTypes 10233 } 10234 if postIndex > l { 10235 return io.ErrUnexpectedEOF 10236 } 10237 v := &RequestInitChain{} 10238 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10239 return err 10240 } 10241 m.Value = &Request_InitChain{v} 10242 iNdEx = postIndex 10243 case 7: 10244 if wireType != 2 { 10245 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 10246 } 10247 var msglen int 10248 for shift := uint(0); ; shift += 7 { 10249 if shift >= 64 { 10250 return ErrIntOverflowTypes 10251 } 10252 if iNdEx >= l { 10253 return io.ErrUnexpectedEOF 10254 } 10255 b := dAtA[iNdEx] 10256 iNdEx++ 10257 msglen |= int(b&0x7F) << shift 10258 if b < 0x80 { 10259 break 10260 } 10261 } 10262 if msglen < 0 { 10263 return ErrInvalidLengthTypes 10264 } 10265 postIndex := iNdEx + msglen 10266 if postIndex < 0 { 10267 return ErrInvalidLengthTypes 10268 } 10269 if postIndex > l { 10270 return io.ErrUnexpectedEOF 10271 } 10272 v := &RequestQuery{} 10273 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10274 return err 10275 } 10276 m.Value = &Request_Query{v} 10277 iNdEx = postIndex 10278 case 8: 10279 if wireType != 2 { 10280 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 10281 } 10282 var msglen int 10283 for shift := uint(0); ; shift += 7 { 10284 if shift >= 64 { 10285 return ErrIntOverflowTypes 10286 } 10287 if iNdEx >= l { 10288 return io.ErrUnexpectedEOF 10289 } 10290 b := dAtA[iNdEx] 10291 iNdEx++ 10292 msglen |= int(b&0x7F) << shift 10293 if b < 0x80 { 10294 break 10295 } 10296 } 10297 if msglen < 0 { 10298 return ErrInvalidLengthTypes 10299 } 10300 postIndex := iNdEx + msglen 10301 if postIndex < 0 { 10302 return ErrInvalidLengthTypes 10303 } 10304 if postIndex > l { 10305 return io.ErrUnexpectedEOF 10306 } 10307 v := &RequestBeginBlock{} 10308 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10309 return err 10310 } 10311 m.Value = &Request_BeginBlock{v} 10312 iNdEx = postIndex 10313 case 9: 10314 if wireType != 2 { 10315 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 10316 } 10317 var msglen int 10318 for shift := uint(0); ; shift += 7 { 10319 if shift >= 64 { 10320 return ErrIntOverflowTypes 10321 } 10322 if iNdEx >= l { 10323 return io.ErrUnexpectedEOF 10324 } 10325 b := dAtA[iNdEx] 10326 iNdEx++ 10327 msglen |= int(b&0x7F) << shift 10328 if b < 0x80 { 10329 break 10330 } 10331 } 10332 if msglen < 0 { 10333 return ErrInvalidLengthTypes 10334 } 10335 postIndex := iNdEx + msglen 10336 if postIndex < 0 { 10337 return ErrInvalidLengthTypes 10338 } 10339 if postIndex > l { 10340 return io.ErrUnexpectedEOF 10341 } 10342 v := &RequestCheckTx{} 10343 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10344 return err 10345 } 10346 m.Value = &Request_CheckTx{v} 10347 iNdEx = postIndex 10348 case 11: 10349 if wireType != 2 { 10350 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 10351 } 10352 var msglen int 10353 for shift := uint(0); ; shift += 7 { 10354 if shift >= 64 { 10355 return ErrIntOverflowTypes 10356 } 10357 if iNdEx >= l { 10358 return io.ErrUnexpectedEOF 10359 } 10360 b := dAtA[iNdEx] 10361 iNdEx++ 10362 msglen |= int(b&0x7F) << shift 10363 if b < 0x80 { 10364 break 10365 } 10366 } 10367 if msglen < 0 { 10368 return ErrInvalidLengthTypes 10369 } 10370 postIndex := iNdEx + msglen 10371 if postIndex < 0 { 10372 return ErrInvalidLengthTypes 10373 } 10374 if postIndex > l { 10375 return io.ErrUnexpectedEOF 10376 } 10377 v := &RequestEndBlock{} 10378 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10379 return err 10380 } 10381 m.Value = &Request_EndBlock{v} 10382 iNdEx = postIndex 10383 case 12: 10384 if wireType != 2 { 10385 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 10386 } 10387 var msglen int 10388 for shift := uint(0); ; shift += 7 { 10389 if shift >= 64 { 10390 return ErrIntOverflowTypes 10391 } 10392 if iNdEx >= l { 10393 return io.ErrUnexpectedEOF 10394 } 10395 b := dAtA[iNdEx] 10396 iNdEx++ 10397 msglen |= int(b&0x7F) << shift 10398 if b < 0x80 { 10399 break 10400 } 10401 } 10402 if msglen < 0 { 10403 return ErrInvalidLengthTypes 10404 } 10405 postIndex := iNdEx + msglen 10406 if postIndex < 0 { 10407 return ErrInvalidLengthTypes 10408 } 10409 if postIndex > l { 10410 return io.ErrUnexpectedEOF 10411 } 10412 v := &RequestCommit{} 10413 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10414 return err 10415 } 10416 m.Value = &Request_Commit{v} 10417 iNdEx = postIndex 10418 case 19: 10419 if wireType != 2 { 10420 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 10421 } 10422 var msglen int 10423 for shift := uint(0); ; shift += 7 { 10424 if shift >= 64 { 10425 return ErrIntOverflowTypes 10426 } 10427 if iNdEx >= l { 10428 return io.ErrUnexpectedEOF 10429 } 10430 b := dAtA[iNdEx] 10431 iNdEx++ 10432 msglen |= int(b&0x7F) << shift 10433 if b < 0x80 { 10434 break 10435 } 10436 } 10437 if msglen < 0 { 10438 return ErrInvalidLengthTypes 10439 } 10440 postIndex := iNdEx + msglen 10441 if postIndex < 0 { 10442 return ErrInvalidLengthTypes 10443 } 10444 if postIndex > l { 10445 return io.ErrUnexpectedEOF 10446 } 10447 v := &RequestDeliverTx{} 10448 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10449 return err 10450 } 10451 m.Value = &Request_DeliverTx{v} 10452 iNdEx = postIndex 10453 default: 10454 iNdEx = preIndex 10455 skippy, err := skipTypes(dAtA[iNdEx:]) 10456 if err != nil { 10457 return err 10458 } 10459 if (skippy < 0) || (iNdEx+skippy) < 0 { 10460 return ErrInvalidLengthTypes 10461 } 10462 if (iNdEx + skippy) > l { 10463 return io.ErrUnexpectedEOF 10464 } 10465 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10466 iNdEx += skippy 10467 } 10468 } 10469 10470 if iNdEx > l { 10471 return io.ErrUnexpectedEOF 10472 } 10473 return nil 10474 } 10475 func (m *RequestEcho) Unmarshal(dAtA []byte) error { 10476 l := len(dAtA) 10477 iNdEx := 0 10478 for iNdEx < l { 10479 preIndex := iNdEx 10480 var wire uint64 10481 for shift := uint(0); ; shift += 7 { 10482 if shift >= 64 { 10483 return ErrIntOverflowTypes 10484 } 10485 if iNdEx >= l { 10486 return io.ErrUnexpectedEOF 10487 } 10488 b := dAtA[iNdEx] 10489 iNdEx++ 10490 wire |= uint64(b&0x7F) << shift 10491 if b < 0x80 { 10492 break 10493 } 10494 } 10495 fieldNum := int32(wire >> 3) 10496 wireType := int(wire & 0x7) 10497 if wireType == 4 { 10498 return fmt.Errorf("proto: RequestEcho: wiretype end group for non-group") 10499 } 10500 if fieldNum <= 0 { 10501 return fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire) 10502 } 10503 switch fieldNum { 10504 case 1: 10505 if wireType != 2 { 10506 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 10507 } 10508 var stringLen uint64 10509 for shift := uint(0); ; shift += 7 { 10510 if shift >= 64 { 10511 return ErrIntOverflowTypes 10512 } 10513 if iNdEx >= l { 10514 return io.ErrUnexpectedEOF 10515 } 10516 b := dAtA[iNdEx] 10517 iNdEx++ 10518 stringLen |= uint64(b&0x7F) << shift 10519 if b < 0x80 { 10520 break 10521 } 10522 } 10523 intStringLen := int(stringLen) 10524 if intStringLen < 0 { 10525 return ErrInvalidLengthTypes 10526 } 10527 postIndex := iNdEx + intStringLen 10528 if postIndex < 0 { 10529 return ErrInvalidLengthTypes 10530 } 10531 if postIndex > l { 10532 return io.ErrUnexpectedEOF 10533 } 10534 m.Message = string(dAtA[iNdEx:postIndex]) 10535 iNdEx = postIndex 10536 default: 10537 iNdEx = preIndex 10538 skippy, err := skipTypes(dAtA[iNdEx:]) 10539 if err != nil { 10540 return err 10541 } 10542 if (skippy < 0) || (iNdEx+skippy) < 0 { 10543 return ErrInvalidLengthTypes 10544 } 10545 if (iNdEx + skippy) > l { 10546 return io.ErrUnexpectedEOF 10547 } 10548 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10549 iNdEx += skippy 10550 } 10551 } 10552 10553 if iNdEx > l { 10554 return io.ErrUnexpectedEOF 10555 } 10556 return nil 10557 } 10558 func (m *RequestFlush) Unmarshal(dAtA []byte) error { 10559 l := len(dAtA) 10560 iNdEx := 0 10561 for iNdEx < l { 10562 preIndex := iNdEx 10563 var wire uint64 10564 for shift := uint(0); ; shift += 7 { 10565 if shift >= 64 { 10566 return ErrIntOverflowTypes 10567 } 10568 if iNdEx >= l { 10569 return io.ErrUnexpectedEOF 10570 } 10571 b := dAtA[iNdEx] 10572 iNdEx++ 10573 wire |= uint64(b&0x7F) << shift 10574 if b < 0x80 { 10575 break 10576 } 10577 } 10578 fieldNum := int32(wire >> 3) 10579 wireType := int(wire & 0x7) 10580 if wireType == 4 { 10581 return fmt.Errorf("proto: RequestFlush: wiretype end group for non-group") 10582 } 10583 if fieldNum <= 0 { 10584 return fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire) 10585 } 10586 switch fieldNum { 10587 default: 10588 iNdEx = preIndex 10589 skippy, err := skipTypes(dAtA[iNdEx:]) 10590 if err != nil { 10591 return err 10592 } 10593 if (skippy < 0) || (iNdEx+skippy) < 0 { 10594 return ErrInvalidLengthTypes 10595 } 10596 if (iNdEx + skippy) > l { 10597 return io.ErrUnexpectedEOF 10598 } 10599 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10600 iNdEx += skippy 10601 } 10602 } 10603 10604 if iNdEx > l { 10605 return io.ErrUnexpectedEOF 10606 } 10607 return nil 10608 } 10609 func (m *RequestInfo) Unmarshal(dAtA []byte) error { 10610 l := len(dAtA) 10611 iNdEx := 0 10612 for iNdEx < l { 10613 preIndex := iNdEx 10614 var wire uint64 10615 for shift := uint(0); ; shift += 7 { 10616 if shift >= 64 { 10617 return ErrIntOverflowTypes 10618 } 10619 if iNdEx >= l { 10620 return io.ErrUnexpectedEOF 10621 } 10622 b := dAtA[iNdEx] 10623 iNdEx++ 10624 wire |= uint64(b&0x7F) << shift 10625 if b < 0x80 { 10626 break 10627 } 10628 } 10629 fieldNum := int32(wire >> 3) 10630 wireType := int(wire & 0x7) 10631 if wireType == 4 { 10632 return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group") 10633 } 10634 if fieldNum <= 0 { 10635 return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire) 10636 } 10637 switch fieldNum { 10638 case 1: 10639 if wireType != 2 { 10640 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 10641 } 10642 var stringLen uint64 10643 for shift := uint(0); ; shift += 7 { 10644 if shift >= 64 { 10645 return ErrIntOverflowTypes 10646 } 10647 if iNdEx >= l { 10648 return io.ErrUnexpectedEOF 10649 } 10650 b := dAtA[iNdEx] 10651 iNdEx++ 10652 stringLen |= uint64(b&0x7F) << shift 10653 if b < 0x80 { 10654 break 10655 } 10656 } 10657 intStringLen := int(stringLen) 10658 if intStringLen < 0 { 10659 return ErrInvalidLengthTypes 10660 } 10661 postIndex := iNdEx + intStringLen 10662 if postIndex < 0 { 10663 return ErrInvalidLengthTypes 10664 } 10665 if postIndex > l { 10666 return io.ErrUnexpectedEOF 10667 } 10668 m.Version = string(dAtA[iNdEx:postIndex]) 10669 iNdEx = postIndex 10670 case 2: 10671 if wireType != 0 { 10672 return fmt.Errorf("proto: wrong wireType = %d for field BlockVersion", wireType) 10673 } 10674 m.BlockVersion = 0 10675 for shift := uint(0); ; shift += 7 { 10676 if shift >= 64 { 10677 return ErrIntOverflowTypes 10678 } 10679 if iNdEx >= l { 10680 return io.ErrUnexpectedEOF 10681 } 10682 b := dAtA[iNdEx] 10683 iNdEx++ 10684 m.BlockVersion |= uint64(b&0x7F) << shift 10685 if b < 0x80 { 10686 break 10687 } 10688 } 10689 case 3: 10690 if wireType != 0 { 10691 return fmt.Errorf("proto: wrong wireType = %d for field P2PVersion", wireType) 10692 } 10693 m.P2PVersion = 0 10694 for shift := uint(0); ; shift += 7 { 10695 if shift >= 64 { 10696 return ErrIntOverflowTypes 10697 } 10698 if iNdEx >= l { 10699 return io.ErrUnexpectedEOF 10700 } 10701 b := dAtA[iNdEx] 10702 iNdEx++ 10703 m.P2PVersion |= uint64(b&0x7F) << shift 10704 if b < 0x80 { 10705 break 10706 } 10707 } 10708 default: 10709 iNdEx = preIndex 10710 skippy, err := skipTypes(dAtA[iNdEx:]) 10711 if err != nil { 10712 return err 10713 } 10714 if (skippy < 0) || (iNdEx+skippy) < 0 { 10715 return ErrInvalidLengthTypes 10716 } 10717 if (iNdEx + skippy) > l { 10718 return io.ErrUnexpectedEOF 10719 } 10720 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10721 iNdEx += skippy 10722 } 10723 } 10724 10725 if iNdEx > l { 10726 return io.ErrUnexpectedEOF 10727 } 10728 return nil 10729 } 10730 func (m *RequestSetOption) Unmarshal(dAtA []byte) error { 10731 l := len(dAtA) 10732 iNdEx := 0 10733 for iNdEx < l { 10734 preIndex := iNdEx 10735 var wire uint64 10736 for shift := uint(0); ; shift += 7 { 10737 if shift >= 64 { 10738 return ErrIntOverflowTypes 10739 } 10740 if iNdEx >= l { 10741 return io.ErrUnexpectedEOF 10742 } 10743 b := dAtA[iNdEx] 10744 iNdEx++ 10745 wire |= uint64(b&0x7F) << shift 10746 if b < 0x80 { 10747 break 10748 } 10749 } 10750 fieldNum := int32(wire >> 3) 10751 wireType := int(wire & 0x7) 10752 if wireType == 4 { 10753 return fmt.Errorf("proto: RequestSetOption: wiretype end group for non-group") 10754 } 10755 if fieldNum <= 0 { 10756 return fmt.Errorf("proto: RequestSetOption: illegal tag %d (wire type %d)", fieldNum, wire) 10757 } 10758 switch fieldNum { 10759 case 1: 10760 if wireType != 2 { 10761 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 10762 } 10763 var stringLen uint64 10764 for shift := uint(0); ; shift += 7 { 10765 if shift >= 64 { 10766 return ErrIntOverflowTypes 10767 } 10768 if iNdEx >= l { 10769 return io.ErrUnexpectedEOF 10770 } 10771 b := dAtA[iNdEx] 10772 iNdEx++ 10773 stringLen |= uint64(b&0x7F) << shift 10774 if b < 0x80 { 10775 break 10776 } 10777 } 10778 intStringLen := int(stringLen) 10779 if intStringLen < 0 { 10780 return ErrInvalidLengthTypes 10781 } 10782 postIndex := iNdEx + intStringLen 10783 if postIndex < 0 { 10784 return ErrInvalidLengthTypes 10785 } 10786 if postIndex > l { 10787 return io.ErrUnexpectedEOF 10788 } 10789 m.Key = string(dAtA[iNdEx:postIndex]) 10790 iNdEx = postIndex 10791 case 2: 10792 if wireType != 2 { 10793 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 10794 } 10795 var stringLen uint64 10796 for shift := uint(0); ; shift += 7 { 10797 if shift >= 64 { 10798 return ErrIntOverflowTypes 10799 } 10800 if iNdEx >= l { 10801 return io.ErrUnexpectedEOF 10802 } 10803 b := dAtA[iNdEx] 10804 iNdEx++ 10805 stringLen |= uint64(b&0x7F) << shift 10806 if b < 0x80 { 10807 break 10808 } 10809 } 10810 intStringLen := int(stringLen) 10811 if intStringLen < 0 { 10812 return ErrInvalidLengthTypes 10813 } 10814 postIndex := iNdEx + intStringLen 10815 if postIndex < 0 { 10816 return ErrInvalidLengthTypes 10817 } 10818 if postIndex > l { 10819 return io.ErrUnexpectedEOF 10820 } 10821 m.Value = string(dAtA[iNdEx:postIndex]) 10822 iNdEx = postIndex 10823 default: 10824 iNdEx = preIndex 10825 skippy, err := skipTypes(dAtA[iNdEx:]) 10826 if err != nil { 10827 return err 10828 } 10829 if (skippy < 0) || (iNdEx+skippy) < 0 { 10830 return ErrInvalidLengthTypes 10831 } 10832 if (iNdEx + skippy) > l { 10833 return io.ErrUnexpectedEOF 10834 } 10835 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10836 iNdEx += skippy 10837 } 10838 } 10839 10840 if iNdEx > l { 10841 return io.ErrUnexpectedEOF 10842 } 10843 return nil 10844 } 10845 func (m *RequestInitChain) Unmarshal(dAtA []byte) error { 10846 l := len(dAtA) 10847 iNdEx := 0 10848 for iNdEx < l { 10849 preIndex := iNdEx 10850 var wire uint64 10851 for shift := uint(0); ; shift += 7 { 10852 if shift >= 64 { 10853 return ErrIntOverflowTypes 10854 } 10855 if iNdEx >= l { 10856 return io.ErrUnexpectedEOF 10857 } 10858 b := dAtA[iNdEx] 10859 iNdEx++ 10860 wire |= uint64(b&0x7F) << shift 10861 if b < 0x80 { 10862 break 10863 } 10864 } 10865 fieldNum := int32(wire >> 3) 10866 wireType := int(wire & 0x7) 10867 if wireType == 4 { 10868 return fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group") 10869 } 10870 if fieldNum <= 0 { 10871 return fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire) 10872 } 10873 switch fieldNum { 10874 case 1: 10875 if wireType != 2 { 10876 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 10877 } 10878 var msglen int 10879 for shift := uint(0); ; shift += 7 { 10880 if shift >= 64 { 10881 return ErrIntOverflowTypes 10882 } 10883 if iNdEx >= l { 10884 return io.ErrUnexpectedEOF 10885 } 10886 b := dAtA[iNdEx] 10887 iNdEx++ 10888 msglen |= int(b&0x7F) << shift 10889 if b < 0x80 { 10890 break 10891 } 10892 } 10893 if msglen < 0 { 10894 return ErrInvalidLengthTypes 10895 } 10896 postIndex := iNdEx + msglen 10897 if postIndex < 0 { 10898 return ErrInvalidLengthTypes 10899 } 10900 if postIndex > l { 10901 return io.ErrUnexpectedEOF 10902 } 10903 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 10904 return err 10905 } 10906 iNdEx = postIndex 10907 case 2: 10908 if wireType != 2 { 10909 return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) 10910 } 10911 var stringLen uint64 10912 for shift := uint(0); ; shift += 7 { 10913 if shift >= 64 { 10914 return ErrIntOverflowTypes 10915 } 10916 if iNdEx >= l { 10917 return io.ErrUnexpectedEOF 10918 } 10919 b := dAtA[iNdEx] 10920 iNdEx++ 10921 stringLen |= uint64(b&0x7F) << shift 10922 if b < 0x80 { 10923 break 10924 } 10925 } 10926 intStringLen := int(stringLen) 10927 if intStringLen < 0 { 10928 return ErrInvalidLengthTypes 10929 } 10930 postIndex := iNdEx + intStringLen 10931 if postIndex < 0 { 10932 return ErrInvalidLengthTypes 10933 } 10934 if postIndex > l { 10935 return io.ErrUnexpectedEOF 10936 } 10937 m.ChainId = string(dAtA[iNdEx:postIndex]) 10938 iNdEx = postIndex 10939 case 3: 10940 if wireType != 2 { 10941 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) 10942 } 10943 var msglen int 10944 for shift := uint(0); ; shift += 7 { 10945 if shift >= 64 { 10946 return ErrIntOverflowTypes 10947 } 10948 if iNdEx >= l { 10949 return io.ErrUnexpectedEOF 10950 } 10951 b := dAtA[iNdEx] 10952 iNdEx++ 10953 msglen |= int(b&0x7F) << shift 10954 if b < 0x80 { 10955 break 10956 } 10957 } 10958 if msglen < 0 { 10959 return ErrInvalidLengthTypes 10960 } 10961 postIndex := iNdEx + msglen 10962 if postIndex < 0 { 10963 return ErrInvalidLengthTypes 10964 } 10965 if postIndex > l { 10966 return io.ErrUnexpectedEOF 10967 } 10968 if m.ConsensusParams == nil { 10969 m.ConsensusParams = &ConsensusParams{} 10970 } 10971 if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10972 return err 10973 } 10974 iNdEx = postIndex 10975 case 4: 10976 if wireType != 2 { 10977 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 10978 } 10979 var msglen int 10980 for shift := uint(0); ; shift += 7 { 10981 if shift >= 64 { 10982 return ErrIntOverflowTypes 10983 } 10984 if iNdEx >= l { 10985 return io.ErrUnexpectedEOF 10986 } 10987 b := dAtA[iNdEx] 10988 iNdEx++ 10989 msglen |= int(b&0x7F) << shift 10990 if b < 0x80 { 10991 break 10992 } 10993 } 10994 if msglen < 0 { 10995 return ErrInvalidLengthTypes 10996 } 10997 postIndex := iNdEx + msglen 10998 if postIndex < 0 { 10999 return ErrInvalidLengthTypes 11000 } 11001 if postIndex > l { 11002 return io.ErrUnexpectedEOF 11003 } 11004 m.Validators = append(m.Validators, ValidatorUpdate{}) 11005 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11006 return err 11007 } 11008 iNdEx = postIndex 11009 case 5: 11010 if wireType != 2 { 11011 return fmt.Errorf("proto: wrong wireType = %d for field AppStateBytes", wireType) 11012 } 11013 var byteLen int 11014 for shift := uint(0); ; shift += 7 { 11015 if shift >= 64 { 11016 return ErrIntOverflowTypes 11017 } 11018 if iNdEx >= l { 11019 return io.ErrUnexpectedEOF 11020 } 11021 b := dAtA[iNdEx] 11022 iNdEx++ 11023 byteLen |= int(b&0x7F) << shift 11024 if b < 0x80 { 11025 break 11026 } 11027 } 11028 if byteLen < 0 { 11029 return ErrInvalidLengthTypes 11030 } 11031 postIndex := iNdEx + byteLen 11032 if postIndex < 0 { 11033 return ErrInvalidLengthTypes 11034 } 11035 if postIndex > l { 11036 return io.ErrUnexpectedEOF 11037 } 11038 m.AppStateBytes = append(m.AppStateBytes[:0], dAtA[iNdEx:postIndex]...) 11039 if m.AppStateBytes == nil { 11040 m.AppStateBytes = []byte{} 11041 } 11042 iNdEx = postIndex 11043 default: 11044 iNdEx = preIndex 11045 skippy, err := skipTypes(dAtA[iNdEx:]) 11046 if err != nil { 11047 return err 11048 } 11049 if (skippy < 0) || (iNdEx+skippy) < 0 { 11050 return ErrInvalidLengthTypes 11051 } 11052 if (iNdEx + skippy) > l { 11053 return io.ErrUnexpectedEOF 11054 } 11055 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11056 iNdEx += skippy 11057 } 11058 } 11059 11060 if iNdEx > l { 11061 return io.ErrUnexpectedEOF 11062 } 11063 return nil 11064 } 11065 func (m *RequestQuery) Unmarshal(dAtA []byte) error { 11066 l := len(dAtA) 11067 iNdEx := 0 11068 for iNdEx < l { 11069 preIndex := iNdEx 11070 var wire uint64 11071 for shift := uint(0); ; shift += 7 { 11072 if shift >= 64 { 11073 return ErrIntOverflowTypes 11074 } 11075 if iNdEx >= l { 11076 return io.ErrUnexpectedEOF 11077 } 11078 b := dAtA[iNdEx] 11079 iNdEx++ 11080 wire |= uint64(b&0x7F) << shift 11081 if b < 0x80 { 11082 break 11083 } 11084 } 11085 fieldNum := int32(wire >> 3) 11086 wireType := int(wire & 0x7) 11087 if wireType == 4 { 11088 return fmt.Errorf("proto: RequestQuery: wiretype end group for non-group") 11089 } 11090 if fieldNum <= 0 { 11091 return fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire) 11092 } 11093 switch fieldNum { 11094 case 1: 11095 if wireType != 2 { 11096 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 11097 } 11098 var byteLen int 11099 for shift := uint(0); ; shift += 7 { 11100 if shift >= 64 { 11101 return ErrIntOverflowTypes 11102 } 11103 if iNdEx >= l { 11104 return io.ErrUnexpectedEOF 11105 } 11106 b := dAtA[iNdEx] 11107 iNdEx++ 11108 byteLen |= int(b&0x7F) << shift 11109 if b < 0x80 { 11110 break 11111 } 11112 } 11113 if byteLen < 0 { 11114 return ErrInvalidLengthTypes 11115 } 11116 postIndex := iNdEx + byteLen 11117 if postIndex < 0 { 11118 return ErrInvalidLengthTypes 11119 } 11120 if postIndex > l { 11121 return io.ErrUnexpectedEOF 11122 } 11123 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 11124 if m.Data == nil { 11125 m.Data = []byte{} 11126 } 11127 iNdEx = postIndex 11128 case 2: 11129 if wireType != 2 { 11130 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 11131 } 11132 var stringLen uint64 11133 for shift := uint(0); ; shift += 7 { 11134 if shift >= 64 { 11135 return ErrIntOverflowTypes 11136 } 11137 if iNdEx >= l { 11138 return io.ErrUnexpectedEOF 11139 } 11140 b := dAtA[iNdEx] 11141 iNdEx++ 11142 stringLen |= uint64(b&0x7F) << shift 11143 if b < 0x80 { 11144 break 11145 } 11146 } 11147 intStringLen := int(stringLen) 11148 if intStringLen < 0 { 11149 return ErrInvalidLengthTypes 11150 } 11151 postIndex := iNdEx + intStringLen 11152 if postIndex < 0 { 11153 return ErrInvalidLengthTypes 11154 } 11155 if postIndex > l { 11156 return io.ErrUnexpectedEOF 11157 } 11158 m.Path = string(dAtA[iNdEx:postIndex]) 11159 iNdEx = postIndex 11160 case 3: 11161 if wireType != 0 { 11162 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 11163 } 11164 m.Height = 0 11165 for shift := uint(0); ; shift += 7 { 11166 if shift >= 64 { 11167 return ErrIntOverflowTypes 11168 } 11169 if iNdEx >= l { 11170 return io.ErrUnexpectedEOF 11171 } 11172 b := dAtA[iNdEx] 11173 iNdEx++ 11174 m.Height |= int64(b&0x7F) << shift 11175 if b < 0x80 { 11176 break 11177 } 11178 } 11179 case 4: 11180 if wireType != 0 { 11181 return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType) 11182 } 11183 var v int 11184 for shift := uint(0); ; shift += 7 { 11185 if shift >= 64 { 11186 return ErrIntOverflowTypes 11187 } 11188 if iNdEx >= l { 11189 return io.ErrUnexpectedEOF 11190 } 11191 b := dAtA[iNdEx] 11192 iNdEx++ 11193 v |= int(b&0x7F) << shift 11194 if b < 0x80 { 11195 break 11196 } 11197 } 11198 m.Prove = bool(v != 0) 11199 default: 11200 iNdEx = preIndex 11201 skippy, err := skipTypes(dAtA[iNdEx:]) 11202 if err != nil { 11203 return err 11204 } 11205 if (skippy < 0) || (iNdEx+skippy) < 0 { 11206 return ErrInvalidLengthTypes 11207 } 11208 if (iNdEx + skippy) > l { 11209 return io.ErrUnexpectedEOF 11210 } 11211 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11212 iNdEx += skippy 11213 } 11214 } 11215 11216 if iNdEx > l { 11217 return io.ErrUnexpectedEOF 11218 } 11219 return nil 11220 } 11221 func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error { 11222 l := len(dAtA) 11223 iNdEx := 0 11224 for iNdEx < l { 11225 preIndex := iNdEx 11226 var wire uint64 11227 for shift := uint(0); ; shift += 7 { 11228 if shift >= 64 { 11229 return ErrIntOverflowTypes 11230 } 11231 if iNdEx >= l { 11232 return io.ErrUnexpectedEOF 11233 } 11234 b := dAtA[iNdEx] 11235 iNdEx++ 11236 wire |= uint64(b&0x7F) << shift 11237 if b < 0x80 { 11238 break 11239 } 11240 } 11241 fieldNum := int32(wire >> 3) 11242 wireType := int(wire & 0x7) 11243 if wireType == 4 { 11244 return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group") 11245 } 11246 if fieldNum <= 0 { 11247 return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 11248 } 11249 switch fieldNum { 11250 case 1: 11251 if wireType != 2 { 11252 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 11253 } 11254 var byteLen int 11255 for shift := uint(0); ; shift += 7 { 11256 if shift >= 64 { 11257 return ErrIntOverflowTypes 11258 } 11259 if iNdEx >= l { 11260 return io.ErrUnexpectedEOF 11261 } 11262 b := dAtA[iNdEx] 11263 iNdEx++ 11264 byteLen |= int(b&0x7F) << shift 11265 if b < 0x80 { 11266 break 11267 } 11268 } 11269 if byteLen < 0 { 11270 return ErrInvalidLengthTypes 11271 } 11272 postIndex := iNdEx + byteLen 11273 if postIndex < 0 { 11274 return ErrInvalidLengthTypes 11275 } 11276 if postIndex > l { 11277 return io.ErrUnexpectedEOF 11278 } 11279 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 11280 if m.Hash == nil { 11281 m.Hash = []byte{} 11282 } 11283 iNdEx = postIndex 11284 case 2: 11285 if wireType != 2 { 11286 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 11287 } 11288 var msglen int 11289 for shift := uint(0); ; shift += 7 { 11290 if shift >= 64 { 11291 return ErrIntOverflowTypes 11292 } 11293 if iNdEx >= l { 11294 return io.ErrUnexpectedEOF 11295 } 11296 b := dAtA[iNdEx] 11297 iNdEx++ 11298 msglen |= int(b&0x7F) << shift 11299 if b < 0x80 { 11300 break 11301 } 11302 } 11303 if msglen < 0 { 11304 return ErrInvalidLengthTypes 11305 } 11306 postIndex := iNdEx + msglen 11307 if postIndex < 0 { 11308 return ErrInvalidLengthTypes 11309 } 11310 if postIndex > l { 11311 return io.ErrUnexpectedEOF 11312 } 11313 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11314 return err 11315 } 11316 iNdEx = postIndex 11317 case 3: 11318 if wireType != 2 { 11319 return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType) 11320 } 11321 var msglen int 11322 for shift := uint(0); ; shift += 7 { 11323 if shift >= 64 { 11324 return ErrIntOverflowTypes 11325 } 11326 if iNdEx >= l { 11327 return io.ErrUnexpectedEOF 11328 } 11329 b := dAtA[iNdEx] 11330 iNdEx++ 11331 msglen |= int(b&0x7F) << shift 11332 if b < 0x80 { 11333 break 11334 } 11335 } 11336 if msglen < 0 { 11337 return ErrInvalidLengthTypes 11338 } 11339 postIndex := iNdEx + msglen 11340 if postIndex < 0 { 11341 return ErrInvalidLengthTypes 11342 } 11343 if postIndex > l { 11344 return io.ErrUnexpectedEOF 11345 } 11346 if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11347 return err 11348 } 11349 iNdEx = postIndex 11350 case 4: 11351 if wireType != 2 { 11352 return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType) 11353 } 11354 var msglen int 11355 for shift := uint(0); ; shift += 7 { 11356 if shift >= 64 { 11357 return ErrIntOverflowTypes 11358 } 11359 if iNdEx >= l { 11360 return io.ErrUnexpectedEOF 11361 } 11362 b := dAtA[iNdEx] 11363 iNdEx++ 11364 msglen |= int(b&0x7F) << shift 11365 if b < 0x80 { 11366 break 11367 } 11368 } 11369 if msglen < 0 { 11370 return ErrInvalidLengthTypes 11371 } 11372 postIndex := iNdEx + msglen 11373 if postIndex < 0 { 11374 return ErrInvalidLengthTypes 11375 } 11376 if postIndex > l { 11377 return io.ErrUnexpectedEOF 11378 } 11379 m.ByzantineValidators = append(m.ByzantineValidators, Evidence{}) 11380 if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11381 return err 11382 } 11383 iNdEx = postIndex 11384 case 5: 11385 var v int 11386 for shift := uint(0); ; shift += 7 { 11387 if shift >= 64 { 11388 return ErrIntOverflowTypes 11389 } 11390 if iNdEx >= l { 11391 return io.ErrUnexpectedEOF 11392 } 11393 b := dAtA[iNdEx] 11394 iNdEx++ 11395 v |= int(b&0x7F) << shift 11396 if b < 0x80 { 11397 break 11398 } 11399 } 11400 default: 11401 iNdEx = preIndex 11402 skippy, err := skipTypes(dAtA[iNdEx:]) 11403 if err != nil { 11404 return err 11405 } 11406 if (skippy < 0) || (iNdEx+skippy) < 0 { 11407 return ErrInvalidLengthTypes 11408 } 11409 if (iNdEx + skippy) > l { 11410 return io.ErrUnexpectedEOF 11411 } 11412 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11413 iNdEx += skippy 11414 } 11415 } 11416 11417 if iNdEx > l { 11418 return io.ErrUnexpectedEOF 11419 } 11420 return nil 11421 } 11422 func (m *RequestCheckTx) Unmarshal(dAtA []byte) error { 11423 l := len(dAtA) 11424 iNdEx := 0 11425 for iNdEx < l { 11426 preIndex := iNdEx 11427 var wire uint64 11428 for shift := uint(0); ; shift += 7 { 11429 if shift >= 64 { 11430 return ErrIntOverflowTypes 11431 } 11432 if iNdEx >= l { 11433 return io.ErrUnexpectedEOF 11434 } 11435 b := dAtA[iNdEx] 11436 iNdEx++ 11437 wire |= uint64(b&0x7F) << shift 11438 if b < 0x80 { 11439 break 11440 } 11441 } 11442 fieldNum := int32(wire >> 3) 11443 wireType := int(wire & 0x7) 11444 if wireType == 4 { 11445 return fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group") 11446 } 11447 if fieldNum <= 0 { 11448 return fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 11449 } 11450 switch fieldNum { 11451 case 1: 11452 if wireType != 2 { 11453 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 11454 } 11455 var byteLen int 11456 for shift := uint(0); ; shift += 7 { 11457 if shift >= 64 { 11458 return ErrIntOverflowTypes 11459 } 11460 if iNdEx >= l { 11461 return io.ErrUnexpectedEOF 11462 } 11463 b := dAtA[iNdEx] 11464 iNdEx++ 11465 byteLen |= int(b&0x7F) << shift 11466 if b < 0x80 { 11467 break 11468 } 11469 } 11470 if byteLen < 0 { 11471 return ErrInvalidLengthTypes 11472 } 11473 postIndex := iNdEx + byteLen 11474 if postIndex < 0 { 11475 return ErrInvalidLengthTypes 11476 } 11477 if postIndex > l { 11478 return io.ErrUnexpectedEOF 11479 } 11480 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 11481 if m.Tx == nil { 11482 m.Tx = []byte{} 11483 } 11484 iNdEx = postIndex 11485 case 2: 11486 if wireType != 0 { 11487 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 11488 } 11489 m.Type = 0 11490 for shift := uint(0); ; shift += 7 { 11491 if shift >= 64 { 11492 return ErrIntOverflowTypes 11493 } 11494 if iNdEx >= l { 11495 return io.ErrUnexpectedEOF 11496 } 11497 b := dAtA[iNdEx] 11498 iNdEx++ 11499 m.Type |= CheckTxType(b&0x7F) << shift 11500 if b < 0x80 { 11501 break 11502 } 11503 } 11504 default: 11505 iNdEx = preIndex 11506 skippy, err := skipTypes(dAtA[iNdEx:]) 11507 if err != nil { 11508 return err 11509 } 11510 if (skippy < 0) || (iNdEx+skippy) < 0 { 11511 return ErrInvalidLengthTypes 11512 } 11513 if (iNdEx + skippy) > l { 11514 return io.ErrUnexpectedEOF 11515 } 11516 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11517 iNdEx += skippy 11518 } 11519 } 11520 11521 if iNdEx > l { 11522 return io.ErrUnexpectedEOF 11523 } 11524 return nil 11525 } 11526 func (m *RequestDeliverTx) Unmarshal(dAtA []byte) error { 11527 l := len(dAtA) 11528 iNdEx := 0 11529 for iNdEx < l { 11530 preIndex := iNdEx 11531 var wire uint64 11532 for shift := uint(0); ; shift += 7 { 11533 if shift >= 64 { 11534 return ErrIntOverflowTypes 11535 } 11536 if iNdEx >= l { 11537 return io.ErrUnexpectedEOF 11538 } 11539 b := dAtA[iNdEx] 11540 iNdEx++ 11541 wire |= uint64(b&0x7F) << shift 11542 if b < 0x80 { 11543 break 11544 } 11545 } 11546 fieldNum := int32(wire >> 3) 11547 wireType := int(wire & 0x7) 11548 if wireType == 4 { 11549 return fmt.Errorf("proto: RequestDeliverTx: wiretype end group for non-group") 11550 } 11551 if fieldNum <= 0 { 11552 return fmt.Errorf("proto: RequestDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire) 11553 } 11554 switch fieldNum { 11555 case 1: 11556 if wireType != 2 { 11557 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 11558 } 11559 var byteLen int 11560 for shift := uint(0); ; shift += 7 { 11561 if shift >= 64 { 11562 return ErrIntOverflowTypes 11563 } 11564 if iNdEx >= l { 11565 return io.ErrUnexpectedEOF 11566 } 11567 b := dAtA[iNdEx] 11568 iNdEx++ 11569 byteLen |= int(b&0x7F) << shift 11570 if b < 0x80 { 11571 break 11572 } 11573 } 11574 if byteLen < 0 { 11575 return ErrInvalidLengthTypes 11576 } 11577 postIndex := iNdEx + byteLen 11578 if postIndex < 0 { 11579 return ErrInvalidLengthTypes 11580 } 11581 if postIndex > l { 11582 return io.ErrUnexpectedEOF 11583 } 11584 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 11585 if m.Tx == nil { 11586 m.Tx = []byte{} 11587 } 11588 iNdEx = postIndex 11589 default: 11590 iNdEx = preIndex 11591 skippy, err := skipTypes(dAtA[iNdEx:]) 11592 if err != nil { 11593 return err 11594 } 11595 if (skippy < 0) || (iNdEx+skippy) < 0 { 11596 return ErrInvalidLengthTypes 11597 } 11598 if (iNdEx + skippy) > l { 11599 return io.ErrUnexpectedEOF 11600 } 11601 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11602 iNdEx += skippy 11603 } 11604 } 11605 11606 if iNdEx > l { 11607 return io.ErrUnexpectedEOF 11608 } 11609 return nil 11610 } 11611 func (m *RequestEndBlock) Unmarshal(dAtA []byte) error { 11612 l := len(dAtA) 11613 iNdEx := 0 11614 for iNdEx < l { 11615 preIndex := iNdEx 11616 var wire uint64 11617 for shift := uint(0); ; shift += 7 { 11618 if shift >= 64 { 11619 return ErrIntOverflowTypes 11620 } 11621 if iNdEx >= l { 11622 return io.ErrUnexpectedEOF 11623 } 11624 b := dAtA[iNdEx] 11625 iNdEx++ 11626 wire |= uint64(b&0x7F) << shift 11627 if b < 0x80 { 11628 break 11629 } 11630 } 11631 fieldNum := int32(wire >> 3) 11632 wireType := int(wire & 0x7) 11633 if wireType == 4 { 11634 return fmt.Errorf("proto: RequestEndBlock: wiretype end group for non-group") 11635 } 11636 if fieldNum <= 0 { 11637 return fmt.Errorf("proto: RequestEndBlock: illegal tag %d (wire type %d)", fieldNum, wire) 11638 } 11639 switch fieldNum { 11640 case 1: 11641 if wireType != 0 { 11642 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 11643 } 11644 m.Height = 0 11645 for shift := uint(0); ; shift += 7 { 11646 if shift >= 64 { 11647 return ErrIntOverflowTypes 11648 } 11649 if iNdEx >= l { 11650 return io.ErrUnexpectedEOF 11651 } 11652 b := dAtA[iNdEx] 11653 iNdEx++ 11654 m.Height |= int64(b&0x7F) << shift 11655 if b < 0x80 { 11656 break 11657 } 11658 } 11659 default: 11660 iNdEx = preIndex 11661 skippy, err := skipTypes(dAtA[iNdEx:]) 11662 if err != nil { 11663 return err 11664 } 11665 if (skippy < 0) || (iNdEx+skippy) < 0 { 11666 return ErrInvalidLengthTypes 11667 } 11668 if (iNdEx + skippy) > l { 11669 return io.ErrUnexpectedEOF 11670 } 11671 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11672 iNdEx += skippy 11673 } 11674 } 11675 11676 if iNdEx > l { 11677 return io.ErrUnexpectedEOF 11678 } 11679 return nil 11680 } 11681 func (m *RequestCommit) Unmarshal(dAtA []byte) error { 11682 l := len(dAtA) 11683 iNdEx := 0 11684 for iNdEx < l { 11685 preIndex := iNdEx 11686 var wire uint64 11687 for shift := uint(0); ; shift += 7 { 11688 if shift >= 64 { 11689 return ErrIntOverflowTypes 11690 } 11691 if iNdEx >= l { 11692 return io.ErrUnexpectedEOF 11693 } 11694 b := dAtA[iNdEx] 11695 iNdEx++ 11696 wire |= uint64(b&0x7F) << shift 11697 if b < 0x80 { 11698 break 11699 } 11700 } 11701 fieldNum := int32(wire >> 3) 11702 wireType := int(wire & 0x7) 11703 if wireType == 4 { 11704 return fmt.Errorf("proto: RequestCommit: wiretype end group for non-group") 11705 } 11706 if fieldNum <= 0 { 11707 return fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire) 11708 } 11709 switch fieldNum { 11710 case 1: 11711 var msglen int 11712 for shift := uint(0); ; shift += 7 { 11713 if shift >= 64 { 11714 return ErrIntOverflowTypes 11715 } 11716 if iNdEx >= l { 11717 return io.ErrUnexpectedEOF 11718 } 11719 b := dAtA[iNdEx] 11720 iNdEx++ 11721 msglen |= int(b&0x7F) << shift 11722 if b < 0x80 { 11723 break 11724 } 11725 } 11726 if msglen < 0 { 11727 return ErrInvalidLengthTypes 11728 } 11729 postIndex := iNdEx + msglen 11730 if postIndex < 0 { 11731 return ErrInvalidLengthTypes 11732 } 11733 if postIndex > l { 11734 return io.ErrUnexpectedEOF 11735 } 11736 iNdEx = postIndex 11737 default: 11738 iNdEx = preIndex 11739 skippy, err := skipTypes(dAtA[iNdEx:]) 11740 if err != nil { 11741 return err 11742 } 11743 if (skippy < 0) || (iNdEx+skippy) < 0 { 11744 return ErrInvalidLengthTypes 11745 } 11746 if (iNdEx + skippy) > l { 11747 return io.ErrUnexpectedEOF 11748 } 11749 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11750 iNdEx += skippy 11751 } 11752 } 11753 11754 if iNdEx > l { 11755 return io.ErrUnexpectedEOF 11756 } 11757 return nil 11758 } 11759 func (m *Response) Unmarshal(dAtA []byte) error { 11760 l := len(dAtA) 11761 iNdEx := 0 11762 for iNdEx < l { 11763 preIndex := iNdEx 11764 var wire uint64 11765 for shift := uint(0); ; shift += 7 { 11766 if shift >= 64 { 11767 return ErrIntOverflowTypes 11768 } 11769 if iNdEx >= l { 11770 return io.ErrUnexpectedEOF 11771 } 11772 b := dAtA[iNdEx] 11773 iNdEx++ 11774 wire |= uint64(b&0x7F) << shift 11775 if b < 0x80 { 11776 break 11777 } 11778 } 11779 fieldNum := int32(wire >> 3) 11780 wireType := int(wire & 0x7) 11781 if wireType == 4 { 11782 return fmt.Errorf("proto: Response: wiretype end group for non-group") 11783 } 11784 if fieldNum <= 0 { 11785 return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 11786 } 11787 switch fieldNum { 11788 case 1: 11789 if wireType != 2 { 11790 return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType) 11791 } 11792 var msglen int 11793 for shift := uint(0); ; shift += 7 { 11794 if shift >= 64 { 11795 return ErrIntOverflowTypes 11796 } 11797 if iNdEx >= l { 11798 return io.ErrUnexpectedEOF 11799 } 11800 b := dAtA[iNdEx] 11801 iNdEx++ 11802 msglen |= int(b&0x7F) << shift 11803 if b < 0x80 { 11804 break 11805 } 11806 } 11807 if msglen < 0 { 11808 return ErrInvalidLengthTypes 11809 } 11810 postIndex := iNdEx + msglen 11811 if postIndex < 0 { 11812 return ErrInvalidLengthTypes 11813 } 11814 if postIndex > l { 11815 return io.ErrUnexpectedEOF 11816 } 11817 v := &ResponseException{} 11818 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11819 return err 11820 } 11821 m.Value = &Response_Exception{v} 11822 iNdEx = postIndex 11823 case 2: 11824 if wireType != 2 { 11825 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 11826 } 11827 var msglen int 11828 for shift := uint(0); ; shift += 7 { 11829 if shift >= 64 { 11830 return ErrIntOverflowTypes 11831 } 11832 if iNdEx >= l { 11833 return io.ErrUnexpectedEOF 11834 } 11835 b := dAtA[iNdEx] 11836 iNdEx++ 11837 msglen |= int(b&0x7F) << shift 11838 if b < 0x80 { 11839 break 11840 } 11841 } 11842 if msglen < 0 { 11843 return ErrInvalidLengthTypes 11844 } 11845 postIndex := iNdEx + msglen 11846 if postIndex < 0 { 11847 return ErrInvalidLengthTypes 11848 } 11849 if postIndex > l { 11850 return io.ErrUnexpectedEOF 11851 } 11852 v := &ResponseEcho{} 11853 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11854 return err 11855 } 11856 m.Value = &Response_Echo{v} 11857 iNdEx = postIndex 11858 case 3: 11859 if wireType != 2 { 11860 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 11861 } 11862 var msglen int 11863 for shift := uint(0); ; shift += 7 { 11864 if shift >= 64 { 11865 return ErrIntOverflowTypes 11866 } 11867 if iNdEx >= l { 11868 return io.ErrUnexpectedEOF 11869 } 11870 b := dAtA[iNdEx] 11871 iNdEx++ 11872 msglen |= int(b&0x7F) << shift 11873 if b < 0x80 { 11874 break 11875 } 11876 } 11877 if msglen < 0 { 11878 return ErrInvalidLengthTypes 11879 } 11880 postIndex := iNdEx + msglen 11881 if postIndex < 0 { 11882 return ErrInvalidLengthTypes 11883 } 11884 if postIndex > l { 11885 return io.ErrUnexpectedEOF 11886 } 11887 v := &ResponseFlush{} 11888 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11889 return err 11890 } 11891 m.Value = &Response_Flush{v} 11892 iNdEx = postIndex 11893 case 4: 11894 if wireType != 2 { 11895 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 11896 } 11897 var msglen int 11898 for shift := uint(0); ; shift += 7 { 11899 if shift >= 64 { 11900 return ErrIntOverflowTypes 11901 } 11902 if iNdEx >= l { 11903 return io.ErrUnexpectedEOF 11904 } 11905 b := dAtA[iNdEx] 11906 iNdEx++ 11907 msglen |= int(b&0x7F) << shift 11908 if b < 0x80 { 11909 break 11910 } 11911 } 11912 if msglen < 0 { 11913 return ErrInvalidLengthTypes 11914 } 11915 postIndex := iNdEx + msglen 11916 if postIndex < 0 { 11917 return ErrInvalidLengthTypes 11918 } 11919 if postIndex > l { 11920 return io.ErrUnexpectedEOF 11921 } 11922 v := &ResponseInfo{} 11923 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11924 return err 11925 } 11926 m.Value = &Response_Info{v} 11927 iNdEx = postIndex 11928 case 5: 11929 if wireType != 2 { 11930 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 11931 } 11932 var msglen int 11933 for shift := uint(0); ; shift += 7 { 11934 if shift >= 64 { 11935 return ErrIntOverflowTypes 11936 } 11937 if iNdEx >= l { 11938 return io.ErrUnexpectedEOF 11939 } 11940 b := dAtA[iNdEx] 11941 iNdEx++ 11942 msglen |= int(b&0x7F) << shift 11943 if b < 0x80 { 11944 break 11945 } 11946 } 11947 if msglen < 0 { 11948 return ErrInvalidLengthTypes 11949 } 11950 postIndex := iNdEx + msglen 11951 if postIndex < 0 { 11952 return ErrInvalidLengthTypes 11953 } 11954 if postIndex > l { 11955 return io.ErrUnexpectedEOF 11956 } 11957 v := &ResponseSetOption{} 11958 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11959 return err 11960 } 11961 m.Value = &Response_SetOption{v} 11962 iNdEx = postIndex 11963 case 6: 11964 if wireType != 2 { 11965 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 11966 } 11967 var msglen int 11968 for shift := uint(0); ; shift += 7 { 11969 if shift >= 64 { 11970 return ErrIntOverflowTypes 11971 } 11972 if iNdEx >= l { 11973 return io.ErrUnexpectedEOF 11974 } 11975 b := dAtA[iNdEx] 11976 iNdEx++ 11977 msglen |= int(b&0x7F) << shift 11978 if b < 0x80 { 11979 break 11980 } 11981 } 11982 if msglen < 0 { 11983 return ErrInvalidLengthTypes 11984 } 11985 postIndex := iNdEx + msglen 11986 if postIndex < 0 { 11987 return ErrInvalidLengthTypes 11988 } 11989 if postIndex > l { 11990 return io.ErrUnexpectedEOF 11991 } 11992 v := &ResponseInitChain{} 11993 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11994 return err 11995 } 11996 m.Value = &Response_InitChain{v} 11997 iNdEx = postIndex 11998 case 7: 11999 if wireType != 2 { 12000 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 12001 } 12002 var msglen int 12003 for shift := uint(0); ; shift += 7 { 12004 if shift >= 64 { 12005 return ErrIntOverflowTypes 12006 } 12007 if iNdEx >= l { 12008 return io.ErrUnexpectedEOF 12009 } 12010 b := dAtA[iNdEx] 12011 iNdEx++ 12012 msglen |= int(b&0x7F) << shift 12013 if b < 0x80 { 12014 break 12015 } 12016 } 12017 if msglen < 0 { 12018 return ErrInvalidLengthTypes 12019 } 12020 postIndex := iNdEx + msglen 12021 if postIndex < 0 { 12022 return ErrInvalidLengthTypes 12023 } 12024 if postIndex > l { 12025 return io.ErrUnexpectedEOF 12026 } 12027 v := &ResponseQuery{} 12028 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12029 return err 12030 } 12031 m.Value = &Response_Query{v} 12032 iNdEx = postIndex 12033 case 8: 12034 if wireType != 2 { 12035 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 12036 } 12037 var msglen int 12038 for shift := uint(0); ; shift += 7 { 12039 if shift >= 64 { 12040 return ErrIntOverflowTypes 12041 } 12042 if iNdEx >= l { 12043 return io.ErrUnexpectedEOF 12044 } 12045 b := dAtA[iNdEx] 12046 iNdEx++ 12047 msglen |= int(b&0x7F) << shift 12048 if b < 0x80 { 12049 break 12050 } 12051 } 12052 if msglen < 0 { 12053 return ErrInvalidLengthTypes 12054 } 12055 postIndex := iNdEx + msglen 12056 if postIndex < 0 { 12057 return ErrInvalidLengthTypes 12058 } 12059 if postIndex > l { 12060 return io.ErrUnexpectedEOF 12061 } 12062 v := &ResponseBeginBlock{} 12063 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12064 return err 12065 } 12066 m.Value = &Response_BeginBlock{v} 12067 iNdEx = postIndex 12068 case 9: 12069 if wireType != 2 { 12070 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 12071 } 12072 var msglen int 12073 for shift := uint(0); ; shift += 7 { 12074 if shift >= 64 { 12075 return ErrIntOverflowTypes 12076 } 12077 if iNdEx >= l { 12078 return io.ErrUnexpectedEOF 12079 } 12080 b := dAtA[iNdEx] 12081 iNdEx++ 12082 msglen |= int(b&0x7F) << shift 12083 if b < 0x80 { 12084 break 12085 } 12086 } 12087 if msglen < 0 { 12088 return ErrInvalidLengthTypes 12089 } 12090 postIndex := iNdEx + msglen 12091 if postIndex < 0 { 12092 return ErrInvalidLengthTypes 12093 } 12094 if postIndex > l { 12095 return io.ErrUnexpectedEOF 12096 } 12097 v := &ResponseCheckTx{} 12098 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12099 return err 12100 } 12101 m.Value = &Response_CheckTx{v} 12102 iNdEx = postIndex 12103 case 10: 12104 if wireType != 2 { 12105 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 12106 } 12107 var msglen int 12108 for shift := uint(0); ; shift += 7 { 12109 if shift >= 64 { 12110 return ErrIntOverflowTypes 12111 } 12112 if iNdEx >= l { 12113 return io.ErrUnexpectedEOF 12114 } 12115 b := dAtA[iNdEx] 12116 iNdEx++ 12117 msglen |= int(b&0x7F) << shift 12118 if b < 0x80 { 12119 break 12120 } 12121 } 12122 if msglen < 0 { 12123 return ErrInvalidLengthTypes 12124 } 12125 postIndex := iNdEx + msglen 12126 if postIndex < 0 { 12127 return ErrInvalidLengthTypes 12128 } 12129 if postIndex > l { 12130 return io.ErrUnexpectedEOF 12131 } 12132 v := &ResponseDeliverTx{} 12133 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12134 return err 12135 } 12136 m.Value = &Response_DeliverTx{v} 12137 iNdEx = postIndex 12138 case 11: 12139 if wireType != 2 { 12140 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 12141 } 12142 var msglen int 12143 for shift := uint(0); ; shift += 7 { 12144 if shift >= 64 { 12145 return ErrIntOverflowTypes 12146 } 12147 if iNdEx >= l { 12148 return io.ErrUnexpectedEOF 12149 } 12150 b := dAtA[iNdEx] 12151 iNdEx++ 12152 msglen |= int(b&0x7F) << shift 12153 if b < 0x80 { 12154 break 12155 } 12156 } 12157 if msglen < 0 { 12158 return ErrInvalidLengthTypes 12159 } 12160 postIndex := iNdEx + msglen 12161 if postIndex < 0 { 12162 return ErrInvalidLengthTypes 12163 } 12164 if postIndex > l { 12165 return io.ErrUnexpectedEOF 12166 } 12167 v := &ResponseEndBlock{} 12168 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12169 return err 12170 } 12171 m.Value = &Response_EndBlock{v} 12172 iNdEx = postIndex 12173 case 12: 12174 if wireType != 2 { 12175 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 12176 } 12177 var msglen int 12178 for shift := uint(0); ; shift += 7 { 12179 if shift >= 64 { 12180 return ErrIntOverflowTypes 12181 } 12182 if iNdEx >= l { 12183 return io.ErrUnexpectedEOF 12184 } 12185 b := dAtA[iNdEx] 12186 iNdEx++ 12187 msglen |= int(b&0x7F) << shift 12188 if b < 0x80 { 12189 break 12190 } 12191 } 12192 if msglen < 0 { 12193 return ErrInvalidLengthTypes 12194 } 12195 postIndex := iNdEx + msglen 12196 if postIndex < 0 { 12197 return ErrInvalidLengthTypes 12198 } 12199 if postIndex > l { 12200 return io.ErrUnexpectedEOF 12201 } 12202 v := &ResponseCommit{} 12203 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12204 return err 12205 } 12206 m.Value = &Response_Commit{v} 12207 iNdEx = postIndex 12208 default: 12209 iNdEx = preIndex 12210 skippy, err := skipTypes(dAtA[iNdEx:]) 12211 if err != nil { 12212 return err 12213 } 12214 if (skippy < 0) || (iNdEx+skippy) < 0 { 12215 return ErrInvalidLengthTypes 12216 } 12217 if (iNdEx + skippy) > l { 12218 return io.ErrUnexpectedEOF 12219 } 12220 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12221 iNdEx += skippy 12222 } 12223 } 12224 12225 if iNdEx > l { 12226 return io.ErrUnexpectedEOF 12227 } 12228 return nil 12229 } 12230 func (m *ResponseException) Unmarshal(dAtA []byte) error { 12231 l := len(dAtA) 12232 iNdEx := 0 12233 for iNdEx < l { 12234 preIndex := iNdEx 12235 var wire uint64 12236 for shift := uint(0); ; shift += 7 { 12237 if shift >= 64 { 12238 return ErrIntOverflowTypes 12239 } 12240 if iNdEx >= l { 12241 return io.ErrUnexpectedEOF 12242 } 12243 b := dAtA[iNdEx] 12244 iNdEx++ 12245 wire |= uint64(b&0x7F) << shift 12246 if b < 0x80 { 12247 break 12248 } 12249 } 12250 fieldNum := int32(wire >> 3) 12251 wireType := int(wire & 0x7) 12252 if wireType == 4 { 12253 return fmt.Errorf("proto: ResponseException: wiretype end group for non-group") 12254 } 12255 if fieldNum <= 0 { 12256 return fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire) 12257 } 12258 switch fieldNum { 12259 case 1: 12260 if wireType != 2 { 12261 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 12262 } 12263 var stringLen uint64 12264 for shift := uint(0); ; shift += 7 { 12265 if shift >= 64 { 12266 return ErrIntOverflowTypes 12267 } 12268 if iNdEx >= l { 12269 return io.ErrUnexpectedEOF 12270 } 12271 b := dAtA[iNdEx] 12272 iNdEx++ 12273 stringLen |= uint64(b&0x7F) << shift 12274 if b < 0x80 { 12275 break 12276 } 12277 } 12278 intStringLen := int(stringLen) 12279 if intStringLen < 0 { 12280 return ErrInvalidLengthTypes 12281 } 12282 postIndex := iNdEx + intStringLen 12283 if postIndex < 0 { 12284 return ErrInvalidLengthTypes 12285 } 12286 if postIndex > l { 12287 return io.ErrUnexpectedEOF 12288 } 12289 m.Error = string(dAtA[iNdEx:postIndex]) 12290 iNdEx = postIndex 12291 default: 12292 iNdEx = preIndex 12293 skippy, err := skipTypes(dAtA[iNdEx:]) 12294 if err != nil { 12295 return err 12296 } 12297 if (skippy < 0) || (iNdEx+skippy) < 0 { 12298 return ErrInvalidLengthTypes 12299 } 12300 if (iNdEx + skippy) > l { 12301 return io.ErrUnexpectedEOF 12302 } 12303 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12304 iNdEx += skippy 12305 } 12306 } 12307 12308 if iNdEx > l { 12309 return io.ErrUnexpectedEOF 12310 } 12311 return nil 12312 } 12313 func (m *ResponseEcho) Unmarshal(dAtA []byte) error { 12314 l := len(dAtA) 12315 iNdEx := 0 12316 for iNdEx < l { 12317 preIndex := iNdEx 12318 var wire uint64 12319 for shift := uint(0); ; shift += 7 { 12320 if shift >= 64 { 12321 return ErrIntOverflowTypes 12322 } 12323 if iNdEx >= l { 12324 return io.ErrUnexpectedEOF 12325 } 12326 b := dAtA[iNdEx] 12327 iNdEx++ 12328 wire |= uint64(b&0x7F) << shift 12329 if b < 0x80 { 12330 break 12331 } 12332 } 12333 fieldNum := int32(wire >> 3) 12334 wireType := int(wire & 0x7) 12335 if wireType == 4 { 12336 return fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group") 12337 } 12338 if fieldNum <= 0 { 12339 return fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire) 12340 } 12341 switch fieldNum { 12342 case 1: 12343 if wireType != 2 { 12344 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 12345 } 12346 var stringLen uint64 12347 for shift := uint(0); ; shift += 7 { 12348 if shift >= 64 { 12349 return ErrIntOverflowTypes 12350 } 12351 if iNdEx >= l { 12352 return io.ErrUnexpectedEOF 12353 } 12354 b := dAtA[iNdEx] 12355 iNdEx++ 12356 stringLen |= uint64(b&0x7F) << shift 12357 if b < 0x80 { 12358 break 12359 } 12360 } 12361 intStringLen := int(stringLen) 12362 if intStringLen < 0 { 12363 return ErrInvalidLengthTypes 12364 } 12365 postIndex := iNdEx + intStringLen 12366 if postIndex < 0 { 12367 return ErrInvalidLengthTypes 12368 } 12369 if postIndex > l { 12370 return io.ErrUnexpectedEOF 12371 } 12372 m.Message = string(dAtA[iNdEx:postIndex]) 12373 iNdEx = postIndex 12374 default: 12375 iNdEx = preIndex 12376 skippy, err := skipTypes(dAtA[iNdEx:]) 12377 if err != nil { 12378 return err 12379 } 12380 if (skippy < 0) || (iNdEx+skippy) < 0 { 12381 return ErrInvalidLengthTypes 12382 } 12383 if (iNdEx + skippy) > l { 12384 return io.ErrUnexpectedEOF 12385 } 12386 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12387 iNdEx += skippy 12388 } 12389 } 12390 12391 if iNdEx > l { 12392 return io.ErrUnexpectedEOF 12393 } 12394 return nil 12395 } 12396 func (m *ResponseFlush) Unmarshal(dAtA []byte) error { 12397 l := len(dAtA) 12398 iNdEx := 0 12399 for iNdEx < l { 12400 preIndex := iNdEx 12401 var wire uint64 12402 for shift := uint(0); ; shift += 7 { 12403 if shift >= 64 { 12404 return ErrIntOverflowTypes 12405 } 12406 if iNdEx >= l { 12407 return io.ErrUnexpectedEOF 12408 } 12409 b := dAtA[iNdEx] 12410 iNdEx++ 12411 wire |= uint64(b&0x7F) << shift 12412 if b < 0x80 { 12413 break 12414 } 12415 } 12416 fieldNum := int32(wire >> 3) 12417 wireType := int(wire & 0x7) 12418 if wireType == 4 { 12419 return fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group") 12420 } 12421 if fieldNum <= 0 { 12422 return fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire) 12423 } 12424 switch fieldNum { 12425 default: 12426 iNdEx = preIndex 12427 skippy, err := skipTypes(dAtA[iNdEx:]) 12428 if err != nil { 12429 return err 12430 } 12431 if (skippy < 0) || (iNdEx+skippy) < 0 { 12432 return ErrInvalidLengthTypes 12433 } 12434 if (iNdEx + skippy) > l { 12435 return io.ErrUnexpectedEOF 12436 } 12437 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12438 iNdEx += skippy 12439 } 12440 } 12441 12442 if iNdEx > l { 12443 return io.ErrUnexpectedEOF 12444 } 12445 return nil 12446 } 12447 func (m *ResponseInfo) Unmarshal(dAtA []byte) error { 12448 l := len(dAtA) 12449 iNdEx := 0 12450 for iNdEx < l { 12451 preIndex := iNdEx 12452 var wire uint64 12453 for shift := uint(0); ; shift += 7 { 12454 if shift >= 64 { 12455 return ErrIntOverflowTypes 12456 } 12457 if iNdEx >= l { 12458 return io.ErrUnexpectedEOF 12459 } 12460 b := dAtA[iNdEx] 12461 iNdEx++ 12462 wire |= uint64(b&0x7F) << shift 12463 if b < 0x80 { 12464 break 12465 } 12466 } 12467 fieldNum := int32(wire >> 3) 12468 wireType := int(wire & 0x7) 12469 if wireType == 4 { 12470 return fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group") 12471 } 12472 if fieldNum <= 0 { 12473 return fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire) 12474 } 12475 switch fieldNum { 12476 case 1: 12477 if wireType != 2 { 12478 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 12479 } 12480 var stringLen uint64 12481 for shift := uint(0); ; shift += 7 { 12482 if shift >= 64 { 12483 return ErrIntOverflowTypes 12484 } 12485 if iNdEx >= l { 12486 return io.ErrUnexpectedEOF 12487 } 12488 b := dAtA[iNdEx] 12489 iNdEx++ 12490 stringLen |= uint64(b&0x7F) << shift 12491 if b < 0x80 { 12492 break 12493 } 12494 } 12495 intStringLen := int(stringLen) 12496 if intStringLen < 0 { 12497 return ErrInvalidLengthTypes 12498 } 12499 postIndex := iNdEx + intStringLen 12500 if postIndex < 0 { 12501 return ErrInvalidLengthTypes 12502 } 12503 if postIndex > l { 12504 return io.ErrUnexpectedEOF 12505 } 12506 m.Data = string(dAtA[iNdEx:postIndex]) 12507 iNdEx = postIndex 12508 case 2: 12509 if wireType != 2 { 12510 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 12511 } 12512 var stringLen uint64 12513 for shift := uint(0); ; shift += 7 { 12514 if shift >= 64 { 12515 return ErrIntOverflowTypes 12516 } 12517 if iNdEx >= l { 12518 return io.ErrUnexpectedEOF 12519 } 12520 b := dAtA[iNdEx] 12521 iNdEx++ 12522 stringLen |= uint64(b&0x7F) << shift 12523 if b < 0x80 { 12524 break 12525 } 12526 } 12527 intStringLen := int(stringLen) 12528 if intStringLen < 0 { 12529 return ErrInvalidLengthTypes 12530 } 12531 postIndex := iNdEx + intStringLen 12532 if postIndex < 0 { 12533 return ErrInvalidLengthTypes 12534 } 12535 if postIndex > l { 12536 return io.ErrUnexpectedEOF 12537 } 12538 m.Version = string(dAtA[iNdEx:postIndex]) 12539 iNdEx = postIndex 12540 case 3: 12541 if wireType != 0 { 12542 return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType) 12543 } 12544 m.AppVersion = 0 12545 for shift := uint(0); ; shift += 7 { 12546 if shift >= 64 { 12547 return ErrIntOverflowTypes 12548 } 12549 if iNdEx >= l { 12550 return io.ErrUnexpectedEOF 12551 } 12552 b := dAtA[iNdEx] 12553 iNdEx++ 12554 m.AppVersion |= uint64(b&0x7F) << shift 12555 if b < 0x80 { 12556 break 12557 } 12558 } 12559 case 4: 12560 if wireType != 0 { 12561 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType) 12562 } 12563 m.LastBlockHeight = 0 12564 for shift := uint(0); ; shift += 7 { 12565 if shift >= 64 { 12566 return ErrIntOverflowTypes 12567 } 12568 if iNdEx >= l { 12569 return io.ErrUnexpectedEOF 12570 } 12571 b := dAtA[iNdEx] 12572 iNdEx++ 12573 m.LastBlockHeight |= int64(b&0x7F) << shift 12574 if b < 0x80 { 12575 break 12576 } 12577 } 12578 case 5: 12579 if wireType != 2 { 12580 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType) 12581 } 12582 var byteLen int 12583 for shift := uint(0); ; shift += 7 { 12584 if shift >= 64 { 12585 return ErrIntOverflowTypes 12586 } 12587 if iNdEx >= l { 12588 return io.ErrUnexpectedEOF 12589 } 12590 b := dAtA[iNdEx] 12591 iNdEx++ 12592 byteLen |= int(b&0x7F) << shift 12593 if b < 0x80 { 12594 break 12595 } 12596 } 12597 if byteLen < 0 { 12598 return ErrInvalidLengthTypes 12599 } 12600 postIndex := iNdEx + byteLen 12601 if postIndex < 0 { 12602 return ErrInvalidLengthTypes 12603 } 12604 if postIndex > l { 12605 return io.ErrUnexpectedEOF 12606 } 12607 m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...) 12608 if m.LastBlockAppHash == nil { 12609 m.LastBlockAppHash = []byte{} 12610 } 12611 iNdEx = postIndex 12612 default: 12613 iNdEx = preIndex 12614 skippy, err := skipTypes(dAtA[iNdEx:]) 12615 if err != nil { 12616 return err 12617 } 12618 if (skippy < 0) || (iNdEx+skippy) < 0 { 12619 return ErrInvalidLengthTypes 12620 } 12621 if (iNdEx + skippy) > l { 12622 return io.ErrUnexpectedEOF 12623 } 12624 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12625 iNdEx += skippy 12626 } 12627 } 12628 12629 if iNdEx > l { 12630 return io.ErrUnexpectedEOF 12631 } 12632 return nil 12633 } 12634 func (m *ResponseSetOption) Unmarshal(dAtA []byte) error { 12635 l := len(dAtA) 12636 iNdEx := 0 12637 for iNdEx < l { 12638 preIndex := iNdEx 12639 var wire uint64 12640 for shift := uint(0); ; shift += 7 { 12641 if shift >= 64 { 12642 return ErrIntOverflowTypes 12643 } 12644 if iNdEx >= l { 12645 return io.ErrUnexpectedEOF 12646 } 12647 b := dAtA[iNdEx] 12648 iNdEx++ 12649 wire |= uint64(b&0x7F) << shift 12650 if b < 0x80 { 12651 break 12652 } 12653 } 12654 fieldNum := int32(wire >> 3) 12655 wireType := int(wire & 0x7) 12656 if wireType == 4 { 12657 return fmt.Errorf("proto: ResponseSetOption: wiretype end group for non-group") 12658 } 12659 if fieldNum <= 0 { 12660 return fmt.Errorf("proto: ResponseSetOption: illegal tag %d (wire type %d)", fieldNum, wire) 12661 } 12662 switch fieldNum { 12663 case 1: 12664 if wireType != 0 { 12665 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 12666 } 12667 m.Code = 0 12668 for shift := uint(0); ; shift += 7 { 12669 if shift >= 64 { 12670 return ErrIntOverflowTypes 12671 } 12672 if iNdEx >= l { 12673 return io.ErrUnexpectedEOF 12674 } 12675 b := dAtA[iNdEx] 12676 iNdEx++ 12677 m.Code |= uint32(b&0x7F) << shift 12678 if b < 0x80 { 12679 break 12680 } 12681 } 12682 case 3: 12683 if wireType != 2 { 12684 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 12685 } 12686 var stringLen uint64 12687 for shift := uint(0); ; shift += 7 { 12688 if shift >= 64 { 12689 return ErrIntOverflowTypes 12690 } 12691 if iNdEx >= l { 12692 return io.ErrUnexpectedEOF 12693 } 12694 b := dAtA[iNdEx] 12695 iNdEx++ 12696 stringLen |= uint64(b&0x7F) << shift 12697 if b < 0x80 { 12698 break 12699 } 12700 } 12701 intStringLen := int(stringLen) 12702 if intStringLen < 0 { 12703 return ErrInvalidLengthTypes 12704 } 12705 postIndex := iNdEx + intStringLen 12706 if postIndex < 0 { 12707 return ErrInvalidLengthTypes 12708 } 12709 if postIndex > l { 12710 return io.ErrUnexpectedEOF 12711 } 12712 m.Log = string(dAtA[iNdEx:postIndex]) 12713 iNdEx = postIndex 12714 case 4: 12715 if wireType != 2 { 12716 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 12717 } 12718 var stringLen uint64 12719 for shift := uint(0); ; shift += 7 { 12720 if shift >= 64 { 12721 return ErrIntOverflowTypes 12722 } 12723 if iNdEx >= l { 12724 return io.ErrUnexpectedEOF 12725 } 12726 b := dAtA[iNdEx] 12727 iNdEx++ 12728 stringLen |= uint64(b&0x7F) << shift 12729 if b < 0x80 { 12730 break 12731 } 12732 } 12733 intStringLen := int(stringLen) 12734 if intStringLen < 0 { 12735 return ErrInvalidLengthTypes 12736 } 12737 postIndex := iNdEx + intStringLen 12738 if postIndex < 0 { 12739 return ErrInvalidLengthTypes 12740 } 12741 if postIndex > l { 12742 return io.ErrUnexpectedEOF 12743 } 12744 m.Info = string(dAtA[iNdEx:postIndex]) 12745 iNdEx = postIndex 12746 default: 12747 iNdEx = preIndex 12748 skippy, err := skipTypes(dAtA[iNdEx:]) 12749 if err != nil { 12750 return err 12751 } 12752 if (skippy < 0) || (iNdEx+skippy) < 0 { 12753 return ErrInvalidLengthTypes 12754 } 12755 if (iNdEx + skippy) > l { 12756 return io.ErrUnexpectedEOF 12757 } 12758 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12759 iNdEx += skippy 12760 } 12761 } 12762 12763 if iNdEx > l { 12764 return io.ErrUnexpectedEOF 12765 } 12766 return nil 12767 } 12768 func (m *ResponseInitChain) Unmarshal(dAtA []byte) error { 12769 l := len(dAtA) 12770 iNdEx := 0 12771 for iNdEx < l { 12772 preIndex := iNdEx 12773 var wire uint64 12774 for shift := uint(0); ; shift += 7 { 12775 if shift >= 64 { 12776 return ErrIntOverflowTypes 12777 } 12778 if iNdEx >= l { 12779 return io.ErrUnexpectedEOF 12780 } 12781 b := dAtA[iNdEx] 12782 iNdEx++ 12783 wire |= uint64(b&0x7F) << shift 12784 if b < 0x80 { 12785 break 12786 } 12787 } 12788 fieldNum := int32(wire >> 3) 12789 wireType := int(wire & 0x7) 12790 if wireType == 4 { 12791 return fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group") 12792 } 12793 if fieldNum <= 0 { 12794 return fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire) 12795 } 12796 switch fieldNum { 12797 case 1: 12798 if wireType != 2 { 12799 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) 12800 } 12801 var msglen int 12802 for shift := uint(0); ; shift += 7 { 12803 if shift >= 64 { 12804 return ErrIntOverflowTypes 12805 } 12806 if iNdEx >= l { 12807 return io.ErrUnexpectedEOF 12808 } 12809 b := dAtA[iNdEx] 12810 iNdEx++ 12811 msglen |= int(b&0x7F) << shift 12812 if b < 0x80 { 12813 break 12814 } 12815 } 12816 if msglen < 0 { 12817 return ErrInvalidLengthTypes 12818 } 12819 postIndex := iNdEx + msglen 12820 if postIndex < 0 { 12821 return ErrInvalidLengthTypes 12822 } 12823 if postIndex > l { 12824 return io.ErrUnexpectedEOF 12825 } 12826 if m.ConsensusParams == nil { 12827 m.ConsensusParams = &ConsensusParams{} 12828 } 12829 if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12830 return err 12831 } 12832 iNdEx = postIndex 12833 case 2: 12834 if wireType != 2 { 12835 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 12836 } 12837 var msglen int 12838 for shift := uint(0); ; shift += 7 { 12839 if shift >= 64 { 12840 return ErrIntOverflowTypes 12841 } 12842 if iNdEx >= l { 12843 return io.ErrUnexpectedEOF 12844 } 12845 b := dAtA[iNdEx] 12846 iNdEx++ 12847 msglen |= int(b&0x7F) << shift 12848 if b < 0x80 { 12849 break 12850 } 12851 } 12852 if msglen < 0 { 12853 return ErrInvalidLengthTypes 12854 } 12855 postIndex := iNdEx + msglen 12856 if postIndex < 0 { 12857 return ErrInvalidLengthTypes 12858 } 12859 if postIndex > l { 12860 return io.ErrUnexpectedEOF 12861 } 12862 m.Validators = append(m.Validators, ValidatorUpdate{}) 12863 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12864 return err 12865 } 12866 iNdEx = postIndex 12867 default: 12868 iNdEx = preIndex 12869 skippy, err := skipTypes(dAtA[iNdEx:]) 12870 if err != nil { 12871 return err 12872 } 12873 if (skippy < 0) || (iNdEx+skippy) < 0 { 12874 return ErrInvalidLengthTypes 12875 } 12876 if (iNdEx + skippy) > l { 12877 return io.ErrUnexpectedEOF 12878 } 12879 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12880 iNdEx += skippy 12881 } 12882 } 12883 12884 if iNdEx > l { 12885 return io.ErrUnexpectedEOF 12886 } 12887 return nil 12888 } 12889 func (m *ResponseQuery) Unmarshal(dAtA []byte) error { 12890 l := len(dAtA) 12891 iNdEx := 0 12892 for iNdEx < l { 12893 preIndex := iNdEx 12894 var wire uint64 12895 for shift := uint(0); ; shift += 7 { 12896 if shift >= 64 { 12897 return ErrIntOverflowTypes 12898 } 12899 if iNdEx >= l { 12900 return io.ErrUnexpectedEOF 12901 } 12902 b := dAtA[iNdEx] 12903 iNdEx++ 12904 wire |= uint64(b&0x7F) << shift 12905 if b < 0x80 { 12906 break 12907 } 12908 } 12909 fieldNum := int32(wire >> 3) 12910 wireType := int(wire & 0x7) 12911 if wireType == 4 { 12912 return fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group") 12913 } 12914 if fieldNum <= 0 { 12915 return fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire) 12916 } 12917 switch fieldNum { 12918 case 1: 12919 if wireType != 0 { 12920 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 12921 } 12922 m.Code = 0 12923 for shift := uint(0); ; shift += 7 { 12924 if shift >= 64 { 12925 return ErrIntOverflowTypes 12926 } 12927 if iNdEx >= l { 12928 return io.ErrUnexpectedEOF 12929 } 12930 b := dAtA[iNdEx] 12931 iNdEx++ 12932 m.Code |= uint32(b&0x7F) << shift 12933 if b < 0x80 { 12934 break 12935 } 12936 } 12937 case 3: 12938 if wireType != 2 { 12939 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 12940 } 12941 var stringLen uint64 12942 for shift := uint(0); ; shift += 7 { 12943 if shift >= 64 { 12944 return ErrIntOverflowTypes 12945 } 12946 if iNdEx >= l { 12947 return io.ErrUnexpectedEOF 12948 } 12949 b := dAtA[iNdEx] 12950 iNdEx++ 12951 stringLen |= uint64(b&0x7F) << shift 12952 if b < 0x80 { 12953 break 12954 } 12955 } 12956 intStringLen := int(stringLen) 12957 if intStringLen < 0 { 12958 return ErrInvalidLengthTypes 12959 } 12960 postIndex := iNdEx + intStringLen 12961 if postIndex < 0 { 12962 return ErrInvalidLengthTypes 12963 } 12964 if postIndex > l { 12965 return io.ErrUnexpectedEOF 12966 } 12967 m.Log = string(dAtA[iNdEx:postIndex]) 12968 iNdEx = postIndex 12969 case 4: 12970 if wireType != 2 { 12971 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 12972 } 12973 var stringLen uint64 12974 for shift := uint(0); ; shift += 7 { 12975 if shift >= 64 { 12976 return ErrIntOverflowTypes 12977 } 12978 if iNdEx >= l { 12979 return io.ErrUnexpectedEOF 12980 } 12981 b := dAtA[iNdEx] 12982 iNdEx++ 12983 stringLen |= uint64(b&0x7F) << shift 12984 if b < 0x80 { 12985 break 12986 } 12987 } 12988 intStringLen := int(stringLen) 12989 if intStringLen < 0 { 12990 return ErrInvalidLengthTypes 12991 } 12992 postIndex := iNdEx + intStringLen 12993 if postIndex < 0 { 12994 return ErrInvalidLengthTypes 12995 } 12996 if postIndex > l { 12997 return io.ErrUnexpectedEOF 12998 } 12999 m.Info = string(dAtA[iNdEx:postIndex]) 13000 iNdEx = postIndex 13001 case 5: 13002 if wireType != 0 { 13003 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 13004 } 13005 m.Index = 0 13006 for shift := uint(0); ; shift += 7 { 13007 if shift >= 64 { 13008 return ErrIntOverflowTypes 13009 } 13010 if iNdEx >= l { 13011 return io.ErrUnexpectedEOF 13012 } 13013 b := dAtA[iNdEx] 13014 iNdEx++ 13015 m.Index |= int64(b&0x7F) << shift 13016 if b < 0x80 { 13017 break 13018 } 13019 } 13020 case 6: 13021 if wireType != 2 { 13022 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 13023 } 13024 var byteLen int 13025 for shift := uint(0); ; shift += 7 { 13026 if shift >= 64 { 13027 return ErrIntOverflowTypes 13028 } 13029 if iNdEx >= l { 13030 return io.ErrUnexpectedEOF 13031 } 13032 b := dAtA[iNdEx] 13033 iNdEx++ 13034 byteLen |= int(b&0x7F) << shift 13035 if b < 0x80 { 13036 break 13037 } 13038 } 13039 if byteLen < 0 { 13040 return ErrInvalidLengthTypes 13041 } 13042 postIndex := iNdEx + byteLen 13043 if postIndex < 0 { 13044 return ErrInvalidLengthTypes 13045 } 13046 if postIndex > l { 13047 return io.ErrUnexpectedEOF 13048 } 13049 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) 13050 if m.Key == nil { 13051 m.Key = []byte{} 13052 } 13053 iNdEx = postIndex 13054 case 7: 13055 if wireType != 2 { 13056 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 13057 } 13058 var byteLen int 13059 for shift := uint(0); ; shift += 7 { 13060 if shift >= 64 { 13061 return ErrIntOverflowTypes 13062 } 13063 if iNdEx >= l { 13064 return io.ErrUnexpectedEOF 13065 } 13066 b := dAtA[iNdEx] 13067 iNdEx++ 13068 byteLen |= int(b&0x7F) << shift 13069 if b < 0x80 { 13070 break 13071 } 13072 } 13073 if byteLen < 0 { 13074 return ErrInvalidLengthTypes 13075 } 13076 postIndex := iNdEx + byteLen 13077 if postIndex < 0 { 13078 return ErrInvalidLengthTypes 13079 } 13080 if postIndex > l { 13081 return io.ErrUnexpectedEOF 13082 } 13083 m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) 13084 if m.Value == nil { 13085 m.Value = []byte{} 13086 } 13087 iNdEx = postIndex 13088 case 8: 13089 if wireType != 2 { 13090 return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) 13091 } 13092 var msglen int 13093 for shift := uint(0); ; shift += 7 { 13094 if shift >= 64 { 13095 return ErrIntOverflowTypes 13096 } 13097 if iNdEx >= l { 13098 return io.ErrUnexpectedEOF 13099 } 13100 b := dAtA[iNdEx] 13101 iNdEx++ 13102 msglen |= int(b&0x7F) << shift 13103 if b < 0x80 { 13104 break 13105 } 13106 } 13107 if msglen < 0 { 13108 return ErrInvalidLengthTypes 13109 } 13110 postIndex := iNdEx + msglen 13111 if postIndex < 0 { 13112 return ErrInvalidLengthTypes 13113 } 13114 if postIndex > l { 13115 return io.ErrUnexpectedEOF 13116 } 13117 if m.Proof == nil { 13118 m.Proof = &merkle.Proof{} 13119 } 13120 if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13121 return err 13122 } 13123 iNdEx = postIndex 13124 case 9: 13125 if wireType != 0 { 13126 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 13127 } 13128 m.Height = 0 13129 for shift := uint(0); ; shift += 7 { 13130 if shift >= 64 { 13131 return ErrIntOverflowTypes 13132 } 13133 if iNdEx >= l { 13134 return io.ErrUnexpectedEOF 13135 } 13136 b := dAtA[iNdEx] 13137 iNdEx++ 13138 m.Height |= int64(b&0x7F) << shift 13139 if b < 0x80 { 13140 break 13141 } 13142 } 13143 case 10: 13144 if wireType != 2 { 13145 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 13146 } 13147 var stringLen uint64 13148 for shift := uint(0); ; shift += 7 { 13149 if shift >= 64 { 13150 return ErrIntOverflowTypes 13151 } 13152 if iNdEx >= l { 13153 return io.ErrUnexpectedEOF 13154 } 13155 b := dAtA[iNdEx] 13156 iNdEx++ 13157 stringLen |= uint64(b&0x7F) << shift 13158 if b < 0x80 { 13159 break 13160 } 13161 } 13162 intStringLen := int(stringLen) 13163 if intStringLen < 0 { 13164 return ErrInvalidLengthTypes 13165 } 13166 postIndex := iNdEx + intStringLen 13167 if postIndex < 0 { 13168 return ErrInvalidLengthTypes 13169 } 13170 if postIndex > l { 13171 return io.ErrUnexpectedEOF 13172 } 13173 m.Codespace = string(dAtA[iNdEx:postIndex]) 13174 iNdEx = postIndex 13175 default: 13176 iNdEx = preIndex 13177 skippy, err := skipTypes(dAtA[iNdEx:]) 13178 if err != nil { 13179 return err 13180 } 13181 if (skippy < 0) || (iNdEx+skippy) < 0 { 13182 return ErrInvalidLengthTypes 13183 } 13184 if (iNdEx + skippy) > l { 13185 return io.ErrUnexpectedEOF 13186 } 13187 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13188 iNdEx += skippy 13189 } 13190 } 13191 13192 if iNdEx > l { 13193 return io.ErrUnexpectedEOF 13194 } 13195 return nil 13196 } 13197 func (m *ResponseBeginBlock) Unmarshal(dAtA []byte) error { 13198 l := len(dAtA) 13199 iNdEx := 0 13200 for iNdEx < l { 13201 preIndex := iNdEx 13202 var wire uint64 13203 for shift := uint(0); ; shift += 7 { 13204 if shift >= 64 { 13205 return ErrIntOverflowTypes 13206 } 13207 if iNdEx >= l { 13208 return io.ErrUnexpectedEOF 13209 } 13210 b := dAtA[iNdEx] 13211 iNdEx++ 13212 wire |= uint64(b&0x7F) << shift 13213 if b < 0x80 { 13214 break 13215 } 13216 } 13217 fieldNum := int32(wire >> 3) 13218 wireType := int(wire & 0x7) 13219 if wireType == 4 { 13220 return fmt.Errorf("proto: ResponseBeginBlock: wiretype end group for non-group") 13221 } 13222 if fieldNum <= 0 { 13223 return fmt.Errorf("proto: ResponseBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 13224 } 13225 switch fieldNum { 13226 case 1: 13227 if wireType != 2 { 13228 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13229 } 13230 var msglen int 13231 for shift := uint(0); ; shift += 7 { 13232 if shift >= 64 { 13233 return ErrIntOverflowTypes 13234 } 13235 if iNdEx >= l { 13236 return io.ErrUnexpectedEOF 13237 } 13238 b := dAtA[iNdEx] 13239 iNdEx++ 13240 msglen |= int(b&0x7F) << shift 13241 if b < 0x80 { 13242 break 13243 } 13244 } 13245 if msglen < 0 { 13246 return ErrInvalidLengthTypes 13247 } 13248 postIndex := iNdEx + msglen 13249 if postIndex < 0 { 13250 return ErrInvalidLengthTypes 13251 } 13252 if postIndex > l { 13253 return io.ErrUnexpectedEOF 13254 } 13255 m.Events = append(m.Events, Event{}) 13256 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13257 return err 13258 } 13259 iNdEx = postIndex 13260 default: 13261 iNdEx = preIndex 13262 skippy, err := skipTypes(dAtA[iNdEx:]) 13263 if err != nil { 13264 return err 13265 } 13266 if (skippy < 0) || (iNdEx+skippy) < 0 { 13267 return ErrInvalidLengthTypes 13268 } 13269 if (iNdEx + skippy) > l { 13270 return io.ErrUnexpectedEOF 13271 } 13272 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13273 iNdEx += skippy 13274 } 13275 } 13276 13277 if iNdEx > l { 13278 return io.ErrUnexpectedEOF 13279 } 13280 return nil 13281 } 13282 func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error { 13283 l := len(dAtA) 13284 iNdEx := 0 13285 for iNdEx < l { 13286 preIndex := iNdEx 13287 var wire uint64 13288 for shift := uint(0); ; shift += 7 { 13289 if shift >= 64 { 13290 return ErrIntOverflowTypes 13291 } 13292 if iNdEx >= l { 13293 return io.ErrUnexpectedEOF 13294 } 13295 b := dAtA[iNdEx] 13296 iNdEx++ 13297 wire |= uint64(b&0x7F) << shift 13298 if b < 0x80 { 13299 break 13300 } 13301 } 13302 fieldNum := int32(wire >> 3) 13303 wireType := int(wire & 0x7) 13304 if wireType == 4 { 13305 return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group") 13306 } 13307 if fieldNum <= 0 { 13308 return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 13309 } 13310 switch fieldNum { 13311 case 1: 13312 if wireType != 0 { 13313 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 13314 } 13315 m.Code = 0 13316 for shift := uint(0); ; shift += 7 { 13317 if shift >= 64 { 13318 return ErrIntOverflowTypes 13319 } 13320 if iNdEx >= l { 13321 return io.ErrUnexpectedEOF 13322 } 13323 b := dAtA[iNdEx] 13324 iNdEx++ 13325 m.Code |= uint32(b&0x7F) << shift 13326 if b < 0x80 { 13327 break 13328 } 13329 } 13330 case 2: 13331 if wireType != 2 { 13332 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 13333 } 13334 var byteLen int 13335 for shift := uint(0); ; shift += 7 { 13336 if shift >= 64 { 13337 return ErrIntOverflowTypes 13338 } 13339 if iNdEx >= l { 13340 return io.ErrUnexpectedEOF 13341 } 13342 b := dAtA[iNdEx] 13343 iNdEx++ 13344 byteLen |= int(b&0x7F) << shift 13345 if b < 0x80 { 13346 break 13347 } 13348 } 13349 if byteLen < 0 { 13350 return ErrInvalidLengthTypes 13351 } 13352 postIndex := iNdEx + byteLen 13353 if postIndex < 0 { 13354 return ErrInvalidLengthTypes 13355 } 13356 if postIndex > l { 13357 return io.ErrUnexpectedEOF 13358 } 13359 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 13360 if m.Data == nil { 13361 m.Data = []byte{} 13362 } 13363 iNdEx = postIndex 13364 case 3: 13365 if wireType != 2 { 13366 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 13367 } 13368 var stringLen uint64 13369 for shift := uint(0); ; shift += 7 { 13370 if shift >= 64 { 13371 return ErrIntOverflowTypes 13372 } 13373 if iNdEx >= l { 13374 return io.ErrUnexpectedEOF 13375 } 13376 b := dAtA[iNdEx] 13377 iNdEx++ 13378 stringLen |= uint64(b&0x7F) << shift 13379 if b < 0x80 { 13380 break 13381 } 13382 } 13383 intStringLen := int(stringLen) 13384 if intStringLen < 0 { 13385 return ErrInvalidLengthTypes 13386 } 13387 postIndex := iNdEx + intStringLen 13388 if postIndex < 0 { 13389 return ErrInvalidLengthTypes 13390 } 13391 if postIndex > l { 13392 return io.ErrUnexpectedEOF 13393 } 13394 m.Log = string(dAtA[iNdEx:postIndex]) 13395 iNdEx = postIndex 13396 case 4: 13397 if wireType != 2 { 13398 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 13399 } 13400 var stringLen uint64 13401 for shift := uint(0); ; shift += 7 { 13402 if shift >= 64 { 13403 return ErrIntOverflowTypes 13404 } 13405 if iNdEx >= l { 13406 return io.ErrUnexpectedEOF 13407 } 13408 b := dAtA[iNdEx] 13409 iNdEx++ 13410 stringLen |= uint64(b&0x7F) << shift 13411 if b < 0x80 { 13412 break 13413 } 13414 } 13415 intStringLen := int(stringLen) 13416 if intStringLen < 0 { 13417 return ErrInvalidLengthTypes 13418 } 13419 postIndex := iNdEx + intStringLen 13420 if postIndex < 0 { 13421 return ErrInvalidLengthTypes 13422 } 13423 if postIndex > l { 13424 return io.ErrUnexpectedEOF 13425 } 13426 m.Info = string(dAtA[iNdEx:postIndex]) 13427 iNdEx = postIndex 13428 case 5: 13429 if wireType != 0 { 13430 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 13431 } 13432 m.GasWanted = 0 13433 for shift := uint(0); ; shift += 7 { 13434 if shift >= 64 { 13435 return ErrIntOverflowTypes 13436 } 13437 if iNdEx >= l { 13438 return io.ErrUnexpectedEOF 13439 } 13440 b := dAtA[iNdEx] 13441 iNdEx++ 13442 m.GasWanted |= int64(b&0x7F) << shift 13443 if b < 0x80 { 13444 break 13445 } 13446 } 13447 case 6: 13448 if wireType != 0 { 13449 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 13450 } 13451 m.GasUsed = 0 13452 for shift := uint(0); ; shift += 7 { 13453 if shift >= 64 { 13454 return ErrIntOverflowTypes 13455 } 13456 if iNdEx >= l { 13457 return io.ErrUnexpectedEOF 13458 } 13459 b := dAtA[iNdEx] 13460 iNdEx++ 13461 m.GasUsed |= int64(b&0x7F) << shift 13462 if b < 0x80 { 13463 break 13464 } 13465 } 13466 case 7: 13467 if wireType != 2 { 13468 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13469 } 13470 var msglen int 13471 for shift := uint(0); ; shift += 7 { 13472 if shift >= 64 { 13473 return ErrIntOverflowTypes 13474 } 13475 if iNdEx >= l { 13476 return io.ErrUnexpectedEOF 13477 } 13478 b := dAtA[iNdEx] 13479 iNdEx++ 13480 msglen |= int(b&0x7F) << shift 13481 if b < 0x80 { 13482 break 13483 } 13484 } 13485 if msglen < 0 { 13486 return ErrInvalidLengthTypes 13487 } 13488 postIndex := iNdEx + msglen 13489 if postIndex < 0 { 13490 return ErrInvalidLengthTypes 13491 } 13492 if postIndex > l { 13493 return io.ErrUnexpectedEOF 13494 } 13495 m.Events = append(m.Events, Event{}) 13496 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13497 return err 13498 } 13499 iNdEx = postIndex 13500 case 8: 13501 if wireType != 2 { 13502 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 13503 } 13504 var stringLen uint64 13505 for shift := uint(0); ; shift += 7 { 13506 if shift >= 64 { 13507 return ErrIntOverflowTypes 13508 } 13509 if iNdEx >= l { 13510 return io.ErrUnexpectedEOF 13511 } 13512 b := dAtA[iNdEx] 13513 iNdEx++ 13514 stringLen |= uint64(b&0x7F) << shift 13515 if b < 0x80 { 13516 break 13517 } 13518 } 13519 intStringLen := int(stringLen) 13520 if intStringLen < 0 { 13521 return ErrInvalidLengthTypes 13522 } 13523 postIndex := iNdEx + intStringLen 13524 if postIndex < 0 { 13525 return ErrInvalidLengthTypes 13526 } 13527 if postIndex > l { 13528 return io.ErrUnexpectedEOF 13529 } 13530 m.Codespace = string(dAtA[iNdEx:postIndex]) 13531 iNdEx = postIndex 13532 default: 13533 iNdEx = preIndex 13534 skippy, err := skipTypes(dAtA[iNdEx:]) 13535 if err != nil { 13536 return err 13537 } 13538 if (skippy < 0) || (iNdEx+skippy) < 0 { 13539 return ErrInvalidLengthTypes 13540 } 13541 if (iNdEx + skippy) > l { 13542 return io.ErrUnexpectedEOF 13543 } 13544 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13545 iNdEx += skippy 13546 } 13547 } 13548 13549 if iNdEx > l { 13550 return io.ErrUnexpectedEOF 13551 } 13552 return nil 13553 } 13554 func (m *ResponseDeliverTx) Unmarshal(dAtA []byte) error { 13555 l := len(dAtA) 13556 iNdEx := 0 13557 for iNdEx < l { 13558 preIndex := iNdEx 13559 var wire uint64 13560 for shift := uint(0); ; shift += 7 { 13561 if shift >= 64 { 13562 return ErrIntOverflowTypes 13563 } 13564 if iNdEx >= l { 13565 return io.ErrUnexpectedEOF 13566 } 13567 b := dAtA[iNdEx] 13568 iNdEx++ 13569 wire |= uint64(b&0x7F) << shift 13570 if b < 0x80 { 13571 break 13572 } 13573 } 13574 fieldNum := int32(wire >> 3) 13575 wireType := int(wire & 0x7) 13576 if wireType == 4 { 13577 return fmt.Errorf("proto: ResponseDeliverTx: wiretype end group for non-group") 13578 } 13579 if fieldNum <= 0 { 13580 return fmt.Errorf("proto: ResponseDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire) 13581 } 13582 switch fieldNum { 13583 case 1: 13584 if wireType != 0 { 13585 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 13586 } 13587 m.Code = 0 13588 for shift := uint(0); ; shift += 7 { 13589 if shift >= 64 { 13590 return ErrIntOverflowTypes 13591 } 13592 if iNdEx >= l { 13593 return io.ErrUnexpectedEOF 13594 } 13595 b := dAtA[iNdEx] 13596 iNdEx++ 13597 m.Code |= uint32(b&0x7F) << shift 13598 if b < 0x80 { 13599 break 13600 } 13601 } 13602 case 2: 13603 if wireType != 2 { 13604 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 13605 } 13606 var byteLen int 13607 for shift := uint(0); ; shift += 7 { 13608 if shift >= 64 { 13609 return ErrIntOverflowTypes 13610 } 13611 if iNdEx >= l { 13612 return io.ErrUnexpectedEOF 13613 } 13614 b := dAtA[iNdEx] 13615 iNdEx++ 13616 byteLen |= int(b&0x7F) << shift 13617 if b < 0x80 { 13618 break 13619 } 13620 } 13621 if byteLen < 0 { 13622 return ErrInvalidLengthTypes 13623 } 13624 postIndex := iNdEx + byteLen 13625 if postIndex < 0 { 13626 return ErrInvalidLengthTypes 13627 } 13628 if postIndex > l { 13629 return io.ErrUnexpectedEOF 13630 } 13631 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 13632 if m.Data == nil { 13633 m.Data = []byte{} 13634 } 13635 iNdEx = postIndex 13636 case 3: 13637 if wireType != 2 { 13638 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 13639 } 13640 var stringLen uint64 13641 for shift := uint(0); ; shift += 7 { 13642 if shift >= 64 { 13643 return ErrIntOverflowTypes 13644 } 13645 if iNdEx >= l { 13646 return io.ErrUnexpectedEOF 13647 } 13648 b := dAtA[iNdEx] 13649 iNdEx++ 13650 stringLen |= uint64(b&0x7F) << shift 13651 if b < 0x80 { 13652 break 13653 } 13654 } 13655 intStringLen := int(stringLen) 13656 if intStringLen < 0 { 13657 return ErrInvalidLengthTypes 13658 } 13659 postIndex := iNdEx + intStringLen 13660 if postIndex < 0 { 13661 return ErrInvalidLengthTypes 13662 } 13663 if postIndex > l { 13664 return io.ErrUnexpectedEOF 13665 } 13666 m.Log = string(dAtA[iNdEx:postIndex]) 13667 iNdEx = postIndex 13668 case 4: 13669 if wireType != 2 { 13670 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 13671 } 13672 var stringLen uint64 13673 for shift := uint(0); ; shift += 7 { 13674 if shift >= 64 { 13675 return ErrIntOverflowTypes 13676 } 13677 if iNdEx >= l { 13678 return io.ErrUnexpectedEOF 13679 } 13680 b := dAtA[iNdEx] 13681 iNdEx++ 13682 stringLen |= uint64(b&0x7F) << shift 13683 if b < 0x80 { 13684 break 13685 } 13686 } 13687 intStringLen := int(stringLen) 13688 if intStringLen < 0 { 13689 return ErrInvalidLengthTypes 13690 } 13691 postIndex := iNdEx + intStringLen 13692 if postIndex < 0 { 13693 return ErrInvalidLengthTypes 13694 } 13695 if postIndex > l { 13696 return io.ErrUnexpectedEOF 13697 } 13698 m.Info = string(dAtA[iNdEx:postIndex]) 13699 iNdEx = postIndex 13700 case 5: 13701 if wireType != 0 { 13702 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 13703 } 13704 m.GasWanted = 0 13705 for shift := uint(0); ; shift += 7 { 13706 if shift >= 64 { 13707 return ErrIntOverflowTypes 13708 } 13709 if iNdEx >= l { 13710 return io.ErrUnexpectedEOF 13711 } 13712 b := dAtA[iNdEx] 13713 iNdEx++ 13714 m.GasWanted |= int64(b&0x7F) << shift 13715 if b < 0x80 { 13716 break 13717 } 13718 } 13719 case 6: 13720 if wireType != 0 { 13721 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 13722 } 13723 m.GasUsed = 0 13724 for shift := uint(0); ; shift += 7 { 13725 if shift >= 64 { 13726 return ErrIntOverflowTypes 13727 } 13728 if iNdEx >= l { 13729 return io.ErrUnexpectedEOF 13730 } 13731 b := dAtA[iNdEx] 13732 iNdEx++ 13733 m.GasUsed |= int64(b&0x7F) << shift 13734 if b < 0x80 { 13735 break 13736 } 13737 } 13738 case 7: 13739 if wireType != 2 { 13740 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13741 } 13742 var msglen int 13743 for shift := uint(0); ; shift += 7 { 13744 if shift >= 64 { 13745 return ErrIntOverflowTypes 13746 } 13747 if iNdEx >= l { 13748 return io.ErrUnexpectedEOF 13749 } 13750 b := dAtA[iNdEx] 13751 iNdEx++ 13752 msglen |= int(b&0x7F) << shift 13753 if b < 0x80 { 13754 break 13755 } 13756 } 13757 if msglen < 0 { 13758 return ErrInvalidLengthTypes 13759 } 13760 postIndex := iNdEx + msglen 13761 if postIndex < 0 { 13762 return ErrInvalidLengthTypes 13763 } 13764 if postIndex > l { 13765 return io.ErrUnexpectedEOF 13766 } 13767 m.Events = append(m.Events, Event{}) 13768 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13769 return err 13770 } 13771 iNdEx = postIndex 13772 case 8: 13773 if wireType != 2 { 13774 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 13775 } 13776 var stringLen uint64 13777 for shift := uint(0); ; shift += 7 { 13778 if shift >= 64 { 13779 return ErrIntOverflowTypes 13780 } 13781 if iNdEx >= l { 13782 return io.ErrUnexpectedEOF 13783 } 13784 b := dAtA[iNdEx] 13785 iNdEx++ 13786 stringLen |= uint64(b&0x7F) << shift 13787 if b < 0x80 { 13788 break 13789 } 13790 } 13791 intStringLen := int(stringLen) 13792 if intStringLen < 0 { 13793 return ErrInvalidLengthTypes 13794 } 13795 postIndex := iNdEx + intStringLen 13796 if postIndex < 0 { 13797 return ErrInvalidLengthTypes 13798 } 13799 if postIndex > l { 13800 return io.ErrUnexpectedEOF 13801 } 13802 m.Codespace = string(dAtA[iNdEx:postIndex]) 13803 iNdEx = postIndex 13804 default: 13805 iNdEx = preIndex 13806 skippy, err := skipTypes(dAtA[iNdEx:]) 13807 if err != nil { 13808 return err 13809 } 13810 if (skippy < 0) || (iNdEx+skippy) < 0 { 13811 return ErrInvalidLengthTypes 13812 } 13813 if (iNdEx + skippy) > l { 13814 return io.ErrUnexpectedEOF 13815 } 13816 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13817 iNdEx += skippy 13818 } 13819 } 13820 13821 if iNdEx > l { 13822 return io.ErrUnexpectedEOF 13823 } 13824 return nil 13825 } 13826 func (m *ResponseEndBlock) Unmarshal(dAtA []byte) error { 13827 l := len(dAtA) 13828 iNdEx := 0 13829 for iNdEx < l { 13830 preIndex := iNdEx 13831 var wire uint64 13832 for shift := uint(0); ; shift += 7 { 13833 if shift >= 64 { 13834 return ErrIntOverflowTypes 13835 } 13836 if iNdEx >= l { 13837 return io.ErrUnexpectedEOF 13838 } 13839 b := dAtA[iNdEx] 13840 iNdEx++ 13841 wire |= uint64(b&0x7F) << shift 13842 if b < 0x80 { 13843 break 13844 } 13845 } 13846 fieldNum := int32(wire >> 3) 13847 wireType := int(wire & 0x7) 13848 if wireType == 4 { 13849 return fmt.Errorf("proto: ResponseEndBlock: wiretype end group for non-group") 13850 } 13851 if fieldNum <= 0 { 13852 return fmt.Errorf("proto: ResponseEndBlock: illegal tag %d (wire type %d)", fieldNum, wire) 13853 } 13854 switch fieldNum { 13855 case 1: 13856 if wireType != 2 { 13857 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdates", wireType) 13858 } 13859 var msglen int 13860 for shift := uint(0); ; shift += 7 { 13861 if shift >= 64 { 13862 return ErrIntOverflowTypes 13863 } 13864 if iNdEx >= l { 13865 return io.ErrUnexpectedEOF 13866 } 13867 b := dAtA[iNdEx] 13868 iNdEx++ 13869 msglen |= int(b&0x7F) << shift 13870 if b < 0x80 { 13871 break 13872 } 13873 } 13874 if msglen < 0 { 13875 return ErrInvalidLengthTypes 13876 } 13877 postIndex := iNdEx + msglen 13878 if postIndex < 0 { 13879 return ErrInvalidLengthTypes 13880 } 13881 if postIndex > l { 13882 return io.ErrUnexpectedEOF 13883 } 13884 m.ValidatorUpdates = append(m.ValidatorUpdates, ValidatorUpdate{}) 13885 if err := m.ValidatorUpdates[len(m.ValidatorUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13886 return err 13887 } 13888 iNdEx = postIndex 13889 case 2: 13890 if wireType != 2 { 13891 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParamUpdates", wireType) 13892 } 13893 var msglen int 13894 for shift := uint(0); ; shift += 7 { 13895 if shift >= 64 { 13896 return ErrIntOverflowTypes 13897 } 13898 if iNdEx >= l { 13899 return io.ErrUnexpectedEOF 13900 } 13901 b := dAtA[iNdEx] 13902 iNdEx++ 13903 msglen |= int(b&0x7F) << shift 13904 if b < 0x80 { 13905 break 13906 } 13907 } 13908 if msglen < 0 { 13909 return ErrInvalidLengthTypes 13910 } 13911 postIndex := iNdEx + msglen 13912 if postIndex < 0 { 13913 return ErrInvalidLengthTypes 13914 } 13915 if postIndex > l { 13916 return io.ErrUnexpectedEOF 13917 } 13918 if m.ConsensusParamUpdates == nil { 13919 m.ConsensusParamUpdates = &ConsensusParams{} 13920 } 13921 if err := m.ConsensusParamUpdates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13922 return err 13923 } 13924 iNdEx = postIndex 13925 case 3: 13926 if wireType != 2 { 13927 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 13928 } 13929 var msglen int 13930 for shift := uint(0); ; shift += 7 { 13931 if shift >= 64 { 13932 return ErrIntOverflowTypes 13933 } 13934 if iNdEx >= l { 13935 return io.ErrUnexpectedEOF 13936 } 13937 b := dAtA[iNdEx] 13938 iNdEx++ 13939 msglen |= int(b&0x7F) << shift 13940 if b < 0x80 { 13941 break 13942 } 13943 } 13944 if msglen < 0 { 13945 return ErrInvalidLengthTypes 13946 } 13947 postIndex := iNdEx + msglen 13948 if postIndex < 0 { 13949 return ErrInvalidLengthTypes 13950 } 13951 if postIndex > l { 13952 return io.ErrUnexpectedEOF 13953 } 13954 m.Events = append(m.Events, Event{}) 13955 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13956 return err 13957 } 13958 iNdEx = postIndex 13959 default: 13960 iNdEx = preIndex 13961 skippy, err := skipTypes(dAtA[iNdEx:]) 13962 if err != nil { 13963 return err 13964 } 13965 if (skippy < 0) || (iNdEx+skippy) < 0 { 13966 return ErrInvalidLengthTypes 13967 } 13968 if (iNdEx + skippy) > l { 13969 return io.ErrUnexpectedEOF 13970 } 13971 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13972 iNdEx += skippy 13973 } 13974 } 13975 13976 if iNdEx > l { 13977 return io.ErrUnexpectedEOF 13978 } 13979 return nil 13980 } 13981 func (m *ResponseCommit) Unmarshal(dAtA []byte) error { 13982 l := len(dAtA) 13983 iNdEx := 0 13984 for iNdEx < l { 13985 preIndex := iNdEx 13986 var wire uint64 13987 for shift := uint(0); ; shift += 7 { 13988 if shift >= 64 { 13989 return ErrIntOverflowTypes 13990 } 13991 if iNdEx >= l { 13992 return io.ErrUnexpectedEOF 13993 } 13994 b := dAtA[iNdEx] 13995 iNdEx++ 13996 wire |= uint64(b&0x7F) << shift 13997 if b < 0x80 { 13998 break 13999 } 14000 } 14001 fieldNum := int32(wire >> 3) 14002 wireType := int(wire & 0x7) 14003 if wireType == 4 { 14004 return fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group") 14005 } 14006 if fieldNum <= 0 { 14007 return fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire) 14008 } 14009 switch fieldNum { 14010 case 2: 14011 if wireType != 2 { 14012 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 14013 } 14014 var byteLen int 14015 for shift := uint(0); ; shift += 7 { 14016 if shift >= 64 { 14017 return ErrIntOverflowTypes 14018 } 14019 if iNdEx >= l { 14020 return io.ErrUnexpectedEOF 14021 } 14022 b := dAtA[iNdEx] 14023 iNdEx++ 14024 byteLen |= int(b&0x7F) << shift 14025 if b < 0x80 { 14026 break 14027 } 14028 } 14029 if byteLen < 0 { 14030 return ErrInvalidLengthTypes 14031 } 14032 postIndex := iNdEx + byteLen 14033 if postIndex < 0 { 14034 return ErrInvalidLengthTypes 14035 } 14036 if postIndex > l { 14037 return io.ErrUnexpectedEOF 14038 } 14039 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 14040 if m.Data == nil { 14041 m.Data = []byte{} 14042 } 14043 iNdEx = postIndex 14044 case 3: 14045 if wireType != 0 { 14046 return fmt.Errorf("proto: wrong wireType = %d for field RetainHeight", wireType) 14047 } 14048 m.RetainHeight = 0 14049 for shift := uint(0); ; shift += 7 { 14050 if shift >= 64 { 14051 return ErrIntOverflowTypes 14052 } 14053 if iNdEx >= l { 14054 return io.ErrUnexpectedEOF 14055 } 14056 b := dAtA[iNdEx] 14057 iNdEx++ 14058 m.RetainHeight |= int64(b&0x7F) << shift 14059 if b < 0x80 { 14060 break 14061 } 14062 } 14063 case 4: 14064 var msglen int 14065 for shift := uint(0); ; shift += 7 { 14066 if shift >= 64 { 14067 return ErrIntOverflowTypes 14068 } 14069 if iNdEx >= l { 14070 return io.ErrUnexpectedEOF 14071 } 14072 b := dAtA[iNdEx] 14073 iNdEx++ 14074 msglen |= int(b&0x7F) << shift 14075 if b < 0x80 { 14076 break 14077 } 14078 } 14079 if msglen < 0 { 14080 return ErrInvalidLengthTypes 14081 } 14082 postIndex := iNdEx + msglen 14083 if postIndex < 0 { 14084 return ErrInvalidLengthTypes 14085 } 14086 if postIndex > l { 14087 return io.ErrUnexpectedEOF 14088 } 14089 iNdEx = postIndex 14090 default: 14091 iNdEx = preIndex 14092 skippy, err := skipTypes(dAtA[iNdEx:]) 14093 if err != nil { 14094 return err 14095 } 14096 if (skippy < 0) || (iNdEx+skippy) < 0 { 14097 return ErrInvalidLengthTypes 14098 } 14099 if (iNdEx + skippy) > l { 14100 return io.ErrUnexpectedEOF 14101 } 14102 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14103 iNdEx += skippy 14104 } 14105 } 14106 14107 if iNdEx > l { 14108 return io.ErrUnexpectedEOF 14109 } 14110 return nil 14111 } 14112 func (m *ConsensusParams) Unmarshal(dAtA []byte) error { 14113 l := len(dAtA) 14114 iNdEx := 0 14115 for iNdEx < l { 14116 preIndex := iNdEx 14117 var wire uint64 14118 for shift := uint(0); ; shift += 7 { 14119 if shift >= 64 { 14120 return ErrIntOverflowTypes 14121 } 14122 if iNdEx >= l { 14123 return io.ErrUnexpectedEOF 14124 } 14125 b := dAtA[iNdEx] 14126 iNdEx++ 14127 wire |= uint64(b&0x7F) << shift 14128 if b < 0x80 { 14129 break 14130 } 14131 } 14132 fieldNum := int32(wire >> 3) 14133 wireType := int(wire & 0x7) 14134 if wireType == 4 { 14135 return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group") 14136 } 14137 if fieldNum <= 0 { 14138 return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire) 14139 } 14140 switch fieldNum { 14141 case 1: 14142 if wireType != 2 { 14143 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 14144 } 14145 var msglen int 14146 for shift := uint(0); ; shift += 7 { 14147 if shift >= 64 { 14148 return ErrIntOverflowTypes 14149 } 14150 if iNdEx >= l { 14151 return io.ErrUnexpectedEOF 14152 } 14153 b := dAtA[iNdEx] 14154 iNdEx++ 14155 msglen |= int(b&0x7F) << shift 14156 if b < 0x80 { 14157 break 14158 } 14159 } 14160 if msglen < 0 { 14161 return ErrInvalidLengthTypes 14162 } 14163 postIndex := iNdEx + msglen 14164 if postIndex < 0 { 14165 return ErrInvalidLengthTypes 14166 } 14167 if postIndex > l { 14168 return io.ErrUnexpectedEOF 14169 } 14170 if m.Block == nil { 14171 m.Block = &BlockParams{} 14172 } 14173 if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14174 return err 14175 } 14176 iNdEx = postIndex 14177 case 2: 14178 if wireType != 2 { 14179 return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) 14180 } 14181 var msglen int 14182 for shift := uint(0); ; shift += 7 { 14183 if shift >= 64 { 14184 return ErrIntOverflowTypes 14185 } 14186 if iNdEx >= l { 14187 return io.ErrUnexpectedEOF 14188 } 14189 b := dAtA[iNdEx] 14190 iNdEx++ 14191 msglen |= int(b&0x7F) << shift 14192 if b < 0x80 { 14193 break 14194 } 14195 } 14196 if msglen < 0 { 14197 return ErrInvalidLengthTypes 14198 } 14199 postIndex := iNdEx + msglen 14200 if postIndex < 0 { 14201 return ErrInvalidLengthTypes 14202 } 14203 if postIndex > l { 14204 return io.ErrUnexpectedEOF 14205 } 14206 if m.Evidence == nil { 14207 m.Evidence = &EvidenceParams{} 14208 } 14209 if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14210 return err 14211 } 14212 iNdEx = postIndex 14213 case 3: 14214 if wireType != 2 { 14215 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 14216 } 14217 var msglen int 14218 for shift := uint(0); ; shift += 7 { 14219 if shift >= 64 { 14220 return ErrIntOverflowTypes 14221 } 14222 if iNdEx >= l { 14223 return io.ErrUnexpectedEOF 14224 } 14225 b := dAtA[iNdEx] 14226 iNdEx++ 14227 msglen |= int(b&0x7F) << shift 14228 if b < 0x80 { 14229 break 14230 } 14231 } 14232 if msglen < 0 { 14233 return ErrInvalidLengthTypes 14234 } 14235 postIndex := iNdEx + msglen 14236 if postIndex < 0 { 14237 return ErrInvalidLengthTypes 14238 } 14239 if postIndex > l { 14240 return io.ErrUnexpectedEOF 14241 } 14242 if m.Validator == nil { 14243 m.Validator = &ValidatorParams{} 14244 } 14245 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14246 return err 14247 } 14248 iNdEx = postIndex 14249 default: 14250 iNdEx = preIndex 14251 skippy, err := skipTypes(dAtA[iNdEx:]) 14252 if err != nil { 14253 return err 14254 } 14255 if (skippy < 0) || (iNdEx+skippy) < 0 { 14256 return ErrInvalidLengthTypes 14257 } 14258 if (iNdEx + skippy) > l { 14259 return io.ErrUnexpectedEOF 14260 } 14261 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14262 iNdEx += skippy 14263 } 14264 } 14265 14266 if iNdEx > l { 14267 return io.ErrUnexpectedEOF 14268 } 14269 return nil 14270 } 14271 func (m *BlockParams) Unmarshal(dAtA []byte) error { 14272 l := len(dAtA) 14273 iNdEx := 0 14274 for iNdEx < l { 14275 preIndex := iNdEx 14276 var wire uint64 14277 for shift := uint(0); ; shift += 7 { 14278 if shift >= 64 { 14279 return ErrIntOverflowTypes 14280 } 14281 if iNdEx >= l { 14282 return io.ErrUnexpectedEOF 14283 } 14284 b := dAtA[iNdEx] 14285 iNdEx++ 14286 wire |= uint64(b&0x7F) << shift 14287 if b < 0x80 { 14288 break 14289 } 14290 } 14291 fieldNum := int32(wire >> 3) 14292 wireType := int(wire & 0x7) 14293 if wireType == 4 { 14294 return fmt.Errorf("proto: BlockParams: wiretype end group for non-group") 14295 } 14296 if fieldNum <= 0 { 14297 return fmt.Errorf("proto: BlockParams: illegal tag %d (wire type %d)", fieldNum, wire) 14298 } 14299 switch fieldNum { 14300 case 1: 14301 if wireType != 0 { 14302 return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType) 14303 } 14304 m.MaxBytes = 0 14305 for shift := uint(0); ; shift += 7 { 14306 if shift >= 64 { 14307 return ErrIntOverflowTypes 14308 } 14309 if iNdEx >= l { 14310 return io.ErrUnexpectedEOF 14311 } 14312 b := dAtA[iNdEx] 14313 iNdEx++ 14314 m.MaxBytes |= int64(b&0x7F) << shift 14315 if b < 0x80 { 14316 break 14317 } 14318 } 14319 case 2: 14320 if wireType != 0 { 14321 return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType) 14322 } 14323 m.MaxGas = 0 14324 for shift := uint(0); ; shift += 7 { 14325 if shift >= 64 { 14326 return ErrIntOverflowTypes 14327 } 14328 if iNdEx >= l { 14329 return io.ErrUnexpectedEOF 14330 } 14331 b := dAtA[iNdEx] 14332 iNdEx++ 14333 m.MaxGas |= int64(b&0x7F) << shift 14334 if b < 0x80 { 14335 break 14336 } 14337 } 14338 default: 14339 iNdEx = preIndex 14340 skippy, err := skipTypes(dAtA[iNdEx:]) 14341 if err != nil { 14342 return err 14343 } 14344 if (skippy < 0) || (iNdEx+skippy) < 0 { 14345 return ErrInvalidLengthTypes 14346 } 14347 if (iNdEx + skippy) > l { 14348 return io.ErrUnexpectedEOF 14349 } 14350 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14351 iNdEx += skippy 14352 } 14353 } 14354 14355 if iNdEx > l { 14356 return io.ErrUnexpectedEOF 14357 } 14358 return nil 14359 } 14360 func (m *EvidenceParams) Unmarshal(dAtA []byte) error { 14361 l := len(dAtA) 14362 iNdEx := 0 14363 for iNdEx < l { 14364 preIndex := iNdEx 14365 var wire uint64 14366 for shift := uint(0); ; shift += 7 { 14367 if shift >= 64 { 14368 return ErrIntOverflowTypes 14369 } 14370 if iNdEx >= l { 14371 return io.ErrUnexpectedEOF 14372 } 14373 b := dAtA[iNdEx] 14374 iNdEx++ 14375 wire |= uint64(b&0x7F) << shift 14376 if b < 0x80 { 14377 break 14378 } 14379 } 14380 fieldNum := int32(wire >> 3) 14381 wireType := int(wire & 0x7) 14382 if wireType == 4 { 14383 return fmt.Errorf("proto: EvidenceParams: wiretype end group for non-group") 14384 } 14385 if fieldNum <= 0 { 14386 return fmt.Errorf("proto: EvidenceParams: illegal tag %d (wire type %d)", fieldNum, wire) 14387 } 14388 switch fieldNum { 14389 case 1: 14390 if wireType != 0 { 14391 return fmt.Errorf("proto: wrong wireType = %d for field MaxAgeNumBlocks", wireType) 14392 } 14393 m.MaxAgeNumBlocks = 0 14394 for shift := uint(0); ; shift += 7 { 14395 if shift >= 64 { 14396 return ErrIntOverflowTypes 14397 } 14398 if iNdEx >= l { 14399 return io.ErrUnexpectedEOF 14400 } 14401 b := dAtA[iNdEx] 14402 iNdEx++ 14403 m.MaxAgeNumBlocks |= int64(b&0x7F) << shift 14404 if b < 0x80 { 14405 break 14406 } 14407 } 14408 case 2: 14409 if wireType != 2 { 14410 return fmt.Errorf("proto: wrong wireType = %d for field MaxAgeDuration", wireType) 14411 } 14412 var msglen int 14413 for shift := uint(0); ; shift += 7 { 14414 if shift >= 64 { 14415 return ErrIntOverflowTypes 14416 } 14417 if iNdEx >= l { 14418 return io.ErrUnexpectedEOF 14419 } 14420 b := dAtA[iNdEx] 14421 iNdEx++ 14422 msglen |= int(b&0x7F) << shift 14423 if b < 0x80 { 14424 break 14425 } 14426 } 14427 if msglen < 0 { 14428 return ErrInvalidLengthTypes 14429 } 14430 postIndex := iNdEx + msglen 14431 if postIndex < 0 { 14432 return ErrInvalidLengthTypes 14433 } 14434 if postIndex > l { 14435 return io.ErrUnexpectedEOF 14436 } 14437 if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.MaxAgeDuration, dAtA[iNdEx:postIndex]); err != nil { 14438 return err 14439 } 14440 iNdEx = postIndex 14441 default: 14442 iNdEx = preIndex 14443 skippy, err := skipTypes(dAtA[iNdEx:]) 14444 if err != nil { 14445 return err 14446 } 14447 if (skippy < 0) || (iNdEx+skippy) < 0 { 14448 return ErrInvalidLengthTypes 14449 } 14450 if (iNdEx + skippy) > l { 14451 return io.ErrUnexpectedEOF 14452 } 14453 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14454 iNdEx += skippy 14455 } 14456 } 14457 14458 if iNdEx > l { 14459 return io.ErrUnexpectedEOF 14460 } 14461 return nil 14462 } 14463 func (m *ValidatorParams) Unmarshal(dAtA []byte) error { 14464 l := len(dAtA) 14465 iNdEx := 0 14466 for iNdEx < l { 14467 preIndex := iNdEx 14468 var wire uint64 14469 for shift := uint(0); ; shift += 7 { 14470 if shift >= 64 { 14471 return ErrIntOverflowTypes 14472 } 14473 if iNdEx >= l { 14474 return io.ErrUnexpectedEOF 14475 } 14476 b := dAtA[iNdEx] 14477 iNdEx++ 14478 wire |= uint64(b&0x7F) << shift 14479 if b < 0x80 { 14480 break 14481 } 14482 } 14483 fieldNum := int32(wire >> 3) 14484 wireType := int(wire & 0x7) 14485 if wireType == 4 { 14486 return fmt.Errorf("proto: ValidatorParams: wiretype end group for non-group") 14487 } 14488 if fieldNum <= 0 { 14489 return fmt.Errorf("proto: ValidatorParams: illegal tag %d (wire type %d)", fieldNum, wire) 14490 } 14491 switch fieldNum { 14492 case 1: 14493 if wireType != 2 { 14494 return fmt.Errorf("proto: wrong wireType = %d for field PubKeyTypes", wireType) 14495 } 14496 var stringLen uint64 14497 for shift := uint(0); ; shift += 7 { 14498 if shift >= 64 { 14499 return ErrIntOverflowTypes 14500 } 14501 if iNdEx >= l { 14502 return io.ErrUnexpectedEOF 14503 } 14504 b := dAtA[iNdEx] 14505 iNdEx++ 14506 stringLen |= uint64(b&0x7F) << shift 14507 if b < 0x80 { 14508 break 14509 } 14510 } 14511 intStringLen := int(stringLen) 14512 if intStringLen < 0 { 14513 return ErrInvalidLengthTypes 14514 } 14515 postIndex := iNdEx + intStringLen 14516 if postIndex < 0 { 14517 return ErrInvalidLengthTypes 14518 } 14519 if postIndex > l { 14520 return io.ErrUnexpectedEOF 14521 } 14522 m.PubKeyTypes = append(m.PubKeyTypes, string(dAtA[iNdEx:postIndex])) 14523 iNdEx = postIndex 14524 default: 14525 iNdEx = preIndex 14526 skippy, err := skipTypes(dAtA[iNdEx:]) 14527 if err != nil { 14528 return err 14529 } 14530 if (skippy < 0) || (iNdEx+skippy) < 0 { 14531 return ErrInvalidLengthTypes 14532 } 14533 if (iNdEx + skippy) > l { 14534 return io.ErrUnexpectedEOF 14535 } 14536 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14537 iNdEx += skippy 14538 } 14539 } 14540 14541 if iNdEx > l { 14542 return io.ErrUnexpectedEOF 14543 } 14544 return nil 14545 } 14546 func (m *LastCommitInfo) Unmarshal(dAtA []byte) error { 14547 l := len(dAtA) 14548 iNdEx := 0 14549 for iNdEx < l { 14550 preIndex := iNdEx 14551 var wire uint64 14552 for shift := uint(0); ; shift += 7 { 14553 if shift >= 64 { 14554 return ErrIntOverflowTypes 14555 } 14556 if iNdEx >= l { 14557 return io.ErrUnexpectedEOF 14558 } 14559 b := dAtA[iNdEx] 14560 iNdEx++ 14561 wire |= uint64(b&0x7F) << shift 14562 if b < 0x80 { 14563 break 14564 } 14565 } 14566 fieldNum := int32(wire >> 3) 14567 wireType := int(wire & 0x7) 14568 if wireType == 4 { 14569 return fmt.Errorf("proto: LastCommitInfo: wiretype end group for non-group") 14570 } 14571 if fieldNum <= 0 { 14572 return fmt.Errorf("proto: LastCommitInfo: illegal tag %d (wire type %d)", fieldNum, wire) 14573 } 14574 switch fieldNum { 14575 case 1: 14576 if wireType != 0 { 14577 return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) 14578 } 14579 m.Round = 0 14580 for shift := uint(0); ; shift += 7 { 14581 if shift >= 64 { 14582 return ErrIntOverflowTypes 14583 } 14584 if iNdEx >= l { 14585 return io.ErrUnexpectedEOF 14586 } 14587 b := dAtA[iNdEx] 14588 iNdEx++ 14589 m.Round |= int32(b&0x7F) << shift 14590 if b < 0x80 { 14591 break 14592 } 14593 } 14594 case 2: 14595 if wireType != 2 { 14596 return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) 14597 } 14598 var msglen int 14599 for shift := uint(0); ; shift += 7 { 14600 if shift >= 64 { 14601 return ErrIntOverflowTypes 14602 } 14603 if iNdEx >= l { 14604 return io.ErrUnexpectedEOF 14605 } 14606 b := dAtA[iNdEx] 14607 iNdEx++ 14608 msglen |= int(b&0x7F) << shift 14609 if b < 0x80 { 14610 break 14611 } 14612 } 14613 if msglen < 0 { 14614 return ErrInvalidLengthTypes 14615 } 14616 postIndex := iNdEx + msglen 14617 if postIndex < 0 { 14618 return ErrInvalidLengthTypes 14619 } 14620 if postIndex > l { 14621 return io.ErrUnexpectedEOF 14622 } 14623 m.Votes = append(m.Votes, VoteInfo{}) 14624 if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14625 return err 14626 } 14627 iNdEx = postIndex 14628 default: 14629 iNdEx = preIndex 14630 skippy, err := skipTypes(dAtA[iNdEx:]) 14631 if err != nil { 14632 return err 14633 } 14634 if (skippy < 0) || (iNdEx+skippy) < 0 { 14635 return ErrInvalidLengthTypes 14636 } 14637 if (iNdEx + skippy) > l { 14638 return io.ErrUnexpectedEOF 14639 } 14640 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14641 iNdEx += skippy 14642 } 14643 } 14644 14645 if iNdEx > l { 14646 return io.ErrUnexpectedEOF 14647 } 14648 return nil 14649 } 14650 func (m *Event) Unmarshal(dAtA []byte) error { 14651 l := len(dAtA) 14652 iNdEx := 0 14653 for iNdEx < l { 14654 preIndex := iNdEx 14655 var wire uint64 14656 for shift := uint(0); ; shift += 7 { 14657 if shift >= 64 { 14658 return ErrIntOverflowTypes 14659 } 14660 if iNdEx >= l { 14661 return io.ErrUnexpectedEOF 14662 } 14663 b := dAtA[iNdEx] 14664 iNdEx++ 14665 wire |= uint64(b&0x7F) << shift 14666 if b < 0x80 { 14667 break 14668 } 14669 } 14670 fieldNum := int32(wire >> 3) 14671 wireType := int(wire & 0x7) 14672 if wireType == 4 { 14673 return fmt.Errorf("proto: Event: wiretype end group for non-group") 14674 } 14675 if fieldNum <= 0 { 14676 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) 14677 } 14678 switch fieldNum { 14679 case 1: 14680 if wireType != 2 { 14681 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 14682 } 14683 var stringLen uint64 14684 for shift := uint(0); ; shift += 7 { 14685 if shift >= 64 { 14686 return ErrIntOverflowTypes 14687 } 14688 if iNdEx >= l { 14689 return io.ErrUnexpectedEOF 14690 } 14691 b := dAtA[iNdEx] 14692 iNdEx++ 14693 stringLen |= uint64(b&0x7F) << shift 14694 if b < 0x80 { 14695 break 14696 } 14697 } 14698 intStringLen := int(stringLen) 14699 if intStringLen < 0 { 14700 return ErrInvalidLengthTypes 14701 } 14702 postIndex := iNdEx + intStringLen 14703 if postIndex < 0 { 14704 return ErrInvalidLengthTypes 14705 } 14706 if postIndex > l { 14707 return io.ErrUnexpectedEOF 14708 } 14709 m.Type = string(dAtA[iNdEx:postIndex]) 14710 iNdEx = postIndex 14711 case 2: 14712 if wireType != 2 { 14713 return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) 14714 } 14715 var msglen int 14716 for shift := uint(0); ; shift += 7 { 14717 if shift >= 64 { 14718 return ErrIntOverflowTypes 14719 } 14720 if iNdEx >= l { 14721 return io.ErrUnexpectedEOF 14722 } 14723 b := dAtA[iNdEx] 14724 iNdEx++ 14725 msglen |= int(b&0x7F) << shift 14726 if b < 0x80 { 14727 break 14728 } 14729 } 14730 if msglen < 0 { 14731 return ErrInvalidLengthTypes 14732 } 14733 postIndex := iNdEx + msglen 14734 if postIndex < 0 { 14735 return ErrInvalidLengthTypes 14736 } 14737 if postIndex > l { 14738 return io.ErrUnexpectedEOF 14739 } 14740 m.Attributes = append(m.Attributes, kv.Pair{}) 14741 if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14742 return err 14743 } 14744 iNdEx = postIndex 14745 default: 14746 iNdEx = preIndex 14747 skippy, err := skipTypes(dAtA[iNdEx:]) 14748 if err != nil { 14749 return err 14750 } 14751 if (skippy < 0) || (iNdEx+skippy) < 0 { 14752 return ErrInvalidLengthTypes 14753 } 14754 if (iNdEx + skippy) > l { 14755 return io.ErrUnexpectedEOF 14756 } 14757 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14758 iNdEx += skippy 14759 } 14760 } 14761 14762 if iNdEx > l { 14763 return io.ErrUnexpectedEOF 14764 } 14765 return nil 14766 } 14767 func (m *Header) Unmarshal(dAtA []byte) error { 14768 l := len(dAtA) 14769 iNdEx := 0 14770 for iNdEx < l { 14771 preIndex := iNdEx 14772 var wire uint64 14773 for shift := uint(0); ; shift += 7 { 14774 if shift >= 64 { 14775 return ErrIntOverflowTypes 14776 } 14777 if iNdEx >= l { 14778 return io.ErrUnexpectedEOF 14779 } 14780 b := dAtA[iNdEx] 14781 iNdEx++ 14782 wire |= uint64(b&0x7F) << shift 14783 if b < 0x80 { 14784 break 14785 } 14786 } 14787 fieldNum := int32(wire >> 3) 14788 wireType := int(wire & 0x7) 14789 if wireType == 4 { 14790 return fmt.Errorf("proto: Header: wiretype end group for non-group") 14791 } 14792 if fieldNum <= 0 { 14793 return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) 14794 } 14795 switch fieldNum { 14796 case 1: 14797 if wireType != 2 { 14798 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 14799 } 14800 var msglen int 14801 for shift := uint(0); ; shift += 7 { 14802 if shift >= 64 { 14803 return ErrIntOverflowTypes 14804 } 14805 if iNdEx >= l { 14806 return io.ErrUnexpectedEOF 14807 } 14808 b := dAtA[iNdEx] 14809 iNdEx++ 14810 msglen |= int(b&0x7F) << shift 14811 if b < 0x80 { 14812 break 14813 } 14814 } 14815 if msglen < 0 { 14816 return ErrInvalidLengthTypes 14817 } 14818 postIndex := iNdEx + msglen 14819 if postIndex < 0 { 14820 return ErrInvalidLengthTypes 14821 } 14822 if postIndex > l { 14823 return io.ErrUnexpectedEOF 14824 } 14825 if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14826 return err 14827 } 14828 iNdEx = postIndex 14829 case 2: 14830 if wireType != 2 { 14831 return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) 14832 } 14833 var stringLen uint64 14834 for shift := uint(0); ; shift += 7 { 14835 if shift >= 64 { 14836 return ErrIntOverflowTypes 14837 } 14838 if iNdEx >= l { 14839 return io.ErrUnexpectedEOF 14840 } 14841 b := dAtA[iNdEx] 14842 iNdEx++ 14843 stringLen |= uint64(b&0x7F) << shift 14844 if b < 0x80 { 14845 break 14846 } 14847 } 14848 intStringLen := int(stringLen) 14849 if intStringLen < 0 { 14850 return ErrInvalidLengthTypes 14851 } 14852 postIndex := iNdEx + intStringLen 14853 if postIndex < 0 { 14854 return ErrInvalidLengthTypes 14855 } 14856 if postIndex > l { 14857 return io.ErrUnexpectedEOF 14858 } 14859 m.ChainID = string(dAtA[iNdEx:postIndex]) 14860 iNdEx = postIndex 14861 case 3: 14862 if wireType != 0 { 14863 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 14864 } 14865 m.Height = 0 14866 for shift := uint(0); ; shift += 7 { 14867 if shift >= 64 { 14868 return ErrIntOverflowTypes 14869 } 14870 if iNdEx >= l { 14871 return io.ErrUnexpectedEOF 14872 } 14873 b := dAtA[iNdEx] 14874 iNdEx++ 14875 m.Height |= int64(b&0x7F) << shift 14876 if b < 0x80 { 14877 break 14878 } 14879 } 14880 case 4: 14881 if wireType != 2 { 14882 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 14883 } 14884 var msglen int 14885 for shift := uint(0); ; shift += 7 { 14886 if shift >= 64 { 14887 return ErrIntOverflowTypes 14888 } 14889 if iNdEx >= l { 14890 return io.ErrUnexpectedEOF 14891 } 14892 b := dAtA[iNdEx] 14893 iNdEx++ 14894 msglen |= int(b&0x7F) << shift 14895 if b < 0x80 { 14896 break 14897 } 14898 } 14899 if msglen < 0 { 14900 return ErrInvalidLengthTypes 14901 } 14902 postIndex := iNdEx + msglen 14903 if postIndex < 0 { 14904 return ErrInvalidLengthTypes 14905 } 14906 if postIndex > l { 14907 return io.ErrUnexpectedEOF 14908 } 14909 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 14910 return err 14911 } 14912 iNdEx = postIndex 14913 case 5: 14914 if wireType != 2 { 14915 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockId", wireType) 14916 } 14917 var msglen int 14918 for shift := uint(0); ; shift += 7 { 14919 if shift >= 64 { 14920 return ErrIntOverflowTypes 14921 } 14922 if iNdEx >= l { 14923 return io.ErrUnexpectedEOF 14924 } 14925 b := dAtA[iNdEx] 14926 iNdEx++ 14927 msglen |= int(b&0x7F) << shift 14928 if b < 0x80 { 14929 break 14930 } 14931 } 14932 if msglen < 0 { 14933 return ErrInvalidLengthTypes 14934 } 14935 postIndex := iNdEx + msglen 14936 if postIndex < 0 { 14937 return ErrInvalidLengthTypes 14938 } 14939 if postIndex > l { 14940 return io.ErrUnexpectedEOF 14941 } 14942 if err := m.LastBlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14943 return err 14944 } 14945 iNdEx = postIndex 14946 case 6: 14947 if wireType != 2 { 14948 return fmt.Errorf("proto: wrong wireType = %d for field LastCommitHash", wireType) 14949 } 14950 var byteLen int 14951 for shift := uint(0); ; shift += 7 { 14952 if shift >= 64 { 14953 return ErrIntOverflowTypes 14954 } 14955 if iNdEx >= l { 14956 return io.ErrUnexpectedEOF 14957 } 14958 b := dAtA[iNdEx] 14959 iNdEx++ 14960 byteLen |= int(b&0x7F) << shift 14961 if b < 0x80 { 14962 break 14963 } 14964 } 14965 if byteLen < 0 { 14966 return ErrInvalidLengthTypes 14967 } 14968 postIndex := iNdEx + byteLen 14969 if postIndex < 0 { 14970 return ErrInvalidLengthTypes 14971 } 14972 if postIndex > l { 14973 return io.ErrUnexpectedEOF 14974 } 14975 m.LastCommitHash = append(m.LastCommitHash[:0], dAtA[iNdEx:postIndex]...) 14976 if m.LastCommitHash == nil { 14977 m.LastCommitHash = []byte{} 14978 } 14979 iNdEx = postIndex 14980 case 7: 14981 if wireType != 2 { 14982 return fmt.Errorf("proto: wrong wireType = %d for field DataHash", wireType) 14983 } 14984 var byteLen int 14985 for shift := uint(0); ; shift += 7 { 14986 if shift >= 64 { 14987 return ErrIntOverflowTypes 14988 } 14989 if iNdEx >= l { 14990 return io.ErrUnexpectedEOF 14991 } 14992 b := dAtA[iNdEx] 14993 iNdEx++ 14994 byteLen |= int(b&0x7F) << shift 14995 if b < 0x80 { 14996 break 14997 } 14998 } 14999 if byteLen < 0 { 15000 return ErrInvalidLengthTypes 15001 } 15002 postIndex := iNdEx + byteLen 15003 if postIndex < 0 { 15004 return ErrInvalidLengthTypes 15005 } 15006 if postIndex > l { 15007 return io.ErrUnexpectedEOF 15008 } 15009 m.DataHash = append(m.DataHash[:0], dAtA[iNdEx:postIndex]...) 15010 if m.DataHash == nil { 15011 m.DataHash = []byte{} 15012 } 15013 iNdEx = postIndex 15014 case 8: 15015 if wireType != 2 { 15016 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorsHash", wireType) 15017 } 15018 var byteLen int 15019 for shift := uint(0); ; shift += 7 { 15020 if shift >= 64 { 15021 return ErrIntOverflowTypes 15022 } 15023 if iNdEx >= l { 15024 return io.ErrUnexpectedEOF 15025 } 15026 b := dAtA[iNdEx] 15027 iNdEx++ 15028 byteLen |= int(b&0x7F) << shift 15029 if b < 0x80 { 15030 break 15031 } 15032 } 15033 if byteLen < 0 { 15034 return ErrInvalidLengthTypes 15035 } 15036 postIndex := iNdEx + byteLen 15037 if postIndex < 0 { 15038 return ErrInvalidLengthTypes 15039 } 15040 if postIndex > l { 15041 return io.ErrUnexpectedEOF 15042 } 15043 m.ValidatorsHash = append(m.ValidatorsHash[:0], dAtA[iNdEx:postIndex]...) 15044 if m.ValidatorsHash == nil { 15045 m.ValidatorsHash = []byte{} 15046 } 15047 iNdEx = postIndex 15048 case 9: 15049 if wireType != 2 { 15050 return fmt.Errorf("proto: wrong wireType = %d for field NextValidatorsHash", wireType) 15051 } 15052 var byteLen int 15053 for shift := uint(0); ; shift += 7 { 15054 if shift >= 64 { 15055 return ErrIntOverflowTypes 15056 } 15057 if iNdEx >= l { 15058 return io.ErrUnexpectedEOF 15059 } 15060 b := dAtA[iNdEx] 15061 iNdEx++ 15062 byteLen |= int(b&0x7F) << shift 15063 if b < 0x80 { 15064 break 15065 } 15066 } 15067 if byteLen < 0 { 15068 return ErrInvalidLengthTypes 15069 } 15070 postIndex := iNdEx + byteLen 15071 if postIndex < 0 { 15072 return ErrInvalidLengthTypes 15073 } 15074 if postIndex > l { 15075 return io.ErrUnexpectedEOF 15076 } 15077 m.NextValidatorsHash = append(m.NextValidatorsHash[:0], dAtA[iNdEx:postIndex]...) 15078 if m.NextValidatorsHash == nil { 15079 m.NextValidatorsHash = []byte{} 15080 } 15081 iNdEx = postIndex 15082 case 10: 15083 if wireType != 2 { 15084 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusHash", wireType) 15085 } 15086 var byteLen int 15087 for shift := uint(0); ; shift += 7 { 15088 if shift >= 64 { 15089 return ErrIntOverflowTypes 15090 } 15091 if iNdEx >= l { 15092 return io.ErrUnexpectedEOF 15093 } 15094 b := dAtA[iNdEx] 15095 iNdEx++ 15096 byteLen |= int(b&0x7F) << shift 15097 if b < 0x80 { 15098 break 15099 } 15100 } 15101 if byteLen < 0 { 15102 return ErrInvalidLengthTypes 15103 } 15104 postIndex := iNdEx + byteLen 15105 if postIndex < 0 { 15106 return ErrInvalidLengthTypes 15107 } 15108 if postIndex > l { 15109 return io.ErrUnexpectedEOF 15110 } 15111 m.ConsensusHash = append(m.ConsensusHash[:0], dAtA[iNdEx:postIndex]...) 15112 if m.ConsensusHash == nil { 15113 m.ConsensusHash = []byte{} 15114 } 15115 iNdEx = postIndex 15116 case 11: 15117 if wireType != 2 { 15118 return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType) 15119 } 15120 var byteLen int 15121 for shift := uint(0); ; shift += 7 { 15122 if shift >= 64 { 15123 return ErrIntOverflowTypes 15124 } 15125 if iNdEx >= l { 15126 return io.ErrUnexpectedEOF 15127 } 15128 b := dAtA[iNdEx] 15129 iNdEx++ 15130 byteLen |= int(b&0x7F) << shift 15131 if b < 0x80 { 15132 break 15133 } 15134 } 15135 if byteLen < 0 { 15136 return ErrInvalidLengthTypes 15137 } 15138 postIndex := iNdEx + byteLen 15139 if postIndex < 0 { 15140 return ErrInvalidLengthTypes 15141 } 15142 if postIndex > l { 15143 return io.ErrUnexpectedEOF 15144 } 15145 m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...) 15146 if m.AppHash == nil { 15147 m.AppHash = []byte{} 15148 } 15149 iNdEx = postIndex 15150 case 12: 15151 if wireType != 2 { 15152 return fmt.Errorf("proto: wrong wireType = %d for field LastResultsHash", wireType) 15153 } 15154 var byteLen int 15155 for shift := uint(0); ; shift += 7 { 15156 if shift >= 64 { 15157 return ErrIntOverflowTypes 15158 } 15159 if iNdEx >= l { 15160 return io.ErrUnexpectedEOF 15161 } 15162 b := dAtA[iNdEx] 15163 iNdEx++ 15164 byteLen |= int(b&0x7F) << shift 15165 if b < 0x80 { 15166 break 15167 } 15168 } 15169 if byteLen < 0 { 15170 return ErrInvalidLengthTypes 15171 } 15172 postIndex := iNdEx + byteLen 15173 if postIndex < 0 { 15174 return ErrInvalidLengthTypes 15175 } 15176 if postIndex > l { 15177 return io.ErrUnexpectedEOF 15178 } 15179 m.LastResultsHash = append(m.LastResultsHash[:0], dAtA[iNdEx:postIndex]...) 15180 if m.LastResultsHash == nil { 15181 m.LastResultsHash = []byte{} 15182 } 15183 iNdEx = postIndex 15184 case 13: 15185 if wireType != 2 { 15186 return fmt.Errorf("proto: wrong wireType = %d for field EvidenceHash", wireType) 15187 } 15188 var byteLen int 15189 for shift := uint(0); ; shift += 7 { 15190 if shift >= 64 { 15191 return ErrIntOverflowTypes 15192 } 15193 if iNdEx >= l { 15194 return io.ErrUnexpectedEOF 15195 } 15196 b := dAtA[iNdEx] 15197 iNdEx++ 15198 byteLen |= int(b&0x7F) << shift 15199 if b < 0x80 { 15200 break 15201 } 15202 } 15203 if byteLen < 0 { 15204 return ErrInvalidLengthTypes 15205 } 15206 postIndex := iNdEx + byteLen 15207 if postIndex < 0 { 15208 return ErrInvalidLengthTypes 15209 } 15210 if postIndex > l { 15211 return io.ErrUnexpectedEOF 15212 } 15213 m.EvidenceHash = append(m.EvidenceHash[:0], dAtA[iNdEx:postIndex]...) 15214 if m.EvidenceHash == nil { 15215 m.EvidenceHash = []byte{} 15216 } 15217 iNdEx = postIndex 15218 case 14: 15219 if wireType != 2 { 15220 return fmt.Errorf("proto: wrong wireType = %d for field ProposerAddress", wireType) 15221 } 15222 var byteLen int 15223 for shift := uint(0); ; shift += 7 { 15224 if shift >= 64 { 15225 return ErrIntOverflowTypes 15226 } 15227 if iNdEx >= l { 15228 return io.ErrUnexpectedEOF 15229 } 15230 b := dAtA[iNdEx] 15231 iNdEx++ 15232 byteLen |= int(b&0x7F) << shift 15233 if b < 0x80 { 15234 break 15235 } 15236 } 15237 if byteLen < 0 { 15238 return ErrInvalidLengthTypes 15239 } 15240 postIndex := iNdEx + byteLen 15241 if postIndex < 0 { 15242 return ErrInvalidLengthTypes 15243 } 15244 if postIndex > l { 15245 return io.ErrUnexpectedEOF 15246 } 15247 m.ProposerAddress = append(m.ProposerAddress[:0], dAtA[iNdEx:postIndex]...) 15248 if m.ProposerAddress == nil { 15249 m.ProposerAddress = []byte{} 15250 } 15251 iNdEx = postIndex 15252 default: 15253 iNdEx = preIndex 15254 skippy, err := skipTypes(dAtA[iNdEx:]) 15255 if err != nil { 15256 return err 15257 } 15258 if (skippy < 0) || (iNdEx+skippy) < 0 { 15259 return ErrInvalidLengthTypes 15260 } 15261 if (iNdEx + skippy) > l { 15262 return io.ErrUnexpectedEOF 15263 } 15264 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15265 iNdEx += skippy 15266 } 15267 } 15268 15269 if iNdEx > l { 15270 return io.ErrUnexpectedEOF 15271 } 15272 return nil 15273 } 15274 func (m *Version) Unmarshal(dAtA []byte) error { 15275 l := len(dAtA) 15276 iNdEx := 0 15277 for iNdEx < l { 15278 preIndex := iNdEx 15279 var wire uint64 15280 for shift := uint(0); ; shift += 7 { 15281 if shift >= 64 { 15282 return ErrIntOverflowTypes 15283 } 15284 if iNdEx >= l { 15285 return io.ErrUnexpectedEOF 15286 } 15287 b := dAtA[iNdEx] 15288 iNdEx++ 15289 wire |= uint64(b&0x7F) << shift 15290 if b < 0x80 { 15291 break 15292 } 15293 } 15294 fieldNum := int32(wire >> 3) 15295 wireType := int(wire & 0x7) 15296 if wireType == 4 { 15297 return fmt.Errorf("proto: Version: wiretype end group for non-group") 15298 } 15299 if fieldNum <= 0 { 15300 return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire) 15301 } 15302 switch fieldNum { 15303 case 1: 15304 if wireType != 0 { 15305 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 15306 } 15307 m.Block = 0 15308 for shift := uint(0); ; shift += 7 { 15309 if shift >= 64 { 15310 return ErrIntOverflowTypes 15311 } 15312 if iNdEx >= l { 15313 return io.ErrUnexpectedEOF 15314 } 15315 b := dAtA[iNdEx] 15316 iNdEx++ 15317 m.Block |= uint64(b&0x7F) << shift 15318 if b < 0x80 { 15319 break 15320 } 15321 } 15322 case 2: 15323 if wireType != 0 { 15324 return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) 15325 } 15326 m.App = 0 15327 for shift := uint(0); ; shift += 7 { 15328 if shift >= 64 { 15329 return ErrIntOverflowTypes 15330 } 15331 if iNdEx >= l { 15332 return io.ErrUnexpectedEOF 15333 } 15334 b := dAtA[iNdEx] 15335 iNdEx++ 15336 m.App |= uint64(b&0x7F) << shift 15337 if b < 0x80 { 15338 break 15339 } 15340 } 15341 default: 15342 iNdEx = preIndex 15343 skippy, err := skipTypes(dAtA[iNdEx:]) 15344 if err != nil { 15345 return err 15346 } 15347 if (skippy < 0) || (iNdEx+skippy) < 0 { 15348 return ErrInvalidLengthTypes 15349 } 15350 if (iNdEx + skippy) > l { 15351 return io.ErrUnexpectedEOF 15352 } 15353 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15354 iNdEx += skippy 15355 } 15356 } 15357 15358 if iNdEx > l { 15359 return io.ErrUnexpectedEOF 15360 } 15361 return nil 15362 } 15363 func (m *BlockID) Unmarshal(dAtA []byte) error { 15364 l := len(dAtA) 15365 iNdEx := 0 15366 for iNdEx < l { 15367 preIndex := iNdEx 15368 var wire uint64 15369 for shift := uint(0); ; shift += 7 { 15370 if shift >= 64 { 15371 return ErrIntOverflowTypes 15372 } 15373 if iNdEx >= l { 15374 return io.ErrUnexpectedEOF 15375 } 15376 b := dAtA[iNdEx] 15377 iNdEx++ 15378 wire |= uint64(b&0x7F) << shift 15379 if b < 0x80 { 15380 break 15381 } 15382 } 15383 fieldNum := int32(wire >> 3) 15384 wireType := int(wire & 0x7) 15385 if wireType == 4 { 15386 return fmt.Errorf("proto: BlockID: wiretype end group for non-group") 15387 } 15388 if fieldNum <= 0 { 15389 return fmt.Errorf("proto: BlockID: illegal tag %d (wire type %d)", fieldNum, wire) 15390 } 15391 switch fieldNum { 15392 case 1: 15393 if wireType != 2 { 15394 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 15395 } 15396 var byteLen int 15397 for shift := uint(0); ; shift += 7 { 15398 if shift >= 64 { 15399 return ErrIntOverflowTypes 15400 } 15401 if iNdEx >= l { 15402 return io.ErrUnexpectedEOF 15403 } 15404 b := dAtA[iNdEx] 15405 iNdEx++ 15406 byteLen |= int(b&0x7F) << shift 15407 if b < 0x80 { 15408 break 15409 } 15410 } 15411 if byteLen < 0 { 15412 return ErrInvalidLengthTypes 15413 } 15414 postIndex := iNdEx + byteLen 15415 if postIndex < 0 { 15416 return ErrInvalidLengthTypes 15417 } 15418 if postIndex > l { 15419 return io.ErrUnexpectedEOF 15420 } 15421 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 15422 if m.Hash == nil { 15423 m.Hash = []byte{} 15424 } 15425 iNdEx = postIndex 15426 case 2: 15427 if wireType != 2 { 15428 return fmt.Errorf("proto: wrong wireType = %d for field PartsHeader", wireType) 15429 } 15430 var msglen int 15431 for shift := uint(0); ; shift += 7 { 15432 if shift >= 64 { 15433 return ErrIntOverflowTypes 15434 } 15435 if iNdEx >= l { 15436 return io.ErrUnexpectedEOF 15437 } 15438 b := dAtA[iNdEx] 15439 iNdEx++ 15440 msglen |= int(b&0x7F) << shift 15441 if b < 0x80 { 15442 break 15443 } 15444 } 15445 if msglen < 0 { 15446 return ErrInvalidLengthTypes 15447 } 15448 postIndex := iNdEx + msglen 15449 if postIndex < 0 { 15450 return ErrInvalidLengthTypes 15451 } 15452 if postIndex > l { 15453 return io.ErrUnexpectedEOF 15454 } 15455 if err := m.PartsHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15456 return err 15457 } 15458 iNdEx = postIndex 15459 default: 15460 iNdEx = preIndex 15461 skippy, err := skipTypes(dAtA[iNdEx:]) 15462 if err != nil { 15463 return err 15464 } 15465 if (skippy < 0) || (iNdEx+skippy) < 0 { 15466 return ErrInvalidLengthTypes 15467 } 15468 if (iNdEx + skippy) > l { 15469 return io.ErrUnexpectedEOF 15470 } 15471 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15472 iNdEx += skippy 15473 } 15474 } 15475 15476 if iNdEx > l { 15477 return io.ErrUnexpectedEOF 15478 } 15479 return nil 15480 } 15481 func (m *PartSetHeader) Unmarshal(dAtA []byte) error { 15482 l := len(dAtA) 15483 iNdEx := 0 15484 for iNdEx < l { 15485 preIndex := iNdEx 15486 var wire uint64 15487 for shift := uint(0); ; shift += 7 { 15488 if shift >= 64 { 15489 return ErrIntOverflowTypes 15490 } 15491 if iNdEx >= l { 15492 return io.ErrUnexpectedEOF 15493 } 15494 b := dAtA[iNdEx] 15495 iNdEx++ 15496 wire |= uint64(b&0x7F) << shift 15497 if b < 0x80 { 15498 break 15499 } 15500 } 15501 fieldNum := int32(wire >> 3) 15502 wireType := int(wire & 0x7) 15503 if wireType == 4 { 15504 return fmt.Errorf("proto: PartSetHeader: wiretype end group for non-group") 15505 } 15506 if fieldNum <= 0 { 15507 return fmt.Errorf("proto: PartSetHeader: illegal tag %d (wire type %d)", fieldNum, wire) 15508 } 15509 switch fieldNum { 15510 case 1: 15511 if wireType != 0 { 15512 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 15513 } 15514 m.Total = 0 15515 for shift := uint(0); ; shift += 7 { 15516 if shift >= 64 { 15517 return ErrIntOverflowTypes 15518 } 15519 if iNdEx >= l { 15520 return io.ErrUnexpectedEOF 15521 } 15522 b := dAtA[iNdEx] 15523 iNdEx++ 15524 m.Total |= int32(b&0x7F) << shift 15525 if b < 0x80 { 15526 break 15527 } 15528 } 15529 case 2: 15530 if wireType != 2 { 15531 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 15532 } 15533 var byteLen int 15534 for shift := uint(0); ; shift += 7 { 15535 if shift >= 64 { 15536 return ErrIntOverflowTypes 15537 } 15538 if iNdEx >= l { 15539 return io.ErrUnexpectedEOF 15540 } 15541 b := dAtA[iNdEx] 15542 iNdEx++ 15543 byteLen |= int(b&0x7F) << shift 15544 if b < 0x80 { 15545 break 15546 } 15547 } 15548 if byteLen < 0 { 15549 return ErrInvalidLengthTypes 15550 } 15551 postIndex := iNdEx + byteLen 15552 if postIndex < 0 { 15553 return ErrInvalidLengthTypes 15554 } 15555 if postIndex > l { 15556 return io.ErrUnexpectedEOF 15557 } 15558 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 15559 if m.Hash == nil { 15560 m.Hash = []byte{} 15561 } 15562 iNdEx = postIndex 15563 default: 15564 iNdEx = preIndex 15565 skippy, err := skipTypes(dAtA[iNdEx:]) 15566 if err != nil { 15567 return err 15568 } 15569 if (skippy < 0) || (iNdEx+skippy) < 0 { 15570 return ErrInvalidLengthTypes 15571 } 15572 if (iNdEx + skippy) > l { 15573 return io.ErrUnexpectedEOF 15574 } 15575 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15576 iNdEx += skippy 15577 } 15578 } 15579 15580 if iNdEx > l { 15581 return io.ErrUnexpectedEOF 15582 } 15583 return nil 15584 } 15585 func (m *Validator) Unmarshal(dAtA []byte) error { 15586 l := len(dAtA) 15587 iNdEx := 0 15588 for iNdEx < l { 15589 preIndex := iNdEx 15590 var wire uint64 15591 for shift := uint(0); ; shift += 7 { 15592 if shift >= 64 { 15593 return ErrIntOverflowTypes 15594 } 15595 if iNdEx >= l { 15596 return io.ErrUnexpectedEOF 15597 } 15598 b := dAtA[iNdEx] 15599 iNdEx++ 15600 wire |= uint64(b&0x7F) << shift 15601 if b < 0x80 { 15602 break 15603 } 15604 } 15605 fieldNum := int32(wire >> 3) 15606 wireType := int(wire & 0x7) 15607 if wireType == 4 { 15608 return fmt.Errorf("proto: Validator: wiretype end group for non-group") 15609 } 15610 if fieldNum <= 0 { 15611 return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) 15612 } 15613 switch fieldNum { 15614 case 1: 15615 if wireType != 2 { 15616 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 15617 } 15618 var byteLen int 15619 for shift := uint(0); ; shift += 7 { 15620 if shift >= 64 { 15621 return ErrIntOverflowTypes 15622 } 15623 if iNdEx >= l { 15624 return io.ErrUnexpectedEOF 15625 } 15626 b := dAtA[iNdEx] 15627 iNdEx++ 15628 byteLen |= int(b&0x7F) << shift 15629 if b < 0x80 { 15630 break 15631 } 15632 } 15633 if byteLen < 0 { 15634 return ErrInvalidLengthTypes 15635 } 15636 postIndex := iNdEx + byteLen 15637 if postIndex < 0 { 15638 return ErrInvalidLengthTypes 15639 } 15640 if postIndex > l { 15641 return io.ErrUnexpectedEOF 15642 } 15643 m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) 15644 if m.Address == nil { 15645 m.Address = []byte{} 15646 } 15647 iNdEx = postIndex 15648 case 3: 15649 if wireType != 0 { 15650 return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) 15651 } 15652 m.Power = 0 15653 for shift := uint(0); ; shift += 7 { 15654 if shift >= 64 { 15655 return ErrIntOverflowTypes 15656 } 15657 if iNdEx >= l { 15658 return io.ErrUnexpectedEOF 15659 } 15660 b := dAtA[iNdEx] 15661 iNdEx++ 15662 m.Power |= int64(b&0x7F) << shift 15663 if b < 0x80 { 15664 break 15665 } 15666 } 15667 default: 15668 iNdEx = preIndex 15669 skippy, err := skipTypes(dAtA[iNdEx:]) 15670 if err != nil { 15671 return err 15672 } 15673 if (skippy < 0) || (iNdEx+skippy) < 0 { 15674 return ErrInvalidLengthTypes 15675 } 15676 if (iNdEx + skippy) > l { 15677 return io.ErrUnexpectedEOF 15678 } 15679 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15680 iNdEx += skippy 15681 } 15682 } 15683 15684 if iNdEx > l { 15685 return io.ErrUnexpectedEOF 15686 } 15687 return nil 15688 } 15689 func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error { 15690 l := len(dAtA) 15691 iNdEx := 0 15692 for iNdEx < l { 15693 preIndex := iNdEx 15694 var wire uint64 15695 for shift := uint(0); ; shift += 7 { 15696 if shift >= 64 { 15697 return ErrIntOverflowTypes 15698 } 15699 if iNdEx >= l { 15700 return io.ErrUnexpectedEOF 15701 } 15702 b := dAtA[iNdEx] 15703 iNdEx++ 15704 wire |= uint64(b&0x7F) << shift 15705 if b < 0x80 { 15706 break 15707 } 15708 } 15709 fieldNum := int32(wire >> 3) 15710 wireType := int(wire & 0x7) 15711 if wireType == 4 { 15712 return fmt.Errorf("proto: ValidatorUpdate: wiretype end group for non-group") 15713 } 15714 if fieldNum <= 0 { 15715 return fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire) 15716 } 15717 switch fieldNum { 15718 case 1: 15719 if wireType != 2 { 15720 return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) 15721 } 15722 var msglen int 15723 for shift := uint(0); ; shift += 7 { 15724 if shift >= 64 { 15725 return ErrIntOverflowTypes 15726 } 15727 if iNdEx >= l { 15728 return io.ErrUnexpectedEOF 15729 } 15730 b := dAtA[iNdEx] 15731 iNdEx++ 15732 msglen |= int(b&0x7F) << shift 15733 if b < 0x80 { 15734 break 15735 } 15736 } 15737 if msglen < 0 { 15738 return ErrInvalidLengthTypes 15739 } 15740 postIndex := iNdEx + msglen 15741 if postIndex < 0 { 15742 return ErrInvalidLengthTypes 15743 } 15744 if postIndex > l { 15745 return io.ErrUnexpectedEOF 15746 } 15747 if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15748 return err 15749 } 15750 iNdEx = postIndex 15751 case 2: 15752 if wireType != 0 { 15753 return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) 15754 } 15755 m.Power = 0 15756 for shift := uint(0); ; shift += 7 { 15757 if shift >= 64 { 15758 return ErrIntOverflowTypes 15759 } 15760 if iNdEx >= l { 15761 return io.ErrUnexpectedEOF 15762 } 15763 b := dAtA[iNdEx] 15764 iNdEx++ 15765 m.Power |= int64(b&0x7F) << shift 15766 if b < 0x80 { 15767 break 15768 } 15769 } 15770 default: 15771 iNdEx = preIndex 15772 skippy, err := skipTypes(dAtA[iNdEx:]) 15773 if err != nil { 15774 return err 15775 } 15776 if (skippy < 0) || (iNdEx+skippy) < 0 { 15777 return ErrInvalidLengthTypes 15778 } 15779 if (iNdEx + skippy) > l { 15780 return io.ErrUnexpectedEOF 15781 } 15782 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15783 iNdEx += skippy 15784 } 15785 } 15786 15787 if iNdEx > l { 15788 return io.ErrUnexpectedEOF 15789 } 15790 return nil 15791 } 15792 func (m *VoteInfo) Unmarshal(dAtA []byte) error { 15793 l := len(dAtA) 15794 iNdEx := 0 15795 for iNdEx < l { 15796 preIndex := iNdEx 15797 var wire uint64 15798 for shift := uint(0); ; shift += 7 { 15799 if shift >= 64 { 15800 return ErrIntOverflowTypes 15801 } 15802 if iNdEx >= l { 15803 return io.ErrUnexpectedEOF 15804 } 15805 b := dAtA[iNdEx] 15806 iNdEx++ 15807 wire |= uint64(b&0x7F) << shift 15808 if b < 0x80 { 15809 break 15810 } 15811 } 15812 fieldNum := int32(wire >> 3) 15813 wireType := int(wire & 0x7) 15814 if wireType == 4 { 15815 return fmt.Errorf("proto: VoteInfo: wiretype end group for non-group") 15816 } 15817 if fieldNum <= 0 { 15818 return fmt.Errorf("proto: VoteInfo: illegal tag %d (wire type %d)", fieldNum, wire) 15819 } 15820 switch fieldNum { 15821 case 1: 15822 if wireType != 2 { 15823 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 15824 } 15825 var msglen int 15826 for shift := uint(0); ; shift += 7 { 15827 if shift >= 64 { 15828 return ErrIntOverflowTypes 15829 } 15830 if iNdEx >= l { 15831 return io.ErrUnexpectedEOF 15832 } 15833 b := dAtA[iNdEx] 15834 iNdEx++ 15835 msglen |= int(b&0x7F) << shift 15836 if b < 0x80 { 15837 break 15838 } 15839 } 15840 if msglen < 0 { 15841 return ErrInvalidLengthTypes 15842 } 15843 postIndex := iNdEx + msglen 15844 if postIndex < 0 { 15845 return ErrInvalidLengthTypes 15846 } 15847 if postIndex > l { 15848 return io.ErrUnexpectedEOF 15849 } 15850 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15851 return err 15852 } 15853 iNdEx = postIndex 15854 case 2: 15855 if wireType != 0 { 15856 return fmt.Errorf("proto: wrong wireType = %d for field SignedLastBlock", wireType) 15857 } 15858 var v int 15859 for shift := uint(0); ; shift += 7 { 15860 if shift >= 64 { 15861 return ErrIntOverflowTypes 15862 } 15863 if iNdEx >= l { 15864 return io.ErrUnexpectedEOF 15865 } 15866 b := dAtA[iNdEx] 15867 iNdEx++ 15868 v |= int(b&0x7F) << shift 15869 if b < 0x80 { 15870 break 15871 } 15872 } 15873 m.SignedLastBlock = bool(v != 0) 15874 default: 15875 iNdEx = preIndex 15876 skippy, err := skipTypes(dAtA[iNdEx:]) 15877 if err != nil { 15878 return err 15879 } 15880 if (skippy < 0) || (iNdEx+skippy) < 0 { 15881 return ErrInvalidLengthTypes 15882 } 15883 if (iNdEx + skippy) > l { 15884 return io.ErrUnexpectedEOF 15885 } 15886 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15887 iNdEx += skippy 15888 } 15889 } 15890 15891 if iNdEx > l { 15892 return io.ErrUnexpectedEOF 15893 } 15894 return nil 15895 } 15896 func (m *PubKey) Unmarshal(dAtA []byte) error { 15897 l := len(dAtA) 15898 iNdEx := 0 15899 for iNdEx < l { 15900 preIndex := iNdEx 15901 var wire uint64 15902 for shift := uint(0); ; shift += 7 { 15903 if shift >= 64 { 15904 return ErrIntOverflowTypes 15905 } 15906 if iNdEx >= l { 15907 return io.ErrUnexpectedEOF 15908 } 15909 b := dAtA[iNdEx] 15910 iNdEx++ 15911 wire |= uint64(b&0x7F) << shift 15912 if b < 0x80 { 15913 break 15914 } 15915 } 15916 fieldNum := int32(wire >> 3) 15917 wireType := int(wire & 0x7) 15918 if wireType == 4 { 15919 return fmt.Errorf("proto: PubKey: wiretype end group for non-group") 15920 } 15921 if fieldNum <= 0 { 15922 return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) 15923 } 15924 switch fieldNum { 15925 case 1: 15926 if wireType != 2 { 15927 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 15928 } 15929 var stringLen uint64 15930 for shift := uint(0); ; shift += 7 { 15931 if shift >= 64 { 15932 return ErrIntOverflowTypes 15933 } 15934 if iNdEx >= l { 15935 return io.ErrUnexpectedEOF 15936 } 15937 b := dAtA[iNdEx] 15938 iNdEx++ 15939 stringLen |= uint64(b&0x7F) << shift 15940 if b < 0x80 { 15941 break 15942 } 15943 } 15944 intStringLen := int(stringLen) 15945 if intStringLen < 0 { 15946 return ErrInvalidLengthTypes 15947 } 15948 postIndex := iNdEx + intStringLen 15949 if postIndex < 0 { 15950 return ErrInvalidLengthTypes 15951 } 15952 if postIndex > l { 15953 return io.ErrUnexpectedEOF 15954 } 15955 m.Type = string(dAtA[iNdEx:postIndex]) 15956 iNdEx = postIndex 15957 case 2: 15958 if wireType != 2 { 15959 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 15960 } 15961 var byteLen int 15962 for shift := uint(0); ; shift += 7 { 15963 if shift >= 64 { 15964 return ErrIntOverflowTypes 15965 } 15966 if iNdEx >= l { 15967 return io.ErrUnexpectedEOF 15968 } 15969 b := dAtA[iNdEx] 15970 iNdEx++ 15971 byteLen |= int(b&0x7F) << shift 15972 if b < 0x80 { 15973 break 15974 } 15975 } 15976 if byteLen < 0 { 15977 return ErrInvalidLengthTypes 15978 } 15979 postIndex := iNdEx + byteLen 15980 if postIndex < 0 { 15981 return ErrInvalidLengthTypes 15982 } 15983 if postIndex > l { 15984 return io.ErrUnexpectedEOF 15985 } 15986 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 15987 if m.Data == nil { 15988 m.Data = []byte{} 15989 } 15990 iNdEx = postIndex 15991 default: 15992 iNdEx = preIndex 15993 skippy, err := skipTypes(dAtA[iNdEx:]) 15994 if err != nil { 15995 return err 15996 } 15997 if (skippy < 0) || (iNdEx+skippy) < 0 { 15998 return ErrInvalidLengthTypes 15999 } 16000 if (iNdEx + skippy) > l { 16001 return io.ErrUnexpectedEOF 16002 } 16003 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 16004 iNdEx += skippy 16005 } 16006 } 16007 16008 if iNdEx > l { 16009 return io.ErrUnexpectedEOF 16010 } 16011 return nil 16012 } 16013 func (m *Evidence) Unmarshal(dAtA []byte) error { 16014 l := len(dAtA) 16015 iNdEx := 0 16016 for iNdEx < l { 16017 preIndex := iNdEx 16018 var wire uint64 16019 for shift := uint(0); ; shift += 7 { 16020 if shift >= 64 { 16021 return ErrIntOverflowTypes 16022 } 16023 if iNdEx >= l { 16024 return io.ErrUnexpectedEOF 16025 } 16026 b := dAtA[iNdEx] 16027 iNdEx++ 16028 wire |= uint64(b&0x7F) << shift 16029 if b < 0x80 { 16030 break 16031 } 16032 } 16033 fieldNum := int32(wire >> 3) 16034 wireType := int(wire & 0x7) 16035 if wireType == 4 { 16036 return fmt.Errorf("proto: Evidence: wiretype end group for non-group") 16037 } 16038 if fieldNum <= 0 { 16039 return fmt.Errorf("proto: Evidence: illegal tag %d (wire type %d)", fieldNum, wire) 16040 } 16041 switch fieldNum { 16042 case 1: 16043 if wireType != 2 { 16044 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 16045 } 16046 var stringLen uint64 16047 for shift := uint(0); ; shift += 7 { 16048 if shift >= 64 { 16049 return ErrIntOverflowTypes 16050 } 16051 if iNdEx >= l { 16052 return io.ErrUnexpectedEOF 16053 } 16054 b := dAtA[iNdEx] 16055 iNdEx++ 16056 stringLen |= uint64(b&0x7F) << shift 16057 if b < 0x80 { 16058 break 16059 } 16060 } 16061 intStringLen := int(stringLen) 16062 if intStringLen < 0 { 16063 return ErrInvalidLengthTypes 16064 } 16065 postIndex := iNdEx + intStringLen 16066 if postIndex < 0 { 16067 return ErrInvalidLengthTypes 16068 } 16069 if postIndex > l { 16070 return io.ErrUnexpectedEOF 16071 } 16072 m.Type = string(dAtA[iNdEx:postIndex]) 16073 iNdEx = postIndex 16074 case 2: 16075 if wireType != 2 { 16076 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 16077 } 16078 var msglen int 16079 for shift := uint(0); ; shift += 7 { 16080 if shift >= 64 { 16081 return ErrIntOverflowTypes 16082 } 16083 if iNdEx >= l { 16084 return io.ErrUnexpectedEOF 16085 } 16086 b := dAtA[iNdEx] 16087 iNdEx++ 16088 msglen |= int(b&0x7F) << shift 16089 if b < 0x80 { 16090 break 16091 } 16092 } 16093 if msglen < 0 { 16094 return ErrInvalidLengthTypes 16095 } 16096 postIndex := iNdEx + msglen 16097 if postIndex < 0 { 16098 return ErrInvalidLengthTypes 16099 } 16100 if postIndex > l { 16101 return io.ErrUnexpectedEOF 16102 } 16103 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 16104 return err 16105 } 16106 iNdEx = postIndex 16107 case 3: 16108 if wireType != 0 { 16109 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 16110 } 16111 m.Height = 0 16112 for shift := uint(0); ; shift += 7 { 16113 if shift >= 64 { 16114 return ErrIntOverflowTypes 16115 } 16116 if iNdEx >= l { 16117 return io.ErrUnexpectedEOF 16118 } 16119 b := dAtA[iNdEx] 16120 iNdEx++ 16121 m.Height |= int64(b&0x7F) << shift 16122 if b < 0x80 { 16123 break 16124 } 16125 } 16126 case 4: 16127 if wireType != 2 { 16128 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 16129 } 16130 var msglen int 16131 for shift := uint(0); ; shift += 7 { 16132 if shift >= 64 { 16133 return ErrIntOverflowTypes 16134 } 16135 if iNdEx >= l { 16136 return io.ErrUnexpectedEOF 16137 } 16138 b := dAtA[iNdEx] 16139 iNdEx++ 16140 msglen |= int(b&0x7F) << shift 16141 if b < 0x80 { 16142 break 16143 } 16144 } 16145 if msglen < 0 { 16146 return ErrInvalidLengthTypes 16147 } 16148 postIndex := iNdEx + msglen 16149 if postIndex < 0 { 16150 return ErrInvalidLengthTypes 16151 } 16152 if postIndex > l { 16153 return io.ErrUnexpectedEOF 16154 } 16155 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 16156 return err 16157 } 16158 iNdEx = postIndex 16159 case 5: 16160 if wireType != 0 { 16161 return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType) 16162 } 16163 m.TotalVotingPower = 0 16164 for shift := uint(0); ; shift += 7 { 16165 if shift >= 64 { 16166 return ErrIntOverflowTypes 16167 } 16168 if iNdEx >= l { 16169 return io.ErrUnexpectedEOF 16170 } 16171 b := dAtA[iNdEx] 16172 iNdEx++ 16173 m.TotalVotingPower |= int64(b&0x7F) << shift 16174 if b < 0x80 { 16175 break 16176 } 16177 } 16178 default: 16179 iNdEx = preIndex 16180 skippy, err := skipTypes(dAtA[iNdEx:]) 16181 if err != nil { 16182 return err 16183 } 16184 if (skippy < 0) || (iNdEx+skippy) < 0 { 16185 return ErrInvalidLengthTypes 16186 } 16187 if (iNdEx + skippy) > l { 16188 return io.ErrUnexpectedEOF 16189 } 16190 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 16191 iNdEx += skippy 16192 } 16193 } 16194 16195 if iNdEx > l { 16196 return io.ErrUnexpectedEOF 16197 } 16198 return nil 16199 } 16200 func skipTypes(dAtA []byte) (n int, err error) { 16201 l := len(dAtA) 16202 iNdEx := 0 16203 depth := 0 16204 for iNdEx < l { 16205 var wire uint64 16206 for shift := uint(0); ; shift += 7 { 16207 if shift >= 64 { 16208 return 0, ErrIntOverflowTypes 16209 } 16210 if iNdEx >= l { 16211 return 0, io.ErrUnexpectedEOF 16212 } 16213 b := dAtA[iNdEx] 16214 iNdEx++ 16215 wire |= (uint64(b) & 0x7F) << shift 16216 if b < 0x80 { 16217 break 16218 } 16219 } 16220 wireType := int(wire & 0x7) 16221 switch wireType { 16222 case 0: 16223 for shift := uint(0); ; shift += 7 { 16224 if shift >= 64 { 16225 return 0, ErrIntOverflowTypes 16226 } 16227 if iNdEx >= l { 16228 return 0, io.ErrUnexpectedEOF 16229 } 16230 iNdEx++ 16231 if dAtA[iNdEx-1] < 0x80 { 16232 break 16233 } 16234 } 16235 case 1: 16236 iNdEx += 8 16237 case 2: 16238 var length int 16239 for shift := uint(0); ; shift += 7 { 16240 if shift >= 64 { 16241 return 0, ErrIntOverflowTypes 16242 } 16243 if iNdEx >= l { 16244 return 0, io.ErrUnexpectedEOF 16245 } 16246 b := dAtA[iNdEx] 16247 iNdEx++ 16248 length |= (int(b) & 0x7F) << shift 16249 if b < 0x80 { 16250 break 16251 } 16252 } 16253 if length < 0 { 16254 return 0, ErrInvalidLengthTypes 16255 } 16256 iNdEx += length 16257 case 3: 16258 depth++ 16259 case 4: 16260 if depth == 0 { 16261 return 0, ErrUnexpectedEndOfGroupTypes 16262 } 16263 depth-- 16264 case 5: 16265 iNdEx += 4 16266 default: 16267 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 16268 } 16269 if iNdEx < 0 { 16270 return 0, ErrInvalidLengthTypes 16271 } 16272 if depth == 0 { 16273 return iNdEx, nil 16274 } 16275 } 16276 return 0, io.ErrUnexpectedEOF 16277 } 16278 16279 var ( 16280 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 16281 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 16282 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 16283 )