github.com/adoriasoft/tendermint@v0.34.0-dev1.0.20200722151356-96d84601a75a/abci/types/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: tendermint/abci/types.proto 3 4 package types 5 6 import ( 7 context "context" 8 fmt "fmt" 9 crypto "github.com/adoriasoft/tendermint/proto/tendermint/crypto" 10 types1 "github.com/adoriasoft/tendermint/proto/tendermint/types" 11 _ "github.com/gogo/protobuf/gogoproto" 12 proto "github.com/gogo/protobuf/proto" 13 _ "github.com/gogo/protobuf/types" 14 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 15 _ "google.golang.org/genproto/googleapis/api/annotations" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 time "time" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = fmt.Errorf 28 var _ = math.Inf 29 var _ = time.Kitchen 30 31 // This is a compile-time assertion to ensure that this generated file 32 // is compatible with the proto package it is being compiled against. 33 // A compilation error at this line likely means your copy of the 34 // proto package needs to be updated. 35 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 36 37 type CheckTxType int32 38 39 const ( 40 CheckTxType_New CheckTxType = 0 41 CheckTxType_Recheck CheckTxType = 1 42 ) 43 44 var CheckTxType_name = map[int32]string{ 45 0: "NEW", 46 1: "RECHECK", 47 } 48 49 var CheckTxType_value = map[string]int32{ 50 "NEW": 0, 51 "RECHECK": 1, 52 } 53 54 func (x CheckTxType) String() string { 55 return proto.EnumName(CheckTxType_name, int32(x)) 56 } 57 58 func (CheckTxType) EnumDescriptor() ([]byte, []int) { 59 return fileDescriptor_252557cfdd89a31a, []int{0} 60 } 61 62 type ResponseOfferSnapshot_Result int32 63 64 const ( 65 ResponseOfferSnapshot_UNKNOWN ResponseOfferSnapshot_Result = 0 66 ResponseOfferSnapshot_ACCEPT ResponseOfferSnapshot_Result = 1 67 ResponseOfferSnapshot_ABORT ResponseOfferSnapshot_Result = 2 68 ResponseOfferSnapshot_REJECT ResponseOfferSnapshot_Result = 3 69 ResponseOfferSnapshot_REJECT_FORMAT ResponseOfferSnapshot_Result = 4 70 ResponseOfferSnapshot_REJECT_SENDER ResponseOfferSnapshot_Result = 5 71 ) 72 73 var ResponseOfferSnapshot_Result_name = map[int32]string{ 74 0: "UNKNOWN", 75 1: "ACCEPT", 76 2: "ABORT", 77 3: "REJECT", 78 4: "REJECT_FORMAT", 79 5: "REJECT_SENDER", 80 } 81 82 var ResponseOfferSnapshot_Result_value = map[string]int32{ 83 "UNKNOWN": 0, 84 "ACCEPT": 1, 85 "ABORT": 2, 86 "REJECT": 3, 87 "REJECT_FORMAT": 4, 88 "REJECT_SENDER": 5, 89 } 90 91 func (x ResponseOfferSnapshot_Result) String() string { 92 return proto.EnumName(ResponseOfferSnapshot_Result_name, int32(x)) 93 } 94 95 func (ResponseOfferSnapshot_Result) EnumDescriptor() ([]byte, []int) { 96 return fileDescriptor_252557cfdd89a31a, []int{30, 0} 97 } 98 99 type ResponseApplySnapshotChunk_Result int32 100 101 const ( 102 ResponseApplySnapshotChunk_UNKNOWN ResponseApplySnapshotChunk_Result = 0 103 ResponseApplySnapshotChunk_ACCEPT ResponseApplySnapshotChunk_Result = 1 104 ResponseApplySnapshotChunk_ABORT ResponseApplySnapshotChunk_Result = 2 105 ResponseApplySnapshotChunk_RETRY ResponseApplySnapshotChunk_Result = 3 106 ResponseApplySnapshotChunk_RETRY_SNAPSHOT ResponseApplySnapshotChunk_Result = 4 107 ResponseApplySnapshotChunk_REJECT_SNAPSHOT ResponseApplySnapshotChunk_Result = 5 108 ) 109 110 var ResponseApplySnapshotChunk_Result_name = map[int32]string{ 111 0: "UNKNOWN", 112 1: "ACCEPT", 113 2: "ABORT", 114 3: "RETRY", 115 4: "RETRY_SNAPSHOT", 116 5: "REJECT_SNAPSHOT", 117 } 118 119 var ResponseApplySnapshotChunk_Result_value = map[string]int32{ 120 "UNKNOWN": 0, 121 "ACCEPT": 1, 122 "ABORT": 2, 123 "RETRY": 3, 124 "RETRY_SNAPSHOT": 4, 125 "REJECT_SNAPSHOT": 5, 126 } 127 128 func (x ResponseApplySnapshotChunk_Result) String() string { 129 return proto.EnumName(ResponseApplySnapshotChunk_Result_name, int32(x)) 130 } 131 132 func (ResponseApplySnapshotChunk_Result) EnumDescriptor() ([]byte, []int) { 133 return fileDescriptor_252557cfdd89a31a, []int{32, 0} 134 } 135 136 type Request struct { 137 // Types that are valid to be assigned to Value: 138 // *Request_Echo 139 // *Request_Flush 140 // *Request_Info 141 // *Request_SetOption 142 // *Request_InitChain 143 // *Request_Query 144 // *Request_BeginBlock 145 // *Request_CheckTx 146 // *Request_DeliverTx 147 // *Request_EndBlock 148 // *Request_Commit 149 // *Request_ListSnapshots 150 // *Request_OfferSnapshot 151 // *Request_LoadSnapshotChunk 152 // *Request_ApplySnapshotChunk 153 Value isRequest_Value `protobuf_oneof:"value"` 154 } 155 156 func (m *Request) Reset() { *m = Request{} } 157 func (m *Request) String() string { return proto.CompactTextString(m) } 158 func (*Request) ProtoMessage() {} 159 func (*Request) Descriptor() ([]byte, []int) { 160 return fileDescriptor_252557cfdd89a31a, []int{0} 161 } 162 func (m *Request) XXX_Unmarshal(b []byte) error { 163 return m.Unmarshal(b) 164 } 165 func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 166 if deterministic { 167 return xxx_messageInfo_Request.Marshal(b, m, deterministic) 168 } else { 169 b = b[:cap(b)] 170 n, err := m.MarshalToSizedBuffer(b) 171 if err != nil { 172 return nil, err 173 } 174 return b[:n], nil 175 } 176 } 177 func (m *Request) XXX_Merge(src proto.Message) { 178 xxx_messageInfo_Request.Merge(m, src) 179 } 180 func (m *Request) XXX_Size() int { 181 return m.Size() 182 } 183 func (m *Request) XXX_DiscardUnknown() { 184 xxx_messageInfo_Request.DiscardUnknown(m) 185 } 186 187 var xxx_messageInfo_Request proto.InternalMessageInfo 188 189 type isRequest_Value interface { 190 isRequest_Value() 191 MarshalTo([]byte) (int, error) 192 Size() int 193 } 194 195 type Request_Echo struct { 196 Echo *RequestEcho `protobuf:"bytes,1,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 197 } 198 type Request_Flush struct { 199 Flush *RequestFlush `protobuf:"bytes,2,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 200 } 201 type Request_Info struct { 202 Info *RequestInfo `protobuf:"bytes,3,opt,name=info,proto3,oneof" json:"info,omitempty"` 203 } 204 type Request_SetOption struct { 205 SetOption *RequestSetOption `protobuf:"bytes,4,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 206 } 207 type Request_InitChain struct { 208 InitChain *RequestInitChain `protobuf:"bytes,5,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 209 } 210 type Request_Query struct { 211 Query *RequestQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof" json:"query,omitempty"` 212 } 213 type Request_BeginBlock struct { 214 BeginBlock *RequestBeginBlock `protobuf:"bytes,7,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 215 } 216 type Request_CheckTx struct { 217 CheckTx *RequestCheckTx `protobuf:"bytes,8,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 218 } 219 type Request_DeliverTx struct { 220 DeliverTx *RequestDeliverTx `protobuf:"bytes,9,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 221 } 222 type Request_EndBlock struct { 223 EndBlock *RequestEndBlock `protobuf:"bytes,10,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 224 } 225 type Request_Commit struct { 226 Commit *RequestCommit `protobuf:"bytes,11,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 227 } 228 type Request_ListSnapshots struct { 229 ListSnapshots *RequestListSnapshots `protobuf:"bytes,12,opt,name=list_snapshots,json=listSnapshots,proto3,oneof" json:"list_snapshots,omitempty"` 230 } 231 type Request_OfferSnapshot struct { 232 OfferSnapshot *RequestOfferSnapshot `protobuf:"bytes,13,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof" json:"offer_snapshot,omitempty"` 233 } 234 type Request_LoadSnapshotChunk struct { 235 LoadSnapshotChunk *RequestLoadSnapshotChunk `protobuf:"bytes,14,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof" json:"load_snapshot_chunk,omitempty"` 236 } 237 type Request_ApplySnapshotChunk struct { 238 ApplySnapshotChunk *RequestApplySnapshotChunk `protobuf:"bytes,15,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"` 239 } 240 241 func (*Request_Echo) isRequest_Value() {} 242 func (*Request_Flush) isRequest_Value() {} 243 func (*Request_Info) isRequest_Value() {} 244 func (*Request_SetOption) isRequest_Value() {} 245 func (*Request_InitChain) isRequest_Value() {} 246 func (*Request_Query) isRequest_Value() {} 247 func (*Request_BeginBlock) isRequest_Value() {} 248 func (*Request_CheckTx) isRequest_Value() {} 249 func (*Request_DeliverTx) isRequest_Value() {} 250 func (*Request_EndBlock) isRequest_Value() {} 251 func (*Request_Commit) isRequest_Value() {} 252 func (*Request_ListSnapshots) isRequest_Value() {} 253 func (*Request_OfferSnapshot) isRequest_Value() {} 254 func (*Request_LoadSnapshotChunk) isRequest_Value() {} 255 func (*Request_ApplySnapshotChunk) isRequest_Value() {} 256 257 func (m *Request) GetValue() isRequest_Value { 258 if m != nil { 259 return m.Value 260 } 261 return nil 262 } 263 264 func (m *Request) GetEcho() *RequestEcho { 265 if x, ok := m.GetValue().(*Request_Echo); ok { 266 return x.Echo 267 } 268 return nil 269 } 270 271 func (m *Request) GetFlush() *RequestFlush { 272 if x, ok := m.GetValue().(*Request_Flush); ok { 273 return x.Flush 274 } 275 return nil 276 } 277 278 func (m *Request) GetInfo() *RequestInfo { 279 if x, ok := m.GetValue().(*Request_Info); ok { 280 return x.Info 281 } 282 return nil 283 } 284 285 func (m *Request) GetSetOption() *RequestSetOption { 286 if x, ok := m.GetValue().(*Request_SetOption); ok { 287 return x.SetOption 288 } 289 return nil 290 } 291 292 func (m *Request) GetInitChain() *RequestInitChain { 293 if x, ok := m.GetValue().(*Request_InitChain); ok { 294 return x.InitChain 295 } 296 return nil 297 } 298 299 func (m *Request) GetQuery() *RequestQuery { 300 if x, ok := m.GetValue().(*Request_Query); ok { 301 return x.Query 302 } 303 return nil 304 } 305 306 func (m *Request) GetBeginBlock() *RequestBeginBlock { 307 if x, ok := m.GetValue().(*Request_BeginBlock); ok { 308 return x.BeginBlock 309 } 310 return nil 311 } 312 313 func (m *Request) GetCheckTx() *RequestCheckTx { 314 if x, ok := m.GetValue().(*Request_CheckTx); ok { 315 return x.CheckTx 316 } 317 return nil 318 } 319 320 func (m *Request) GetDeliverTx() *RequestDeliverTx { 321 if x, ok := m.GetValue().(*Request_DeliverTx); ok { 322 return x.DeliverTx 323 } 324 return nil 325 } 326 327 func (m *Request) GetEndBlock() *RequestEndBlock { 328 if x, ok := m.GetValue().(*Request_EndBlock); ok { 329 return x.EndBlock 330 } 331 return nil 332 } 333 334 func (m *Request) GetCommit() *RequestCommit { 335 if x, ok := m.GetValue().(*Request_Commit); ok { 336 return x.Commit 337 } 338 return nil 339 } 340 341 func (m *Request) GetListSnapshots() *RequestListSnapshots { 342 if x, ok := m.GetValue().(*Request_ListSnapshots); ok { 343 return x.ListSnapshots 344 } 345 return nil 346 } 347 348 func (m *Request) GetOfferSnapshot() *RequestOfferSnapshot { 349 if x, ok := m.GetValue().(*Request_OfferSnapshot); ok { 350 return x.OfferSnapshot 351 } 352 return nil 353 } 354 355 func (m *Request) GetLoadSnapshotChunk() *RequestLoadSnapshotChunk { 356 if x, ok := m.GetValue().(*Request_LoadSnapshotChunk); ok { 357 return x.LoadSnapshotChunk 358 } 359 return nil 360 } 361 362 func (m *Request) GetApplySnapshotChunk() *RequestApplySnapshotChunk { 363 if x, ok := m.GetValue().(*Request_ApplySnapshotChunk); ok { 364 return x.ApplySnapshotChunk 365 } 366 return nil 367 } 368 369 // XXX_OneofWrappers is for the internal use of the proto package. 370 func (*Request) XXX_OneofWrappers() []interface{} { 371 return []interface{}{ 372 (*Request_Echo)(nil), 373 (*Request_Flush)(nil), 374 (*Request_Info)(nil), 375 (*Request_SetOption)(nil), 376 (*Request_InitChain)(nil), 377 (*Request_Query)(nil), 378 (*Request_BeginBlock)(nil), 379 (*Request_CheckTx)(nil), 380 (*Request_DeliverTx)(nil), 381 (*Request_EndBlock)(nil), 382 (*Request_Commit)(nil), 383 (*Request_ListSnapshots)(nil), 384 (*Request_OfferSnapshot)(nil), 385 (*Request_LoadSnapshotChunk)(nil), 386 (*Request_ApplySnapshotChunk)(nil), 387 } 388 } 389 390 type RequestEcho struct { 391 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 392 } 393 394 func (m *RequestEcho) Reset() { *m = RequestEcho{} } 395 func (m *RequestEcho) String() string { return proto.CompactTextString(m) } 396 func (*RequestEcho) ProtoMessage() {} 397 func (*RequestEcho) Descriptor() ([]byte, []int) { 398 return fileDescriptor_252557cfdd89a31a, []int{1} 399 } 400 func (m *RequestEcho) XXX_Unmarshal(b []byte) error { 401 return m.Unmarshal(b) 402 } 403 func (m *RequestEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 404 if deterministic { 405 return xxx_messageInfo_RequestEcho.Marshal(b, m, deterministic) 406 } else { 407 b = b[:cap(b)] 408 n, err := m.MarshalToSizedBuffer(b) 409 if err != nil { 410 return nil, err 411 } 412 return b[:n], nil 413 } 414 } 415 func (m *RequestEcho) XXX_Merge(src proto.Message) { 416 xxx_messageInfo_RequestEcho.Merge(m, src) 417 } 418 func (m *RequestEcho) XXX_Size() int { 419 return m.Size() 420 } 421 func (m *RequestEcho) XXX_DiscardUnknown() { 422 xxx_messageInfo_RequestEcho.DiscardUnknown(m) 423 } 424 425 var xxx_messageInfo_RequestEcho proto.InternalMessageInfo 426 427 func (m *RequestEcho) GetMessage() string { 428 if m != nil { 429 return m.Message 430 } 431 return "" 432 } 433 434 type RequestFlush struct { 435 } 436 437 func (m *RequestFlush) Reset() { *m = RequestFlush{} } 438 func (m *RequestFlush) String() string { return proto.CompactTextString(m) } 439 func (*RequestFlush) ProtoMessage() {} 440 func (*RequestFlush) Descriptor() ([]byte, []int) { 441 return fileDescriptor_252557cfdd89a31a, []int{2} 442 } 443 func (m *RequestFlush) XXX_Unmarshal(b []byte) error { 444 return m.Unmarshal(b) 445 } 446 func (m *RequestFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 447 if deterministic { 448 return xxx_messageInfo_RequestFlush.Marshal(b, m, deterministic) 449 } else { 450 b = b[:cap(b)] 451 n, err := m.MarshalToSizedBuffer(b) 452 if err != nil { 453 return nil, err 454 } 455 return b[:n], nil 456 } 457 } 458 func (m *RequestFlush) XXX_Merge(src proto.Message) { 459 xxx_messageInfo_RequestFlush.Merge(m, src) 460 } 461 func (m *RequestFlush) XXX_Size() int { 462 return m.Size() 463 } 464 func (m *RequestFlush) XXX_DiscardUnknown() { 465 xxx_messageInfo_RequestFlush.DiscardUnknown(m) 466 } 467 468 var xxx_messageInfo_RequestFlush proto.InternalMessageInfo 469 470 type RequestInfo struct { 471 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 472 BlockVersion uint64 `protobuf:"varint,2,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"` 473 P2PVersion uint64 `protobuf:"varint,3,opt,name=p2p_version,json=p2pVersion,proto3" json:"p2p_version,omitempty"` 474 } 475 476 func (m *RequestInfo) Reset() { *m = RequestInfo{} } 477 func (m *RequestInfo) String() string { return proto.CompactTextString(m) } 478 func (*RequestInfo) ProtoMessage() {} 479 func (*RequestInfo) Descriptor() ([]byte, []int) { 480 return fileDescriptor_252557cfdd89a31a, []int{3} 481 } 482 func (m *RequestInfo) XXX_Unmarshal(b []byte) error { 483 return m.Unmarshal(b) 484 } 485 func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 486 if deterministic { 487 return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic) 488 } else { 489 b = b[:cap(b)] 490 n, err := m.MarshalToSizedBuffer(b) 491 if err != nil { 492 return nil, err 493 } 494 return b[:n], nil 495 } 496 } 497 func (m *RequestInfo) XXX_Merge(src proto.Message) { 498 xxx_messageInfo_RequestInfo.Merge(m, src) 499 } 500 func (m *RequestInfo) XXX_Size() int { 501 return m.Size() 502 } 503 func (m *RequestInfo) XXX_DiscardUnknown() { 504 xxx_messageInfo_RequestInfo.DiscardUnknown(m) 505 } 506 507 var xxx_messageInfo_RequestInfo proto.InternalMessageInfo 508 509 func (m *RequestInfo) GetVersion() string { 510 if m != nil { 511 return m.Version 512 } 513 return "" 514 } 515 516 func (m *RequestInfo) GetBlockVersion() uint64 { 517 if m != nil { 518 return m.BlockVersion 519 } 520 return 0 521 } 522 523 func (m *RequestInfo) GetP2PVersion() uint64 { 524 if m != nil { 525 return m.P2PVersion 526 } 527 return 0 528 } 529 530 // nondeterministic 531 type RequestSetOption struct { 532 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 533 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 534 } 535 536 func (m *RequestSetOption) Reset() { *m = RequestSetOption{} } 537 func (m *RequestSetOption) String() string { return proto.CompactTextString(m) } 538 func (*RequestSetOption) ProtoMessage() {} 539 func (*RequestSetOption) Descriptor() ([]byte, []int) { 540 return fileDescriptor_252557cfdd89a31a, []int{4} 541 } 542 func (m *RequestSetOption) XXX_Unmarshal(b []byte) error { 543 return m.Unmarshal(b) 544 } 545 func (m *RequestSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 546 if deterministic { 547 return xxx_messageInfo_RequestSetOption.Marshal(b, m, deterministic) 548 } else { 549 b = b[:cap(b)] 550 n, err := m.MarshalToSizedBuffer(b) 551 if err != nil { 552 return nil, err 553 } 554 return b[:n], nil 555 } 556 } 557 func (m *RequestSetOption) XXX_Merge(src proto.Message) { 558 xxx_messageInfo_RequestSetOption.Merge(m, src) 559 } 560 func (m *RequestSetOption) XXX_Size() int { 561 return m.Size() 562 } 563 func (m *RequestSetOption) XXX_DiscardUnknown() { 564 xxx_messageInfo_RequestSetOption.DiscardUnknown(m) 565 } 566 567 var xxx_messageInfo_RequestSetOption proto.InternalMessageInfo 568 569 func (m *RequestSetOption) GetKey() string { 570 if m != nil { 571 return m.Key 572 } 573 return "" 574 } 575 576 func (m *RequestSetOption) GetValue() string { 577 if m != nil { 578 return m.Value 579 } 580 return "" 581 } 582 583 type RequestInitChain struct { 584 Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"` 585 ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 586 ConsensusParams *ConsensusParams `protobuf:"bytes,3,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` 587 Validators []ValidatorUpdate `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"` 588 AppStateBytes []byte `protobuf:"bytes,5,opt,name=app_state_bytes,json=appStateBytes,proto3" json:"app_state_bytes,omitempty"` 589 } 590 591 func (m *RequestInitChain) Reset() { *m = RequestInitChain{} } 592 func (m *RequestInitChain) String() string { return proto.CompactTextString(m) } 593 func (*RequestInitChain) ProtoMessage() {} 594 func (*RequestInitChain) Descriptor() ([]byte, []int) { 595 return fileDescriptor_252557cfdd89a31a, []int{5} 596 } 597 func (m *RequestInitChain) XXX_Unmarshal(b []byte) error { 598 return m.Unmarshal(b) 599 } 600 func (m *RequestInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 601 if deterministic { 602 return xxx_messageInfo_RequestInitChain.Marshal(b, m, deterministic) 603 } else { 604 b = b[:cap(b)] 605 n, err := m.MarshalToSizedBuffer(b) 606 if err != nil { 607 return nil, err 608 } 609 return b[:n], nil 610 } 611 } 612 func (m *RequestInitChain) XXX_Merge(src proto.Message) { 613 xxx_messageInfo_RequestInitChain.Merge(m, src) 614 } 615 func (m *RequestInitChain) XXX_Size() int { 616 return m.Size() 617 } 618 func (m *RequestInitChain) XXX_DiscardUnknown() { 619 xxx_messageInfo_RequestInitChain.DiscardUnknown(m) 620 } 621 622 var xxx_messageInfo_RequestInitChain proto.InternalMessageInfo 623 624 func (m *RequestInitChain) GetTime() time.Time { 625 if m != nil { 626 return m.Time 627 } 628 return time.Time{} 629 } 630 631 func (m *RequestInitChain) GetChainId() string { 632 if m != nil { 633 return m.ChainId 634 } 635 return "" 636 } 637 638 func (m *RequestInitChain) GetConsensusParams() *ConsensusParams { 639 if m != nil { 640 return m.ConsensusParams 641 } 642 return nil 643 } 644 645 func (m *RequestInitChain) GetValidators() []ValidatorUpdate { 646 if m != nil { 647 return m.Validators 648 } 649 return nil 650 } 651 652 func (m *RequestInitChain) GetAppStateBytes() []byte { 653 if m != nil { 654 return m.AppStateBytes 655 } 656 return nil 657 } 658 659 type RequestQuery struct { 660 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 661 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 662 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 663 Prove bool `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"` 664 } 665 666 func (m *RequestQuery) Reset() { *m = RequestQuery{} } 667 func (m *RequestQuery) String() string { return proto.CompactTextString(m) } 668 func (*RequestQuery) ProtoMessage() {} 669 func (*RequestQuery) Descriptor() ([]byte, []int) { 670 return fileDescriptor_252557cfdd89a31a, []int{6} 671 } 672 func (m *RequestQuery) XXX_Unmarshal(b []byte) error { 673 return m.Unmarshal(b) 674 } 675 func (m *RequestQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 676 if deterministic { 677 return xxx_messageInfo_RequestQuery.Marshal(b, m, deterministic) 678 } else { 679 b = b[:cap(b)] 680 n, err := m.MarshalToSizedBuffer(b) 681 if err != nil { 682 return nil, err 683 } 684 return b[:n], nil 685 } 686 } 687 func (m *RequestQuery) XXX_Merge(src proto.Message) { 688 xxx_messageInfo_RequestQuery.Merge(m, src) 689 } 690 func (m *RequestQuery) XXX_Size() int { 691 return m.Size() 692 } 693 func (m *RequestQuery) XXX_DiscardUnknown() { 694 xxx_messageInfo_RequestQuery.DiscardUnknown(m) 695 } 696 697 var xxx_messageInfo_RequestQuery proto.InternalMessageInfo 698 699 func (m *RequestQuery) GetData() []byte { 700 if m != nil { 701 return m.Data 702 } 703 return nil 704 } 705 706 func (m *RequestQuery) GetPath() string { 707 if m != nil { 708 return m.Path 709 } 710 return "" 711 } 712 713 func (m *RequestQuery) GetHeight() int64 { 714 if m != nil { 715 return m.Height 716 } 717 return 0 718 } 719 720 func (m *RequestQuery) GetProve() bool { 721 if m != nil { 722 return m.Prove 723 } 724 return false 725 } 726 727 type RequestBeginBlock struct { 728 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 729 Header types1.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header"` 730 LastCommitInfo LastCommitInfo `protobuf:"bytes,3,opt,name=last_commit_info,json=lastCommitInfo,proto3" json:"last_commit_info"` 731 ByzantineValidators []Evidence `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators"` 732 } 733 734 func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} } 735 func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) } 736 func (*RequestBeginBlock) ProtoMessage() {} 737 func (*RequestBeginBlock) Descriptor() ([]byte, []int) { 738 return fileDescriptor_252557cfdd89a31a, []int{7} 739 } 740 func (m *RequestBeginBlock) XXX_Unmarshal(b []byte) error { 741 return m.Unmarshal(b) 742 } 743 func (m *RequestBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 744 if deterministic { 745 return xxx_messageInfo_RequestBeginBlock.Marshal(b, m, deterministic) 746 } else { 747 b = b[:cap(b)] 748 n, err := m.MarshalToSizedBuffer(b) 749 if err != nil { 750 return nil, err 751 } 752 return b[:n], nil 753 } 754 } 755 func (m *RequestBeginBlock) XXX_Merge(src proto.Message) { 756 xxx_messageInfo_RequestBeginBlock.Merge(m, src) 757 } 758 func (m *RequestBeginBlock) XXX_Size() int { 759 return m.Size() 760 } 761 func (m *RequestBeginBlock) XXX_DiscardUnknown() { 762 xxx_messageInfo_RequestBeginBlock.DiscardUnknown(m) 763 } 764 765 var xxx_messageInfo_RequestBeginBlock proto.InternalMessageInfo 766 767 func (m *RequestBeginBlock) GetHash() []byte { 768 if m != nil { 769 return m.Hash 770 } 771 return nil 772 } 773 774 func (m *RequestBeginBlock) GetHeader() types1.Header { 775 if m != nil { 776 return m.Header 777 } 778 return types1.Header{} 779 } 780 781 func (m *RequestBeginBlock) GetLastCommitInfo() LastCommitInfo { 782 if m != nil { 783 return m.LastCommitInfo 784 } 785 return LastCommitInfo{} 786 } 787 788 func (m *RequestBeginBlock) GetByzantineValidators() []Evidence { 789 if m != nil { 790 return m.ByzantineValidators 791 } 792 return nil 793 } 794 795 type RequestCheckTx struct { 796 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 797 Type CheckTxType `protobuf:"varint,2,opt,name=type,proto3,enum=tendermint.abci.CheckTxType" json:"type,omitempty"` 798 } 799 800 func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} } 801 func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) } 802 func (*RequestCheckTx) ProtoMessage() {} 803 func (*RequestCheckTx) Descriptor() ([]byte, []int) { 804 return fileDescriptor_252557cfdd89a31a, []int{8} 805 } 806 func (m *RequestCheckTx) XXX_Unmarshal(b []byte) error { 807 return m.Unmarshal(b) 808 } 809 func (m *RequestCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 810 if deterministic { 811 return xxx_messageInfo_RequestCheckTx.Marshal(b, m, deterministic) 812 } else { 813 b = b[:cap(b)] 814 n, err := m.MarshalToSizedBuffer(b) 815 if err != nil { 816 return nil, err 817 } 818 return b[:n], nil 819 } 820 } 821 func (m *RequestCheckTx) XXX_Merge(src proto.Message) { 822 xxx_messageInfo_RequestCheckTx.Merge(m, src) 823 } 824 func (m *RequestCheckTx) XXX_Size() int { 825 return m.Size() 826 } 827 func (m *RequestCheckTx) XXX_DiscardUnknown() { 828 xxx_messageInfo_RequestCheckTx.DiscardUnknown(m) 829 } 830 831 var xxx_messageInfo_RequestCheckTx proto.InternalMessageInfo 832 833 func (m *RequestCheckTx) GetTx() []byte { 834 if m != nil { 835 return m.Tx 836 } 837 return nil 838 } 839 840 func (m *RequestCheckTx) GetType() CheckTxType { 841 if m != nil { 842 return m.Type 843 } 844 return CheckTxType_New 845 } 846 847 type RequestDeliverTx struct { 848 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 849 } 850 851 func (m *RequestDeliverTx) Reset() { *m = RequestDeliverTx{} } 852 func (m *RequestDeliverTx) String() string { return proto.CompactTextString(m) } 853 func (*RequestDeliverTx) ProtoMessage() {} 854 func (*RequestDeliverTx) Descriptor() ([]byte, []int) { 855 return fileDescriptor_252557cfdd89a31a, []int{9} 856 } 857 func (m *RequestDeliverTx) XXX_Unmarshal(b []byte) error { 858 return m.Unmarshal(b) 859 } 860 func (m *RequestDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 861 if deterministic { 862 return xxx_messageInfo_RequestDeliverTx.Marshal(b, m, deterministic) 863 } else { 864 b = b[:cap(b)] 865 n, err := m.MarshalToSizedBuffer(b) 866 if err != nil { 867 return nil, err 868 } 869 return b[:n], nil 870 } 871 } 872 func (m *RequestDeliverTx) XXX_Merge(src proto.Message) { 873 xxx_messageInfo_RequestDeliverTx.Merge(m, src) 874 } 875 func (m *RequestDeliverTx) XXX_Size() int { 876 return m.Size() 877 } 878 func (m *RequestDeliverTx) XXX_DiscardUnknown() { 879 xxx_messageInfo_RequestDeliverTx.DiscardUnknown(m) 880 } 881 882 var xxx_messageInfo_RequestDeliverTx proto.InternalMessageInfo 883 884 func (m *RequestDeliverTx) GetTx() []byte { 885 if m != nil { 886 return m.Tx 887 } 888 return nil 889 } 890 891 type RequestEndBlock struct { 892 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 893 } 894 895 func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} } 896 func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) } 897 func (*RequestEndBlock) ProtoMessage() {} 898 func (*RequestEndBlock) Descriptor() ([]byte, []int) { 899 return fileDescriptor_252557cfdd89a31a, []int{10} 900 } 901 func (m *RequestEndBlock) XXX_Unmarshal(b []byte) error { 902 return m.Unmarshal(b) 903 } 904 func (m *RequestEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 905 if deterministic { 906 return xxx_messageInfo_RequestEndBlock.Marshal(b, m, deterministic) 907 } else { 908 b = b[:cap(b)] 909 n, err := m.MarshalToSizedBuffer(b) 910 if err != nil { 911 return nil, err 912 } 913 return b[:n], nil 914 } 915 } 916 func (m *RequestEndBlock) XXX_Merge(src proto.Message) { 917 xxx_messageInfo_RequestEndBlock.Merge(m, src) 918 } 919 func (m *RequestEndBlock) XXX_Size() int { 920 return m.Size() 921 } 922 func (m *RequestEndBlock) XXX_DiscardUnknown() { 923 xxx_messageInfo_RequestEndBlock.DiscardUnknown(m) 924 } 925 926 var xxx_messageInfo_RequestEndBlock proto.InternalMessageInfo 927 928 func (m *RequestEndBlock) GetHeight() int64 { 929 if m != nil { 930 return m.Height 931 } 932 return 0 933 } 934 935 type RequestCommit struct { 936 } 937 938 func (m *RequestCommit) Reset() { *m = RequestCommit{} } 939 func (m *RequestCommit) String() string { return proto.CompactTextString(m) } 940 func (*RequestCommit) ProtoMessage() {} 941 func (*RequestCommit) Descriptor() ([]byte, []int) { 942 return fileDescriptor_252557cfdd89a31a, []int{11} 943 } 944 func (m *RequestCommit) XXX_Unmarshal(b []byte) error { 945 return m.Unmarshal(b) 946 } 947 func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 948 if deterministic { 949 return xxx_messageInfo_RequestCommit.Marshal(b, m, deterministic) 950 } else { 951 b = b[:cap(b)] 952 n, err := m.MarshalToSizedBuffer(b) 953 if err != nil { 954 return nil, err 955 } 956 return b[:n], nil 957 } 958 } 959 func (m *RequestCommit) XXX_Merge(src proto.Message) { 960 xxx_messageInfo_RequestCommit.Merge(m, src) 961 } 962 func (m *RequestCommit) XXX_Size() int { 963 return m.Size() 964 } 965 func (m *RequestCommit) XXX_DiscardUnknown() { 966 xxx_messageInfo_RequestCommit.DiscardUnknown(m) 967 } 968 969 var xxx_messageInfo_RequestCommit proto.InternalMessageInfo 970 971 // lists available snapshots 972 type RequestListSnapshots struct { 973 } 974 975 func (m *RequestListSnapshots) Reset() { *m = RequestListSnapshots{} } 976 func (m *RequestListSnapshots) String() string { return proto.CompactTextString(m) } 977 func (*RequestListSnapshots) ProtoMessage() {} 978 func (*RequestListSnapshots) Descriptor() ([]byte, []int) { 979 return fileDescriptor_252557cfdd89a31a, []int{12} 980 } 981 func (m *RequestListSnapshots) XXX_Unmarshal(b []byte) error { 982 return m.Unmarshal(b) 983 } 984 func (m *RequestListSnapshots) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 985 if deterministic { 986 return xxx_messageInfo_RequestListSnapshots.Marshal(b, m, deterministic) 987 } else { 988 b = b[:cap(b)] 989 n, err := m.MarshalToSizedBuffer(b) 990 if err != nil { 991 return nil, err 992 } 993 return b[:n], nil 994 } 995 } 996 func (m *RequestListSnapshots) XXX_Merge(src proto.Message) { 997 xxx_messageInfo_RequestListSnapshots.Merge(m, src) 998 } 999 func (m *RequestListSnapshots) XXX_Size() int { 1000 return m.Size() 1001 } 1002 func (m *RequestListSnapshots) XXX_DiscardUnknown() { 1003 xxx_messageInfo_RequestListSnapshots.DiscardUnknown(m) 1004 } 1005 1006 var xxx_messageInfo_RequestListSnapshots proto.InternalMessageInfo 1007 1008 // offers a snapshot to the application 1009 type RequestOfferSnapshot struct { 1010 Snapshot *Snapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` 1011 AppHash []byte `protobuf:"bytes,2,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` 1012 } 1013 1014 func (m *RequestOfferSnapshot) Reset() { *m = RequestOfferSnapshot{} } 1015 func (m *RequestOfferSnapshot) String() string { return proto.CompactTextString(m) } 1016 func (*RequestOfferSnapshot) ProtoMessage() {} 1017 func (*RequestOfferSnapshot) Descriptor() ([]byte, []int) { 1018 return fileDescriptor_252557cfdd89a31a, []int{13} 1019 } 1020 func (m *RequestOfferSnapshot) XXX_Unmarshal(b []byte) error { 1021 return m.Unmarshal(b) 1022 } 1023 func (m *RequestOfferSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1024 if deterministic { 1025 return xxx_messageInfo_RequestOfferSnapshot.Marshal(b, m, deterministic) 1026 } else { 1027 b = b[:cap(b)] 1028 n, err := m.MarshalToSizedBuffer(b) 1029 if err != nil { 1030 return nil, err 1031 } 1032 return b[:n], nil 1033 } 1034 } 1035 func (m *RequestOfferSnapshot) XXX_Merge(src proto.Message) { 1036 xxx_messageInfo_RequestOfferSnapshot.Merge(m, src) 1037 } 1038 func (m *RequestOfferSnapshot) XXX_Size() int { 1039 return m.Size() 1040 } 1041 func (m *RequestOfferSnapshot) XXX_DiscardUnknown() { 1042 xxx_messageInfo_RequestOfferSnapshot.DiscardUnknown(m) 1043 } 1044 1045 var xxx_messageInfo_RequestOfferSnapshot proto.InternalMessageInfo 1046 1047 func (m *RequestOfferSnapshot) GetSnapshot() *Snapshot { 1048 if m != nil { 1049 return m.Snapshot 1050 } 1051 return nil 1052 } 1053 1054 func (m *RequestOfferSnapshot) GetAppHash() []byte { 1055 if m != nil { 1056 return m.AppHash 1057 } 1058 return nil 1059 } 1060 1061 // loads a snapshot chunk 1062 type RequestLoadSnapshotChunk struct { 1063 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 1064 Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"` 1065 Chunk uint32 `protobuf:"varint,3,opt,name=chunk,proto3" json:"chunk,omitempty"` 1066 } 1067 1068 func (m *RequestLoadSnapshotChunk) Reset() { *m = RequestLoadSnapshotChunk{} } 1069 func (m *RequestLoadSnapshotChunk) String() string { return proto.CompactTextString(m) } 1070 func (*RequestLoadSnapshotChunk) ProtoMessage() {} 1071 func (*RequestLoadSnapshotChunk) Descriptor() ([]byte, []int) { 1072 return fileDescriptor_252557cfdd89a31a, []int{14} 1073 } 1074 func (m *RequestLoadSnapshotChunk) XXX_Unmarshal(b []byte) error { 1075 return m.Unmarshal(b) 1076 } 1077 func (m *RequestLoadSnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1078 if deterministic { 1079 return xxx_messageInfo_RequestLoadSnapshotChunk.Marshal(b, m, deterministic) 1080 } else { 1081 b = b[:cap(b)] 1082 n, err := m.MarshalToSizedBuffer(b) 1083 if err != nil { 1084 return nil, err 1085 } 1086 return b[:n], nil 1087 } 1088 } 1089 func (m *RequestLoadSnapshotChunk) XXX_Merge(src proto.Message) { 1090 xxx_messageInfo_RequestLoadSnapshotChunk.Merge(m, src) 1091 } 1092 func (m *RequestLoadSnapshotChunk) XXX_Size() int { 1093 return m.Size() 1094 } 1095 func (m *RequestLoadSnapshotChunk) XXX_DiscardUnknown() { 1096 xxx_messageInfo_RequestLoadSnapshotChunk.DiscardUnknown(m) 1097 } 1098 1099 var xxx_messageInfo_RequestLoadSnapshotChunk proto.InternalMessageInfo 1100 1101 func (m *RequestLoadSnapshotChunk) GetHeight() uint64 { 1102 if m != nil { 1103 return m.Height 1104 } 1105 return 0 1106 } 1107 1108 func (m *RequestLoadSnapshotChunk) GetFormat() uint32 { 1109 if m != nil { 1110 return m.Format 1111 } 1112 return 0 1113 } 1114 1115 func (m *RequestLoadSnapshotChunk) GetChunk() uint32 { 1116 if m != nil { 1117 return m.Chunk 1118 } 1119 return 0 1120 } 1121 1122 // Applies a snapshot chunk 1123 type RequestApplySnapshotChunk struct { 1124 Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` 1125 Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` 1126 Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` 1127 } 1128 1129 func (m *RequestApplySnapshotChunk) Reset() { *m = RequestApplySnapshotChunk{} } 1130 func (m *RequestApplySnapshotChunk) String() string { return proto.CompactTextString(m) } 1131 func (*RequestApplySnapshotChunk) ProtoMessage() {} 1132 func (*RequestApplySnapshotChunk) Descriptor() ([]byte, []int) { 1133 return fileDescriptor_252557cfdd89a31a, []int{15} 1134 } 1135 func (m *RequestApplySnapshotChunk) XXX_Unmarshal(b []byte) error { 1136 return m.Unmarshal(b) 1137 } 1138 func (m *RequestApplySnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1139 if deterministic { 1140 return xxx_messageInfo_RequestApplySnapshotChunk.Marshal(b, m, deterministic) 1141 } else { 1142 b = b[:cap(b)] 1143 n, err := m.MarshalToSizedBuffer(b) 1144 if err != nil { 1145 return nil, err 1146 } 1147 return b[:n], nil 1148 } 1149 } 1150 func (m *RequestApplySnapshotChunk) XXX_Merge(src proto.Message) { 1151 xxx_messageInfo_RequestApplySnapshotChunk.Merge(m, src) 1152 } 1153 func (m *RequestApplySnapshotChunk) XXX_Size() int { 1154 return m.Size() 1155 } 1156 func (m *RequestApplySnapshotChunk) XXX_DiscardUnknown() { 1157 xxx_messageInfo_RequestApplySnapshotChunk.DiscardUnknown(m) 1158 } 1159 1160 var xxx_messageInfo_RequestApplySnapshotChunk proto.InternalMessageInfo 1161 1162 func (m *RequestApplySnapshotChunk) GetIndex() uint32 { 1163 if m != nil { 1164 return m.Index 1165 } 1166 return 0 1167 } 1168 1169 func (m *RequestApplySnapshotChunk) GetChunk() []byte { 1170 if m != nil { 1171 return m.Chunk 1172 } 1173 return nil 1174 } 1175 1176 func (m *RequestApplySnapshotChunk) GetSender() string { 1177 if m != nil { 1178 return m.Sender 1179 } 1180 return "" 1181 } 1182 1183 type Response struct { 1184 // Types that are valid to be assigned to Value: 1185 // *Response_Exception 1186 // *Response_Echo 1187 // *Response_Flush 1188 // *Response_Info 1189 // *Response_SetOption 1190 // *Response_InitChain 1191 // *Response_Query 1192 // *Response_BeginBlock 1193 // *Response_CheckTx 1194 // *Response_DeliverTx 1195 // *Response_EndBlock 1196 // *Response_Commit 1197 // *Response_ListSnapshots 1198 // *Response_OfferSnapshot 1199 // *Response_LoadSnapshotChunk 1200 // *Response_ApplySnapshotChunk 1201 Value isResponse_Value `protobuf_oneof:"value"` 1202 } 1203 1204 func (m *Response) Reset() { *m = Response{} } 1205 func (m *Response) String() string { return proto.CompactTextString(m) } 1206 func (*Response) ProtoMessage() {} 1207 func (*Response) Descriptor() ([]byte, []int) { 1208 return fileDescriptor_252557cfdd89a31a, []int{16} 1209 } 1210 func (m *Response) XXX_Unmarshal(b []byte) error { 1211 return m.Unmarshal(b) 1212 } 1213 func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1214 if deterministic { 1215 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 1216 } else { 1217 b = b[:cap(b)] 1218 n, err := m.MarshalToSizedBuffer(b) 1219 if err != nil { 1220 return nil, err 1221 } 1222 return b[:n], nil 1223 } 1224 } 1225 func (m *Response) XXX_Merge(src proto.Message) { 1226 xxx_messageInfo_Response.Merge(m, src) 1227 } 1228 func (m *Response) XXX_Size() int { 1229 return m.Size() 1230 } 1231 func (m *Response) XXX_DiscardUnknown() { 1232 xxx_messageInfo_Response.DiscardUnknown(m) 1233 } 1234 1235 var xxx_messageInfo_Response proto.InternalMessageInfo 1236 1237 type isResponse_Value interface { 1238 isResponse_Value() 1239 MarshalTo([]byte) (int, error) 1240 Size() int 1241 } 1242 1243 type Response_Exception struct { 1244 Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,proto3,oneof" json:"exception,omitempty"` 1245 } 1246 type Response_Echo struct { 1247 Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 1248 } 1249 type Response_Flush struct { 1250 Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 1251 } 1252 type Response_Info struct { 1253 Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof" json:"info,omitempty"` 1254 } 1255 type Response_SetOption struct { 1256 SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 1257 } 1258 type Response_InitChain struct { 1259 InitChain *ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 1260 } 1261 type Response_Query struct { 1262 Query *ResponseQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof" json:"query,omitempty"` 1263 } 1264 type Response_BeginBlock struct { 1265 BeginBlock *ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 1266 } 1267 type Response_CheckTx struct { 1268 CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 1269 } 1270 type Response_DeliverTx struct { 1271 DeliverTx *ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 1272 } 1273 type Response_EndBlock struct { 1274 EndBlock *ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 1275 } 1276 type Response_Commit struct { 1277 Commit *ResponseCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 1278 } 1279 type Response_ListSnapshots struct { 1280 ListSnapshots *ResponseListSnapshots `protobuf:"bytes,13,opt,name=list_snapshots,json=listSnapshots,proto3,oneof" json:"list_snapshots,omitempty"` 1281 } 1282 type Response_OfferSnapshot struct { 1283 OfferSnapshot *ResponseOfferSnapshot `protobuf:"bytes,14,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof" json:"offer_snapshot,omitempty"` 1284 } 1285 type Response_LoadSnapshotChunk struct { 1286 LoadSnapshotChunk *ResponseLoadSnapshotChunk `protobuf:"bytes,15,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof" json:"load_snapshot_chunk,omitempty"` 1287 } 1288 type Response_ApplySnapshotChunk struct { 1289 ApplySnapshotChunk *ResponseApplySnapshotChunk `protobuf:"bytes,16,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"` 1290 } 1291 1292 func (*Response_Exception) isResponse_Value() {} 1293 func (*Response_Echo) isResponse_Value() {} 1294 func (*Response_Flush) isResponse_Value() {} 1295 func (*Response_Info) isResponse_Value() {} 1296 func (*Response_SetOption) isResponse_Value() {} 1297 func (*Response_InitChain) isResponse_Value() {} 1298 func (*Response_Query) isResponse_Value() {} 1299 func (*Response_BeginBlock) isResponse_Value() {} 1300 func (*Response_CheckTx) isResponse_Value() {} 1301 func (*Response_DeliverTx) isResponse_Value() {} 1302 func (*Response_EndBlock) isResponse_Value() {} 1303 func (*Response_Commit) isResponse_Value() {} 1304 func (*Response_ListSnapshots) isResponse_Value() {} 1305 func (*Response_OfferSnapshot) isResponse_Value() {} 1306 func (*Response_LoadSnapshotChunk) isResponse_Value() {} 1307 func (*Response_ApplySnapshotChunk) isResponse_Value() {} 1308 1309 func (m *Response) GetValue() isResponse_Value { 1310 if m != nil { 1311 return m.Value 1312 } 1313 return nil 1314 } 1315 1316 func (m *Response) GetException() *ResponseException { 1317 if x, ok := m.GetValue().(*Response_Exception); ok { 1318 return x.Exception 1319 } 1320 return nil 1321 } 1322 1323 func (m *Response) GetEcho() *ResponseEcho { 1324 if x, ok := m.GetValue().(*Response_Echo); ok { 1325 return x.Echo 1326 } 1327 return nil 1328 } 1329 1330 func (m *Response) GetFlush() *ResponseFlush { 1331 if x, ok := m.GetValue().(*Response_Flush); ok { 1332 return x.Flush 1333 } 1334 return nil 1335 } 1336 1337 func (m *Response) GetInfo() *ResponseInfo { 1338 if x, ok := m.GetValue().(*Response_Info); ok { 1339 return x.Info 1340 } 1341 return nil 1342 } 1343 1344 func (m *Response) GetSetOption() *ResponseSetOption { 1345 if x, ok := m.GetValue().(*Response_SetOption); ok { 1346 return x.SetOption 1347 } 1348 return nil 1349 } 1350 1351 func (m *Response) GetInitChain() *ResponseInitChain { 1352 if x, ok := m.GetValue().(*Response_InitChain); ok { 1353 return x.InitChain 1354 } 1355 return nil 1356 } 1357 1358 func (m *Response) GetQuery() *ResponseQuery { 1359 if x, ok := m.GetValue().(*Response_Query); ok { 1360 return x.Query 1361 } 1362 return nil 1363 } 1364 1365 func (m *Response) GetBeginBlock() *ResponseBeginBlock { 1366 if x, ok := m.GetValue().(*Response_BeginBlock); ok { 1367 return x.BeginBlock 1368 } 1369 return nil 1370 } 1371 1372 func (m *Response) GetCheckTx() *ResponseCheckTx { 1373 if x, ok := m.GetValue().(*Response_CheckTx); ok { 1374 return x.CheckTx 1375 } 1376 return nil 1377 } 1378 1379 func (m *Response) GetDeliverTx() *ResponseDeliverTx { 1380 if x, ok := m.GetValue().(*Response_DeliverTx); ok { 1381 return x.DeliverTx 1382 } 1383 return nil 1384 } 1385 1386 func (m *Response) GetEndBlock() *ResponseEndBlock { 1387 if x, ok := m.GetValue().(*Response_EndBlock); ok { 1388 return x.EndBlock 1389 } 1390 return nil 1391 } 1392 1393 func (m *Response) GetCommit() *ResponseCommit { 1394 if x, ok := m.GetValue().(*Response_Commit); ok { 1395 return x.Commit 1396 } 1397 return nil 1398 } 1399 1400 func (m *Response) GetListSnapshots() *ResponseListSnapshots { 1401 if x, ok := m.GetValue().(*Response_ListSnapshots); ok { 1402 return x.ListSnapshots 1403 } 1404 return nil 1405 } 1406 1407 func (m *Response) GetOfferSnapshot() *ResponseOfferSnapshot { 1408 if x, ok := m.GetValue().(*Response_OfferSnapshot); ok { 1409 return x.OfferSnapshot 1410 } 1411 return nil 1412 } 1413 1414 func (m *Response) GetLoadSnapshotChunk() *ResponseLoadSnapshotChunk { 1415 if x, ok := m.GetValue().(*Response_LoadSnapshotChunk); ok { 1416 return x.LoadSnapshotChunk 1417 } 1418 return nil 1419 } 1420 1421 func (m *Response) GetApplySnapshotChunk() *ResponseApplySnapshotChunk { 1422 if x, ok := m.GetValue().(*Response_ApplySnapshotChunk); ok { 1423 return x.ApplySnapshotChunk 1424 } 1425 return nil 1426 } 1427 1428 // XXX_OneofWrappers is for the internal use of the proto package. 1429 func (*Response) XXX_OneofWrappers() []interface{} { 1430 return []interface{}{ 1431 (*Response_Exception)(nil), 1432 (*Response_Echo)(nil), 1433 (*Response_Flush)(nil), 1434 (*Response_Info)(nil), 1435 (*Response_SetOption)(nil), 1436 (*Response_InitChain)(nil), 1437 (*Response_Query)(nil), 1438 (*Response_BeginBlock)(nil), 1439 (*Response_CheckTx)(nil), 1440 (*Response_DeliverTx)(nil), 1441 (*Response_EndBlock)(nil), 1442 (*Response_Commit)(nil), 1443 (*Response_ListSnapshots)(nil), 1444 (*Response_OfferSnapshot)(nil), 1445 (*Response_LoadSnapshotChunk)(nil), 1446 (*Response_ApplySnapshotChunk)(nil), 1447 } 1448 } 1449 1450 // nondeterministic 1451 type ResponseException struct { 1452 Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` 1453 } 1454 1455 func (m *ResponseException) Reset() { *m = ResponseException{} } 1456 func (m *ResponseException) String() string { return proto.CompactTextString(m) } 1457 func (*ResponseException) ProtoMessage() {} 1458 func (*ResponseException) Descriptor() ([]byte, []int) { 1459 return fileDescriptor_252557cfdd89a31a, []int{17} 1460 } 1461 func (m *ResponseException) XXX_Unmarshal(b []byte) error { 1462 return m.Unmarshal(b) 1463 } 1464 func (m *ResponseException) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1465 if deterministic { 1466 return xxx_messageInfo_ResponseException.Marshal(b, m, deterministic) 1467 } else { 1468 b = b[:cap(b)] 1469 n, err := m.MarshalToSizedBuffer(b) 1470 if err != nil { 1471 return nil, err 1472 } 1473 return b[:n], nil 1474 } 1475 } 1476 func (m *ResponseException) XXX_Merge(src proto.Message) { 1477 xxx_messageInfo_ResponseException.Merge(m, src) 1478 } 1479 func (m *ResponseException) XXX_Size() int { 1480 return m.Size() 1481 } 1482 func (m *ResponseException) XXX_DiscardUnknown() { 1483 xxx_messageInfo_ResponseException.DiscardUnknown(m) 1484 } 1485 1486 var xxx_messageInfo_ResponseException proto.InternalMessageInfo 1487 1488 func (m *ResponseException) GetError() string { 1489 if m != nil { 1490 return m.Error 1491 } 1492 return "" 1493 } 1494 1495 type ResponseEcho struct { 1496 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 1497 } 1498 1499 func (m *ResponseEcho) Reset() { *m = ResponseEcho{} } 1500 func (m *ResponseEcho) String() string { return proto.CompactTextString(m) } 1501 func (*ResponseEcho) ProtoMessage() {} 1502 func (*ResponseEcho) Descriptor() ([]byte, []int) { 1503 return fileDescriptor_252557cfdd89a31a, []int{18} 1504 } 1505 func (m *ResponseEcho) XXX_Unmarshal(b []byte) error { 1506 return m.Unmarshal(b) 1507 } 1508 func (m *ResponseEcho) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1509 if deterministic { 1510 return xxx_messageInfo_ResponseEcho.Marshal(b, m, deterministic) 1511 } else { 1512 b = b[:cap(b)] 1513 n, err := m.MarshalToSizedBuffer(b) 1514 if err != nil { 1515 return nil, err 1516 } 1517 return b[:n], nil 1518 } 1519 } 1520 func (m *ResponseEcho) XXX_Merge(src proto.Message) { 1521 xxx_messageInfo_ResponseEcho.Merge(m, src) 1522 } 1523 func (m *ResponseEcho) XXX_Size() int { 1524 return m.Size() 1525 } 1526 func (m *ResponseEcho) XXX_DiscardUnknown() { 1527 xxx_messageInfo_ResponseEcho.DiscardUnknown(m) 1528 } 1529 1530 var xxx_messageInfo_ResponseEcho proto.InternalMessageInfo 1531 1532 func (m *ResponseEcho) GetMessage() string { 1533 if m != nil { 1534 return m.Message 1535 } 1536 return "" 1537 } 1538 1539 type ResponseFlush struct { 1540 } 1541 1542 func (m *ResponseFlush) Reset() { *m = ResponseFlush{} } 1543 func (m *ResponseFlush) String() string { return proto.CompactTextString(m) } 1544 func (*ResponseFlush) ProtoMessage() {} 1545 func (*ResponseFlush) Descriptor() ([]byte, []int) { 1546 return fileDescriptor_252557cfdd89a31a, []int{19} 1547 } 1548 func (m *ResponseFlush) XXX_Unmarshal(b []byte) error { 1549 return m.Unmarshal(b) 1550 } 1551 func (m *ResponseFlush) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1552 if deterministic { 1553 return xxx_messageInfo_ResponseFlush.Marshal(b, m, deterministic) 1554 } else { 1555 b = b[:cap(b)] 1556 n, err := m.MarshalToSizedBuffer(b) 1557 if err != nil { 1558 return nil, err 1559 } 1560 return b[:n], nil 1561 } 1562 } 1563 func (m *ResponseFlush) XXX_Merge(src proto.Message) { 1564 xxx_messageInfo_ResponseFlush.Merge(m, src) 1565 } 1566 func (m *ResponseFlush) XXX_Size() int { 1567 return m.Size() 1568 } 1569 func (m *ResponseFlush) XXX_DiscardUnknown() { 1570 xxx_messageInfo_ResponseFlush.DiscardUnknown(m) 1571 } 1572 1573 var xxx_messageInfo_ResponseFlush proto.InternalMessageInfo 1574 1575 type ResponseInfo struct { 1576 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 1577 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 1578 AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` 1579 LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` 1580 LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"` 1581 } 1582 1583 func (m *ResponseInfo) Reset() { *m = ResponseInfo{} } 1584 func (m *ResponseInfo) String() string { return proto.CompactTextString(m) } 1585 func (*ResponseInfo) ProtoMessage() {} 1586 func (*ResponseInfo) Descriptor() ([]byte, []int) { 1587 return fileDescriptor_252557cfdd89a31a, []int{20} 1588 } 1589 func (m *ResponseInfo) XXX_Unmarshal(b []byte) error { 1590 return m.Unmarshal(b) 1591 } 1592 func (m *ResponseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1593 if deterministic { 1594 return xxx_messageInfo_ResponseInfo.Marshal(b, m, deterministic) 1595 } else { 1596 b = b[:cap(b)] 1597 n, err := m.MarshalToSizedBuffer(b) 1598 if err != nil { 1599 return nil, err 1600 } 1601 return b[:n], nil 1602 } 1603 } 1604 func (m *ResponseInfo) XXX_Merge(src proto.Message) { 1605 xxx_messageInfo_ResponseInfo.Merge(m, src) 1606 } 1607 func (m *ResponseInfo) XXX_Size() int { 1608 return m.Size() 1609 } 1610 func (m *ResponseInfo) XXX_DiscardUnknown() { 1611 xxx_messageInfo_ResponseInfo.DiscardUnknown(m) 1612 } 1613 1614 var xxx_messageInfo_ResponseInfo proto.InternalMessageInfo 1615 1616 func (m *ResponseInfo) GetData() string { 1617 if m != nil { 1618 return m.Data 1619 } 1620 return "" 1621 } 1622 1623 func (m *ResponseInfo) GetVersion() string { 1624 if m != nil { 1625 return m.Version 1626 } 1627 return "" 1628 } 1629 1630 func (m *ResponseInfo) GetAppVersion() uint64 { 1631 if m != nil { 1632 return m.AppVersion 1633 } 1634 return 0 1635 } 1636 1637 func (m *ResponseInfo) GetLastBlockHeight() int64 { 1638 if m != nil { 1639 return m.LastBlockHeight 1640 } 1641 return 0 1642 } 1643 1644 func (m *ResponseInfo) GetLastBlockAppHash() []byte { 1645 if m != nil { 1646 return m.LastBlockAppHash 1647 } 1648 return nil 1649 } 1650 1651 // nondeterministic 1652 type ResponseSetOption struct { 1653 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1654 // bytes data = 2; 1655 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1656 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1657 } 1658 1659 func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} } 1660 func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) } 1661 func (*ResponseSetOption) ProtoMessage() {} 1662 func (*ResponseSetOption) Descriptor() ([]byte, []int) { 1663 return fileDescriptor_252557cfdd89a31a, []int{21} 1664 } 1665 func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error { 1666 return m.Unmarshal(b) 1667 } 1668 func (m *ResponseSetOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1669 if deterministic { 1670 return xxx_messageInfo_ResponseSetOption.Marshal(b, m, deterministic) 1671 } else { 1672 b = b[:cap(b)] 1673 n, err := m.MarshalToSizedBuffer(b) 1674 if err != nil { 1675 return nil, err 1676 } 1677 return b[:n], nil 1678 } 1679 } 1680 func (m *ResponseSetOption) XXX_Merge(src proto.Message) { 1681 xxx_messageInfo_ResponseSetOption.Merge(m, src) 1682 } 1683 func (m *ResponseSetOption) XXX_Size() int { 1684 return m.Size() 1685 } 1686 func (m *ResponseSetOption) XXX_DiscardUnknown() { 1687 xxx_messageInfo_ResponseSetOption.DiscardUnknown(m) 1688 } 1689 1690 var xxx_messageInfo_ResponseSetOption proto.InternalMessageInfo 1691 1692 func (m *ResponseSetOption) GetCode() uint32 { 1693 if m != nil { 1694 return m.Code 1695 } 1696 return 0 1697 } 1698 1699 func (m *ResponseSetOption) GetLog() string { 1700 if m != nil { 1701 return m.Log 1702 } 1703 return "" 1704 } 1705 1706 func (m *ResponseSetOption) GetInfo() string { 1707 if m != nil { 1708 return m.Info 1709 } 1710 return "" 1711 } 1712 1713 type ResponseInitChain struct { 1714 ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` 1715 Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators"` 1716 } 1717 1718 func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} } 1719 func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) } 1720 func (*ResponseInitChain) ProtoMessage() {} 1721 func (*ResponseInitChain) Descriptor() ([]byte, []int) { 1722 return fileDescriptor_252557cfdd89a31a, []int{22} 1723 } 1724 func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error { 1725 return m.Unmarshal(b) 1726 } 1727 func (m *ResponseInitChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1728 if deterministic { 1729 return xxx_messageInfo_ResponseInitChain.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 *ResponseInitChain) XXX_Merge(src proto.Message) { 1740 xxx_messageInfo_ResponseInitChain.Merge(m, src) 1741 } 1742 func (m *ResponseInitChain) XXX_Size() int { 1743 return m.Size() 1744 } 1745 func (m *ResponseInitChain) XXX_DiscardUnknown() { 1746 xxx_messageInfo_ResponseInitChain.DiscardUnknown(m) 1747 } 1748 1749 var xxx_messageInfo_ResponseInitChain proto.InternalMessageInfo 1750 1751 func (m *ResponseInitChain) GetConsensusParams() *ConsensusParams { 1752 if m != nil { 1753 return m.ConsensusParams 1754 } 1755 return nil 1756 } 1757 1758 func (m *ResponseInitChain) GetValidators() []ValidatorUpdate { 1759 if m != nil { 1760 return m.Validators 1761 } 1762 return nil 1763 } 1764 1765 type ResponseQuery struct { 1766 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1767 // bytes data = 2; // use "value" instead. 1768 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1769 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1770 Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` 1771 Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` 1772 Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` 1773 ProofOps *crypto.ProofOps `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` 1774 Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` 1775 Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"` 1776 } 1777 1778 func (m *ResponseQuery) Reset() { *m = ResponseQuery{} } 1779 func (m *ResponseQuery) String() string { return proto.CompactTextString(m) } 1780 func (*ResponseQuery) ProtoMessage() {} 1781 func (*ResponseQuery) Descriptor() ([]byte, []int) { 1782 return fileDescriptor_252557cfdd89a31a, []int{23} 1783 } 1784 func (m *ResponseQuery) XXX_Unmarshal(b []byte) error { 1785 return m.Unmarshal(b) 1786 } 1787 func (m *ResponseQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1788 if deterministic { 1789 return xxx_messageInfo_ResponseQuery.Marshal(b, m, deterministic) 1790 } else { 1791 b = b[:cap(b)] 1792 n, err := m.MarshalToSizedBuffer(b) 1793 if err != nil { 1794 return nil, err 1795 } 1796 return b[:n], nil 1797 } 1798 } 1799 func (m *ResponseQuery) XXX_Merge(src proto.Message) { 1800 xxx_messageInfo_ResponseQuery.Merge(m, src) 1801 } 1802 func (m *ResponseQuery) XXX_Size() int { 1803 return m.Size() 1804 } 1805 func (m *ResponseQuery) XXX_DiscardUnknown() { 1806 xxx_messageInfo_ResponseQuery.DiscardUnknown(m) 1807 } 1808 1809 var xxx_messageInfo_ResponseQuery proto.InternalMessageInfo 1810 1811 func (m *ResponseQuery) GetCode() uint32 { 1812 if m != nil { 1813 return m.Code 1814 } 1815 return 0 1816 } 1817 1818 func (m *ResponseQuery) GetLog() string { 1819 if m != nil { 1820 return m.Log 1821 } 1822 return "" 1823 } 1824 1825 func (m *ResponseQuery) GetInfo() string { 1826 if m != nil { 1827 return m.Info 1828 } 1829 return "" 1830 } 1831 1832 func (m *ResponseQuery) GetIndex() int64 { 1833 if m != nil { 1834 return m.Index 1835 } 1836 return 0 1837 } 1838 1839 func (m *ResponseQuery) GetKey() []byte { 1840 if m != nil { 1841 return m.Key 1842 } 1843 return nil 1844 } 1845 1846 func (m *ResponseQuery) GetValue() []byte { 1847 if m != nil { 1848 return m.Value 1849 } 1850 return nil 1851 } 1852 1853 func (m *ResponseQuery) GetProofOps() *crypto.ProofOps { 1854 if m != nil { 1855 return m.ProofOps 1856 } 1857 return nil 1858 } 1859 1860 func (m *ResponseQuery) GetHeight() int64 { 1861 if m != nil { 1862 return m.Height 1863 } 1864 return 0 1865 } 1866 1867 func (m *ResponseQuery) GetCodespace() string { 1868 if m != nil { 1869 return m.Codespace 1870 } 1871 return "" 1872 } 1873 1874 type ResponseBeginBlock struct { 1875 Events []Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` 1876 } 1877 1878 func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} } 1879 func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) } 1880 func (*ResponseBeginBlock) ProtoMessage() {} 1881 func (*ResponseBeginBlock) Descriptor() ([]byte, []int) { 1882 return fileDescriptor_252557cfdd89a31a, []int{24} 1883 } 1884 func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error { 1885 return m.Unmarshal(b) 1886 } 1887 func (m *ResponseBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1888 if deterministic { 1889 return xxx_messageInfo_ResponseBeginBlock.Marshal(b, m, deterministic) 1890 } else { 1891 b = b[:cap(b)] 1892 n, err := m.MarshalToSizedBuffer(b) 1893 if err != nil { 1894 return nil, err 1895 } 1896 return b[:n], nil 1897 } 1898 } 1899 func (m *ResponseBeginBlock) XXX_Merge(src proto.Message) { 1900 xxx_messageInfo_ResponseBeginBlock.Merge(m, src) 1901 } 1902 func (m *ResponseBeginBlock) XXX_Size() int { 1903 return m.Size() 1904 } 1905 func (m *ResponseBeginBlock) XXX_DiscardUnknown() { 1906 xxx_messageInfo_ResponseBeginBlock.DiscardUnknown(m) 1907 } 1908 1909 var xxx_messageInfo_ResponseBeginBlock proto.InternalMessageInfo 1910 1911 func (m *ResponseBeginBlock) GetEvents() []Event { 1912 if m != nil { 1913 return m.Events 1914 } 1915 return nil 1916 } 1917 1918 type ResponseCheckTx struct { 1919 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 1920 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1921 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 1922 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 1923 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,proto3" json:"gas_wanted,omitempty"` 1924 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,proto3" json:"gas_used,omitempty"` 1925 Events []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 1926 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 1927 } 1928 1929 func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} } 1930 func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) } 1931 func (*ResponseCheckTx) ProtoMessage() {} 1932 func (*ResponseCheckTx) Descriptor() ([]byte, []int) { 1933 return fileDescriptor_252557cfdd89a31a, []int{25} 1934 } 1935 func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error { 1936 return m.Unmarshal(b) 1937 } 1938 func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1939 if deterministic { 1940 return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic) 1941 } else { 1942 b = b[:cap(b)] 1943 n, err := m.MarshalToSizedBuffer(b) 1944 if err != nil { 1945 return nil, err 1946 } 1947 return b[:n], nil 1948 } 1949 } 1950 func (m *ResponseCheckTx) XXX_Merge(src proto.Message) { 1951 xxx_messageInfo_ResponseCheckTx.Merge(m, src) 1952 } 1953 func (m *ResponseCheckTx) XXX_Size() int { 1954 return m.Size() 1955 } 1956 func (m *ResponseCheckTx) XXX_DiscardUnknown() { 1957 xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m) 1958 } 1959 1960 var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo 1961 1962 func (m *ResponseCheckTx) GetCode() uint32 { 1963 if m != nil { 1964 return m.Code 1965 } 1966 return 0 1967 } 1968 1969 func (m *ResponseCheckTx) GetData() []byte { 1970 if m != nil { 1971 return m.Data 1972 } 1973 return nil 1974 } 1975 1976 func (m *ResponseCheckTx) GetLog() string { 1977 if m != nil { 1978 return m.Log 1979 } 1980 return "" 1981 } 1982 1983 func (m *ResponseCheckTx) GetInfo() string { 1984 if m != nil { 1985 return m.Info 1986 } 1987 return "" 1988 } 1989 1990 func (m *ResponseCheckTx) GetGasWanted() int64 { 1991 if m != nil { 1992 return m.GasWanted 1993 } 1994 return 0 1995 } 1996 1997 func (m *ResponseCheckTx) GetGasUsed() int64 { 1998 if m != nil { 1999 return m.GasUsed 2000 } 2001 return 0 2002 } 2003 2004 func (m *ResponseCheckTx) GetEvents() []Event { 2005 if m != nil { 2006 return m.Events 2007 } 2008 return nil 2009 } 2010 2011 func (m *ResponseCheckTx) GetCodespace() string { 2012 if m != nil { 2013 return m.Codespace 2014 } 2015 return "" 2016 } 2017 2018 type ResponseDeliverTx struct { 2019 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 2020 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 2021 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 2022 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 2023 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,proto3" json:"gas_wanted,omitempty"` 2024 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,proto3" json:"gas_used,omitempty"` 2025 Events []Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 2026 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 2027 } 2028 2029 func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} } 2030 func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) } 2031 func (*ResponseDeliverTx) ProtoMessage() {} 2032 func (*ResponseDeliverTx) Descriptor() ([]byte, []int) { 2033 return fileDescriptor_252557cfdd89a31a, []int{26} 2034 } 2035 func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error { 2036 return m.Unmarshal(b) 2037 } 2038 func (m *ResponseDeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2039 if deterministic { 2040 return xxx_messageInfo_ResponseDeliverTx.Marshal(b, m, deterministic) 2041 } else { 2042 b = b[:cap(b)] 2043 n, err := m.MarshalToSizedBuffer(b) 2044 if err != nil { 2045 return nil, err 2046 } 2047 return b[:n], nil 2048 } 2049 } 2050 func (m *ResponseDeliverTx) XXX_Merge(src proto.Message) { 2051 xxx_messageInfo_ResponseDeliverTx.Merge(m, src) 2052 } 2053 func (m *ResponseDeliverTx) XXX_Size() int { 2054 return m.Size() 2055 } 2056 func (m *ResponseDeliverTx) XXX_DiscardUnknown() { 2057 xxx_messageInfo_ResponseDeliverTx.DiscardUnknown(m) 2058 } 2059 2060 var xxx_messageInfo_ResponseDeliverTx proto.InternalMessageInfo 2061 2062 func (m *ResponseDeliverTx) GetCode() uint32 { 2063 if m != nil { 2064 return m.Code 2065 } 2066 return 0 2067 } 2068 2069 func (m *ResponseDeliverTx) GetData() []byte { 2070 if m != nil { 2071 return m.Data 2072 } 2073 return nil 2074 } 2075 2076 func (m *ResponseDeliverTx) GetLog() string { 2077 if m != nil { 2078 return m.Log 2079 } 2080 return "" 2081 } 2082 2083 func (m *ResponseDeliverTx) GetInfo() string { 2084 if m != nil { 2085 return m.Info 2086 } 2087 return "" 2088 } 2089 2090 func (m *ResponseDeliverTx) GetGasWanted() int64 { 2091 if m != nil { 2092 return m.GasWanted 2093 } 2094 return 0 2095 } 2096 2097 func (m *ResponseDeliverTx) GetGasUsed() int64 { 2098 if m != nil { 2099 return m.GasUsed 2100 } 2101 return 0 2102 } 2103 2104 func (m *ResponseDeliverTx) GetEvents() []Event { 2105 if m != nil { 2106 return m.Events 2107 } 2108 return nil 2109 } 2110 2111 func (m *ResponseDeliverTx) GetCodespace() string { 2112 if m != nil { 2113 return m.Codespace 2114 } 2115 return "" 2116 } 2117 2118 type ResponseEndBlock struct { 2119 ValidatorUpdates []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates"` 2120 ConsensusParamUpdates *ConsensusParams `protobuf:"bytes,2,opt,name=consensus_param_updates,json=consensusParamUpdates,proto3" json:"consensus_param_updates,omitempty"` 2121 Events []Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` 2122 } 2123 2124 func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} } 2125 func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) } 2126 func (*ResponseEndBlock) ProtoMessage() {} 2127 func (*ResponseEndBlock) Descriptor() ([]byte, []int) { 2128 return fileDescriptor_252557cfdd89a31a, []int{27} 2129 } 2130 func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error { 2131 return m.Unmarshal(b) 2132 } 2133 func (m *ResponseEndBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2134 if deterministic { 2135 return xxx_messageInfo_ResponseEndBlock.Marshal(b, m, deterministic) 2136 } else { 2137 b = b[:cap(b)] 2138 n, err := m.MarshalToSizedBuffer(b) 2139 if err != nil { 2140 return nil, err 2141 } 2142 return b[:n], nil 2143 } 2144 } 2145 func (m *ResponseEndBlock) XXX_Merge(src proto.Message) { 2146 xxx_messageInfo_ResponseEndBlock.Merge(m, src) 2147 } 2148 func (m *ResponseEndBlock) XXX_Size() int { 2149 return m.Size() 2150 } 2151 func (m *ResponseEndBlock) XXX_DiscardUnknown() { 2152 xxx_messageInfo_ResponseEndBlock.DiscardUnknown(m) 2153 } 2154 2155 var xxx_messageInfo_ResponseEndBlock proto.InternalMessageInfo 2156 2157 func (m *ResponseEndBlock) GetValidatorUpdates() []ValidatorUpdate { 2158 if m != nil { 2159 return m.ValidatorUpdates 2160 } 2161 return nil 2162 } 2163 2164 func (m *ResponseEndBlock) GetConsensusParamUpdates() *ConsensusParams { 2165 if m != nil { 2166 return m.ConsensusParamUpdates 2167 } 2168 return nil 2169 } 2170 2171 func (m *ResponseEndBlock) GetEvents() []Event { 2172 if m != nil { 2173 return m.Events 2174 } 2175 return nil 2176 } 2177 2178 type ResponseCommit struct { 2179 // reserve 1 2180 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 2181 RetainHeight int64 `protobuf:"varint,3,opt,name=retain_height,json=retainHeight,proto3" json:"retain_height,omitempty"` 2182 } 2183 2184 func (m *ResponseCommit) Reset() { *m = ResponseCommit{} } 2185 func (m *ResponseCommit) String() string { return proto.CompactTextString(m) } 2186 func (*ResponseCommit) ProtoMessage() {} 2187 func (*ResponseCommit) Descriptor() ([]byte, []int) { 2188 return fileDescriptor_252557cfdd89a31a, []int{28} 2189 } 2190 func (m *ResponseCommit) XXX_Unmarshal(b []byte) error { 2191 return m.Unmarshal(b) 2192 } 2193 func (m *ResponseCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2194 if deterministic { 2195 return xxx_messageInfo_ResponseCommit.Marshal(b, m, deterministic) 2196 } else { 2197 b = b[:cap(b)] 2198 n, err := m.MarshalToSizedBuffer(b) 2199 if err != nil { 2200 return nil, err 2201 } 2202 return b[:n], nil 2203 } 2204 } 2205 func (m *ResponseCommit) XXX_Merge(src proto.Message) { 2206 xxx_messageInfo_ResponseCommit.Merge(m, src) 2207 } 2208 func (m *ResponseCommit) XXX_Size() int { 2209 return m.Size() 2210 } 2211 func (m *ResponseCommit) XXX_DiscardUnknown() { 2212 xxx_messageInfo_ResponseCommit.DiscardUnknown(m) 2213 } 2214 2215 var xxx_messageInfo_ResponseCommit proto.InternalMessageInfo 2216 2217 func (m *ResponseCommit) GetData() []byte { 2218 if m != nil { 2219 return m.Data 2220 } 2221 return nil 2222 } 2223 2224 func (m *ResponseCommit) GetRetainHeight() int64 { 2225 if m != nil { 2226 return m.RetainHeight 2227 } 2228 return 0 2229 } 2230 2231 type ResponseListSnapshots struct { 2232 Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"` 2233 } 2234 2235 func (m *ResponseListSnapshots) Reset() { *m = ResponseListSnapshots{} } 2236 func (m *ResponseListSnapshots) String() string { return proto.CompactTextString(m) } 2237 func (*ResponseListSnapshots) ProtoMessage() {} 2238 func (*ResponseListSnapshots) Descriptor() ([]byte, []int) { 2239 return fileDescriptor_252557cfdd89a31a, []int{29} 2240 } 2241 func (m *ResponseListSnapshots) XXX_Unmarshal(b []byte) error { 2242 return m.Unmarshal(b) 2243 } 2244 func (m *ResponseListSnapshots) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2245 if deterministic { 2246 return xxx_messageInfo_ResponseListSnapshots.Marshal(b, m, deterministic) 2247 } else { 2248 b = b[:cap(b)] 2249 n, err := m.MarshalToSizedBuffer(b) 2250 if err != nil { 2251 return nil, err 2252 } 2253 return b[:n], nil 2254 } 2255 } 2256 func (m *ResponseListSnapshots) XXX_Merge(src proto.Message) { 2257 xxx_messageInfo_ResponseListSnapshots.Merge(m, src) 2258 } 2259 func (m *ResponseListSnapshots) XXX_Size() int { 2260 return m.Size() 2261 } 2262 func (m *ResponseListSnapshots) XXX_DiscardUnknown() { 2263 xxx_messageInfo_ResponseListSnapshots.DiscardUnknown(m) 2264 } 2265 2266 var xxx_messageInfo_ResponseListSnapshots proto.InternalMessageInfo 2267 2268 func (m *ResponseListSnapshots) GetSnapshots() []*Snapshot { 2269 if m != nil { 2270 return m.Snapshots 2271 } 2272 return nil 2273 } 2274 2275 type ResponseOfferSnapshot struct { 2276 Result ResponseOfferSnapshot_Result `protobuf:"varint,1,opt,name=result,proto3,enum=tendermint.abci.ResponseOfferSnapshot_Result" json:"result,omitempty"` 2277 } 2278 2279 func (m *ResponseOfferSnapshot) Reset() { *m = ResponseOfferSnapshot{} } 2280 func (m *ResponseOfferSnapshot) String() string { return proto.CompactTextString(m) } 2281 func (*ResponseOfferSnapshot) ProtoMessage() {} 2282 func (*ResponseOfferSnapshot) Descriptor() ([]byte, []int) { 2283 return fileDescriptor_252557cfdd89a31a, []int{30} 2284 } 2285 func (m *ResponseOfferSnapshot) XXX_Unmarshal(b []byte) error { 2286 return m.Unmarshal(b) 2287 } 2288 func (m *ResponseOfferSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2289 if deterministic { 2290 return xxx_messageInfo_ResponseOfferSnapshot.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 *ResponseOfferSnapshot) XXX_Merge(src proto.Message) { 2301 xxx_messageInfo_ResponseOfferSnapshot.Merge(m, src) 2302 } 2303 func (m *ResponseOfferSnapshot) XXX_Size() int { 2304 return m.Size() 2305 } 2306 func (m *ResponseOfferSnapshot) XXX_DiscardUnknown() { 2307 xxx_messageInfo_ResponseOfferSnapshot.DiscardUnknown(m) 2308 } 2309 2310 var xxx_messageInfo_ResponseOfferSnapshot proto.InternalMessageInfo 2311 2312 func (m *ResponseOfferSnapshot) GetResult() ResponseOfferSnapshot_Result { 2313 if m != nil { 2314 return m.Result 2315 } 2316 return ResponseOfferSnapshot_UNKNOWN 2317 } 2318 2319 type ResponseLoadSnapshotChunk struct { 2320 Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` 2321 } 2322 2323 func (m *ResponseLoadSnapshotChunk) Reset() { *m = ResponseLoadSnapshotChunk{} } 2324 func (m *ResponseLoadSnapshotChunk) String() string { return proto.CompactTextString(m) } 2325 func (*ResponseLoadSnapshotChunk) ProtoMessage() {} 2326 func (*ResponseLoadSnapshotChunk) Descriptor() ([]byte, []int) { 2327 return fileDescriptor_252557cfdd89a31a, []int{31} 2328 } 2329 func (m *ResponseLoadSnapshotChunk) XXX_Unmarshal(b []byte) error { 2330 return m.Unmarshal(b) 2331 } 2332 func (m *ResponseLoadSnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2333 if deterministic { 2334 return xxx_messageInfo_ResponseLoadSnapshotChunk.Marshal(b, m, deterministic) 2335 } else { 2336 b = b[:cap(b)] 2337 n, err := m.MarshalToSizedBuffer(b) 2338 if err != nil { 2339 return nil, err 2340 } 2341 return b[:n], nil 2342 } 2343 } 2344 func (m *ResponseLoadSnapshotChunk) XXX_Merge(src proto.Message) { 2345 xxx_messageInfo_ResponseLoadSnapshotChunk.Merge(m, src) 2346 } 2347 func (m *ResponseLoadSnapshotChunk) XXX_Size() int { 2348 return m.Size() 2349 } 2350 func (m *ResponseLoadSnapshotChunk) XXX_DiscardUnknown() { 2351 xxx_messageInfo_ResponseLoadSnapshotChunk.DiscardUnknown(m) 2352 } 2353 2354 var xxx_messageInfo_ResponseLoadSnapshotChunk proto.InternalMessageInfo 2355 2356 func (m *ResponseLoadSnapshotChunk) GetChunk() []byte { 2357 if m != nil { 2358 return m.Chunk 2359 } 2360 return nil 2361 } 2362 2363 type ResponseApplySnapshotChunk struct { 2364 Result ResponseApplySnapshotChunk_Result `protobuf:"varint,1,opt,name=result,proto3,enum=tendermint.abci.ResponseApplySnapshotChunk_Result" json:"result,omitempty"` 2365 RefetchChunks []uint32 `protobuf:"varint,2,rep,packed,name=refetch_chunks,json=refetchChunks,proto3" json:"refetch_chunks,omitempty"` 2366 RejectSenders []string `protobuf:"bytes,3,rep,name=reject_senders,json=rejectSenders,proto3" json:"reject_senders,omitempty"` 2367 } 2368 2369 func (m *ResponseApplySnapshotChunk) Reset() { *m = ResponseApplySnapshotChunk{} } 2370 func (m *ResponseApplySnapshotChunk) String() string { return proto.CompactTextString(m) } 2371 func (*ResponseApplySnapshotChunk) ProtoMessage() {} 2372 func (*ResponseApplySnapshotChunk) Descriptor() ([]byte, []int) { 2373 return fileDescriptor_252557cfdd89a31a, []int{32} 2374 } 2375 func (m *ResponseApplySnapshotChunk) XXX_Unmarshal(b []byte) error { 2376 return m.Unmarshal(b) 2377 } 2378 func (m *ResponseApplySnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2379 if deterministic { 2380 return xxx_messageInfo_ResponseApplySnapshotChunk.Marshal(b, m, deterministic) 2381 } else { 2382 b = b[:cap(b)] 2383 n, err := m.MarshalToSizedBuffer(b) 2384 if err != nil { 2385 return nil, err 2386 } 2387 return b[:n], nil 2388 } 2389 } 2390 func (m *ResponseApplySnapshotChunk) XXX_Merge(src proto.Message) { 2391 xxx_messageInfo_ResponseApplySnapshotChunk.Merge(m, src) 2392 } 2393 func (m *ResponseApplySnapshotChunk) XXX_Size() int { 2394 return m.Size() 2395 } 2396 func (m *ResponseApplySnapshotChunk) XXX_DiscardUnknown() { 2397 xxx_messageInfo_ResponseApplySnapshotChunk.DiscardUnknown(m) 2398 } 2399 2400 var xxx_messageInfo_ResponseApplySnapshotChunk proto.InternalMessageInfo 2401 2402 func (m *ResponseApplySnapshotChunk) GetResult() ResponseApplySnapshotChunk_Result { 2403 if m != nil { 2404 return m.Result 2405 } 2406 return ResponseApplySnapshotChunk_UNKNOWN 2407 } 2408 2409 func (m *ResponseApplySnapshotChunk) GetRefetchChunks() []uint32 { 2410 if m != nil { 2411 return m.RefetchChunks 2412 } 2413 return nil 2414 } 2415 2416 func (m *ResponseApplySnapshotChunk) GetRejectSenders() []string { 2417 if m != nil { 2418 return m.RejectSenders 2419 } 2420 return nil 2421 } 2422 2423 // ConsensusParams contains all consensus-relevant parameters 2424 // that can be adjusted by the abci app 2425 type ConsensusParams struct { 2426 Block *BlockParams `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` 2427 Evidence *types1.EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"` 2428 Validator *types1.ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` 2429 Version *types1.VersionParams `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` 2430 } 2431 2432 func (m *ConsensusParams) Reset() { *m = ConsensusParams{} } 2433 func (m *ConsensusParams) String() string { return proto.CompactTextString(m) } 2434 func (*ConsensusParams) ProtoMessage() {} 2435 func (*ConsensusParams) Descriptor() ([]byte, []int) { 2436 return fileDescriptor_252557cfdd89a31a, []int{33} 2437 } 2438 func (m *ConsensusParams) XXX_Unmarshal(b []byte) error { 2439 return m.Unmarshal(b) 2440 } 2441 func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2442 if deterministic { 2443 return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic) 2444 } else { 2445 b = b[:cap(b)] 2446 n, err := m.MarshalToSizedBuffer(b) 2447 if err != nil { 2448 return nil, err 2449 } 2450 return b[:n], nil 2451 } 2452 } 2453 func (m *ConsensusParams) XXX_Merge(src proto.Message) { 2454 xxx_messageInfo_ConsensusParams.Merge(m, src) 2455 } 2456 func (m *ConsensusParams) XXX_Size() int { 2457 return m.Size() 2458 } 2459 func (m *ConsensusParams) XXX_DiscardUnknown() { 2460 xxx_messageInfo_ConsensusParams.DiscardUnknown(m) 2461 } 2462 2463 var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo 2464 2465 func (m *ConsensusParams) GetBlock() *BlockParams { 2466 if m != nil { 2467 return m.Block 2468 } 2469 return nil 2470 } 2471 2472 func (m *ConsensusParams) GetEvidence() *types1.EvidenceParams { 2473 if m != nil { 2474 return m.Evidence 2475 } 2476 return nil 2477 } 2478 2479 func (m *ConsensusParams) GetValidator() *types1.ValidatorParams { 2480 if m != nil { 2481 return m.Validator 2482 } 2483 return nil 2484 } 2485 2486 func (m *ConsensusParams) GetVersion() *types1.VersionParams { 2487 if m != nil { 2488 return m.Version 2489 } 2490 return nil 2491 } 2492 2493 // BlockParams contains limits on the block size. 2494 type BlockParams struct { 2495 // Note: must be greater than 0 2496 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` 2497 // Note: must be greater or equal to -1 2498 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` 2499 } 2500 2501 func (m *BlockParams) Reset() { *m = BlockParams{} } 2502 func (m *BlockParams) String() string { return proto.CompactTextString(m) } 2503 func (*BlockParams) ProtoMessage() {} 2504 func (*BlockParams) Descriptor() ([]byte, []int) { 2505 return fileDescriptor_252557cfdd89a31a, []int{34} 2506 } 2507 func (m *BlockParams) XXX_Unmarshal(b []byte) error { 2508 return m.Unmarshal(b) 2509 } 2510 func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2511 if deterministic { 2512 return xxx_messageInfo_BlockParams.Marshal(b, m, deterministic) 2513 } else { 2514 b = b[:cap(b)] 2515 n, err := m.MarshalToSizedBuffer(b) 2516 if err != nil { 2517 return nil, err 2518 } 2519 return b[:n], nil 2520 } 2521 } 2522 func (m *BlockParams) XXX_Merge(src proto.Message) { 2523 xxx_messageInfo_BlockParams.Merge(m, src) 2524 } 2525 func (m *BlockParams) XXX_Size() int { 2526 return m.Size() 2527 } 2528 func (m *BlockParams) XXX_DiscardUnknown() { 2529 xxx_messageInfo_BlockParams.DiscardUnknown(m) 2530 } 2531 2532 var xxx_messageInfo_BlockParams proto.InternalMessageInfo 2533 2534 func (m *BlockParams) GetMaxBytes() int64 { 2535 if m != nil { 2536 return m.MaxBytes 2537 } 2538 return 0 2539 } 2540 2541 func (m *BlockParams) GetMaxGas() int64 { 2542 if m != nil { 2543 return m.MaxGas 2544 } 2545 return 0 2546 } 2547 2548 type LastCommitInfo struct { 2549 Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` 2550 Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes"` 2551 } 2552 2553 func (m *LastCommitInfo) Reset() { *m = LastCommitInfo{} } 2554 func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) } 2555 func (*LastCommitInfo) ProtoMessage() {} 2556 func (*LastCommitInfo) Descriptor() ([]byte, []int) { 2557 return fileDescriptor_252557cfdd89a31a, []int{35} 2558 } 2559 func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error { 2560 return m.Unmarshal(b) 2561 } 2562 func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2563 if deterministic { 2564 return xxx_messageInfo_LastCommitInfo.Marshal(b, m, deterministic) 2565 } else { 2566 b = b[:cap(b)] 2567 n, err := m.MarshalToSizedBuffer(b) 2568 if err != nil { 2569 return nil, err 2570 } 2571 return b[:n], nil 2572 } 2573 } 2574 func (m *LastCommitInfo) XXX_Merge(src proto.Message) { 2575 xxx_messageInfo_LastCommitInfo.Merge(m, src) 2576 } 2577 func (m *LastCommitInfo) XXX_Size() int { 2578 return m.Size() 2579 } 2580 func (m *LastCommitInfo) XXX_DiscardUnknown() { 2581 xxx_messageInfo_LastCommitInfo.DiscardUnknown(m) 2582 } 2583 2584 var xxx_messageInfo_LastCommitInfo proto.InternalMessageInfo 2585 2586 func (m *LastCommitInfo) GetRound() int32 { 2587 if m != nil { 2588 return m.Round 2589 } 2590 return 0 2591 } 2592 2593 func (m *LastCommitInfo) GetVotes() []VoteInfo { 2594 if m != nil { 2595 return m.Votes 2596 } 2597 return nil 2598 } 2599 2600 // Event allows application developers to attach additional information to 2601 // ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. 2602 // Later, transactions may be queried using these events. 2603 type Event struct { 2604 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2605 Attributes []EventAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` 2606 } 2607 2608 func (m *Event) Reset() { *m = Event{} } 2609 func (m *Event) String() string { return proto.CompactTextString(m) } 2610 func (*Event) ProtoMessage() {} 2611 func (*Event) Descriptor() ([]byte, []int) { 2612 return fileDescriptor_252557cfdd89a31a, []int{36} 2613 } 2614 func (m *Event) XXX_Unmarshal(b []byte) error { 2615 return m.Unmarshal(b) 2616 } 2617 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2618 if deterministic { 2619 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 2620 } else { 2621 b = b[:cap(b)] 2622 n, err := m.MarshalToSizedBuffer(b) 2623 if err != nil { 2624 return nil, err 2625 } 2626 return b[:n], nil 2627 } 2628 } 2629 func (m *Event) XXX_Merge(src proto.Message) { 2630 xxx_messageInfo_Event.Merge(m, src) 2631 } 2632 func (m *Event) XXX_Size() int { 2633 return m.Size() 2634 } 2635 func (m *Event) XXX_DiscardUnknown() { 2636 xxx_messageInfo_Event.DiscardUnknown(m) 2637 } 2638 2639 var xxx_messageInfo_Event proto.InternalMessageInfo 2640 2641 func (m *Event) GetType() string { 2642 if m != nil { 2643 return m.Type 2644 } 2645 return "" 2646 } 2647 2648 func (m *Event) GetAttributes() []EventAttribute { 2649 if m != nil { 2650 return m.Attributes 2651 } 2652 return nil 2653 } 2654 2655 // EventAttribute is a single key-value pair, associated with an event. 2656 type EventAttribute struct { 2657 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 2658 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 2659 Index bool `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` 2660 } 2661 2662 func (m *EventAttribute) Reset() { *m = EventAttribute{} } 2663 func (m *EventAttribute) String() string { return proto.CompactTextString(m) } 2664 func (*EventAttribute) ProtoMessage() {} 2665 func (*EventAttribute) Descriptor() ([]byte, []int) { 2666 return fileDescriptor_252557cfdd89a31a, []int{37} 2667 } 2668 func (m *EventAttribute) XXX_Unmarshal(b []byte) error { 2669 return m.Unmarshal(b) 2670 } 2671 func (m *EventAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2672 if deterministic { 2673 return xxx_messageInfo_EventAttribute.Marshal(b, m, deterministic) 2674 } else { 2675 b = b[:cap(b)] 2676 n, err := m.MarshalToSizedBuffer(b) 2677 if err != nil { 2678 return nil, err 2679 } 2680 return b[:n], nil 2681 } 2682 } 2683 func (m *EventAttribute) XXX_Merge(src proto.Message) { 2684 xxx_messageInfo_EventAttribute.Merge(m, src) 2685 } 2686 func (m *EventAttribute) XXX_Size() int { 2687 return m.Size() 2688 } 2689 func (m *EventAttribute) XXX_DiscardUnknown() { 2690 xxx_messageInfo_EventAttribute.DiscardUnknown(m) 2691 } 2692 2693 var xxx_messageInfo_EventAttribute proto.InternalMessageInfo 2694 2695 func (m *EventAttribute) GetKey() []byte { 2696 if m != nil { 2697 return m.Key 2698 } 2699 return nil 2700 } 2701 2702 func (m *EventAttribute) GetValue() []byte { 2703 if m != nil { 2704 return m.Value 2705 } 2706 return nil 2707 } 2708 2709 func (m *EventAttribute) GetIndex() bool { 2710 if m != nil { 2711 return m.Index 2712 } 2713 return false 2714 } 2715 2716 // TxResult contains results of executing the transaction. 2717 // 2718 // One usage is indexing transaction results. 2719 type TxResult struct { 2720 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 2721 Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` 2722 Tx []byte `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` 2723 Result ResponseDeliverTx `protobuf:"bytes,4,opt,name=result,proto3" json:"result"` 2724 } 2725 2726 func (m *TxResult) Reset() { *m = TxResult{} } 2727 func (m *TxResult) String() string { return proto.CompactTextString(m) } 2728 func (*TxResult) ProtoMessage() {} 2729 func (*TxResult) Descriptor() ([]byte, []int) { 2730 return fileDescriptor_252557cfdd89a31a, []int{38} 2731 } 2732 func (m *TxResult) XXX_Unmarshal(b []byte) error { 2733 return m.Unmarshal(b) 2734 } 2735 func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2736 if deterministic { 2737 return xxx_messageInfo_TxResult.Marshal(b, m, deterministic) 2738 } else { 2739 b = b[:cap(b)] 2740 n, err := m.MarshalToSizedBuffer(b) 2741 if err != nil { 2742 return nil, err 2743 } 2744 return b[:n], nil 2745 } 2746 } 2747 func (m *TxResult) XXX_Merge(src proto.Message) { 2748 xxx_messageInfo_TxResult.Merge(m, src) 2749 } 2750 func (m *TxResult) XXX_Size() int { 2751 return m.Size() 2752 } 2753 func (m *TxResult) XXX_DiscardUnknown() { 2754 xxx_messageInfo_TxResult.DiscardUnknown(m) 2755 } 2756 2757 var xxx_messageInfo_TxResult proto.InternalMessageInfo 2758 2759 func (m *TxResult) GetHeight() int64 { 2760 if m != nil { 2761 return m.Height 2762 } 2763 return 0 2764 } 2765 2766 func (m *TxResult) GetIndex() uint32 { 2767 if m != nil { 2768 return m.Index 2769 } 2770 return 0 2771 } 2772 2773 func (m *TxResult) GetTx() []byte { 2774 if m != nil { 2775 return m.Tx 2776 } 2777 return nil 2778 } 2779 2780 func (m *TxResult) GetResult() ResponseDeliverTx { 2781 if m != nil { 2782 return m.Result 2783 } 2784 return ResponseDeliverTx{} 2785 } 2786 2787 // Validator 2788 type Validator struct { 2789 Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 2790 // PubKey pub_key = 2 [(gogoproto.nullable)=false]; 2791 Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` 2792 } 2793 2794 func (m *Validator) Reset() { *m = Validator{} } 2795 func (m *Validator) String() string { return proto.CompactTextString(m) } 2796 func (*Validator) ProtoMessage() {} 2797 func (*Validator) Descriptor() ([]byte, []int) { 2798 return fileDescriptor_252557cfdd89a31a, []int{39} 2799 } 2800 func (m *Validator) XXX_Unmarshal(b []byte) error { 2801 return m.Unmarshal(b) 2802 } 2803 func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2804 if deterministic { 2805 return xxx_messageInfo_Validator.Marshal(b, m, deterministic) 2806 } else { 2807 b = b[:cap(b)] 2808 n, err := m.MarshalToSizedBuffer(b) 2809 if err != nil { 2810 return nil, err 2811 } 2812 return b[:n], nil 2813 } 2814 } 2815 func (m *Validator) XXX_Merge(src proto.Message) { 2816 xxx_messageInfo_Validator.Merge(m, src) 2817 } 2818 func (m *Validator) XXX_Size() int { 2819 return m.Size() 2820 } 2821 func (m *Validator) XXX_DiscardUnknown() { 2822 xxx_messageInfo_Validator.DiscardUnknown(m) 2823 } 2824 2825 var xxx_messageInfo_Validator proto.InternalMessageInfo 2826 2827 func (m *Validator) GetAddress() []byte { 2828 if m != nil { 2829 return m.Address 2830 } 2831 return nil 2832 } 2833 2834 func (m *Validator) GetPower() int64 { 2835 if m != nil { 2836 return m.Power 2837 } 2838 return 0 2839 } 2840 2841 // ValidatorUpdate 2842 type ValidatorUpdate struct { 2843 PubKey crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` 2844 Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` 2845 } 2846 2847 func (m *ValidatorUpdate) Reset() { *m = ValidatorUpdate{} } 2848 func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) } 2849 func (*ValidatorUpdate) ProtoMessage() {} 2850 func (*ValidatorUpdate) Descriptor() ([]byte, []int) { 2851 return fileDescriptor_252557cfdd89a31a, []int{40} 2852 } 2853 func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error { 2854 return m.Unmarshal(b) 2855 } 2856 func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2857 if deterministic { 2858 return xxx_messageInfo_ValidatorUpdate.Marshal(b, m, deterministic) 2859 } else { 2860 b = b[:cap(b)] 2861 n, err := m.MarshalToSizedBuffer(b) 2862 if err != nil { 2863 return nil, err 2864 } 2865 return b[:n], nil 2866 } 2867 } 2868 func (m *ValidatorUpdate) XXX_Merge(src proto.Message) { 2869 xxx_messageInfo_ValidatorUpdate.Merge(m, src) 2870 } 2871 func (m *ValidatorUpdate) XXX_Size() int { 2872 return m.Size() 2873 } 2874 func (m *ValidatorUpdate) XXX_DiscardUnknown() { 2875 xxx_messageInfo_ValidatorUpdate.DiscardUnknown(m) 2876 } 2877 2878 var xxx_messageInfo_ValidatorUpdate proto.InternalMessageInfo 2879 2880 func (m *ValidatorUpdate) GetPubKey() crypto.PublicKey { 2881 if m != nil { 2882 return m.PubKey 2883 } 2884 return crypto.PublicKey{} 2885 } 2886 2887 func (m *ValidatorUpdate) GetPower() int64 { 2888 if m != nil { 2889 return m.Power 2890 } 2891 return 0 2892 } 2893 2894 // VoteInfo 2895 type VoteInfo struct { 2896 Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"` 2897 SignedLastBlock bool `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"` 2898 } 2899 2900 func (m *VoteInfo) Reset() { *m = VoteInfo{} } 2901 func (m *VoteInfo) String() string { return proto.CompactTextString(m) } 2902 func (*VoteInfo) ProtoMessage() {} 2903 func (*VoteInfo) Descriptor() ([]byte, []int) { 2904 return fileDescriptor_252557cfdd89a31a, []int{41} 2905 } 2906 func (m *VoteInfo) XXX_Unmarshal(b []byte) error { 2907 return m.Unmarshal(b) 2908 } 2909 func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2910 if deterministic { 2911 return xxx_messageInfo_VoteInfo.Marshal(b, m, deterministic) 2912 } else { 2913 b = b[:cap(b)] 2914 n, err := m.MarshalToSizedBuffer(b) 2915 if err != nil { 2916 return nil, err 2917 } 2918 return b[:n], nil 2919 } 2920 } 2921 func (m *VoteInfo) XXX_Merge(src proto.Message) { 2922 xxx_messageInfo_VoteInfo.Merge(m, src) 2923 } 2924 func (m *VoteInfo) XXX_Size() int { 2925 return m.Size() 2926 } 2927 func (m *VoteInfo) XXX_DiscardUnknown() { 2928 xxx_messageInfo_VoteInfo.DiscardUnknown(m) 2929 } 2930 2931 var xxx_messageInfo_VoteInfo proto.InternalMessageInfo 2932 2933 func (m *VoteInfo) GetValidator() Validator { 2934 if m != nil { 2935 return m.Validator 2936 } 2937 return Validator{} 2938 } 2939 2940 func (m *VoteInfo) GetSignedLastBlock() bool { 2941 if m != nil { 2942 return m.SignedLastBlock 2943 } 2944 return false 2945 } 2946 2947 type Evidence struct { 2948 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 2949 Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"` 2950 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 2951 Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` 2952 // Total voting power of the validator set in case the ABCI application does 2953 // not store historical validators. 2954 // https://github.com/tendermint/tendermint/issues/4581 2955 TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` 2956 } 2957 2958 func (m *Evidence) Reset() { *m = Evidence{} } 2959 func (m *Evidence) String() string { return proto.CompactTextString(m) } 2960 func (*Evidence) ProtoMessage() {} 2961 func (*Evidence) Descriptor() ([]byte, []int) { 2962 return fileDescriptor_252557cfdd89a31a, []int{42} 2963 } 2964 func (m *Evidence) XXX_Unmarshal(b []byte) error { 2965 return m.Unmarshal(b) 2966 } 2967 func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2968 if deterministic { 2969 return xxx_messageInfo_Evidence.Marshal(b, m, deterministic) 2970 } else { 2971 b = b[:cap(b)] 2972 n, err := m.MarshalToSizedBuffer(b) 2973 if err != nil { 2974 return nil, err 2975 } 2976 return b[:n], nil 2977 } 2978 } 2979 func (m *Evidence) XXX_Merge(src proto.Message) { 2980 xxx_messageInfo_Evidence.Merge(m, src) 2981 } 2982 func (m *Evidence) XXX_Size() int { 2983 return m.Size() 2984 } 2985 func (m *Evidence) XXX_DiscardUnknown() { 2986 xxx_messageInfo_Evidence.DiscardUnknown(m) 2987 } 2988 2989 var xxx_messageInfo_Evidence proto.InternalMessageInfo 2990 2991 func (m *Evidence) GetType() string { 2992 if m != nil { 2993 return m.Type 2994 } 2995 return "" 2996 } 2997 2998 func (m *Evidence) GetValidator() Validator { 2999 if m != nil { 3000 return m.Validator 3001 } 3002 return Validator{} 3003 } 3004 3005 func (m *Evidence) GetHeight() int64 { 3006 if m != nil { 3007 return m.Height 3008 } 3009 return 0 3010 } 3011 3012 func (m *Evidence) GetTime() time.Time { 3013 if m != nil { 3014 return m.Time 3015 } 3016 return time.Time{} 3017 } 3018 3019 func (m *Evidence) GetTotalVotingPower() int64 { 3020 if m != nil { 3021 return m.TotalVotingPower 3022 } 3023 return 0 3024 } 3025 3026 type Snapshot struct { 3027 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 3028 Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"` 3029 Chunks uint32 `protobuf:"varint,3,opt,name=chunks,proto3" json:"chunks,omitempty"` 3030 Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` 3031 Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` 3032 } 3033 3034 func (m *Snapshot) Reset() { *m = Snapshot{} } 3035 func (m *Snapshot) String() string { return proto.CompactTextString(m) } 3036 func (*Snapshot) ProtoMessage() {} 3037 func (*Snapshot) Descriptor() ([]byte, []int) { 3038 return fileDescriptor_252557cfdd89a31a, []int{43} 3039 } 3040 func (m *Snapshot) XXX_Unmarshal(b []byte) error { 3041 return m.Unmarshal(b) 3042 } 3043 func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3044 if deterministic { 3045 return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic) 3046 } else { 3047 b = b[:cap(b)] 3048 n, err := m.MarshalToSizedBuffer(b) 3049 if err != nil { 3050 return nil, err 3051 } 3052 return b[:n], nil 3053 } 3054 } 3055 func (m *Snapshot) XXX_Merge(src proto.Message) { 3056 xxx_messageInfo_Snapshot.Merge(m, src) 3057 } 3058 func (m *Snapshot) XXX_Size() int { 3059 return m.Size() 3060 } 3061 func (m *Snapshot) XXX_DiscardUnknown() { 3062 xxx_messageInfo_Snapshot.DiscardUnknown(m) 3063 } 3064 3065 var xxx_messageInfo_Snapshot proto.InternalMessageInfo 3066 3067 func (m *Snapshot) GetHeight() uint64 { 3068 if m != nil { 3069 return m.Height 3070 } 3071 return 0 3072 } 3073 3074 func (m *Snapshot) GetFormat() uint32 { 3075 if m != nil { 3076 return m.Format 3077 } 3078 return 0 3079 } 3080 3081 func (m *Snapshot) GetChunks() uint32 { 3082 if m != nil { 3083 return m.Chunks 3084 } 3085 return 0 3086 } 3087 3088 func (m *Snapshot) GetHash() []byte { 3089 if m != nil { 3090 return m.Hash 3091 } 3092 return nil 3093 } 3094 3095 func (m *Snapshot) GetMetadata() []byte { 3096 if m != nil { 3097 return m.Metadata 3098 } 3099 return nil 3100 } 3101 3102 func init() { 3103 proto.RegisterEnum("tendermint.abci.CheckTxType", CheckTxType_name, CheckTxType_value) 3104 proto.RegisterEnum("tendermint.abci.ResponseOfferSnapshot_Result", ResponseOfferSnapshot_Result_name, ResponseOfferSnapshot_Result_value) 3105 proto.RegisterEnum("tendermint.abci.ResponseApplySnapshotChunk_Result", ResponseApplySnapshotChunk_Result_name, ResponseApplySnapshotChunk_Result_value) 3106 proto.RegisterType((*Request)(nil), "tendermint.abci.Request") 3107 proto.RegisterType((*RequestEcho)(nil), "tendermint.abci.RequestEcho") 3108 proto.RegisterType((*RequestFlush)(nil), "tendermint.abci.RequestFlush") 3109 proto.RegisterType((*RequestInfo)(nil), "tendermint.abci.RequestInfo") 3110 proto.RegisterType((*RequestSetOption)(nil), "tendermint.abci.RequestSetOption") 3111 proto.RegisterType((*RequestInitChain)(nil), "tendermint.abci.RequestInitChain") 3112 proto.RegisterType((*RequestQuery)(nil), "tendermint.abci.RequestQuery") 3113 proto.RegisterType((*RequestBeginBlock)(nil), "tendermint.abci.RequestBeginBlock") 3114 proto.RegisterType((*RequestCheckTx)(nil), "tendermint.abci.RequestCheckTx") 3115 proto.RegisterType((*RequestDeliverTx)(nil), "tendermint.abci.RequestDeliverTx") 3116 proto.RegisterType((*RequestEndBlock)(nil), "tendermint.abci.RequestEndBlock") 3117 proto.RegisterType((*RequestCommit)(nil), "tendermint.abci.RequestCommit") 3118 proto.RegisterType((*RequestListSnapshots)(nil), "tendermint.abci.RequestListSnapshots") 3119 proto.RegisterType((*RequestOfferSnapshot)(nil), "tendermint.abci.RequestOfferSnapshot") 3120 proto.RegisterType((*RequestLoadSnapshotChunk)(nil), "tendermint.abci.RequestLoadSnapshotChunk") 3121 proto.RegisterType((*RequestApplySnapshotChunk)(nil), "tendermint.abci.RequestApplySnapshotChunk") 3122 proto.RegisterType((*Response)(nil), "tendermint.abci.Response") 3123 proto.RegisterType((*ResponseException)(nil), "tendermint.abci.ResponseException") 3124 proto.RegisterType((*ResponseEcho)(nil), "tendermint.abci.ResponseEcho") 3125 proto.RegisterType((*ResponseFlush)(nil), "tendermint.abci.ResponseFlush") 3126 proto.RegisterType((*ResponseInfo)(nil), "tendermint.abci.ResponseInfo") 3127 proto.RegisterType((*ResponseSetOption)(nil), "tendermint.abci.ResponseSetOption") 3128 proto.RegisterType((*ResponseInitChain)(nil), "tendermint.abci.ResponseInitChain") 3129 proto.RegisterType((*ResponseQuery)(nil), "tendermint.abci.ResponseQuery") 3130 proto.RegisterType((*ResponseBeginBlock)(nil), "tendermint.abci.ResponseBeginBlock") 3131 proto.RegisterType((*ResponseCheckTx)(nil), "tendermint.abci.ResponseCheckTx") 3132 proto.RegisterType((*ResponseDeliverTx)(nil), "tendermint.abci.ResponseDeliverTx") 3133 proto.RegisterType((*ResponseEndBlock)(nil), "tendermint.abci.ResponseEndBlock") 3134 proto.RegisterType((*ResponseCommit)(nil), "tendermint.abci.ResponseCommit") 3135 proto.RegisterType((*ResponseListSnapshots)(nil), "tendermint.abci.ResponseListSnapshots") 3136 proto.RegisterType((*ResponseOfferSnapshot)(nil), "tendermint.abci.ResponseOfferSnapshot") 3137 proto.RegisterType((*ResponseLoadSnapshotChunk)(nil), "tendermint.abci.ResponseLoadSnapshotChunk") 3138 proto.RegisterType((*ResponseApplySnapshotChunk)(nil), "tendermint.abci.ResponseApplySnapshotChunk") 3139 proto.RegisterType((*ConsensusParams)(nil), "tendermint.abci.ConsensusParams") 3140 proto.RegisterType((*BlockParams)(nil), "tendermint.abci.BlockParams") 3141 proto.RegisterType((*LastCommitInfo)(nil), "tendermint.abci.LastCommitInfo") 3142 proto.RegisterType((*Event)(nil), "tendermint.abci.Event") 3143 proto.RegisterType((*EventAttribute)(nil), "tendermint.abci.EventAttribute") 3144 proto.RegisterType((*TxResult)(nil), "tendermint.abci.TxResult") 3145 proto.RegisterType((*Validator)(nil), "tendermint.abci.Validator") 3146 proto.RegisterType((*ValidatorUpdate)(nil), "tendermint.abci.ValidatorUpdate") 3147 proto.RegisterType((*VoteInfo)(nil), "tendermint.abci.VoteInfo") 3148 proto.RegisterType((*Evidence)(nil), "tendermint.abci.Evidence") 3149 proto.RegisterType((*Snapshot)(nil), "tendermint.abci.Snapshot") 3150 } 3151 3152 func init() { proto.RegisterFile("tendermint/abci/types.proto", fileDescriptor_252557cfdd89a31a) } 3153 3154 var fileDescriptor_252557cfdd89a31a = []byte{ 3155 // 2761 bytes of a gzipped FileDescriptorProto 3156 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5a, 0x4b, 0x77, 0x23, 0xc5, 3157 0xf5, 0xd7, 0x5b, 0xea, 0x6b, 0x5b, 0x92, 0x6b, 0xcc, 0x20, 0x7a, 0x66, 0xec, 0xa1, 0x38, 0xbc, 3158 0x06, 0xb0, 0xff, 0x98, 0x03, 0x7f, 0x5e, 0x09, 0x58, 0x42, 0x13, 0x0d, 0x03, 0xf6, 0xa4, 0x6d, 3159 0x86, 0xbc, 0x98, 0xa6, 0xa4, 0x2e, 0x4b, 0xcd, 0x48, 0xdd, 0x8d, 0xba, 0x64, 0x6c, 0x96, 0x24, 3160 0xd9, 0x90, 0x0d, 0x39, 0xd9, 0x64, 0xc3, 0x2e, 0x8b, 0x7c, 0x81, 0x9c, 0x93, 0x55, 0xd6, 0x2c, 3161 0x39, 0x27, 0x9b, 0xac, 0x48, 0x0e, 0x24, 0x9b, 0x7c, 0x81, 0x2c, 0x93, 0x53, 0x8f, 0x7e, 0x49, 3162 0x6a, 0x4b, 0x86, 0xec, 0xb2, 0xab, 0xc7, 0xbd, 0xb7, 0xfa, 0x96, 0xea, 0xfe, 0xea, 0x77, 0x6f, 3163 0x09, 0xae, 0x30, 0xea, 0x58, 0x74, 0x3c, 0xb2, 0x1d, 0xb6, 0x43, 0xba, 0x3d, 0x7b, 0x87, 0x9d, 3164 0x79, 0xd4, 0xdf, 0xf6, 0xc6, 0x2e, 0x73, 0x51, 0x2d, 0x9a, 0xdc, 0xe6, 0x93, 0xfa, 0xb5, 0x98, 3165 0x74, 0x6f, 0x7c, 0xe6, 0x31, 0x77, 0xc7, 0x1b, 0xbb, 0xee, 0xb1, 0x94, 0xd7, 0xaf, 0xc6, 0xa6, 3166 0x85, 0x9d, 0xb8, 0xb5, 0xc4, 0xac, 0x52, 0xbe, 0x4f, 0xcf, 0x82, 0xd9, 0x6b, 0x33, 0xba, 0x1e, 3167 0x19, 0x93, 0x51, 0x30, 0xbd, 0xd5, 0x77, 0xdd, 0xfe, 0x90, 0xee, 0x88, 0x5e, 0x77, 0x72, 0xbc, 3168 0xc3, 0xec, 0x11, 0xf5, 0x19, 0x19, 0x79, 0x4a, 0xe0, 0xf1, 0x98, 0xbe, 0x92, 0x25, 0x9e, 0xbd, 3169 0x43, 0x1c, 0xc7, 0x65, 0x84, 0xd9, 0xae, 0x13, 0x58, 0xda, 0xe8, 0xbb, 0x7d, 0x57, 0x34, 0x77, 3170 0x78, 0x4b, 0x8e, 0xe2, 0x5f, 0x57, 0xa0, 0x6c, 0xd0, 0x0f, 0x27, 0xd4, 0x67, 0x68, 0x17, 0x0a, 3171 0xb4, 0x37, 0x70, 0x1b, 0xd9, 0xeb, 0xd9, 0x27, 0x56, 0x76, 0xaf, 0x6e, 0x4f, 0xed, 0xc2, 0xb6, 3172 0x92, 0x6b, 0xf7, 0x06, 0x6e, 0x27, 0x63, 0x08, 0x59, 0xf4, 0x3c, 0x14, 0x8f, 0x87, 0x13, 0x7f, 3173 0xd0, 0xc8, 0x09, 0xa5, 0x6b, 0x69, 0x4a, 0x37, 0xb9, 0x50, 0x27, 0x63, 0x48, 0x69, 0xbe, 0x94, 3174 0xed, 0x1c, 0xbb, 0x8d, 0xfc, 0xf9, 0x4b, 0xdd, 0x72, 0x8e, 0xc5, 0x52, 0x5c, 0x16, 0x35, 0x01, 3175 0x7c, 0xca, 0x4c, 0xd7, 0xe3, 0x5e, 0x35, 0x0a, 0x42, 0xf3, 0xe1, 0x34, 0xcd, 0x43, 0xca, 0x0e, 3176 0x84, 0x60, 0x27, 0x63, 0x68, 0x7e, 0xd0, 0xe1, 0x36, 0x6c, 0xc7, 0x66, 0x66, 0x6f, 0x40, 0x6c, 3177 0xa7, 0x51, 0x3c, 0xdf, 0xc6, 0x2d, 0xc7, 0x66, 0x2d, 0x2e, 0xc8, 0x6d, 0xd8, 0x41, 0x87, 0xbb, 3178 0xfc, 0xe1, 0x84, 0x8e, 0xcf, 0x1a, 0xa5, 0xf3, 0x5d, 0xfe, 0x21, 0x17, 0xe2, 0x2e, 0x0b, 0x69, 3179 0xd4, 0x86, 0x95, 0x2e, 0xed, 0xdb, 0x8e, 0xd9, 0x1d, 0xba, 0xbd, 0xfb, 0x8d, 0xb2, 0x50, 0xc6, 3180 0x69, 0xca, 0x4d, 0x2e, 0xda, 0xe4, 0x92, 0x9d, 0x8c, 0x01, 0xdd, 0xb0, 0x87, 0x5e, 0x85, 0x4a, 3181 0x6f, 0x40, 0x7b, 0xf7, 0x4d, 0x76, 0xda, 0xa8, 0x08, 0x1b, 0x5b, 0x69, 0x36, 0x5a, 0x5c, 0xee, 3182 0xe8, 0xb4, 0x93, 0x31, 0xca, 0x3d, 0xd9, 0xe4, 0xfe, 0x5b, 0x74, 0x68, 0x9f, 0xd0, 0x31, 0xd7, 3183 0xd7, 0xce, 0xf7, 0xff, 0x0d, 0x29, 0x29, 0x2c, 0x68, 0x56, 0xd0, 0x41, 0xaf, 0x81, 0x46, 0x1d, 3184 0x4b, 0xb9, 0x01, 0xc2, 0xc4, 0xf5, 0xd4, 0xb3, 0xe2, 0x58, 0x81, 0x13, 0x15, 0xaa, 0xda, 0xe8, 3185 0x45, 0x28, 0xf5, 0xdc, 0xd1, 0xc8, 0x66, 0x8d, 0x15, 0xa1, 0xbd, 0x99, 0xea, 0x80, 0x90, 0xea, 3186 0x64, 0x0c, 0x25, 0x8f, 0xf6, 0xa1, 0x3a, 0xb4, 0x7d, 0x66, 0xfa, 0x0e, 0xf1, 0xfc, 0x81, 0xcb, 3187 0xfc, 0xc6, 0xaa, 0xb0, 0xf0, 0x68, 0x9a, 0x85, 0xb7, 0x6c, 0x9f, 0x1d, 0x06, 0xc2, 0x9d, 0x8c, 3188 0xb1, 0x36, 0x8c, 0x0f, 0x70, 0x7b, 0xee, 0xf1, 0x31, 0x1d, 0x87, 0x06, 0x1b, 0x6b, 0xe7, 0xdb, 3189 0x3b, 0xe0, 0xd2, 0x81, 0x3e, 0xb7, 0xe7, 0xc6, 0x07, 0xd0, 0x4f, 0xe1, 0xd2, 0xd0, 0x25, 0x56, 3190 0x68, 0xce, 0xec, 0x0d, 0x26, 0xce, 0xfd, 0x46, 0x55, 0x18, 0x7d, 0x32, 0xf5, 0x23, 0x5d, 0x62, 3191 0x05, 0x26, 0x5a, 0x5c, 0xa1, 0x93, 0x31, 0xd6, 0x87, 0xd3, 0x83, 0xe8, 0x1e, 0x6c, 0x10, 0xcf, 3192 0x1b, 0x9e, 0x4d, 0x5b, 0xaf, 0x09, 0xeb, 0x37, 0xd2, 0xac, 0xef, 0x71, 0x9d, 0x69, 0xf3, 0x88, 3193 0xcc, 0x8c, 0x36, 0xcb, 0x50, 0x3c, 0x21, 0xc3, 0x09, 0xc5, 0x8f, 0xc3, 0x4a, 0x2c, 0xd4, 0x51, 3194 0x03, 0xca, 0x23, 0xea, 0xfb, 0xa4, 0x4f, 0x05, 0x32, 0x68, 0x46, 0xd0, 0xc5, 0x55, 0x58, 0x8d, 3195 0x87, 0x37, 0x1e, 0x85, 0x8a, 0x3c, 0x70, 0xb9, 0xe2, 0x09, 0x1d, 0xfb, 0x3c, 0x5a, 0x95, 0xa2, 3196 0xea, 0xa2, 0x47, 0x60, 0x4d, 0x1c, 0x1f, 0x33, 0x98, 0xe7, 0xe8, 0x51, 0x30, 0x56, 0xc5, 0xe0, 3197 0x5d, 0x25, 0xb4, 0x05, 0x2b, 0xde, 0xae, 0x17, 0x8a, 0xe4, 0x85, 0x08, 0x78, 0xbb, 0x9e, 0x12, 3198 0xc0, 0x2f, 0x43, 0x7d, 0x3a, 0xda, 0x51, 0x1d, 0xf2, 0xf7, 0xe9, 0x99, 0x5a, 0x8f, 0x37, 0xd1, 3199 0x86, 0x72, 0x4b, 0xac, 0xa1, 0x19, 0xca, 0xc7, 0xdf, 0xe5, 0x42, 0xe5, 0x30, 0xcc, 0xd1, 0x8b, 3200 0x50, 0xe0, 0xf0, 0xaa, 0x00, 0x50, 0xdf, 0x96, 0x78, 0xba, 0x1d, 0x60, 0xef, 0xf6, 0x51, 0x80, 3201 0xbd, 0xcd, 0xca, 0x17, 0x5f, 0x6d, 0x65, 0x3e, 0xfb, 0xeb, 0x56, 0xd6, 0x10, 0x1a, 0xe8, 0x21, 3202 0x1e, 0x95, 0xc4, 0x76, 0x4c, 0xdb, 0x52, 0xeb, 0x94, 0x45, 0xff, 0x96, 0x85, 0x6e, 0x43, 0xbd, 3203 0xe7, 0x3a, 0x3e, 0x75, 0xfc, 0x89, 0x6f, 0x4a, 0x6c, 0x57, 0xb0, 0x37, 0x1b, 0x35, 0xad, 0x40, 3204 0xf0, 0x8e, 0x90, 0x33, 0x6a, 0xbd, 0xe4, 0x00, 0xba, 0x09, 0x70, 0x42, 0x86, 0xb6, 0x45, 0x98, 3205 0x3b, 0xf6, 0x1b, 0x85, 0xeb, 0xf9, 0xb9, 0x66, 0xee, 0x06, 0x22, 0xef, 0x78, 0x16, 0x61, 0xb4, 3206 0x59, 0xe0, 0x5f, 0x6b, 0xc4, 0x34, 0xd1, 0x63, 0x50, 0x23, 0x9e, 0x67, 0xfa, 0x8c, 0x30, 0x6a, 3207 0x76, 0xcf, 0x18, 0xf5, 0x05, 0x18, 0xae, 0x1a, 0x6b, 0xc4, 0xf3, 0x0e, 0xf9, 0x68, 0x93, 0x0f, 3208 0x62, 0x2b, 0xfc, 0x85, 0x05, 0x9a, 0x21, 0x04, 0x05, 0x8b, 0x30, 0x22, 0x76, 0x68, 0xd5, 0x10, 3209 0x6d, 0x3e, 0xe6, 0x11, 0x36, 0x50, 0x7e, 0x8b, 0x36, 0xba, 0x0c, 0xa5, 0x01, 0xb5, 0xfb, 0x03, 3210 0x26, 0x5c, 0xcd, 0x1b, 0xaa, 0xc7, 0x7f, 0x0c, 0x6f, 0xec, 0x9e, 0x50, 0x01, 0xdf, 0x15, 0x43, 3211 0x76, 0xf0, 0x2f, 0x72, 0xb0, 0x3e, 0x83, 0x7b, 0xdc, 0xee, 0x80, 0xf8, 0x83, 0x60, 0x2d, 0xde, 3212 0x46, 0x2f, 0x70, 0xbb, 0xc4, 0xa2, 0x63, 0x75, 0xdf, 0x34, 0xe2, 0xbe, 0xcb, 0x4b, 0xb7, 0x23, 3213 0xe6, 0x95, 0xcf, 0x4a, 0x1a, 0x1d, 0x40, 0x7d, 0x48, 0x7c, 0x66, 0x4a, 0x1c, 0x31, 0x63, 0x77, 3214 0xcf, 0x2c, 0x7a, 0xbe, 0x45, 0x02, 0xe4, 0xe1, 0xa7, 0x58, 0x19, 0xaa, 0x0e, 0x13, 0xa3, 0xc8, 3215 0x80, 0x8d, 0xee, 0xd9, 0xc7, 0xc4, 0x61, 0xb6, 0x43, 0xcd, 0x99, 0x9f, 0xe4, 0xa1, 0x19, 0xa3, 3216 0xed, 0x13, 0xdb, 0xa2, 0x4e, 0x2f, 0xf8, 0x2d, 0x2e, 0x85, 0xca, 0xe1, 0x6f, 0xe5, 0x63, 0x03, 3217 0xaa, 0x49, 0xe4, 0x46, 0x55, 0xc8, 0xb1, 0x53, 0xb5, 0x01, 0x39, 0x76, 0x8a, 0xfe, 0x0f, 0x0a, 3218 0xdc, 0x49, 0xe1, 0x7c, 0x75, 0xce, 0xb5, 0xa9, 0xf4, 0x8e, 0xce, 0x3c, 0x6a, 0x08, 0x49, 0x8c, 3219 0xc3, 0x63, 0x1e, 0xa2, 0xf9, 0xb4, 0x55, 0xfc, 0x24, 0xd4, 0xa6, 0xe0, 0x3a, 0xf6, 0xfb, 0x65, 3220 0xe3, 0xbf, 0x1f, 0xae, 0xc1, 0x5a, 0x02, 0x9b, 0xf1, 0x65, 0xd8, 0x98, 0x07, 0xb5, 0x78, 0x10, 3221 0x8e, 0x27, 0x20, 0x13, 0x3d, 0x0f, 0x95, 0x10, 0x6b, 0x65, 0x98, 0xcd, 0xee, 0x55, 0x20, 0x6c, 3222 0x84, 0xa2, 0x3c, 0xbe, 0xf8, 0x79, 0x15, 0xe7, 0x21, 0x27, 0x3e, 0xbc, 0x4c, 0x3c, 0xaf, 0x43, 3223 0xfc, 0x01, 0x7e, 0x1f, 0x1a, 0x69, 0x38, 0x3a, 0xe5, 0x46, 0x21, 0x3c, 0x86, 0x97, 0xa1, 0x74, 3224 0xec, 0x8e, 0x47, 0x84, 0x09, 0x63, 0x6b, 0x86, 0xea, 0xf1, 0xe3, 0x29, 0x31, 0x35, 0x2f, 0x86, 3225 0x65, 0x07, 0x9b, 0xf0, 0x50, 0x2a, 0x96, 0x72, 0x15, 0xdb, 0xb1, 0xa8, 0xdc, 0xcf, 0x35, 0x43, 3226 0x76, 0x22, 0x43, 0xf2, 0x63, 0x65, 0x87, 0x2f, 0xeb, 0x0b, 0x5f, 0x85, 0x7d, 0xcd, 0x50, 0x3d, 3227 0xfc, 0x8f, 0x0a, 0x54, 0x0c, 0xea, 0x7b, 0x3c, 0xd8, 0x51, 0x13, 0x34, 0x7a, 0xda, 0xa3, 0x92, 3228 0xe5, 0x64, 0x53, 0x59, 0x82, 0x94, 0x6e, 0x07, 0x92, 0xfc, 0x8a, 0x0e, 0xd5, 0xd0, 0x73, 0x8a, 3229 0xc9, 0xa5, 0x93, 0x32, 0xa5, 0x1e, 0xa7, 0x72, 0x2f, 0x04, 0x54, 0x2e, 0x9f, 0x7a, 0x2b, 0x4b, 3230 0xad, 0x29, 0x2e, 0xf7, 0x9c, 0xe2, 0x72, 0x85, 0x05, 0x8b, 0x25, 0xc8, 0x5c, 0x2b, 0x41, 0xe6, 3231 0x8a, 0x0b, 0xdc, 0x4c, 0x61, 0x73, 0xad, 0x04, 0x9b, 0x2b, 0x2d, 0x30, 0x92, 0x42, 0xe7, 0x5e, 3232 0x08, 0xe8, 0x5c, 0x79, 0x81, 0xdb, 0x53, 0x7c, 0xee, 0x66, 0x92, 0xcf, 0x49, 0x2e, 0xf6, 0x48, 3233 0xaa, 0x76, 0x2a, 0xa1, 0xfb, 0x5e, 0x8c, 0xd0, 0x69, 0xa9, 0x6c, 0x4a, 0x1a, 0x99, 0xc3, 0xe8, 3234 0x5a, 0x09, 0x46, 0x07, 0x0b, 0xf6, 0x20, 0x85, 0xd2, 0xbd, 0x1e, 0xa7, 0x74, 0x2b, 0xa9, 0xac, 3235 0x50, 0x1d, 0x9a, 0x79, 0x9c, 0xee, 0xa5, 0x90, 0xd3, 0xad, 0xa6, 0x92, 0x52, 0xe5, 0xc3, 0x34, 3236 0xa9, 0x3b, 0x98, 0x21, 0x75, 0x92, 0x84, 0x3d, 0x96, 0x6a, 0x62, 0x01, 0xab, 0x3b, 0x98, 0x61, 3237 0x75, 0xd5, 0x05, 0x06, 0x17, 0xd0, 0xba, 0x9f, 0xcd, 0xa7, 0x75, 0xe9, 0xc4, 0x4b, 0x7d, 0xe6, 3238 0x72, 0xbc, 0xce, 0x4c, 0xe1, 0x75, 0x75, 0x61, 0xfe, 0xa9, 0x54, 0xf3, 0x17, 0x27, 0x76, 0x4f, 3239 0xf2, 0x6b, 0x76, 0x0a, 0x38, 0x38, 0x54, 0xd1, 0xf1, 0xd8, 0x1d, 0x2b, 0xce, 0x24, 0x3b, 0xf8, 3240 0x09, 0x7e, 0xf1, 0x47, 0x20, 0x71, 0x0e, 0x09, 0x14, 0x57, 0x42, 0x0c, 0x18, 0xf0, 0x1f, 0xb3, 3241 0x91, 0xae, 0xb8, 0x2b, 0xe3, 0xa4, 0x41, 0x53, 0xa4, 0x21, 0xc6, 0x0d, 0x73, 0x49, 0x6e, 0xb8, 3242 0x05, 0x2b, 0x1c, 0xea, 0xa7, 0x68, 0x1f, 0xf1, 0x02, 0xda, 0x87, 0x6e, 0xc0, 0xba, 0xb8, 0xcb, 3243 0x25, 0x83, 0x54, 0xf8, 0x5e, 0x10, 0xd7, 0x54, 0x8d, 0x4f, 0xc8, 0xc3, 0x29, 0x81, 0xfe, 0x19, 3244 0xb8, 0x14, 0x93, 0x0d, 0xaf, 0x10, 0xc9, 0x75, 0xea, 0xa1, 0xf4, 0x9e, 0xba, 0x4b, 0xde, 0x8e, 3245 0x36, 0x28, 0xa2, 0x94, 0x08, 0x0a, 0x3d, 0xd7, 0xa2, 0x0a, 0xe0, 0x45, 0x9b, 0xd3, 0xcc, 0xa1, 3246 0xdb, 0x57, 0x30, 0xce, 0x9b, 0x5c, 0x2a, 0x44, 0x41, 0x4d, 0x82, 0x1c, 0xfe, 0x7d, 0x36, 0xb2, 3247 0x17, 0xb1, 0xcc, 0x79, 0x84, 0x30, 0xfb, 0xdf, 0x21, 0x84, 0xb9, 0x6f, 0x4b, 0x08, 0xf1, 0xbf, 3248 0xb2, 0xd1, 0xcf, 0x18, 0x52, 0xbd, 0x6f, 0xe7, 0x76, 0x74, 0x25, 0x16, 0xc5, 0x8f, 0xa2, 0xae, 3249 0x44, 0xc5, 0xcc, 0x4b, 0x62, 0xeb, 0x93, 0xcc, 0xbc, 0x2c, 0x2f, 0x49, 0xd1, 0x41, 0x2f, 0x82, 3250 0x26, 0x6a, 0x2b, 0xa6, 0xeb, 0xf9, 0x0a, 0x55, 0xaf, 0xc4, 0x1d, 0x92, 0x25, 0x94, 0xed, 0x3b, 3251 0x5c, 0xe6, 0xc0, 0xf3, 0x8d, 0x8a, 0xa7, 0x5a, 0xb1, 0xdb, 0x5e, 0x4b, 0x90, 0xce, 0xab, 0xa0, 3252 0xf1, 0xaf, 0xf7, 0x3d, 0xd2, 0xa3, 0x02, 0x21, 0x35, 0x23, 0x1a, 0xc0, 0xf7, 0x00, 0xcd, 0x62, 3253 0x34, 0xea, 0x40, 0x89, 0x9e, 0x50, 0x87, 0xf1, 0x9f, 0x86, 0xef, 0xe9, 0xe5, 0x39, 0x8c, 0x8e, 3254 0x3a, 0xac, 0xd9, 0xe0, 0x3b, 0xf9, 0xcf, 0xaf, 0xb6, 0xea, 0x52, 0xfa, 0x69, 0x77, 0x64, 0x33, 3255 0x3a, 0xf2, 0xd8, 0x99, 0xa1, 0xf4, 0xf1, 0xcf, 0x73, 0x9c, 0x5e, 0x25, 0xf0, 0x7b, 0xee, 0xde, 3256 0x06, 0x51, 0x92, 0x8b, 0x51, 0xeb, 0xe5, 0xf6, 0x7b, 0x13, 0xa0, 0x4f, 0x7c, 0xf3, 0x23, 0xe2, 3257 0x30, 0x6a, 0xa9, 0x4d, 0x8f, 0x8d, 0x20, 0x1d, 0x2a, 0xbc, 0x37, 0xf1, 0xa9, 0x25, 0xb6, 0x3f, 3258 0x6f, 0x84, 0xfd, 0x98, 0x9f, 0xe5, 0xef, 0xe6, 0x67, 0x72, 0x97, 0x2b, 0xd3, 0xbb, 0xfc, 0xcb, 3259 0x5c, 0x14, 0x0a, 0x11, 0x13, 0xfd, 0xdf, 0xdb, 0x87, 0x5f, 0x89, 0xbc, 0x33, 0x79, 0x91, 0xa2, 3260 0x43, 0x58, 0x0f, 0x43, 0xd1, 0x9c, 0x88, 0x10, 0x0d, 0xce, 0xdd, 0xb2, 0xb1, 0x5c, 0x3f, 0x49, 3261 0x0e, 0xfb, 0xe8, 0x47, 0xf0, 0xe0, 0x14, 0xcc, 0x84, 0xa6, 0x73, 0x4b, 0xa2, 0xcd, 0x03, 0x49, 3262 0xb4, 0x09, 0x2c, 0x47, 0x7b, 0x95, 0xff, 0x8e, 0xb1, 0x71, 0x8b, 0x67, 0x3c, 0x71, 0x5a, 0x30, 3263 0xf7, 0xd7, 0x7f, 0x04, 0xd6, 0xc6, 0x94, 0xf1, 0xec, 0x3a, 0x91, 0x53, 0xae, 0xca, 0x41, 0x89, 3264 0xf4, 0xf8, 0x0e, 0x3c, 0x30, 0x97, 0x1e, 0xa0, 0xff, 0x07, 0x2d, 0x62, 0x16, 0xd9, 0x94, 0xf4, 3265 0x2c, 0x4c, 0x39, 0x22, 0x59, 0xfc, 0xa7, 0x6c, 0x64, 0x32, 0x99, 0xc4, 0xb4, 0xa1, 0x34, 0xa6, 3266 0xfe, 0x64, 0x28, 0xd3, 0x8a, 0xea, 0xee, 0x33, 0xcb, 0x11, 0x0b, 0x3e, 0x3a, 0x19, 0x32, 0x43, 3267 0x29, 0xe3, 0x7b, 0x50, 0x92, 0x23, 0x68, 0x05, 0xca, 0xef, 0xec, 0xdf, 0xde, 0x3f, 0x78, 0x77, 3268 0xbf, 0x9e, 0x41, 0x00, 0xa5, 0xbd, 0x56, 0xab, 0x7d, 0xe7, 0xa8, 0x9e, 0x45, 0x1a, 0x14, 0xf7, 3269 0x9a, 0x07, 0xc6, 0x51, 0x3d, 0xc7, 0x87, 0x8d, 0xf6, 0x9b, 0xed, 0xd6, 0x51, 0x3d, 0x8f, 0xd6, 3270 0x61, 0x4d, 0xb6, 0xcd, 0x9b, 0x07, 0xc6, 0xdb, 0x7b, 0x47, 0xf5, 0x42, 0x6c, 0xe8, 0xb0, 0xbd, 3271 0xff, 0x46, 0xdb, 0xa8, 0x17, 0xf1, 0xb3, 0x3c, 0x6f, 0x49, 0xa1, 0x22, 0x51, 0x86, 0x92, 0x8d, 3272 0x65, 0x28, 0xf8, 0xb7, 0x39, 0xd0, 0xd3, 0xf9, 0x05, 0x7a, 0x73, 0xca, 0xf1, 0xdd, 0x0b, 0x90, 3273 0x93, 0x29, 0xef, 0xd1, 0xa3, 0x50, 0x1d, 0xd3, 0x63, 0xca, 0x7a, 0x03, 0xc9, 0x77, 0xe4, 0xed, 3274 0xb5, 0x66, 0xac, 0xa9, 0x51, 0xa1, 0xe4, 0x4b, 0xb1, 0x0f, 0x68, 0x8f, 0x99, 0x32, 0x59, 0x92, 3275 0x87, 0x4e, 0xe3, 0x62, 0x7c, 0xf4, 0x50, 0x0e, 0xe2, 0xf7, 0x2f, 0xb4, 0x97, 0x1a, 0x14, 0x8d, 3276 0xf6, 0x91, 0xf1, 0xe3, 0x7a, 0x1e, 0x21, 0xa8, 0x8a, 0xa6, 0x79, 0xb8, 0xbf, 0x77, 0xe7, 0xb0, 3277 0x73, 0xc0, 0xf7, 0xf2, 0x12, 0xd4, 0x82, 0xbd, 0x0c, 0x06, 0x8b, 0xf8, 0xdf, 0x59, 0xa8, 0x4d, 3278 0x05, 0x08, 0xda, 0x85, 0xa2, 0xe4, 0xcc, 0x69, 0x25, 0x73, 0x11, 0xdf, 0x2a, 0x9a, 0xa4, 0x28, 3279 0x7a, 0x15, 0x2a, 0x54, 0x15, 0x03, 0xe6, 0x05, 0xa2, 0x2c, 0x62, 0x04, 0xe5, 0x02, 0xa5, 0x1a, 3280 0x6a, 0xa0, 0xd7, 0x40, 0x0b, 0x23, 0x5d, 0x25, 0x6a, 0x0f, 0xcf, 0xaa, 0x87, 0x18, 0xa1, 0xf4, 3281 0x23, 0x1d, 0xf4, 0x52, 0x44, 0xbc, 0x0a, 0xb3, 0x4c, 0x5d, 0xa9, 0x4b, 0x01, 0xa5, 0x1c, 0xc8, 3282 0xe3, 0x16, 0xac, 0xc4, 0xfc, 0x41, 0x57, 0x40, 0x1b, 0x91, 0x53, 0x55, 0x3d, 0x92, 0x65, 0x82, 3283 0xca, 0x88, 0x9c, 0x8a, 0xc2, 0x11, 0x7a, 0x10, 0xca, 0x7c, 0xb2, 0x4f, 0x24, 0xda, 0xe4, 0x8d, 3284 0xd2, 0x88, 0x9c, 0xfe, 0x80, 0xf8, 0xf8, 0x3d, 0xa8, 0x26, 0x0b, 0x2c, 0xfc, 0x24, 0x8e, 0xdd, 3285 0x89, 0x63, 0x09, 0x1b, 0x45, 0x43, 0x76, 0xd0, 0xf3, 0x50, 0x3c, 0x71, 0x25, 0x58, 0xcd, 0x0f, 3286 0xd9, 0xbb, 0x2e, 0xa3, 0xb1, 0x02, 0x8d, 0x94, 0xc6, 0x1f, 0x43, 0x51, 0x80, 0x0f, 0x07, 0x12, 3287 0x51, 0x2a, 0x51, 0xa4, 0x93, 0xb7, 0xd1, 0x7b, 0x00, 0x84, 0xb1, 0xb1, 0xdd, 0x9d, 0x44, 0x86, 3288 0xb7, 0xe6, 0x83, 0xd7, 0x5e, 0x20, 0xd7, 0xbc, 0xaa, 0x50, 0x6c, 0x23, 0x52, 0x8d, 0x21, 0x59, 3289 0xcc, 0x20, 0xde, 0x87, 0x6a, 0x52, 0x37, 0x5e, 0x8d, 0x5c, 0x9d, 0x53, 0x8d, 0x0c, 0x39, 0x4f, 3290 0xc8, 0x98, 0xf2, 0xb2, 0x2c, 0x26, 0x3a, 0xf8, 0xd3, 0x2c, 0x54, 0x8e, 0x4e, 0xd5, 0xb1, 0x4e, 3291 0xa9, 0xc8, 0x44, 0xaa, 0xb9, 0x78, 0xfd, 0x41, 0x96, 0x78, 0xf2, 0x61, 0xe1, 0xe8, 0xf5, 0x30, 3292 0x70, 0x0b, 0xcb, 0x66, 0x88, 0x41, 0x05, 0x4d, 0x81, 0xd5, 0x2b, 0xa0, 0x85, 0xa7, 0x8a, 0xb3, 3293 0x77, 0x62, 0x59, 0x63, 0xea, 0xfb, 0xca, 0xb7, 0xa0, 0x2b, 0x0a, 0x7c, 0xee, 0x47, 0xaa, 0xc2, 3294 0x91, 0x37, 0x64, 0x07, 0x5b, 0x50, 0x9b, 0xba, 0xb6, 0xd0, 0x2b, 0x50, 0xf6, 0x26, 0x5d, 0x33, 3295 0xd8, 0x9e, 0xa9, 0xe0, 0x09, 0x48, 0xde, 0xa4, 0x3b, 0xb4, 0x7b, 0xb7, 0xe9, 0x59, 0xf0, 0x31, 3296 0xde, 0xa4, 0x7b, 0x5b, 0xee, 0xa2, 0x5c, 0x25, 0x17, 0x5f, 0xe5, 0x04, 0x2a, 0xc1, 0xa1, 0x40, 3297 0xdf, 0x8f, 0xc7, 0x49, 0x50, 0xcf, 0x4d, 0xbd, 0x4a, 0x95, 0xf9, 0x58, 0x98, 0xdc, 0x80, 0x75, 3298 0xdf, 0xee, 0x3b, 0xd4, 0x32, 0xa3, 0xfc, 0x41, 0xac, 0x56, 0x31, 0x6a, 0x72, 0xe2, 0xad, 0x20, 3299 0x79, 0xc0, 0x5f, 0x65, 0xa1, 0x12, 0x04, 0xec, 0xdc, 0x73, 0x97, 0xf8, 0x98, 0xdc, 0xc5, 0x3f, 3300 0x26, 0xad, 0x9a, 0x1a, 0xd4, 0xab, 0x0b, 0x17, 0xae, 0x57, 0x3f, 0x0d, 0x88, 0xb9, 0x8c, 0x0c, 3301 0xcd, 0x13, 0x97, 0xd9, 0x4e, 0xdf, 0x94, 0xbb, 0x29, 0x29, 0x53, 0x5d, 0xcc, 0xdc, 0x15, 0x13, 3302 0x77, 0xc4, 0xc6, 0x7e, 0x92, 0x85, 0x4a, 0x78, 0xf9, 0x5d, 0xb4, 0xa6, 0x76, 0x19, 0x4a, 0x0a, 3303 0xdf, 0x65, 0x51, 0x4d, 0xf5, 0xc2, 0xf2, 0x6e, 0x21, 0x56, 0xde, 0xd5, 0xa1, 0x32, 0xa2, 0x8c, 3304 0x08, 0x06, 0x20, 0x73, 0xb4, 0xb0, 0x7f, 0xe3, 0x25, 0x58, 0x89, 0x95, 0x37, 0x79, 0x68, 0xed, 3305 0xb7, 0xdf, 0xad, 0x67, 0xf4, 0xf2, 0xa7, 0x9f, 0x5f, 0xcf, 0xef, 0xd3, 0x8f, 0xf8, 0xa1, 0x34, 3306 0xda, 0xad, 0x4e, 0xbb, 0x75, 0xbb, 0x9e, 0xd5, 0x57, 0x3e, 0xfd, 0xfc, 0x7a, 0xd9, 0xa0, 0xa2, 3307 0x4a, 0xb2, 0xfb, 0x87, 0x15, 0xa8, 0xed, 0x35, 0x5b, 0xb7, 0xf8, 0xa5, 0x64, 0xf7, 0x88, 0xaa, 3308 0x1d, 0x15, 0x44, 0x62, 0x7b, 0xee, 0x33, 0xa7, 0x7e, 0x7e, 0xe9, 0x0c, 0xdd, 0x84, 0xa2, 0xc8, 3309 0x79, 0xd1, 0xf9, 0xef, 0x9e, 0xfa, 0x82, 0x5a, 0x1a, 0xff, 0x18, 0x71, 0x6a, 0xcf, 0x7d, 0x08, 3310 0xd5, 0xcf, 0x2f, 0xad, 0x21, 0x03, 0xb4, 0x28, 0x69, 0x5d, 0xfc, 0x30, 0xaa, 0x2f, 0x51, 0x6e, 3311 0x43, 0x1f, 0x82, 0x16, 0xb1, 0xf5, 0xc5, 0x0f, 0x85, 0xfa, 0x12, 0xb8, 0x82, 0xaf, 0x7d, 0xf2, 3312 0xe7, 0xbf, 0xff, 0x26, 0xf7, 0x20, 0x46, 0xf2, 0xe1, 0xfd, 0xe4, 0xd9, 0x9d, 0x70, 0xee, 0xe5, 3313 0xec, 0x0d, 0x64, 0x43, 0x39, 0x48, 0x93, 0x16, 0xbd, 0x6c, 0xea, 0x0b, 0x2b, 0x65, 0xf8, 0x8a, 3314 0x58, 0xec, 0x01, 0x5c, 0x0f, 0x17, 0x53, 0x33, 0x7c, 0xa9, 0x9b, 0x50, 0x94, 0xb9, 0xee, 0xf9, 3315 0x6f, 0xb8, 0xfa, 0x82, 0x9a, 0x20, 0xa2, 0x50, 0x52, 0xf4, 0x75, 0xc1, 0x53, 0xa6, 0xbe, 0xa8, 3316 0x2c, 0x86, 0x75, 0xf1, 0xbd, 0x1b, 0xb8, 0x16, 0x7d, 0xaf, 0x98, 0xe0, 0x9f, 0xeb, 0x80, 0x16, 3317 0x55, 0x11, 0x16, 0xbf, 0x5a, 0xeb, 0x4b, 0x94, 0x42, 0x83, 0xf5, 0x50, 0xf4, 0x63, 0x44, 0x4b, 3318 0x4c, 0x00, 0x62, 0x19, 0xf1, 0x12, 0x4f, 0xd5, 0xfa, 0x32, 0xe5, 0x4f, 0xbc, 0x29, 0x96, 0x6c, 3319 0xe0, 0x4b, 0xe1, 0x92, 0xd1, 0x24, 0x77, 0x73, 0x04, 0x95, 0x30, 0x33, 0x5a, 0xf8, 0xb0, 0xac, 3320 0x2f, 0xae, 0x53, 0xe2, 0xab, 0x62, 0xc1, 0xcb, 0x78, 0x3d, 0x5c, 0x30, 0x98, 0xe2, 0xcb, 0xdd, 3321 0x83, 0xb5, 0x64, 0xc2, 0xb0, 0xdc, 0x63, 0xb2, 0xbe, 0x64, 0x79, 0x92, 0xdb, 0x4f, 0x66, 0x0f, 3322 0xcb, 0x3d, 0x2e, 0xeb, 0x4b, 0x56, 0x2b, 0xd1, 0x07, 0xb0, 0x3e, 0xcb, 0xee, 0x97, 0x7f, 0x6b, 3323 0xd6, 0x2f, 0x50, 0xbf, 0x44, 0x23, 0x40, 0x73, 0xb2, 0x82, 0x0b, 0x3c, 0x3d, 0xeb, 0x17, 0x29, 3324 0x67, 0x36, 0xdb, 0x5f, 0x7c, 0xbd, 0x99, 0xfd, 0xf2, 0xeb, 0xcd, 0xec, 0xdf, 0xbe, 0xde, 0xcc, 3325 0x7e, 0xf6, 0xcd, 0x66, 0xe6, 0xcb, 0x6f, 0x36, 0x33, 0x7f, 0xf9, 0x66, 0x33, 0xf3, 0x93, 0xa7, 3326 0xfa, 0x36, 0x1b, 0x4c, 0xba, 0xdb, 0x3d, 0x77, 0xb4, 0x43, 0x2c, 0x77, 0x6c, 0x13, 0xdf, 0x3d, 3327 0x66, 0x3b, 0x73, 0xff, 0xd4, 0xd3, 0x2d, 0x89, 0x0b, 0xf1, 0xb9, 0xff, 0x04, 0x00, 0x00, 0xff, 3328 0xff, 0x6e, 0x32, 0xc0, 0x40, 0xf4, 0x23, 0x00, 0x00, 3329 } 3330 3331 // Reference imports to suppress errors if they are not otherwise used. 3332 var _ context.Context 3333 var _ grpc.ClientConn 3334 3335 // This is a compile-time assertion to ensure that this generated file 3336 // is compatible with the grpc package it is being compiled against. 3337 const _ = grpc.SupportPackageIsVersion4 3338 3339 // ABCIApplicationClient is the client API for ABCIApplication service. 3340 // 3341 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 3342 type ABCIApplicationClient interface { 3343 Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) 3344 Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) 3345 Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) 3346 SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) 3347 DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) 3348 CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) 3349 Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) 3350 Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) 3351 InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) 3352 BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) 3353 EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) 3354 ListSnapshots(ctx context.Context, in *RequestListSnapshots, opts ...grpc.CallOption) (*ResponseListSnapshots, error) 3355 OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error) 3356 LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error) 3357 ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error) 3358 } 3359 3360 type aBCIApplicationClient struct { 3361 cc *grpc.ClientConn 3362 } 3363 3364 func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient { 3365 return &aBCIApplicationClient{cc} 3366 } 3367 3368 func (c *aBCIApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) { 3369 out := new(ResponseEcho) 3370 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Echo", in, out, opts...) 3371 if err != nil { 3372 return nil, err 3373 } 3374 return out, nil 3375 } 3376 3377 func (c *aBCIApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) { 3378 out := new(ResponseFlush) 3379 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Flush", in, out, opts...) 3380 if err != nil { 3381 return nil, err 3382 } 3383 return out, nil 3384 } 3385 3386 func (c *aBCIApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) { 3387 out := new(ResponseInfo) 3388 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Info", in, out, opts...) 3389 if err != nil { 3390 return nil, err 3391 } 3392 return out, nil 3393 } 3394 3395 func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) { 3396 out := new(ResponseSetOption) 3397 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/SetOption", in, out, opts...) 3398 if err != nil { 3399 return nil, err 3400 } 3401 return out, nil 3402 } 3403 3404 func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *RequestDeliverTx, opts ...grpc.CallOption) (*ResponseDeliverTx, error) { 3405 out := new(ResponseDeliverTx) 3406 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/DeliverTx", in, out, opts...) 3407 if err != nil { 3408 return nil, err 3409 } 3410 return out, nil 3411 } 3412 3413 func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) { 3414 out := new(ResponseCheckTx) 3415 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/CheckTx", in, out, opts...) 3416 if err != nil { 3417 return nil, err 3418 } 3419 return out, nil 3420 } 3421 3422 func (c *aBCIApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) { 3423 out := new(ResponseQuery) 3424 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Query", in, out, opts...) 3425 if err != nil { 3426 return nil, err 3427 } 3428 return out, nil 3429 } 3430 3431 func (c *aBCIApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) { 3432 out := new(ResponseCommit) 3433 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/Commit", in, out, opts...) 3434 if err != nil { 3435 return nil, err 3436 } 3437 return out, nil 3438 } 3439 3440 func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) { 3441 out := new(ResponseInitChain) 3442 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/InitChain", in, out, opts...) 3443 if err != nil { 3444 return nil, err 3445 } 3446 return out, nil 3447 } 3448 3449 func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) { 3450 out := new(ResponseBeginBlock) 3451 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/BeginBlock", in, out, opts...) 3452 if err != nil { 3453 return nil, err 3454 } 3455 return out, nil 3456 } 3457 3458 func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) { 3459 out := new(ResponseEndBlock) 3460 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/EndBlock", in, out, opts...) 3461 if err != nil { 3462 return nil, err 3463 } 3464 return out, nil 3465 } 3466 3467 func (c *aBCIApplicationClient) ListSnapshots(ctx context.Context, in *RequestListSnapshots, opts ...grpc.CallOption) (*ResponseListSnapshots, error) { 3468 out := new(ResponseListSnapshots) 3469 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/ListSnapshots", in, out, opts...) 3470 if err != nil { 3471 return nil, err 3472 } 3473 return out, nil 3474 } 3475 3476 func (c *aBCIApplicationClient) OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error) { 3477 out := new(ResponseOfferSnapshot) 3478 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/OfferSnapshot", in, out, opts...) 3479 if err != nil { 3480 return nil, err 3481 } 3482 return out, nil 3483 } 3484 3485 func (c *aBCIApplicationClient) LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error) { 3486 out := new(ResponseLoadSnapshotChunk) 3487 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/LoadSnapshotChunk", in, out, opts...) 3488 if err != nil { 3489 return nil, err 3490 } 3491 return out, nil 3492 } 3493 3494 func (c *aBCIApplicationClient) ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error) { 3495 out := new(ResponseApplySnapshotChunk) 3496 err := c.cc.Invoke(ctx, "/tendermint.abci.ABCIApplication/ApplySnapshotChunk", in, out, opts...) 3497 if err != nil { 3498 return nil, err 3499 } 3500 return out, nil 3501 } 3502 3503 // ABCIApplicationServer is the server API for ABCIApplication service. 3504 type ABCIApplicationServer interface { 3505 Echo(context.Context, *RequestEcho) (*ResponseEcho, error) 3506 Flush(context.Context, *RequestFlush) (*ResponseFlush, error) 3507 Info(context.Context, *RequestInfo) (*ResponseInfo, error) 3508 SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error) 3509 DeliverTx(context.Context, *RequestDeliverTx) (*ResponseDeliverTx, error) 3510 CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error) 3511 Query(context.Context, *RequestQuery) (*ResponseQuery, error) 3512 Commit(context.Context, *RequestCommit) (*ResponseCommit, error) 3513 InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error) 3514 BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error) 3515 EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error) 3516 ListSnapshots(context.Context, *RequestListSnapshots) (*ResponseListSnapshots, error) 3517 OfferSnapshot(context.Context, *RequestOfferSnapshot) (*ResponseOfferSnapshot, error) 3518 LoadSnapshotChunk(context.Context, *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error) 3519 ApplySnapshotChunk(context.Context, *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) 3520 } 3521 3522 // UnimplementedABCIApplicationServer can be embedded to have forward compatible implementations. 3523 type UnimplementedABCIApplicationServer struct { 3524 } 3525 3526 func (*UnimplementedABCIApplicationServer) Echo(ctx context.Context, req *RequestEcho) (*ResponseEcho, error) { 3527 return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") 3528 } 3529 func (*UnimplementedABCIApplicationServer) Flush(ctx context.Context, req *RequestFlush) (*ResponseFlush, error) { 3530 return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") 3531 } 3532 func (*UnimplementedABCIApplicationServer) Info(ctx context.Context, req *RequestInfo) (*ResponseInfo, error) { 3533 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") 3534 } 3535 func (*UnimplementedABCIApplicationServer) SetOption(ctx context.Context, req *RequestSetOption) (*ResponseSetOption, error) { 3536 return nil, status.Errorf(codes.Unimplemented, "method SetOption not implemented") 3537 } 3538 func (*UnimplementedABCIApplicationServer) DeliverTx(ctx context.Context, req *RequestDeliverTx) (*ResponseDeliverTx, error) { 3539 return nil, status.Errorf(codes.Unimplemented, "method DeliverTx not implemented") 3540 } 3541 func (*UnimplementedABCIApplicationServer) CheckTx(ctx context.Context, req *RequestCheckTx) (*ResponseCheckTx, error) { 3542 return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented") 3543 } 3544 func (*UnimplementedABCIApplicationServer) Query(ctx context.Context, req *RequestQuery) (*ResponseQuery, error) { 3545 return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") 3546 } 3547 func (*UnimplementedABCIApplicationServer) Commit(ctx context.Context, req *RequestCommit) (*ResponseCommit, error) { 3548 return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") 3549 } 3550 func (*UnimplementedABCIApplicationServer) InitChain(ctx context.Context, req *RequestInitChain) (*ResponseInitChain, error) { 3551 return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented") 3552 } 3553 func (*UnimplementedABCIApplicationServer) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*ResponseBeginBlock, error) { 3554 return nil, status.Errorf(codes.Unimplemented, "method BeginBlock not implemented") 3555 } 3556 func (*UnimplementedABCIApplicationServer) EndBlock(ctx context.Context, req *RequestEndBlock) (*ResponseEndBlock, error) { 3557 return nil, status.Errorf(codes.Unimplemented, "method EndBlock not implemented") 3558 } 3559 func (*UnimplementedABCIApplicationServer) ListSnapshots(ctx context.Context, req *RequestListSnapshots) (*ResponseListSnapshots, error) { 3560 return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented") 3561 } 3562 func (*UnimplementedABCIApplicationServer) OfferSnapshot(ctx context.Context, req *RequestOfferSnapshot) (*ResponseOfferSnapshot, error) { 3563 return nil, status.Errorf(codes.Unimplemented, "method OfferSnapshot not implemented") 3564 } 3565 func (*UnimplementedABCIApplicationServer) LoadSnapshotChunk(ctx context.Context, req *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error) { 3566 return nil, status.Errorf(codes.Unimplemented, "method LoadSnapshotChunk not implemented") 3567 } 3568 func (*UnimplementedABCIApplicationServer) ApplySnapshotChunk(ctx context.Context, req *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) { 3569 return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented") 3570 } 3571 3572 func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) { 3573 s.RegisterService(&_ABCIApplication_serviceDesc, srv) 3574 } 3575 3576 func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3577 in := new(RequestEcho) 3578 if err := dec(in); err != nil { 3579 return nil, err 3580 } 3581 if interceptor == nil { 3582 return srv.(ABCIApplicationServer).Echo(ctx, in) 3583 } 3584 info := &grpc.UnaryServerInfo{ 3585 Server: srv, 3586 FullMethod: "/tendermint.abci.ABCIApplication/Echo", 3587 } 3588 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3589 return srv.(ABCIApplicationServer).Echo(ctx, req.(*RequestEcho)) 3590 } 3591 return interceptor(ctx, in, info, handler) 3592 } 3593 3594 func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3595 in := new(RequestFlush) 3596 if err := dec(in); err != nil { 3597 return nil, err 3598 } 3599 if interceptor == nil { 3600 return srv.(ABCIApplicationServer).Flush(ctx, in) 3601 } 3602 info := &grpc.UnaryServerInfo{ 3603 Server: srv, 3604 FullMethod: "/tendermint.abci.ABCIApplication/Flush", 3605 } 3606 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3607 return srv.(ABCIApplicationServer).Flush(ctx, req.(*RequestFlush)) 3608 } 3609 return interceptor(ctx, in, info, handler) 3610 } 3611 3612 func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3613 in := new(RequestInfo) 3614 if err := dec(in); err != nil { 3615 return nil, err 3616 } 3617 if interceptor == nil { 3618 return srv.(ABCIApplicationServer).Info(ctx, in) 3619 } 3620 info := &grpc.UnaryServerInfo{ 3621 Server: srv, 3622 FullMethod: "/tendermint.abci.ABCIApplication/Info", 3623 } 3624 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3625 return srv.(ABCIApplicationServer).Info(ctx, req.(*RequestInfo)) 3626 } 3627 return interceptor(ctx, in, info, handler) 3628 } 3629 3630 func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3631 in := new(RequestSetOption) 3632 if err := dec(in); err != nil { 3633 return nil, err 3634 } 3635 if interceptor == nil { 3636 return srv.(ABCIApplicationServer).SetOption(ctx, in) 3637 } 3638 info := &grpc.UnaryServerInfo{ 3639 Server: srv, 3640 FullMethod: "/tendermint.abci.ABCIApplication/SetOption", 3641 } 3642 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3643 return srv.(ABCIApplicationServer).SetOption(ctx, req.(*RequestSetOption)) 3644 } 3645 return interceptor(ctx, in, info, handler) 3646 } 3647 3648 func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3649 in := new(RequestDeliverTx) 3650 if err := dec(in); err != nil { 3651 return nil, err 3652 } 3653 if interceptor == nil { 3654 return srv.(ABCIApplicationServer).DeliverTx(ctx, in) 3655 } 3656 info := &grpc.UnaryServerInfo{ 3657 Server: srv, 3658 FullMethod: "/tendermint.abci.ABCIApplication/DeliverTx", 3659 } 3660 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3661 return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*RequestDeliverTx)) 3662 } 3663 return interceptor(ctx, in, info, handler) 3664 } 3665 3666 func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3667 in := new(RequestCheckTx) 3668 if err := dec(in); err != nil { 3669 return nil, err 3670 } 3671 if interceptor == nil { 3672 return srv.(ABCIApplicationServer).CheckTx(ctx, in) 3673 } 3674 info := &grpc.UnaryServerInfo{ 3675 Server: srv, 3676 FullMethod: "/tendermint.abci.ABCIApplication/CheckTx", 3677 } 3678 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3679 return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*RequestCheckTx)) 3680 } 3681 return interceptor(ctx, in, info, handler) 3682 } 3683 3684 func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3685 in := new(RequestQuery) 3686 if err := dec(in); err != nil { 3687 return nil, err 3688 } 3689 if interceptor == nil { 3690 return srv.(ABCIApplicationServer).Query(ctx, in) 3691 } 3692 info := &grpc.UnaryServerInfo{ 3693 Server: srv, 3694 FullMethod: "/tendermint.abci.ABCIApplication/Query", 3695 } 3696 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3697 return srv.(ABCIApplicationServer).Query(ctx, req.(*RequestQuery)) 3698 } 3699 return interceptor(ctx, in, info, handler) 3700 } 3701 3702 func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3703 in := new(RequestCommit) 3704 if err := dec(in); err != nil { 3705 return nil, err 3706 } 3707 if interceptor == nil { 3708 return srv.(ABCIApplicationServer).Commit(ctx, in) 3709 } 3710 info := &grpc.UnaryServerInfo{ 3711 Server: srv, 3712 FullMethod: "/tendermint.abci.ABCIApplication/Commit", 3713 } 3714 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3715 return srv.(ABCIApplicationServer).Commit(ctx, req.(*RequestCommit)) 3716 } 3717 return interceptor(ctx, in, info, handler) 3718 } 3719 3720 func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3721 in := new(RequestInitChain) 3722 if err := dec(in); err != nil { 3723 return nil, err 3724 } 3725 if interceptor == nil { 3726 return srv.(ABCIApplicationServer).InitChain(ctx, in) 3727 } 3728 info := &grpc.UnaryServerInfo{ 3729 Server: srv, 3730 FullMethod: "/tendermint.abci.ABCIApplication/InitChain", 3731 } 3732 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3733 return srv.(ABCIApplicationServer).InitChain(ctx, req.(*RequestInitChain)) 3734 } 3735 return interceptor(ctx, in, info, handler) 3736 } 3737 3738 func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3739 in := new(RequestBeginBlock) 3740 if err := dec(in); err != nil { 3741 return nil, err 3742 } 3743 if interceptor == nil { 3744 return srv.(ABCIApplicationServer).BeginBlock(ctx, in) 3745 } 3746 info := &grpc.UnaryServerInfo{ 3747 Server: srv, 3748 FullMethod: "/tendermint.abci.ABCIApplication/BeginBlock", 3749 } 3750 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3751 return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock)) 3752 } 3753 return interceptor(ctx, in, info, handler) 3754 } 3755 3756 func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3757 in := new(RequestEndBlock) 3758 if err := dec(in); err != nil { 3759 return nil, err 3760 } 3761 if interceptor == nil { 3762 return srv.(ABCIApplicationServer).EndBlock(ctx, in) 3763 } 3764 info := &grpc.UnaryServerInfo{ 3765 Server: srv, 3766 FullMethod: "/tendermint.abci.ABCIApplication/EndBlock", 3767 } 3768 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3769 return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*RequestEndBlock)) 3770 } 3771 return interceptor(ctx, in, info, handler) 3772 } 3773 3774 func _ABCIApplication_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3775 in := new(RequestListSnapshots) 3776 if err := dec(in); err != nil { 3777 return nil, err 3778 } 3779 if interceptor == nil { 3780 return srv.(ABCIApplicationServer).ListSnapshots(ctx, in) 3781 } 3782 info := &grpc.UnaryServerInfo{ 3783 Server: srv, 3784 FullMethod: "/tendermint.abci.ABCIApplication/ListSnapshots", 3785 } 3786 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3787 return srv.(ABCIApplicationServer).ListSnapshots(ctx, req.(*RequestListSnapshots)) 3788 } 3789 return interceptor(ctx, in, info, handler) 3790 } 3791 3792 func _ABCIApplication_OfferSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3793 in := new(RequestOfferSnapshot) 3794 if err := dec(in); err != nil { 3795 return nil, err 3796 } 3797 if interceptor == nil { 3798 return srv.(ABCIApplicationServer).OfferSnapshot(ctx, in) 3799 } 3800 info := &grpc.UnaryServerInfo{ 3801 Server: srv, 3802 FullMethod: "/tendermint.abci.ABCIApplication/OfferSnapshot", 3803 } 3804 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3805 return srv.(ABCIApplicationServer).OfferSnapshot(ctx, req.(*RequestOfferSnapshot)) 3806 } 3807 return interceptor(ctx, in, info, handler) 3808 } 3809 3810 func _ABCIApplication_LoadSnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3811 in := new(RequestLoadSnapshotChunk) 3812 if err := dec(in); err != nil { 3813 return nil, err 3814 } 3815 if interceptor == nil { 3816 return srv.(ABCIApplicationServer).LoadSnapshotChunk(ctx, in) 3817 } 3818 info := &grpc.UnaryServerInfo{ 3819 Server: srv, 3820 FullMethod: "/tendermint.abci.ABCIApplication/LoadSnapshotChunk", 3821 } 3822 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3823 return srv.(ABCIApplicationServer).LoadSnapshotChunk(ctx, req.(*RequestLoadSnapshotChunk)) 3824 } 3825 return interceptor(ctx, in, info, handler) 3826 } 3827 3828 func _ABCIApplication_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3829 in := new(RequestApplySnapshotChunk) 3830 if err := dec(in); err != nil { 3831 return nil, err 3832 } 3833 if interceptor == nil { 3834 return srv.(ABCIApplicationServer).ApplySnapshotChunk(ctx, in) 3835 } 3836 info := &grpc.UnaryServerInfo{ 3837 Server: srv, 3838 FullMethod: "/tendermint.abci.ABCIApplication/ApplySnapshotChunk", 3839 } 3840 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3841 return srv.(ABCIApplicationServer).ApplySnapshotChunk(ctx, req.(*RequestApplySnapshotChunk)) 3842 } 3843 return interceptor(ctx, in, info, handler) 3844 } 3845 3846 var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ 3847 ServiceName: "tendermint.abci.ABCIApplication", 3848 HandlerType: (*ABCIApplicationServer)(nil), 3849 Methods: []grpc.MethodDesc{ 3850 { 3851 MethodName: "Echo", 3852 Handler: _ABCIApplication_Echo_Handler, 3853 }, 3854 { 3855 MethodName: "Flush", 3856 Handler: _ABCIApplication_Flush_Handler, 3857 }, 3858 { 3859 MethodName: "Info", 3860 Handler: _ABCIApplication_Info_Handler, 3861 }, 3862 { 3863 MethodName: "SetOption", 3864 Handler: _ABCIApplication_SetOption_Handler, 3865 }, 3866 { 3867 MethodName: "DeliverTx", 3868 Handler: _ABCIApplication_DeliverTx_Handler, 3869 }, 3870 { 3871 MethodName: "CheckTx", 3872 Handler: _ABCIApplication_CheckTx_Handler, 3873 }, 3874 { 3875 MethodName: "Query", 3876 Handler: _ABCIApplication_Query_Handler, 3877 }, 3878 { 3879 MethodName: "Commit", 3880 Handler: _ABCIApplication_Commit_Handler, 3881 }, 3882 { 3883 MethodName: "InitChain", 3884 Handler: _ABCIApplication_InitChain_Handler, 3885 }, 3886 { 3887 MethodName: "BeginBlock", 3888 Handler: _ABCIApplication_BeginBlock_Handler, 3889 }, 3890 { 3891 MethodName: "EndBlock", 3892 Handler: _ABCIApplication_EndBlock_Handler, 3893 }, 3894 { 3895 MethodName: "ListSnapshots", 3896 Handler: _ABCIApplication_ListSnapshots_Handler, 3897 }, 3898 { 3899 MethodName: "OfferSnapshot", 3900 Handler: _ABCIApplication_OfferSnapshot_Handler, 3901 }, 3902 { 3903 MethodName: "LoadSnapshotChunk", 3904 Handler: _ABCIApplication_LoadSnapshotChunk_Handler, 3905 }, 3906 { 3907 MethodName: "ApplySnapshotChunk", 3908 Handler: _ABCIApplication_ApplySnapshotChunk_Handler, 3909 }, 3910 }, 3911 Streams: []grpc.StreamDesc{}, 3912 Metadata: "tendermint/abci/types.proto", 3913 } 3914 3915 func (m *Request) Marshal() (dAtA []byte, err error) { 3916 size := m.Size() 3917 dAtA = make([]byte, size) 3918 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3919 if err != nil { 3920 return nil, err 3921 } 3922 return dAtA[:n], nil 3923 } 3924 3925 func (m *Request) MarshalTo(dAtA []byte) (int, error) { 3926 size := m.Size() 3927 return m.MarshalToSizedBuffer(dAtA[:size]) 3928 } 3929 3930 func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3931 i := len(dAtA) 3932 _ = i 3933 var l int 3934 _ = l 3935 if m.Value != nil { 3936 { 3937 size := m.Value.Size() 3938 i -= size 3939 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 3940 return 0, err 3941 } 3942 } 3943 } 3944 return len(dAtA) - i, nil 3945 } 3946 3947 func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) { 3948 size := m.Size() 3949 return m.MarshalToSizedBuffer(dAtA[:size]) 3950 } 3951 3952 func (m *Request_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3953 i := len(dAtA) 3954 if m.Echo != nil { 3955 { 3956 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 3957 if err != nil { 3958 return 0, err 3959 } 3960 i -= size 3961 i = encodeVarintTypes(dAtA, i, uint64(size)) 3962 } 3963 i-- 3964 dAtA[i] = 0xa 3965 } 3966 return len(dAtA) - i, nil 3967 } 3968 func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) { 3969 size := m.Size() 3970 return m.MarshalToSizedBuffer(dAtA[:size]) 3971 } 3972 3973 func (m *Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3974 i := len(dAtA) 3975 if m.Flush != nil { 3976 { 3977 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 3978 if err != nil { 3979 return 0, err 3980 } 3981 i -= size 3982 i = encodeVarintTypes(dAtA, i, uint64(size)) 3983 } 3984 i-- 3985 dAtA[i] = 0x12 3986 } 3987 return len(dAtA) - i, nil 3988 } 3989 func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) { 3990 size := m.Size() 3991 return m.MarshalToSizedBuffer(dAtA[:size]) 3992 } 3993 3994 func (m *Request_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3995 i := len(dAtA) 3996 if m.Info != nil { 3997 { 3998 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 3999 if err != nil { 4000 return 0, err 4001 } 4002 i -= size 4003 i = encodeVarintTypes(dAtA, i, uint64(size)) 4004 } 4005 i-- 4006 dAtA[i] = 0x1a 4007 } 4008 return len(dAtA) - i, nil 4009 } 4010 func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) { 4011 size := m.Size() 4012 return m.MarshalToSizedBuffer(dAtA[:size]) 4013 } 4014 4015 func (m *Request_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4016 i := len(dAtA) 4017 if m.SetOption != nil { 4018 { 4019 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 4020 if err != nil { 4021 return 0, err 4022 } 4023 i -= size 4024 i = encodeVarintTypes(dAtA, i, uint64(size)) 4025 } 4026 i-- 4027 dAtA[i] = 0x22 4028 } 4029 return len(dAtA) - i, nil 4030 } 4031 func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) { 4032 size := m.Size() 4033 return m.MarshalToSizedBuffer(dAtA[:size]) 4034 } 4035 4036 func (m *Request_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4037 i := len(dAtA) 4038 if m.InitChain != nil { 4039 { 4040 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 4041 if err != nil { 4042 return 0, err 4043 } 4044 i -= size 4045 i = encodeVarintTypes(dAtA, i, uint64(size)) 4046 } 4047 i-- 4048 dAtA[i] = 0x2a 4049 } 4050 return len(dAtA) - i, nil 4051 } 4052 func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) { 4053 size := m.Size() 4054 return m.MarshalToSizedBuffer(dAtA[:size]) 4055 } 4056 4057 func (m *Request_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4058 i := len(dAtA) 4059 if m.Query != nil { 4060 { 4061 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 4062 if err != nil { 4063 return 0, err 4064 } 4065 i -= size 4066 i = encodeVarintTypes(dAtA, i, uint64(size)) 4067 } 4068 i-- 4069 dAtA[i] = 0x32 4070 } 4071 return len(dAtA) - i, nil 4072 } 4073 func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 4074 size := m.Size() 4075 return m.MarshalToSizedBuffer(dAtA[:size]) 4076 } 4077 4078 func (m *Request_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4079 i := len(dAtA) 4080 if m.BeginBlock != nil { 4081 { 4082 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 4083 if err != nil { 4084 return 0, err 4085 } 4086 i -= size 4087 i = encodeVarintTypes(dAtA, i, uint64(size)) 4088 } 4089 i-- 4090 dAtA[i] = 0x3a 4091 } 4092 return len(dAtA) - i, nil 4093 } 4094 func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) { 4095 size := m.Size() 4096 return m.MarshalToSizedBuffer(dAtA[:size]) 4097 } 4098 4099 func (m *Request_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4100 i := len(dAtA) 4101 if m.CheckTx != nil { 4102 { 4103 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 4104 if err != nil { 4105 return 0, err 4106 } 4107 i -= size 4108 i = encodeVarintTypes(dAtA, i, uint64(size)) 4109 } 4110 i-- 4111 dAtA[i] = 0x42 4112 } 4113 return len(dAtA) - i, nil 4114 } 4115 func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 4116 size := m.Size() 4117 return m.MarshalToSizedBuffer(dAtA[:size]) 4118 } 4119 4120 func (m *Request_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4121 i := len(dAtA) 4122 if m.DeliverTx != nil { 4123 { 4124 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 4125 if err != nil { 4126 return 0, err 4127 } 4128 i -= size 4129 i = encodeVarintTypes(dAtA, i, uint64(size)) 4130 } 4131 i-- 4132 dAtA[i] = 0x4a 4133 } 4134 return len(dAtA) - i, nil 4135 } 4136 func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) { 4137 size := m.Size() 4138 return m.MarshalToSizedBuffer(dAtA[:size]) 4139 } 4140 4141 func (m *Request_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4142 i := len(dAtA) 4143 if m.EndBlock != nil { 4144 { 4145 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 4146 if err != nil { 4147 return 0, err 4148 } 4149 i -= size 4150 i = encodeVarintTypes(dAtA, i, uint64(size)) 4151 } 4152 i-- 4153 dAtA[i] = 0x52 4154 } 4155 return len(dAtA) - i, nil 4156 } 4157 func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) { 4158 size := m.Size() 4159 return m.MarshalToSizedBuffer(dAtA[:size]) 4160 } 4161 4162 func (m *Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4163 i := len(dAtA) 4164 if m.Commit != nil { 4165 { 4166 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 4167 if err != nil { 4168 return 0, err 4169 } 4170 i -= size 4171 i = encodeVarintTypes(dAtA, i, uint64(size)) 4172 } 4173 i-- 4174 dAtA[i] = 0x5a 4175 } 4176 return len(dAtA) - i, nil 4177 } 4178 func (m *Request_ListSnapshots) MarshalTo(dAtA []byte) (int, error) { 4179 size := m.Size() 4180 return m.MarshalToSizedBuffer(dAtA[:size]) 4181 } 4182 4183 func (m *Request_ListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4184 i := len(dAtA) 4185 if m.ListSnapshots != nil { 4186 { 4187 size, err := m.ListSnapshots.MarshalToSizedBuffer(dAtA[:i]) 4188 if err != nil { 4189 return 0, err 4190 } 4191 i -= size 4192 i = encodeVarintTypes(dAtA, i, uint64(size)) 4193 } 4194 i-- 4195 dAtA[i] = 0x62 4196 } 4197 return len(dAtA) - i, nil 4198 } 4199 func (m *Request_OfferSnapshot) MarshalTo(dAtA []byte) (int, error) { 4200 size := m.Size() 4201 return m.MarshalToSizedBuffer(dAtA[:size]) 4202 } 4203 4204 func (m *Request_OfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4205 i := len(dAtA) 4206 if m.OfferSnapshot != nil { 4207 { 4208 size, err := m.OfferSnapshot.MarshalToSizedBuffer(dAtA[:i]) 4209 if err != nil { 4210 return 0, err 4211 } 4212 i -= size 4213 i = encodeVarintTypes(dAtA, i, uint64(size)) 4214 } 4215 i-- 4216 dAtA[i] = 0x6a 4217 } 4218 return len(dAtA) - i, nil 4219 } 4220 func (m *Request_LoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 4221 size := m.Size() 4222 return m.MarshalToSizedBuffer(dAtA[:size]) 4223 } 4224 4225 func (m *Request_LoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4226 i := len(dAtA) 4227 if m.LoadSnapshotChunk != nil { 4228 { 4229 size, err := m.LoadSnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 4230 if err != nil { 4231 return 0, err 4232 } 4233 i -= size 4234 i = encodeVarintTypes(dAtA, i, uint64(size)) 4235 } 4236 i-- 4237 dAtA[i] = 0x72 4238 } 4239 return len(dAtA) - i, nil 4240 } 4241 func (m *Request_ApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 4242 size := m.Size() 4243 return m.MarshalToSizedBuffer(dAtA[:size]) 4244 } 4245 4246 func (m *Request_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4247 i := len(dAtA) 4248 if m.ApplySnapshotChunk != nil { 4249 { 4250 size, err := m.ApplySnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 4251 if err != nil { 4252 return 0, err 4253 } 4254 i -= size 4255 i = encodeVarintTypes(dAtA, i, uint64(size)) 4256 } 4257 i-- 4258 dAtA[i] = 0x7a 4259 } 4260 return len(dAtA) - i, nil 4261 } 4262 func (m *RequestEcho) Marshal() (dAtA []byte, err error) { 4263 size := m.Size() 4264 dAtA = make([]byte, size) 4265 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4266 if err != nil { 4267 return nil, err 4268 } 4269 return dAtA[:n], nil 4270 } 4271 4272 func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) { 4273 size := m.Size() 4274 return m.MarshalToSizedBuffer(dAtA[:size]) 4275 } 4276 4277 func (m *RequestEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4278 i := len(dAtA) 4279 _ = i 4280 var l int 4281 _ = l 4282 if len(m.Message) > 0 { 4283 i -= len(m.Message) 4284 copy(dAtA[i:], m.Message) 4285 i = encodeVarintTypes(dAtA, i, uint64(len(m.Message))) 4286 i-- 4287 dAtA[i] = 0xa 4288 } 4289 return len(dAtA) - i, nil 4290 } 4291 4292 func (m *RequestFlush) Marshal() (dAtA []byte, err error) { 4293 size := m.Size() 4294 dAtA = make([]byte, size) 4295 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4296 if err != nil { 4297 return nil, err 4298 } 4299 return dAtA[:n], nil 4300 } 4301 4302 func (m *RequestFlush) MarshalTo(dAtA []byte) (int, error) { 4303 size := m.Size() 4304 return m.MarshalToSizedBuffer(dAtA[:size]) 4305 } 4306 4307 func (m *RequestFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4308 i := len(dAtA) 4309 _ = i 4310 var l int 4311 _ = l 4312 return len(dAtA) - i, nil 4313 } 4314 4315 func (m *RequestInfo) Marshal() (dAtA []byte, err error) { 4316 size := m.Size() 4317 dAtA = make([]byte, size) 4318 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4319 if err != nil { 4320 return nil, err 4321 } 4322 return dAtA[:n], nil 4323 } 4324 4325 func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) { 4326 size := m.Size() 4327 return m.MarshalToSizedBuffer(dAtA[:size]) 4328 } 4329 4330 func (m *RequestInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4331 i := len(dAtA) 4332 _ = i 4333 var l int 4334 _ = l 4335 if m.P2PVersion != 0 { 4336 i = encodeVarintTypes(dAtA, i, uint64(m.P2PVersion)) 4337 i-- 4338 dAtA[i] = 0x18 4339 } 4340 if m.BlockVersion != 0 { 4341 i = encodeVarintTypes(dAtA, i, uint64(m.BlockVersion)) 4342 i-- 4343 dAtA[i] = 0x10 4344 } 4345 if len(m.Version) > 0 { 4346 i -= len(m.Version) 4347 copy(dAtA[i:], m.Version) 4348 i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) 4349 i-- 4350 dAtA[i] = 0xa 4351 } 4352 return len(dAtA) - i, nil 4353 } 4354 4355 func (m *RequestSetOption) Marshal() (dAtA []byte, err error) { 4356 size := m.Size() 4357 dAtA = make([]byte, size) 4358 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4359 if err != nil { 4360 return nil, err 4361 } 4362 return dAtA[:n], nil 4363 } 4364 4365 func (m *RequestSetOption) MarshalTo(dAtA []byte) (int, error) { 4366 size := m.Size() 4367 return m.MarshalToSizedBuffer(dAtA[:size]) 4368 } 4369 4370 func (m *RequestSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4371 i := len(dAtA) 4372 _ = i 4373 var l int 4374 _ = l 4375 if len(m.Value) > 0 { 4376 i -= len(m.Value) 4377 copy(dAtA[i:], m.Value) 4378 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 4379 i-- 4380 dAtA[i] = 0x12 4381 } 4382 if len(m.Key) > 0 { 4383 i -= len(m.Key) 4384 copy(dAtA[i:], m.Key) 4385 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 4386 i-- 4387 dAtA[i] = 0xa 4388 } 4389 return len(dAtA) - i, nil 4390 } 4391 4392 func (m *RequestInitChain) Marshal() (dAtA []byte, err error) { 4393 size := m.Size() 4394 dAtA = make([]byte, size) 4395 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4396 if err != nil { 4397 return nil, err 4398 } 4399 return dAtA[:n], nil 4400 } 4401 4402 func (m *RequestInitChain) MarshalTo(dAtA []byte) (int, error) { 4403 size := m.Size() 4404 return m.MarshalToSizedBuffer(dAtA[:size]) 4405 } 4406 4407 func (m *RequestInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4408 i := len(dAtA) 4409 _ = i 4410 var l int 4411 _ = l 4412 if len(m.AppStateBytes) > 0 { 4413 i -= len(m.AppStateBytes) 4414 copy(dAtA[i:], m.AppStateBytes) 4415 i = encodeVarintTypes(dAtA, i, uint64(len(m.AppStateBytes))) 4416 i-- 4417 dAtA[i] = 0x2a 4418 } 4419 if len(m.Validators) > 0 { 4420 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 4421 { 4422 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4423 if err != nil { 4424 return 0, err 4425 } 4426 i -= size 4427 i = encodeVarintTypes(dAtA, i, uint64(size)) 4428 } 4429 i-- 4430 dAtA[i] = 0x22 4431 } 4432 } 4433 if m.ConsensusParams != nil { 4434 { 4435 size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) 4436 if err != nil { 4437 return 0, err 4438 } 4439 i -= size 4440 i = encodeVarintTypes(dAtA, i, uint64(size)) 4441 } 4442 i-- 4443 dAtA[i] = 0x1a 4444 } 4445 if len(m.ChainId) > 0 { 4446 i -= len(m.ChainId) 4447 copy(dAtA[i:], m.ChainId) 4448 i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainId))) 4449 i-- 4450 dAtA[i] = 0x12 4451 } 4452 n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 4453 if err17 != nil { 4454 return 0, err17 4455 } 4456 i -= n17 4457 i = encodeVarintTypes(dAtA, i, uint64(n17)) 4458 i-- 4459 dAtA[i] = 0xa 4460 return len(dAtA) - i, nil 4461 } 4462 4463 func (m *RequestQuery) Marshal() (dAtA []byte, err error) { 4464 size := m.Size() 4465 dAtA = make([]byte, size) 4466 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4467 if err != nil { 4468 return nil, err 4469 } 4470 return dAtA[:n], nil 4471 } 4472 4473 func (m *RequestQuery) MarshalTo(dAtA []byte) (int, error) { 4474 size := m.Size() 4475 return m.MarshalToSizedBuffer(dAtA[:size]) 4476 } 4477 4478 func (m *RequestQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4479 i := len(dAtA) 4480 _ = i 4481 var l int 4482 _ = l 4483 if m.Prove { 4484 i-- 4485 if m.Prove { 4486 dAtA[i] = 1 4487 } else { 4488 dAtA[i] = 0 4489 } 4490 i-- 4491 dAtA[i] = 0x20 4492 } 4493 if m.Height != 0 { 4494 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 4495 i-- 4496 dAtA[i] = 0x18 4497 } 4498 if len(m.Path) > 0 { 4499 i -= len(m.Path) 4500 copy(dAtA[i:], m.Path) 4501 i = encodeVarintTypes(dAtA, i, uint64(len(m.Path))) 4502 i-- 4503 dAtA[i] = 0x12 4504 } 4505 if len(m.Data) > 0 { 4506 i -= len(m.Data) 4507 copy(dAtA[i:], m.Data) 4508 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 4509 i-- 4510 dAtA[i] = 0xa 4511 } 4512 return len(dAtA) - i, nil 4513 } 4514 4515 func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) { 4516 size := m.Size() 4517 dAtA = make([]byte, size) 4518 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4519 if err != nil { 4520 return nil, err 4521 } 4522 return dAtA[:n], nil 4523 } 4524 4525 func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) { 4526 size := m.Size() 4527 return m.MarshalToSizedBuffer(dAtA[:size]) 4528 } 4529 4530 func (m *RequestBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4531 i := len(dAtA) 4532 _ = i 4533 var l int 4534 _ = l 4535 if len(m.ByzantineValidators) > 0 { 4536 for iNdEx := len(m.ByzantineValidators) - 1; iNdEx >= 0; iNdEx-- { 4537 { 4538 size, err := m.ByzantineValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4539 if err != nil { 4540 return 0, err 4541 } 4542 i -= size 4543 i = encodeVarintTypes(dAtA, i, uint64(size)) 4544 } 4545 i-- 4546 dAtA[i] = 0x22 4547 } 4548 } 4549 { 4550 size, err := m.LastCommitInfo.MarshalToSizedBuffer(dAtA[:i]) 4551 if err != nil { 4552 return 0, err 4553 } 4554 i -= size 4555 i = encodeVarintTypes(dAtA, i, uint64(size)) 4556 } 4557 i-- 4558 dAtA[i] = 0x1a 4559 { 4560 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) 4561 if err != nil { 4562 return 0, err 4563 } 4564 i -= size 4565 i = encodeVarintTypes(dAtA, i, uint64(size)) 4566 } 4567 i-- 4568 dAtA[i] = 0x12 4569 if len(m.Hash) > 0 { 4570 i -= len(m.Hash) 4571 copy(dAtA[i:], m.Hash) 4572 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 4573 i-- 4574 dAtA[i] = 0xa 4575 } 4576 return len(dAtA) - i, nil 4577 } 4578 4579 func (m *RequestCheckTx) Marshal() (dAtA []byte, err error) { 4580 size := m.Size() 4581 dAtA = make([]byte, size) 4582 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4583 if err != nil { 4584 return nil, err 4585 } 4586 return dAtA[:n], nil 4587 } 4588 4589 func (m *RequestCheckTx) MarshalTo(dAtA []byte) (int, error) { 4590 size := m.Size() 4591 return m.MarshalToSizedBuffer(dAtA[:size]) 4592 } 4593 4594 func (m *RequestCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4595 i := len(dAtA) 4596 _ = i 4597 var l int 4598 _ = l 4599 if m.Type != 0 { 4600 i = encodeVarintTypes(dAtA, i, uint64(m.Type)) 4601 i-- 4602 dAtA[i] = 0x10 4603 } 4604 if len(m.Tx) > 0 { 4605 i -= len(m.Tx) 4606 copy(dAtA[i:], m.Tx) 4607 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 4608 i-- 4609 dAtA[i] = 0xa 4610 } 4611 return len(dAtA) - i, nil 4612 } 4613 4614 func (m *RequestDeliverTx) Marshal() (dAtA []byte, err error) { 4615 size := m.Size() 4616 dAtA = make([]byte, size) 4617 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4618 if err != nil { 4619 return nil, err 4620 } 4621 return dAtA[:n], nil 4622 } 4623 4624 func (m *RequestDeliverTx) MarshalTo(dAtA []byte) (int, error) { 4625 size := m.Size() 4626 return m.MarshalToSizedBuffer(dAtA[:size]) 4627 } 4628 4629 func (m *RequestDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4630 i := len(dAtA) 4631 _ = i 4632 var l int 4633 _ = l 4634 if len(m.Tx) > 0 { 4635 i -= len(m.Tx) 4636 copy(dAtA[i:], m.Tx) 4637 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 4638 i-- 4639 dAtA[i] = 0xa 4640 } 4641 return len(dAtA) - i, nil 4642 } 4643 4644 func (m *RequestEndBlock) Marshal() (dAtA []byte, err error) { 4645 size := m.Size() 4646 dAtA = make([]byte, size) 4647 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4648 if err != nil { 4649 return nil, err 4650 } 4651 return dAtA[:n], nil 4652 } 4653 4654 func (m *RequestEndBlock) MarshalTo(dAtA []byte) (int, error) { 4655 size := m.Size() 4656 return m.MarshalToSizedBuffer(dAtA[:size]) 4657 } 4658 4659 func (m *RequestEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4660 i := len(dAtA) 4661 _ = i 4662 var l int 4663 _ = l 4664 if m.Height != 0 { 4665 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 4666 i-- 4667 dAtA[i] = 0x8 4668 } 4669 return len(dAtA) - i, nil 4670 } 4671 4672 func (m *RequestCommit) Marshal() (dAtA []byte, err error) { 4673 size := m.Size() 4674 dAtA = make([]byte, size) 4675 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4676 if err != nil { 4677 return nil, err 4678 } 4679 return dAtA[:n], nil 4680 } 4681 4682 func (m *RequestCommit) MarshalTo(dAtA []byte) (int, error) { 4683 size := m.Size() 4684 return m.MarshalToSizedBuffer(dAtA[:size]) 4685 } 4686 4687 func (m *RequestCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4688 i := len(dAtA) 4689 _ = i 4690 var l int 4691 _ = l 4692 return len(dAtA) - i, nil 4693 } 4694 4695 func (m *RequestListSnapshots) Marshal() (dAtA []byte, err error) { 4696 size := m.Size() 4697 dAtA = make([]byte, size) 4698 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4699 if err != nil { 4700 return nil, err 4701 } 4702 return dAtA[:n], nil 4703 } 4704 4705 func (m *RequestListSnapshots) MarshalTo(dAtA []byte) (int, error) { 4706 size := m.Size() 4707 return m.MarshalToSizedBuffer(dAtA[:size]) 4708 } 4709 4710 func (m *RequestListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4711 i := len(dAtA) 4712 _ = i 4713 var l int 4714 _ = l 4715 return len(dAtA) - i, nil 4716 } 4717 4718 func (m *RequestOfferSnapshot) Marshal() (dAtA []byte, err error) { 4719 size := m.Size() 4720 dAtA = make([]byte, size) 4721 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4722 if err != nil { 4723 return nil, err 4724 } 4725 return dAtA[:n], nil 4726 } 4727 4728 func (m *RequestOfferSnapshot) MarshalTo(dAtA []byte) (int, error) { 4729 size := m.Size() 4730 return m.MarshalToSizedBuffer(dAtA[:size]) 4731 } 4732 4733 func (m *RequestOfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4734 i := len(dAtA) 4735 _ = i 4736 var l int 4737 _ = l 4738 if len(m.AppHash) > 0 { 4739 i -= len(m.AppHash) 4740 copy(dAtA[i:], m.AppHash) 4741 i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash))) 4742 i-- 4743 dAtA[i] = 0x12 4744 } 4745 if m.Snapshot != nil { 4746 { 4747 size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i]) 4748 if err != nil { 4749 return 0, err 4750 } 4751 i -= size 4752 i = encodeVarintTypes(dAtA, i, uint64(size)) 4753 } 4754 i-- 4755 dAtA[i] = 0xa 4756 } 4757 return len(dAtA) - i, nil 4758 } 4759 4760 func (m *RequestLoadSnapshotChunk) Marshal() (dAtA []byte, err error) { 4761 size := m.Size() 4762 dAtA = make([]byte, size) 4763 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4764 if err != nil { 4765 return nil, err 4766 } 4767 return dAtA[:n], nil 4768 } 4769 4770 func (m *RequestLoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 4771 size := m.Size() 4772 return m.MarshalToSizedBuffer(dAtA[:size]) 4773 } 4774 4775 func (m *RequestLoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4776 i := len(dAtA) 4777 _ = i 4778 var l int 4779 _ = l 4780 if m.Chunk != 0 { 4781 i = encodeVarintTypes(dAtA, i, uint64(m.Chunk)) 4782 i-- 4783 dAtA[i] = 0x18 4784 } 4785 if m.Format != 0 { 4786 i = encodeVarintTypes(dAtA, i, uint64(m.Format)) 4787 i-- 4788 dAtA[i] = 0x10 4789 } 4790 if m.Height != 0 { 4791 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 4792 i-- 4793 dAtA[i] = 0x8 4794 } 4795 return len(dAtA) - i, nil 4796 } 4797 4798 func (m *RequestApplySnapshotChunk) Marshal() (dAtA []byte, err error) { 4799 size := m.Size() 4800 dAtA = make([]byte, size) 4801 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4802 if err != nil { 4803 return nil, err 4804 } 4805 return dAtA[:n], nil 4806 } 4807 4808 func (m *RequestApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 4809 size := m.Size() 4810 return m.MarshalToSizedBuffer(dAtA[:size]) 4811 } 4812 4813 func (m *RequestApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4814 i := len(dAtA) 4815 _ = i 4816 var l int 4817 _ = l 4818 if len(m.Sender) > 0 { 4819 i -= len(m.Sender) 4820 copy(dAtA[i:], m.Sender) 4821 i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender))) 4822 i-- 4823 dAtA[i] = 0x1a 4824 } 4825 if len(m.Chunk) > 0 { 4826 i -= len(m.Chunk) 4827 copy(dAtA[i:], m.Chunk) 4828 i = encodeVarintTypes(dAtA, i, uint64(len(m.Chunk))) 4829 i-- 4830 dAtA[i] = 0x12 4831 } 4832 if m.Index != 0 { 4833 i = encodeVarintTypes(dAtA, i, uint64(m.Index)) 4834 i-- 4835 dAtA[i] = 0x8 4836 } 4837 return len(dAtA) - i, nil 4838 } 4839 4840 func (m *Response) Marshal() (dAtA []byte, err error) { 4841 size := m.Size() 4842 dAtA = make([]byte, size) 4843 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4844 if err != nil { 4845 return nil, err 4846 } 4847 return dAtA[:n], nil 4848 } 4849 4850 func (m *Response) MarshalTo(dAtA []byte) (int, error) { 4851 size := m.Size() 4852 return m.MarshalToSizedBuffer(dAtA[:size]) 4853 } 4854 4855 func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4856 i := len(dAtA) 4857 _ = i 4858 var l int 4859 _ = l 4860 if m.Value != nil { 4861 { 4862 size := m.Value.Size() 4863 i -= size 4864 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 4865 return 0, err 4866 } 4867 } 4868 } 4869 return len(dAtA) - i, nil 4870 } 4871 4872 func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) { 4873 size := m.Size() 4874 return m.MarshalToSizedBuffer(dAtA[:size]) 4875 } 4876 4877 func (m *Response_Exception) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4878 i := len(dAtA) 4879 if m.Exception != nil { 4880 { 4881 size, err := m.Exception.MarshalToSizedBuffer(dAtA[:i]) 4882 if err != nil { 4883 return 0, err 4884 } 4885 i -= size 4886 i = encodeVarintTypes(dAtA, i, uint64(size)) 4887 } 4888 i-- 4889 dAtA[i] = 0xa 4890 } 4891 return len(dAtA) - i, nil 4892 } 4893 func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) { 4894 size := m.Size() 4895 return m.MarshalToSizedBuffer(dAtA[:size]) 4896 } 4897 4898 func (m *Response_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4899 i := len(dAtA) 4900 if m.Echo != nil { 4901 { 4902 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 4903 if err != nil { 4904 return 0, err 4905 } 4906 i -= size 4907 i = encodeVarintTypes(dAtA, i, uint64(size)) 4908 } 4909 i-- 4910 dAtA[i] = 0x12 4911 } 4912 return len(dAtA) - i, nil 4913 } 4914 func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) { 4915 size := m.Size() 4916 return m.MarshalToSizedBuffer(dAtA[:size]) 4917 } 4918 4919 func (m *Response_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4920 i := len(dAtA) 4921 if m.Flush != nil { 4922 { 4923 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 4924 if err != nil { 4925 return 0, err 4926 } 4927 i -= size 4928 i = encodeVarintTypes(dAtA, i, uint64(size)) 4929 } 4930 i-- 4931 dAtA[i] = 0x1a 4932 } 4933 return len(dAtA) - i, nil 4934 } 4935 func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) { 4936 size := m.Size() 4937 return m.MarshalToSizedBuffer(dAtA[:size]) 4938 } 4939 4940 func (m *Response_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4941 i := len(dAtA) 4942 if m.Info != nil { 4943 { 4944 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 4945 if err != nil { 4946 return 0, err 4947 } 4948 i -= size 4949 i = encodeVarintTypes(dAtA, i, uint64(size)) 4950 } 4951 i-- 4952 dAtA[i] = 0x22 4953 } 4954 return len(dAtA) - i, nil 4955 } 4956 func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) { 4957 size := m.Size() 4958 return m.MarshalToSizedBuffer(dAtA[:size]) 4959 } 4960 4961 func (m *Response_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4962 i := len(dAtA) 4963 if m.SetOption != nil { 4964 { 4965 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 4966 if err != nil { 4967 return 0, err 4968 } 4969 i -= size 4970 i = encodeVarintTypes(dAtA, i, uint64(size)) 4971 } 4972 i-- 4973 dAtA[i] = 0x2a 4974 } 4975 return len(dAtA) - i, nil 4976 } 4977 func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) { 4978 size := m.Size() 4979 return m.MarshalToSizedBuffer(dAtA[:size]) 4980 } 4981 4982 func (m *Response_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4983 i := len(dAtA) 4984 if m.InitChain != nil { 4985 { 4986 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 4987 if err != nil { 4988 return 0, err 4989 } 4990 i -= size 4991 i = encodeVarintTypes(dAtA, i, uint64(size)) 4992 } 4993 i-- 4994 dAtA[i] = 0x32 4995 } 4996 return len(dAtA) - i, nil 4997 } 4998 func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) { 4999 size := m.Size() 5000 return m.MarshalToSizedBuffer(dAtA[:size]) 5001 } 5002 5003 func (m *Response_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5004 i := len(dAtA) 5005 if m.Query != nil { 5006 { 5007 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 5008 if err != nil { 5009 return 0, err 5010 } 5011 i -= size 5012 i = encodeVarintTypes(dAtA, i, uint64(size)) 5013 } 5014 i-- 5015 dAtA[i] = 0x3a 5016 } 5017 return len(dAtA) - i, nil 5018 } 5019 func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 5020 size := m.Size() 5021 return m.MarshalToSizedBuffer(dAtA[:size]) 5022 } 5023 5024 func (m *Response_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5025 i := len(dAtA) 5026 if m.BeginBlock != nil { 5027 { 5028 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 5029 if err != nil { 5030 return 0, err 5031 } 5032 i -= size 5033 i = encodeVarintTypes(dAtA, i, uint64(size)) 5034 } 5035 i-- 5036 dAtA[i] = 0x42 5037 } 5038 return len(dAtA) - i, nil 5039 } 5040 func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) { 5041 size := m.Size() 5042 return m.MarshalToSizedBuffer(dAtA[:size]) 5043 } 5044 5045 func (m *Response_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5046 i := len(dAtA) 5047 if m.CheckTx != nil { 5048 { 5049 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 5050 if err != nil { 5051 return 0, err 5052 } 5053 i -= size 5054 i = encodeVarintTypes(dAtA, i, uint64(size)) 5055 } 5056 i-- 5057 dAtA[i] = 0x4a 5058 } 5059 return len(dAtA) - i, nil 5060 } 5061 func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 5062 size := m.Size() 5063 return m.MarshalToSizedBuffer(dAtA[:size]) 5064 } 5065 5066 func (m *Response_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5067 i := len(dAtA) 5068 if m.DeliverTx != nil { 5069 { 5070 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 5071 if err != nil { 5072 return 0, err 5073 } 5074 i -= size 5075 i = encodeVarintTypes(dAtA, i, uint64(size)) 5076 } 5077 i-- 5078 dAtA[i] = 0x52 5079 } 5080 return len(dAtA) - i, nil 5081 } 5082 func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) { 5083 size := m.Size() 5084 return m.MarshalToSizedBuffer(dAtA[:size]) 5085 } 5086 5087 func (m *Response_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5088 i := len(dAtA) 5089 if m.EndBlock != nil { 5090 { 5091 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 5092 if err != nil { 5093 return 0, err 5094 } 5095 i -= size 5096 i = encodeVarintTypes(dAtA, i, uint64(size)) 5097 } 5098 i-- 5099 dAtA[i] = 0x5a 5100 } 5101 return len(dAtA) - i, nil 5102 } 5103 func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) { 5104 size := m.Size() 5105 return m.MarshalToSizedBuffer(dAtA[:size]) 5106 } 5107 5108 func (m *Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5109 i := len(dAtA) 5110 if m.Commit != nil { 5111 { 5112 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 5113 if err != nil { 5114 return 0, err 5115 } 5116 i -= size 5117 i = encodeVarintTypes(dAtA, i, uint64(size)) 5118 } 5119 i-- 5120 dAtA[i] = 0x62 5121 } 5122 return len(dAtA) - i, nil 5123 } 5124 func (m *Response_ListSnapshots) MarshalTo(dAtA []byte) (int, error) { 5125 size := m.Size() 5126 return m.MarshalToSizedBuffer(dAtA[:size]) 5127 } 5128 5129 func (m *Response_ListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5130 i := len(dAtA) 5131 if m.ListSnapshots != nil { 5132 { 5133 size, err := m.ListSnapshots.MarshalToSizedBuffer(dAtA[:i]) 5134 if err != nil { 5135 return 0, err 5136 } 5137 i -= size 5138 i = encodeVarintTypes(dAtA, i, uint64(size)) 5139 } 5140 i-- 5141 dAtA[i] = 0x6a 5142 } 5143 return len(dAtA) - i, nil 5144 } 5145 func (m *Response_OfferSnapshot) MarshalTo(dAtA []byte) (int, error) { 5146 size := m.Size() 5147 return m.MarshalToSizedBuffer(dAtA[:size]) 5148 } 5149 5150 func (m *Response_OfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5151 i := len(dAtA) 5152 if m.OfferSnapshot != nil { 5153 { 5154 size, err := m.OfferSnapshot.MarshalToSizedBuffer(dAtA[:i]) 5155 if err != nil { 5156 return 0, err 5157 } 5158 i -= size 5159 i = encodeVarintTypes(dAtA, i, uint64(size)) 5160 } 5161 i-- 5162 dAtA[i] = 0x72 5163 } 5164 return len(dAtA) - i, nil 5165 } 5166 func (m *Response_LoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 5167 size := m.Size() 5168 return m.MarshalToSizedBuffer(dAtA[:size]) 5169 } 5170 5171 func (m *Response_LoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5172 i := len(dAtA) 5173 if m.LoadSnapshotChunk != nil { 5174 { 5175 size, err := m.LoadSnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 5176 if err != nil { 5177 return 0, err 5178 } 5179 i -= size 5180 i = encodeVarintTypes(dAtA, i, uint64(size)) 5181 } 5182 i-- 5183 dAtA[i] = 0x7a 5184 } 5185 return len(dAtA) - i, nil 5186 } 5187 func (m *Response_ApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 5188 size := m.Size() 5189 return m.MarshalToSizedBuffer(dAtA[:size]) 5190 } 5191 5192 func (m *Response_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5193 i := len(dAtA) 5194 if m.ApplySnapshotChunk != nil { 5195 { 5196 size, err := m.ApplySnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 5197 if err != nil { 5198 return 0, err 5199 } 5200 i -= size 5201 i = encodeVarintTypes(dAtA, i, uint64(size)) 5202 } 5203 i-- 5204 dAtA[i] = 0x1 5205 i-- 5206 dAtA[i] = 0x82 5207 } 5208 return len(dAtA) - i, nil 5209 } 5210 func (m *ResponseException) Marshal() (dAtA []byte, err error) { 5211 size := m.Size() 5212 dAtA = make([]byte, size) 5213 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5214 if err != nil { 5215 return nil, err 5216 } 5217 return dAtA[:n], nil 5218 } 5219 5220 func (m *ResponseException) MarshalTo(dAtA []byte) (int, error) { 5221 size := m.Size() 5222 return m.MarshalToSizedBuffer(dAtA[:size]) 5223 } 5224 5225 func (m *ResponseException) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5226 i := len(dAtA) 5227 _ = i 5228 var l int 5229 _ = l 5230 if len(m.Error) > 0 { 5231 i -= len(m.Error) 5232 copy(dAtA[i:], m.Error) 5233 i = encodeVarintTypes(dAtA, i, uint64(len(m.Error))) 5234 i-- 5235 dAtA[i] = 0xa 5236 } 5237 return len(dAtA) - i, nil 5238 } 5239 5240 func (m *ResponseEcho) Marshal() (dAtA []byte, err error) { 5241 size := m.Size() 5242 dAtA = make([]byte, size) 5243 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5244 if err != nil { 5245 return nil, err 5246 } 5247 return dAtA[:n], nil 5248 } 5249 5250 func (m *ResponseEcho) MarshalTo(dAtA []byte) (int, error) { 5251 size := m.Size() 5252 return m.MarshalToSizedBuffer(dAtA[:size]) 5253 } 5254 5255 func (m *ResponseEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5256 i := len(dAtA) 5257 _ = i 5258 var l int 5259 _ = l 5260 if len(m.Message) > 0 { 5261 i -= len(m.Message) 5262 copy(dAtA[i:], m.Message) 5263 i = encodeVarintTypes(dAtA, i, uint64(len(m.Message))) 5264 i-- 5265 dAtA[i] = 0xa 5266 } 5267 return len(dAtA) - i, nil 5268 } 5269 5270 func (m *ResponseFlush) Marshal() (dAtA []byte, err error) { 5271 size := m.Size() 5272 dAtA = make([]byte, size) 5273 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5274 if err != nil { 5275 return nil, err 5276 } 5277 return dAtA[:n], nil 5278 } 5279 5280 func (m *ResponseFlush) MarshalTo(dAtA []byte) (int, error) { 5281 size := m.Size() 5282 return m.MarshalToSizedBuffer(dAtA[:size]) 5283 } 5284 5285 func (m *ResponseFlush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5286 i := len(dAtA) 5287 _ = i 5288 var l int 5289 _ = l 5290 return len(dAtA) - i, nil 5291 } 5292 5293 func (m *ResponseInfo) Marshal() (dAtA []byte, err error) { 5294 size := m.Size() 5295 dAtA = make([]byte, size) 5296 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5297 if err != nil { 5298 return nil, err 5299 } 5300 return dAtA[:n], nil 5301 } 5302 5303 func (m *ResponseInfo) MarshalTo(dAtA []byte) (int, error) { 5304 size := m.Size() 5305 return m.MarshalToSizedBuffer(dAtA[:size]) 5306 } 5307 5308 func (m *ResponseInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5309 i := len(dAtA) 5310 _ = i 5311 var l int 5312 _ = l 5313 if len(m.LastBlockAppHash) > 0 { 5314 i -= len(m.LastBlockAppHash) 5315 copy(dAtA[i:], m.LastBlockAppHash) 5316 i = encodeVarintTypes(dAtA, i, uint64(len(m.LastBlockAppHash))) 5317 i-- 5318 dAtA[i] = 0x2a 5319 } 5320 if m.LastBlockHeight != 0 { 5321 i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight)) 5322 i-- 5323 dAtA[i] = 0x20 5324 } 5325 if m.AppVersion != 0 { 5326 i = encodeVarintTypes(dAtA, i, uint64(m.AppVersion)) 5327 i-- 5328 dAtA[i] = 0x18 5329 } 5330 if len(m.Version) > 0 { 5331 i -= len(m.Version) 5332 copy(dAtA[i:], m.Version) 5333 i = encodeVarintTypes(dAtA, i, uint64(len(m.Version))) 5334 i-- 5335 dAtA[i] = 0x12 5336 } 5337 if len(m.Data) > 0 { 5338 i -= len(m.Data) 5339 copy(dAtA[i:], m.Data) 5340 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 5341 i-- 5342 dAtA[i] = 0xa 5343 } 5344 return len(dAtA) - i, nil 5345 } 5346 5347 func (m *ResponseSetOption) Marshal() (dAtA []byte, err error) { 5348 size := m.Size() 5349 dAtA = make([]byte, size) 5350 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5351 if err != nil { 5352 return nil, err 5353 } 5354 return dAtA[:n], nil 5355 } 5356 5357 func (m *ResponseSetOption) MarshalTo(dAtA []byte) (int, error) { 5358 size := m.Size() 5359 return m.MarshalToSizedBuffer(dAtA[:size]) 5360 } 5361 5362 func (m *ResponseSetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5363 i := len(dAtA) 5364 _ = i 5365 var l int 5366 _ = l 5367 if len(m.Info) > 0 { 5368 i -= len(m.Info) 5369 copy(dAtA[i:], m.Info) 5370 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 5371 i-- 5372 dAtA[i] = 0x22 5373 } 5374 if len(m.Log) > 0 { 5375 i -= len(m.Log) 5376 copy(dAtA[i:], m.Log) 5377 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 5378 i-- 5379 dAtA[i] = 0x1a 5380 } 5381 if m.Code != 0 { 5382 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 5383 i-- 5384 dAtA[i] = 0x8 5385 } 5386 return len(dAtA) - i, nil 5387 } 5388 5389 func (m *ResponseInitChain) Marshal() (dAtA []byte, err error) { 5390 size := m.Size() 5391 dAtA = make([]byte, size) 5392 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5393 if err != nil { 5394 return nil, err 5395 } 5396 return dAtA[:n], nil 5397 } 5398 5399 func (m *ResponseInitChain) MarshalTo(dAtA []byte) (int, error) { 5400 size := m.Size() 5401 return m.MarshalToSizedBuffer(dAtA[:size]) 5402 } 5403 5404 func (m *ResponseInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5405 i := len(dAtA) 5406 _ = i 5407 var l int 5408 _ = l 5409 if len(m.Validators) > 0 { 5410 for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { 5411 { 5412 size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5413 if err != nil { 5414 return 0, err 5415 } 5416 i -= size 5417 i = encodeVarintTypes(dAtA, i, uint64(size)) 5418 } 5419 i-- 5420 dAtA[i] = 0x12 5421 } 5422 } 5423 if m.ConsensusParams != nil { 5424 { 5425 size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i]) 5426 if err != nil { 5427 return 0, err 5428 } 5429 i -= size 5430 i = encodeVarintTypes(dAtA, i, uint64(size)) 5431 } 5432 i-- 5433 dAtA[i] = 0xa 5434 } 5435 return len(dAtA) - i, nil 5436 } 5437 5438 func (m *ResponseQuery) Marshal() (dAtA []byte, err error) { 5439 size := m.Size() 5440 dAtA = make([]byte, size) 5441 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5442 if err != nil { 5443 return nil, err 5444 } 5445 return dAtA[:n], nil 5446 } 5447 5448 func (m *ResponseQuery) MarshalTo(dAtA []byte) (int, error) { 5449 size := m.Size() 5450 return m.MarshalToSizedBuffer(dAtA[:size]) 5451 } 5452 5453 func (m *ResponseQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5454 i := len(dAtA) 5455 _ = i 5456 var l int 5457 _ = l 5458 if len(m.Codespace) > 0 { 5459 i -= len(m.Codespace) 5460 copy(dAtA[i:], m.Codespace) 5461 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 5462 i-- 5463 dAtA[i] = 0x52 5464 } 5465 if m.Height != 0 { 5466 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 5467 i-- 5468 dAtA[i] = 0x48 5469 } 5470 if m.ProofOps != nil { 5471 { 5472 size, err := m.ProofOps.MarshalToSizedBuffer(dAtA[:i]) 5473 if err != nil { 5474 return 0, err 5475 } 5476 i -= size 5477 i = encodeVarintTypes(dAtA, i, uint64(size)) 5478 } 5479 i-- 5480 dAtA[i] = 0x42 5481 } 5482 if len(m.Value) > 0 { 5483 i -= len(m.Value) 5484 copy(dAtA[i:], m.Value) 5485 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 5486 i-- 5487 dAtA[i] = 0x3a 5488 } 5489 if len(m.Key) > 0 { 5490 i -= len(m.Key) 5491 copy(dAtA[i:], m.Key) 5492 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 5493 i-- 5494 dAtA[i] = 0x32 5495 } 5496 if m.Index != 0 { 5497 i = encodeVarintTypes(dAtA, i, uint64(m.Index)) 5498 i-- 5499 dAtA[i] = 0x28 5500 } 5501 if len(m.Info) > 0 { 5502 i -= len(m.Info) 5503 copy(dAtA[i:], m.Info) 5504 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 5505 i-- 5506 dAtA[i] = 0x22 5507 } 5508 if len(m.Log) > 0 { 5509 i -= len(m.Log) 5510 copy(dAtA[i:], m.Log) 5511 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 5512 i-- 5513 dAtA[i] = 0x1a 5514 } 5515 if m.Code != 0 { 5516 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 5517 i-- 5518 dAtA[i] = 0x8 5519 } 5520 return len(dAtA) - i, nil 5521 } 5522 5523 func (m *ResponseBeginBlock) Marshal() (dAtA []byte, err error) { 5524 size := m.Size() 5525 dAtA = make([]byte, size) 5526 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5527 if err != nil { 5528 return nil, err 5529 } 5530 return dAtA[:n], nil 5531 } 5532 5533 func (m *ResponseBeginBlock) MarshalTo(dAtA []byte) (int, error) { 5534 size := m.Size() 5535 return m.MarshalToSizedBuffer(dAtA[:size]) 5536 } 5537 5538 func (m *ResponseBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5539 i := len(dAtA) 5540 _ = i 5541 var l int 5542 _ = l 5543 if len(m.Events) > 0 { 5544 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 5545 { 5546 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5547 if err != nil { 5548 return 0, err 5549 } 5550 i -= size 5551 i = encodeVarintTypes(dAtA, i, uint64(size)) 5552 } 5553 i-- 5554 dAtA[i] = 0xa 5555 } 5556 } 5557 return len(dAtA) - i, nil 5558 } 5559 5560 func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) { 5561 size := m.Size() 5562 dAtA = make([]byte, size) 5563 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5564 if err != nil { 5565 return nil, err 5566 } 5567 return dAtA[:n], nil 5568 } 5569 5570 func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) { 5571 size := m.Size() 5572 return m.MarshalToSizedBuffer(dAtA[:size]) 5573 } 5574 5575 func (m *ResponseCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5576 i := len(dAtA) 5577 _ = i 5578 var l int 5579 _ = l 5580 if len(m.Codespace) > 0 { 5581 i -= len(m.Codespace) 5582 copy(dAtA[i:], m.Codespace) 5583 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 5584 i-- 5585 dAtA[i] = 0x42 5586 } 5587 if len(m.Events) > 0 { 5588 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 5589 { 5590 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5591 if err != nil { 5592 return 0, err 5593 } 5594 i -= size 5595 i = encodeVarintTypes(dAtA, i, uint64(size)) 5596 } 5597 i-- 5598 dAtA[i] = 0x3a 5599 } 5600 } 5601 if m.GasUsed != 0 { 5602 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 5603 i-- 5604 dAtA[i] = 0x30 5605 } 5606 if m.GasWanted != 0 { 5607 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 5608 i-- 5609 dAtA[i] = 0x28 5610 } 5611 if len(m.Info) > 0 { 5612 i -= len(m.Info) 5613 copy(dAtA[i:], m.Info) 5614 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 5615 i-- 5616 dAtA[i] = 0x22 5617 } 5618 if len(m.Log) > 0 { 5619 i -= len(m.Log) 5620 copy(dAtA[i:], m.Log) 5621 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 5622 i-- 5623 dAtA[i] = 0x1a 5624 } 5625 if len(m.Data) > 0 { 5626 i -= len(m.Data) 5627 copy(dAtA[i:], m.Data) 5628 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 5629 i-- 5630 dAtA[i] = 0x12 5631 } 5632 if m.Code != 0 { 5633 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 5634 i-- 5635 dAtA[i] = 0x8 5636 } 5637 return len(dAtA) - i, nil 5638 } 5639 5640 func (m *ResponseDeliverTx) Marshal() (dAtA []byte, err error) { 5641 size := m.Size() 5642 dAtA = make([]byte, size) 5643 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5644 if err != nil { 5645 return nil, err 5646 } 5647 return dAtA[:n], nil 5648 } 5649 5650 func (m *ResponseDeliverTx) MarshalTo(dAtA []byte) (int, error) { 5651 size := m.Size() 5652 return m.MarshalToSizedBuffer(dAtA[:size]) 5653 } 5654 5655 func (m *ResponseDeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5656 i := len(dAtA) 5657 _ = i 5658 var l int 5659 _ = l 5660 if len(m.Codespace) > 0 { 5661 i -= len(m.Codespace) 5662 copy(dAtA[i:], m.Codespace) 5663 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 5664 i-- 5665 dAtA[i] = 0x42 5666 } 5667 if len(m.Events) > 0 { 5668 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 5669 { 5670 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5671 if err != nil { 5672 return 0, err 5673 } 5674 i -= size 5675 i = encodeVarintTypes(dAtA, i, uint64(size)) 5676 } 5677 i-- 5678 dAtA[i] = 0x3a 5679 } 5680 } 5681 if m.GasUsed != 0 { 5682 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 5683 i-- 5684 dAtA[i] = 0x30 5685 } 5686 if m.GasWanted != 0 { 5687 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 5688 i-- 5689 dAtA[i] = 0x28 5690 } 5691 if len(m.Info) > 0 { 5692 i -= len(m.Info) 5693 copy(dAtA[i:], m.Info) 5694 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 5695 i-- 5696 dAtA[i] = 0x22 5697 } 5698 if len(m.Log) > 0 { 5699 i -= len(m.Log) 5700 copy(dAtA[i:], m.Log) 5701 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 5702 i-- 5703 dAtA[i] = 0x1a 5704 } 5705 if len(m.Data) > 0 { 5706 i -= len(m.Data) 5707 copy(dAtA[i:], m.Data) 5708 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 5709 i-- 5710 dAtA[i] = 0x12 5711 } 5712 if m.Code != 0 { 5713 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 5714 i-- 5715 dAtA[i] = 0x8 5716 } 5717 return len(dAtA) - i, nil 5718 } 5719 5720 func (m *ResponseEndBlock) Marshal() (dAtA []byte, err error) { 5721 size := m.Size() 5722 dAtA = make([]byte, size) 5723 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5724 if err != nil { 5725 return nil, err 5726 } 5727 return dAtA[:n], nil 5728 } 5729 5730 func (m *ResponseEndBlock) MarshalTo(dAtA []byte) (int, error) { 5731 size := m.Size() 5732 return m.MarshalToSizedBuffer(dAtA[:size]) 5733 } 5734 5735 func (m *ResponseEndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5736 i := len(dAtA) 5737 _ = i 5738 var l int 5739 _ = l 5740 if len(m.Events) > 0 { 5741 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 5742 { 5743 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5744 if err != nil { 5745 return 0, err 5746 } 5747 i -= size 5748 i = encodeVarintTypes(dAtA, i, uint64(size)) 5749 } 5750 i-- 5751 dAtA[i] = 0x1a 5752 } 5753 } 5754 if m.ConsensusParamUpdates != nil { 5755 { 5756 size, err := m.ConsensusParamUpdates.MarshalToSizedBuffer(dAtA[:i]) 5757 if err != nil { 5758 return 0, err 5759 } 5760 i -= size 5761 i = encodeVarintTypes(dAtA, i, uint64(size)) 5762 } 5763 i-- 5764 dAtA[i] = 0x12 5765 } 5766 if len(m.ValidatorUpdates) > 0 { 5767 for iNdEx := len(m.ValidatorUpdates) - 1; iNdEx >= 0; iNdEx-- { 5768 { 5769 size, err := m.ValidatorUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5770 if err != nil { 5771 return 0, err 5772 } 5773 i -= size 5774 i = encodeVarintTypes(dAtA, i, uint64(size)) 5775 } 5776 i-- 5777 dAtA[i] = 0xa 5778 } 5779 } 5780 return len(dAtA) - i, nil 5781 } 5782 5783 func (m *ResponseCommit) Marshal() (dAtA []byte, err error) { 5784 size := m.Size() 5785 dAtA = make([]byte, size) 5786 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5787 if err != nil { 5788 return nil, err 5789 } 5790 return dAtA[:n], nil 5791 } 5792 5793 func (m *ResponseCommit) MarshalTo(dAtA []byte) (int, error) { 5794 size := m.Size() 5795 return m.MarshalToSizedBuffer(dAtA[:size]) 5796 } 5797 5798 func (m *ResponseCommit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5799 i := len(dAtA) 5800 _ = i 5801 var l int 5802 _ = l 5803 if m.RetainHeight != 0 { 5804 i = encodeVarintTypes(dAtA, i, uint64(m.RetainHeight)) 5805 i-- 5806 dAtA[i] = 0x18 5807 } 5808 if len(m.Data) > 0 { 5809 i -= len(m.Data) 5810 copy(dAtA[i:], m.Data) 5811 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 5812 i-- 5813 dAtA[i] = 0x12 5814 } 5815 return len(dAtA) - i, nil 5816 } 5817 5818 func (m *ResponseListSnapshots) Marshal() (dAtA []byte, err error) { 5819 size := m.Size() 5820 dAtA = make([]byte, size) 5821 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5822 if err != nil { 5823 return nil, err 5824 } 5825 return dAtA[:n], nil 5826 } 5827 5828 func (m *ResponseListSnapshots) MarshalTo(dAtA []byte) (int, error) { 5829 size := m.Size() 5830 return m.MarshalToSizedBuffer(dAtA[:size]) 5831 } 5832 5833 func (m *ResponseListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5834 i := len(dAtA) 5835 _ = i 5836 var l int 5837 _ = l 5838 if len(m.Snapshots) > 0 { 5839 for iNdEx := len(m.Snapshots) - 1; iNdEx >= 0; iNdEx-- { 5840 { 5841 size, err := m.Snapshots[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5842 if err != nil { 5843 return 0, err 5844 } 5845 i -= size 5846 i = encodeVarintTypes(dAtA, i, uint64(size)) 5847 } 5848 i-- 5849 dAtA[i] = 0xa 5850 } 5851 } 5852 return len(dAtA) - i, nil 5853 } 5854 5855 func (m *ResponseOfferSnapshot) Marshal() (dAtA []byte, err error) { 5856 size := m.Size() 5857 dAtA = make([]byte, size) 5858 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5859 if err != nil { 5860 return nil, err 5861 } 5862 return dAtA[:n], nil 5863 } 5864 5865 func (m *ResponseOfferSnapshot) MarshalTo(dAtA []byte) (int, error) { 5866 size := m.Size() 5867 return m.MarshalToSizedBuffer(dAtA[:size]) 5868 } 5869 5870 func (m *ResponseOfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5871 i := len(dAtA) 5872 _ = i 5873 var l int 5874 _ = l 5875 if m.Result != 0 { 5876 i = encodeVarintTypes(dAtA, i, uint64(m.Result)) 5877 i-- 5878 dAtA[i] = 0x8 5879 } 5880 return len(dAtA) - i, nil 5881 } 5882 5883 func (m *ResponseLoadSnapshotChunk) Marshal() (dAtA []byte, err error) { 5884 size := m.Size() 5885 dAtA = make([]byte, size) 5886 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5887 if err != nil { 5888 return nil, err 5889 } 5890 return dAtA[:n], nil 5891 } 5892 5893 func (m *ResponseLoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 5894 size := m.Size() 5895 return m.MarshalToSizedBuffer(dAtA[:size]) 5896 } 5897 5898 func (m *ResponseLoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5899 i := len(dAtA) 5900 _ = i 5901 var l int 5902 _ = l 5903 if len(m.Chunk) > 0 { 5904 i -= len(m.Chunk) 5905 copy(dAtA[i:], m.Chunk) 5906 i = encodeVarintTypes(dAtA, i, uint64(len(m.Chunk))) 5907 i-- 5908 dAtA[i] = 0xa 5909 } 5910 return len(dAtA) - i, nil 5911 } 5912 5913 func (m *ResponseApplySnapshotChunk) Marshal() (dAtA []byte, err error) { 5914 size := m.Size() 5915 dAtA = make([]byte, size) 5916 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5917 if err != nil { 5918 return nil, err 5919 } 5920 return dAtA[:n], nil 5921 } 5922 5923 func (m *ResponseApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 5924 size := m.Size() 5925 return m.MarshalToSizedBuffer(dAtA[:size]) 5926 } 5927 5928 func (m *ResponseApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5929 i := len(dAtA) 5930 _ = i 5931 var l int 5932 _ = l 5933 if len(m.RejectSenders) > 0 { 5934 for iNdEx := len(m.RejectSenders) - 1; iNdEx >= 0; iNdEx-- { 5935 i -= len(m.RejectSenders[iNdEx]) 5936 copy(dAtA[i:], m.RejectSenders[iNdEx]) 5937 i = encodeVarintTypes(dAtA, i, uint64(len(m.RejectSenders[iNdEx]))) 5938 i-- 5939 dAtA[i] = 0x1a 5940 } 5941 } 5942 if len(m.RefetchChunks) > 0 { 5943 dAtA41 := make([]byte, len(m.RefetchChunks)*10) 5944 var j40 int 5945 for _, num := range m.RefetchChunks { 5946 for num >= 1<<7 { 5947 dAtA41[j40] = uint8(uint64(num)&0x7f | 0x80) 5948 num >>= 7 5949 j40++ 5950 } 5951 dAtA41[j40] = uint8(num) 5952 j40++ 5953 } 5954 i -= j40 5955 copy(dAtA[i:], dAtA41[:j40]) 5956 i = encodeVarintTypes(dAtA, i, uint64(j40)) 5957 i-- 5958 dAtA[i] = 0x12 5959 } 5960 if m.Result != 0 { 5961 i = encodeVarintTypes(dAtA, i, uint64(m.Result)) 5962 i-- 5963 dAtA[i] = 0x8 5964 } 5965 return len(dAtA) - i, nil 5966 } 5967 5968 func (m *ConsensusParams) Marshal() (dAtA []byte, err error) { 5969 size := m.Size() 5970 dAtA = make([]byte, size) 5971 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5972 if err != nil { 5973 return nil, err 5974 } 5975 return dAtA[:n], nil 5976 } 5977 5978 func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) { 5979 size := m.Size() 5980 return m.MarshalToSizedBuffer(dAtA[:size]) 5981 } 5982 5983 func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5984 i := len(dAtA) 5985 _ = i 5986 var l int 5987 _ = l 5988 if m.Version != nil { 5989 { 5990 size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) 5991 if err != nil { 5992 return 0, err 5993 } 5994 i -= size 5995 i = encodeVarintTypes(dAtA, i, uint64(size)) 5996 } 5997 i-- 5998 dAtA[i] = 0x22 5999 } 6000 if m.Validator != nil { 6001 { 6002 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 6003 if err != nil { 6004 return 0, err 6005 } 6006 i -= size 6007 i = encodeVarintTypes(dAtA, i, uint64(size)) 6008 } 6009 i-- 6010 dAtA[i] = 0x1a 6011 } 6012 if m.Evidence != nil { 6013 { 6014 size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i]) 6015 if err != nil { 6016 return 0, err 6017 } 6018 i -= size 6019 i = encodeVarintTypes(dAtA, i, uint64(size)) 6020 } 6021 i-- 6022 dAtA[i] = 0x12 6023 } 6024 if m.Block != nil { 6025 { 6026 size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) 6027 if err != nil { 6028 return 0, err 6029 } 6030 i -= size 6031 i = encodeVarintTypes(dAtA, i, uint64(size)) 6032 } 6033 i-- 6034 dAtA[i] = 0xa 6035 } 6036 return len(dAtA) - i, nil 6037 } 6038 6039 func (m *BlockParams) Marshal() (dAtA []byte, err error) { 6040 size := m.Size() 6041 dAtA = make([]byte, size) 6042 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6043 if err != nil { 6044 return nil, err 6045 } 6046 return dAtA[:n], nil 6047 } 6048 6049 func (m *BlockParams) MarshalTo(dAtA []byte) (int, error) { 6050 size := m.Size() 6051 return m.MarshalToSizedBuffer(dAtA[:size]) 6052 } 6053 6054 func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6055 i := len(dAtA) 6056 _ = i 6057 var l int 6058 _ = l 6059 if m.MaxGas != 0 { 6060 i = encodeVarintTypes(dAtA, i, uint64(m.MaxGas)) 6061 i-- 6062 dAtA[i] = 0x10 6063 } 6064 if m.MaxBytes != 0 { 6065 i = encodeVarintTypes(dAtA, i, uint64(m.MaxBytes)) 6066 i-- 6067 dAtA[i] = 0x8 6068 } 6069 return len(dAtA) - i, nil 6070 } 6071 6072 func (m *LastCommitInfo) Marshal() (dAtA []byte, err error) { 6073 size := m.Size() 6074 dAtA = make([]byte, size) 6075 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6076 if err != nil { 6077 return nil, err 6078 } 6079 return dAtA[:n], nil 6080 } 6081 6082 func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error) { 6083 size := m.Size() 6084 return m.MarshalToSizedBuffer(dAtA[:size]) 6085 } 6086 6087 func (m *LastCommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6088 i := len(dAtA) 6089 _ = i 6090 var l int 6091 _ = l 6092 if len(m.Votes) > 0 { 6093 for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- { 6094 { 6095 size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6096 if err != nil { 6097 return 0, err 6098 } 6099 i -= size 6100 i = encodeVarintTypes(dAtA, i, uint64(size)) 6101 } 6102 i-- 6103 dAtA[i] = 0x12 6104 } 6105 } 6106 if m.Round != 0 { 6107 i = encodeVarintTypes(dAtA, i, uint64(m.Round)) 6108 i-- 6109 dAtA[i] = 0x8 6110 } 6111 return len(dAtA) - i, nil 6112 } 6113 6114 func (m *Event) Marshal() (dAtA []byte, err error) { 6115 size := m.Size() 6116 dAtA = make([]byte, size) 6117 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6118 if err != nil { 6119 return nil, err 6120 } 6121 return dAtA[:n], nil 6122 } 6123 6124 func (m *Event) MarshalTo(dAtA []byte) (int, error) { 6125 size := m.Size() 6126 return m.MarshalToSizedBuffer(dAtA[:size]) 6127 } 6128 6129 func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6130 i := len(dAtA) 6131 _ = i 6132 var l int 6133 _ = l 6134 if len(m.Attributes) > 0 { 6135 for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { 6136 { 6137 size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6138 if err != nil { 6139 return 0, err 6140 } 6141 i -= size 6142 i = encodeVarintTypes(dAtA, i, uint64(size)) 6143 } 6144 i-- 6145 dAtA[i] = 0x12 6146 } 6147 } 6148 if len(m.Type) > 0 { 6149 i -= len(m.Type) 6150 copy(dAtA[i:], m.Type) 6151 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 6152 i-- 6153 dAtA[i] = 0xa 6154 } 6155 return len(dAtA) - i, nil 6156 } 6157 6158 func (m *EventAttribute) Marshal() (dAtA []byte, err error) { 6159 size := m.Size() 6160 dAtA = make([]byte, size) 6161 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6162 if err != nil { 6163 return nil, err 6164 } 6165 return dAtA[:n], nil 6166 } 6167 6168 func (m *EventAttribute) MarshalTo(dAtA []byte) (int, error) { 6169 size := m.Size() 6170 return m.MarshalToSizedBuffer(dAtA[:size]) 6171 } 6172 6173 func (m *EventAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6174 i := len(dAtA) 6175 _ = i 6176 var l int 6177 _ = l 6178 if m.Index { 6179 i-- 6180 if m.Index { 6181 dAtA[i] = 1 6182 } else { 6183 dAtA[i] = 0 6184 } 6185 i-- 6186 dAtA[i] = 0x18 6187 } 6188 if len(m.Value) > 0 { 6189 i -= len(m.Value) 6190 copy(dAtA[i:], m.Value) 6191 i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) 6192 i-- 6193 dAtA[i] = 0x12 6194 } 6195 if len(m.Key) > 0 { 6196 i -= len(m.Key) 6197 copy(dAtA[i:], m.Key) 6198 i = encodeVarintTypes(dAtA, i, uint64(len(m.Key))) 6199 i-- 6200 dAtA[i] = 0xa 6201 } 6202 return len(dAtA) - i, nil 6203 } 6204 6205 func (m *TxResult) Marshal() (dAtA []byte, err error) { 6206 size := m.Size() 6207 dAtA = make([]byte, size) 6208 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6209 if err != nil { 6210 return nil, err 6211 } 6212 return dAtA[:n], nil 6213 } 6214 6215 func (m *TxResult) MarshalTo(dAtA []byte) (int, error) { 6216 size := m.Size() 6217 return m.MarshalToSizedBuffer(dAtA[:size]) 6218 } 6219 6220 func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6221 i := len(dAtA) 6222 _ = i 6223 var l int 6224 _ = l 6225 { 6226 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 6227 if err != nil { 6228 return 0, err 6229 } 6230 i -= size 6231 i = encodeVarintTypes(dAtA, i, uint64(size)) 6232 } 6233 i-- 6234 dAtA[i] = 0x22 6235 if len(m.Tx) > 0 { 6236 i -= len(m.Tx) 6237 copy(dAtA[i:], m.Tx) 6238 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 6239 i-- 6240 dAtA[i] = 0x1a 6241 } 6242 if m.Index != 0 { 6243 i = encodeVarintTypes(dAtA, i, uint64(m.Index)) 6244 i-- 6245 dAtA[i] = 0x10 6246 } 6247 if m.Height != 0 { 6248 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6249 i-- 6250 dAtA[i] = 0x8 6251 } 6252 return len(dAtA) - i, nil 6253 } 6254 6255 func (m *Validator) Marshal() (dAtA []byte, err error) { 6256 size := m.Size() 6257 dAtA = make([]byte, size) 6258 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6259 if err != nil { 6260 return nil, err 6261 } 6262 return dAtA[:n], nil 6263 } 6264 6265 func (m *Validator) MarshalTo(dAtA []byte) (int, error) { 6266 size := m.Size() 6267 return m.MarshalToSizedBuffer(dAtA[:size]) 6268 } 6269 6270 func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6271 i := len(dAtA) 6272 _ = i 6273 var l int 6274 _ = l 6275 if m.Power != 0 { 6276 i = encodeVarintTypes(dAtA, i, uint64(m.Power)) 6277 i-- 6278 dAtA[i] = 0x18 6279 } 6280 if len(m.Address) > 0 { 6281 i -= len(m.Address) 6282 copy(dAtA[i:], m.Address) 6283 i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) 6284 i-- 6285 dAtA[i] = 0xa 6286 } 6287 return len(dAtA) - i, nil 6288 } 6289 6290 func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error) { 6291 size := m.Size() 6292 dAtA = make([]byte, size) 6293 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6294 if err != nil { 6295 return nil, err 6296 } 6297 return dAtA[:n], nil 6298 } 6299 6300 func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error) { 6301 size := m.Size() 6302 return m.MarshalToSizedBuffer(dAtA[:size]) 6303 } 6304 6305 func (m *ValidatorUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6306 i := len(dAtA) 6307 _ = i 6308 var l int 6309 _ = l 6310 if m.Power != 0 { 6311 i = encodeVarintTypes(dAtA, i, uint64(m.Power)) 6312 i-- 6313 dAtA[i] = 0x10 6314 } 6315 { 6316 size, err := m.PubKey.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] = 0xa 6325 return len(dAtA) - i, nil 6326 } 6327 6328 func (m *VoteInfo) Marshal() (dAtA []byte, err error) { 6329 size := m.Size() 6330 dAtA = make([]byte, size) 6331 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6332 if err != nil { 6333 return nil, err 6334 } 6335 return dAtA[:n], nil 6336 } 6337 6338 func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error) { 6339 size := m.Size() 6340 return m.MarshalToSizedBuffer(dAtA[:size]) 6341 } 6342 6343 func (m *VoteInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6344 i := len(dAtA) 6345 _ = i 6346 var l int 6347 _ = l 6348 if m.SignedLastBlock { 6349 i-- 6350 if m.SignedLastBlock { 6351 dAtA[i] = 1 6352 } else { 6353 dAtA[i] = 0 6354 } 6355 i-- 6356 dAtA[i] = 0x10 6357 } 6358 { 6359 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 6360 if err != nil { 6361 return 0, err 6362 } 6363 i -= size 6364 i = encodeVarintTypes(dAtA, i, uint64(size)) 6365 } 6366 i-- 6367 dAtA[i] = 0xa 6368 return len(dAtA) - i, nil 6369 } 6370 6371 func (m *Evidence) Marshal() (dAtA []byte, err error) { 6372 size := m.Size() 6373 dAtA = make([]byte, size) 6374 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6375 if err != nil { 6376 return nil, err 6377 } 6378 return dAtA[:n], nil 6379 } 6380 6381 func (m *Evidence) MarshalTo(dAtA []byte) (int, error) { 6382 size := m.Size() 6383 return m.MarshalToSizedBuffer(dAtA[:size]) 6384 } 6385 6386 func (m *Evidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6387 i := len(dAtA) 6388 _ = i 6389 var l int 6390 _ = l 6391 if m.TotalVotingPower != 0 { 6392 i = encodeVarintTypes(dAtA, i, uint64(m.TotalVotingPower)) 6393 i-- 6394 dAtA[i] = 0x28 6395 } 6396 n49, err49 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 6397 if err49 != nil { 6398 return 0, err49 6399 } 6400 i -= n49 6401 i = encodeVarintTypes(dAtA, i, uint64(n49)) 6402 i-- 6403 dAtA[i] = 0x22 6404 if m.Height != 0 { 6405 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6406 i-- 6407 dAtA[i] = 0x18 6408 } 6409 { 6410 size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) 6411 if err != nil { 6412 return 0, err 6413 } 6414 i -= size 6415 i = encodeVarintTypes(dAtA, i, uint64(size)) 6416 } 6417 i-- 6418 dAtA[i] = 0x12 6419 if len(m.Type) > 0 { 6420 i -= len(m.Type) 6421 copy(dAtA[i:], m.Type) 6422 i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) 6423 i-- 6424 dAtA[i] = 0xa 6425 } 6426 return len(dAtA) - i, nil 6427 } 6428 6429 func (m *Snapshot) Marshal() (dAtA []byte, err error) { 6430 size := m.Size() 6431 dAtA = make([]byte, size) 6432 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6433 if err != nil { 6434 return nil, err 6435 } 6436 return dAtA[:n], nil 6437 } 6438 6439 func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) { 6440 size := m.Size() 6441 return m.MarshalToSizedBuffer(dAtA[:size]) 6442 } 6443 6444 func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6445 i := len(dAtA) 6446 _ = i 6447 var l int 6448 _ = l 6449 if len(m.Metadata) > 0 { 6450 i -= len(m.Metadata) 6451 copy(dAtA[i:], m.Metadata) 6452 i = encodeVarintTypes(dAtA, i, uint64(len(m.Metadata))) 6453 i-- 6454 dAtA[i] = 0x2a 6455 } 6456 if len(m.Hash) > 0 { 6457 i -= len(m.Hash) 6458 copy(dAtA[i:], m.Hash) 6459 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 6460 i-- 6461 dAtA[i] = 0x22 6462 } 6463 if m.Chunks != 0 { 6464 i = encodeVarintTypes(dAtA, i, uint64(m.Chunks)) 6465 i-- 6466 dAtA[i] = 0x18 6467 } 6468 if m.Format != 0 { 6469 i = encodeVarintTypes(dAtA, i, uint64(m.Format)) 6470 i-- 6471 dAtA[i] = 0x10 6472 } 6473 if m.Height != 0 { 6474 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 6475 i-- 6476 dAtA[i] = 0x8 6477 } 6478 return len(dAtA) - i, nil 6479 } 6480 6481 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 6482 offset -= sovTypes(v) 6483 base := offset 6484 for v >= 1<<7 { 6485 dAtA[offset] = uint8(v&0x7f | 0x80) 6486 v >>= 7 6487 offset++ 6488 } 6489 dAtA[offset] = uint8(v) 6490 return base 6491 } 6492 func (m *Request) Size() (n int) { 6493 if m == nil { 6494 return 0 6495 } 6496 var l int 6497 _ = l 6498 if m.Value != nil { 6499 n += m.Value.Size() 6500 } 6501 return n 6502 } 6503 6504 func (m *Request_Echo) Size() (n int) { 6505 if m == nil { 6506 return 0 6507 } 6508 var l int 6509 _ = l 6510 if m.Echo != nil { 6511 l = m.Echo.Size() 6512 n += 1 + l + sovTypes(uint64(l)) 6513 } 6514 return n 6515 } 6516 func (m *Request_Flush) Size() (n int) { 6517 if m == nil { 6518 return 0 6519 } 6520 var l int 6521 _ = l 6522 if m.Flush != nil { 6523 l = m.Flush.Size() 6524 n += 1 + l + sovTypes(uint64(l)) 6525 } 6526 return n 6527 } 6528 func (m *Request_Info) Size() (n int) { 6529 if m == nil { 6530 return 0 6531 } 6532 var l int 6533 _ = l 6534 if m.Info != nil { 6535 l = m.Info.Size() 6536 n += 1 + l + sovTypes(uint64(l)) 6537 } 6538 return n 6539 } 6540 func (m *Request_SetOption) Size() (n int) { 6541 if m == nil { 6542 return 0 6543 } 6544 var l int 6545 _ = l 6546 if m.SetOption != nil { 6547 l = m.SetOption.Size() 6548 n += 1 + l + sovTypes(uint64(l)) 6549 } 6550 return n 6551 } 6552 func (m *Request_InitChain) Size() (n int) { 6553 if m == nil { 6554 return 0 6555 } 6556 var l int 6557 _ = l 6558 if m.InitChain != nil { 6559 l = m.InitChain.Size() 6560 n += 1 + l + sovTypes(uint64(l)) 6561 } 6562 return n 6563 } 6564 func (m *Request_Query) Size() (n int) { 6565 if m == nil { 6566 return 0 6567 } 6568 var l int 6569 _ = l 6570 if m.Query != nil { 6571 l = m.Query.Size() 6572 n += 1 + l + sovTypes(uint64(l)) 6573 } 6574 return n 6575 } 6576 func (m *Request_BeginBlock) Size() (n int) { 6577 if m == nil { 6578 return 0 6579 } 6580 var l int 6581 _ = l 6582 if m.BeginBlock != nil { 6583 l = m.BeginBlock.Size() 6584 n += 1 + l + sovTypes(uint64(l)) 6585 } 6586 return n 6587 } 6588 func (m *Request_CheckTx) Size() (n int) { 6589 if m == nil { 6590 return 0 6591 } 6592 var l int 6593 _ = l 6594 if m.CheckTx != nil { 6595 l = m.CheckTx.Size() 6596 n += 1 + l + sovTypes(uint64(l)) 6597 } 6598 return n 6599 } 6600 func (m *Request_DeliverTx) Size() (n int) { 6601 if m == nil { 6602 return 0 6603 } 6604 var l int 6605 _ = l 6606 if m.DeliverTx != nil { 6607 l = m.DeliverTx.Size() 6608 n += 1 + l + sovTypes(uint64(l)) 6609 } 6610 return n 6611 } 6612 func (m *Request_EndBlock) Size() (n int) { 6613 if m == nil { 6614 return 0 6615 } 6616 var l int 6617 _ = l 6618 if m.EndBlock != nil { 6619 l = m.EndBlock.Size() 6620 n += 1 + l + sovTypes(uint64(l)) 6621 } 6622 return n 6623 } 6624 func (m *Request_Commit) Size() (n int) { 6625 if m == nil { 6626 return 0 6627 } 6628 var l int 6629 _ = l 6630 if m.Commit != nil { 6631 l = m.Commit.Size() 6632 n += 1 + l + sovTypes(uint64(l)) 6633 } 6634 return n 6635 } 6636 func (m *Request_ListSnapshots) Size() (n int) { 6637 if m == nil { 6638 return 0 6639 } 6640 var l int 6641 _ = l 6642 if m.ListSnapshots != nil { 6643 l = m.ListSnapshots.Size() 6644 n += 1 + l + sovTypes(uint64(l)) 6645 } 6646 return n 6647 } 6648 func (m *Request_OfferSnapshot) Size() (n int) { 6649 if m == nil { 6650 return 0 6651 } 6652 var l int 6653 _ = l 6654 if m.OfferSnapshot != nil { 6655 l = m.OfferSnapshot.Size() 6656 n += 1 + l + sovTypes(uint64(l)) 6657 } 6658 return n 6659 } 6660 func (m *Request_LoadSnapshotChunk) Size() (n int) { 6661 if m == nil { 6662 return 0 6663 } 6664 var l int 6665 _ = l 6666 if m.LoadSnapshotChunk != nil { 6667 l = m.LoadSnapshotChunk.Size() 6668 n += 1 + l + sovTypes(uint64(l)) 6669 } 6670 return n 6671 } 6672 func (m *Request_ApplySnapshotChunk) Size() (n int) { 6673 if m == nil { 6674 return 0 6675 } 6676 var l int 6677 _ = l 6678 if m.ApplySnapshotChunk != nil { 6679 l = m.ApplySnapshotChunk.Size() 6680 n += 1 + l + sovTypes(uint64(l)) 6681 } 6682 return n 6683 } 6684 func (m *RequestEcho) Size() (n int) { 6685 if m == nil { 6686 return 0 6687 } 6688 var l int 6689 _ = l 6690 l = len(m.Message) 6691 if l > 0 { 6692 n += 1 + l + sovTypes(uint64(l)) 6693 } 6694 return n 6695 } 6696 6697 func (m *RequestFlush) Size() (n int) { 6698 if m == nil { 6699 return 0 6700 } 6701 var l int 6702 _ = l 6703 return n 6704 } 6705 6706 func (m *RequestInfo) Size() (n int) { 6707 if m == nil { 6708 return 0 6709 } 6710 var l int 6711 _ = l 6712 l = len(m.Version) 6713 if l > 0 { 6714 n += 1 + l + sovTypes(uint64(l)) 6715 } 6716 if m.BlockVersion != 0 { 6717 n += 1 + sovTypes(uint64(m.BlockVersion)) 6718 } 6719 if m.P2PVersion != 0 { 6720 n += 1 + sovTypes(uint64(m.P2PVersion)) 6721 } 6722 return n 6723 } 6724 6725 func (m *RequestSetOption) Size() (n int) { 6726 if m == nil { 6727 return 0 6728 } 6729 var l int 6730 _ = l 6731 l = len(m.Key) 6732 if l > 0 { 6733 n += 1 + l + sovTypes(uint64(l)) 6734 } 6735 l = len(m.Value) 6736 if l > 0 { 6737 n += 1 + l + sovTypes(uint64(l)) 6738 } 6739 return n 6740 } 6741 6742 func (m *RequestInitChain) Size() (n int) { 6743 if m == nil { 6744 return 0 6745 } 6746 var l int 6747 _ = l 6748 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 6749 n += 1 + l + sovTypes(uint64(l)) 6750 l = len(m.ChainId) 6751 if l > 0 { 6752 n += 1 + l + sovTypes(uint64(l)) 6753 } 6754 if m.ConsensusParams != nil { 6755 l = m.ConsensusParams.Size() 6756 n += 1 + l + sovTypes(uint64(l)) 6757 } 6758 if len(m.Validators) > 0 { 6759 for _, e := range m.Validators { 6760 l = e.Size() 6761 n += 1 + l + sovTypes(uint64(l)) 6762 } 6763 } 6764 l = len(m.AppStateBytes) 6765 if l > 0 { 6766 n += 1 + l + sovTypes(uint64(l)) 6767 } 6768 return n 6769 } 6770 6771 func (m *RequestQuery) Size() (n int) { 6772 if m == nil { 6773 return 0 6774 } 6775 var l int 6776 _ = l 6777 l = len(m.Data) 6778 if l > 0 { 6779 n += 1 + l + sovTypes(uint64(l)) 6780 } 6781 l = len(m.Path) 6782 if l > 0 { 6783 n += 1 + l + sovTypes(uint64(l)) 6784 } 6785 if m.Height != 0 { 6786 n += 1 + sovTypes(uint64(m.Height)) 6787 } 6788 if m.Prove { 6789 n += 2 6790 } 6791 return n 6792 } 6793 6794 func (m *RequestBeginBlock) Size() (n int) { 6795 if m == nil { 6796 return 0 6797 } 6798 var l int 6799 _ = l 6800 l = len(m.Hash) 6801 if l > 0 { 6802 n += 1 + l + sovTypes(uint64(l)) 6803 } 6804 l = m.Header.Size() 6805 n += 1 + l + sovTypes(uint64(l)) 6806 l = m.LastCommitInfo.Size() 6807 n += 1 + l + sovTypes(uint64(l)) 6808 if len(m.ByzantineValidators) > 0 { 6809 for _, e := range m.ByzantineValidators { 6810 l = e.Size() 6811 n += 1 + l + sovTypes(uint64(l)) 6812 } 6813 } 6814 return n 6815 } 6816 6817 func (m *RequestCheckTx) Size() (n int) { 6818 if m == nil { 6819 return 0 6820 } 6821 var l int 6822 _ = l 6823 l = len(m.Tx) 6824 if l > 0 { 6825 n += 1 + l + sovTypes(uint64(l)) 6826 } 6827 if m.Type != 0 { 6828 n += 1 + sovTypes(uint64(m.Type)) 6829 } 6830 return n 6831 } 6832 6833 func (m *RequestDeliverTx) Size() (n int) { 6834 if m == nil { 6835 return 0 6836 } 6837 var l int 6838 _ = l 6839 l = len(m.Tx) 6840 if l > 0 { 6841 n += 1 + l + sovTypes(uint64(l)) 6842 } 6843 return n 6844 } 6845 6846 func (m *RequestEndBlock) Size() (n int) { 6847 if m == nil { 6848 return 0 6849 } 6850 var l int 6851 _ = l 6852 if m.Height != 0 { 6853 n += 1 + sovTypes(uint64(m.Height)) 6854 } 6855 return n 6856 } 6857 6858 func (m *RequestCommit) Size() (n int) { 6859 if m == nil { 6860 return 0 6861 } 6862 var l int 6863 _ = l 6864 return n 6865 } 6866 6867 func (m *RequestListSnapshots) Size() (n int) { 6868 if m == nil { 6869 return 0 6870 } 6871 var l int 6872 _ = l 6873 return n 6874 } 6875 6876 func (m *RequestOfferSnapshot) Size() (n int) { 6877 if m == nil { 6878 return 0 6879 } 6880 var l int 6881 _ = l 6882 if m.Snapshot != nil { 6883 l = m.Snapshot.Size() 6884 n += 1 + l + sovTypes(uint64(l)) 6885 } 6886 l = len(m.AppHash) 6887 if l > 0 { 6888 n += 1 + l + sovTypes(uint64(l)) 6889 } 6890 return n 6891 } 6892 6893 func (m *RequestLoadSnapshotChunk) Size() (n int) { 6894 if m == nil { 6895 return 0 6896 } 6897 var l int 6898 _ = l 6899 if m.Height != 0 { 6900 n += 1 + sovTypes(uint64(m.Height)) 6901 } 6902 if m.Format != 0 { 6903 n += 1 + sovTypes(uint64(m.Format)) 6904 } 6905 if m.Chunk != 0 { 6906 n += 1 + sovTypes(uint64(m.Chunk)) 6907 } 6908 return n 6909 } 6910 6911 func (m *RequestApplySnapshotChunk) Size() (n int) { 6912 if m == nil { 6913 return 0 6914 } 6915 var l int 6916 _ = l 6917 if m.Index != 0 { 6918 n += 1 + sovTypes(uint64(m.Index)) 6919 } 6920 l = len(m.Chunk) 6921 if l > 0 { 6922 n += 1 + l + sovTypes(uint64(l)) 6923 } 6924 l = len(m.Sender) 6925 if l > 0 { 6926 n += 1 + l + sovTypes(uint64(l)) 6927 } 6928 return n 6929 } 6930 6931 func (m *Response) Size() (n int) { 6932 if m == nil { 6933 return 0 6934 } 6935 var l int 6936 _ = l 6937 if m.Value != nil { 6938 n += m.Value.Size() 6939 } 6940 return n 6941 } 6942 6943 func (m *Response_Exception) Size() (n int) { 6944 if m == nil { 6945 return 0 6946 } 6947 var l int 6948 _ = l 6949 if m.Exception != nil { 6950 l = m.Exception.Size() 6951 n += 1 + l + sovTypes(uint64(l)) 6952 } 6953 return n 6954 } 6955 func (m *Response_Echo) Size() (n int) { 6956 if m == nil { 6957 return 0 6958 } 6959 var l int 6960 _ = l 6961 if m.Echo != nil { 6962 l = m.Echo.Size() 6963 n += 1 + l + sovTypes(uint64(l)) 6964 } 6965 return n 6966 } 6967 func (m *Response_Flush) Size() (n int) { 6968 if m == nil { 6969 return 0 6970 } 6971 var l int 6972 _ = l 6973 if m.Flush != nil { 6974 l = m.Flush.Size() 6975 n += 1 + l + sovTypes(uint64(l)) 6976 } 6977 return n 6978 } 6979 func (m *Response_Info) Size() (n int) { 6980 if m == nil { 6981 return 0 6982 } 6983 var l int 6984 _ = l 6985 if m.Info != nil { 6986 l = m.Info.Size() 6987 n += 1 + l + sovTypes(uint64(l)) 6988 } 6989 return n 6990 } 6991 func (m *Response_SetOption) Size() (n int) { 6992 if m == nil { 6993 return 0 6994 } 6995 var l int 6996 _ = l 6997 if m.SetOption != nil { 6998 l = m.SetOption.Size() 6999 n += 1 + l + sovTypes(uint64(l)) 7000 } 7001 return n 7002 } 7003 func (m *Response_InitChain) Size() (n int) { 7004 if m == nil { 7005 return 0 7006 } 7007 var l int 7008 _ = l 7009 if m.InitChain != nil { 7010 l = m.InitChain.Size() 7011 n += 1 + l + sovTypes(uint64(l)) 7012 } 7013 return n 7014 } 7015 func (m *Response_Query) Size() (n int) { 7016 if m == nil { 7017 return 0 7018 } 7019 var l int 7020 _ = l 7021 if m.Query != nil { 7022 l = m.Query.Size() 7023 n += 1 + l + sovTypes(uint64(l)) 7024 } 7025 return n 7026 } 7027 func (m *Response_BeginBlock) Size() (n int) { 7028 if m == nil { 7029 return 0 7030 } 7031 var l int 7032 _ = l 7033 if m.BeginBlock != nil { 7034 l = m.BeginBlock.Size() 7035 n += 1 + l + sovTypes(uint64(l)) 7036 } 7037 return n 7038 } 7039 func (m *Response_CheckTx) Size() (n int) { 7040 if m == nil { 7041 return 0 7042 } 7043 var l int 7044 _ = l 7045 if m.CheckTx != nil { 7046 l = m.CheckTx.Size() 7047 n += 1 + l + sovTypes(uint64(l)) 7048 } 7049 return n 7050 } 7051 func (m *Response_DeliverTx) Size() (n int) { 7052 if m == nil { 7053 return 0 7054 } 7055 var l int 7056 _ = l 7057 if m.DeliverTx != nil { 7058 l = m.DeliverTx.Size() 7059 n += 1 + l + sovTypes(uint64(l)) 7060 } 7061 return n 7062 } 7063 func (m *Response_EndBlock) Size() (n int) { 7064 if m == nil { 7065 return 0 7066 } 7067 var l int 7068 _ = l 7069 if m.EndBlock != nil { 7070 l = m.EndBlock.Size() 7071 n += 1 + l + sovTypes(uint64(l)) 7072 } 7073 return n 7074 } 7075 func (m *Response_Commit) Size() (n int) { 7076 if m == nil { 7077 return 0 7078 } 7079 var l int 7080 _ = l 7081 if m.Commit != nil { 7082 l = m.Commit.Size() 7083 n += 1 + l + sovTypes(uint64(l)) 7084 } 7085 return n 7086 } 7087 func (m *Response_ListSnapshots) Size() (n int) { 7088 if m == nil { 7089 return 0 7090 } 7091 var l int 7092 _ = l 7093 if m.ListSnapshots != nil { 7094 l = m.ListSnapshots.Size() 7095 n += 1 + l + sovTypes(uint64(l)) 7096 } 7097 return n 7098 } 7099 func (m *Response_OfferSnapshot) Size() (n int) { 7100 if m == nil { 7101 return 0 7102 } 7103 var l int 7104 _ = l 7105 if m.OfferSnapshot != nil { 7106 l = m.OfferSnapshot.Size() 7107 n += 1 + l + sovTypes(uint64(l)) 7108 } 7109 return n 7110 } 7111 func (m *Response_LoadSnapshotChunk) Size() (n int) { 7112 if m == nil { 7113 return 0 7114 } 7115 var l int 7116 _ = l 7117 if m.LoadSnapshotChunk != nil { 7118 l = m.LoadSnapshotChunk.Size() 7119 n += 1 + l + sovTypes(uint64(l)) 7120 } 7121 return n 7122 } 7123 func (m *Response_ApplySnapshotChunk) Size() (n int) { 7124 if m == nil { 7125 return 0 7126 } 7127 var l int 7128 _ = l 7129 if m.ApplySnapshotChunk != nil { 7130 l = m.ApplySnapshotChunk.Size() 7131 n += 2 + l + sovTypes(uint64(l)) 7132 } 7133 return n 7134 } 7135 func (m *ResponseException) Size() (n int) { 7136 if m == nil { 7137 return 0 7138 } 7139 var l int 7140 _ = l 7141 l = len(m.Error) 7142 if l > 0 { 7143 n += 1 + l + sovTypes(uint64(l)) 7144 } 7145 return n 7146 } 7147 7148 func (m *ResponseEcho) Size() (n int) { 7149 if m == nil { 7150 return 0 7151 } 7152 var l int 7153 _ = l 7154 l = len(m.Message) 7155 if l > 0 { 7156 n += 1 + l + sovTypes(uint64(l)) 7157 } 7158 return n 7159 } 7160 7161 func (m *ResponseFlush) Size() (n int) { 7162 if m == nil { 7163 return 0 7164 } 7165 var l int 7166 _ = l 7167 return n 7168 } 7169 7170 func (m *ResponseInfo) Size() (n int) { 7171 if m == nil { 7172 return 0 7173 } 7174 var l int 7175 _ = l 7176 l = len(m.Data) 7177 if l > 0 { 7178 n += 1 + l + sovTypes(uint64(l)) 7179 } 7180 l = len(m.Version) 7181 if l > 0 { 7182 n += 1 + l + sovTypes(uint64(l)) 7183 } 7184 if m.AppVersion != 0 { 7185 n += 1 + sovTypes(uint64(m.AppVersion)) 7186 } 7187 if m.LastBlockHeight != 0 { 7188 n += 1 + sovTypes(uint64(m.LastBlockHeight)) 7189 } 7190 l = len(m.LastBlockAppHash) 7191 if l > 0 { 7192 n += 1 + l + sovTypes(uint64(l)) 7193 } 7194 return n 7195 } 7196 7197 func (m *ResponseSetOption) Size() (n int) { 7198 if m == nil { 7199 return 0 7200 } 7201 var l int 7202 _ = l 7203 if m.Code != 0 { 7204 n += 1 + sovTypes(uint64(m.Code)) 7205 } 7206 l = len(m.Log) 7207 if l > 0 { 7208 n += 1 + l + sovTypes(uint64(l)) 7209 } 7210 l = len(m.Info) 7211 if l > 0 { 7212 n += 1 + l + sovTypes(uint64(l)) 7213 } 7214 return n 7215 } 7216 7217 func (m *ResponseInitChain) Size() (n int) { 7218 if m == nil { 7219 return 0 7220 } 7221 var l int 7222 _ = l 7223 if m.ConsensusParams != nil { 7224 l = m.ConsensusParams.Size() 7225 n += 1 + l + sovTypes(uint64(l)) 7226 } 7227 if len(m.Validators) > 0 { 7228 for _, e := range m.Validators { 7229 l = e.Size() 7230 n += 1 + l + sovTypes(uint64(l)) 7231 } 7232 } 7233 return n 7234 } 7235 7236 func (m *ResponseQuery) Size() (n int) { 7237 if m == nil { 7238 return 0 7239 } 7240 var l int 7241 _ = l 7242 if m.Code != 0 { 7243 n += 1 + sovTypes(uint64(m.Code)) 7244 } 7245 l = len(m.Log) 7246 if l > 0 { 7247 n += 1 + l + sovTypes(uint64(l)) 7248 } 7249 l = len(m.Info) 7250 if l > 0 { 7251 n += 1 + l + sovTypes(uint64(l)) 7252 } 7253 if m.Index != 0 { 7254 n += 1 + sovTypes(uint64(m.Index)) 7255 } 7256 l = len(m.Key) 7257 if l > 0 { 7258 n += 1 + l + sovTypes(uint64(l)) 7259 } 7260 l = len(m.Value) 7261 if l > 0 { 7262 n += 1 + l + sovTypes(uint64(l)) 7263 } 7264 if m.ProofOps != nil { 7265 l = m.ProofOps.Size() 7266 n += 1 + l + sovTypes(uint64(l)) 7267 } 7268 if m.Height != 0 { 7269 n += 1 + sovTypes(uint64(m.Height)) 7270 } 7271 l = len(m.Codespace) 7272 if l > 0 { 7273 n += 1 + l + sovTypes(uint64(l)) 7274 } 7275 return n 7276 } 7277 7278 func (m *ResponseBeginBlock) Size() (n int) { 7279 if m == nil { 7280 return 0 7281 } 7282 var l int 7283 _ = l 7284 if len(m.Events) > 0 { 7285 for _, e := range m.Events { 7286 l = e.Size() 7287 n += 1 + l + sovTypes(uint64(l)) 7288 } 7289 } 7290 return n 7291 } 7292 7293 func (m *ResponseCheckTx) Size() (n int) { 7294 if m == nil { 7295 return 0 7296 } 7297 var l int 7298 _ = l 7299 if m.Code != 0 { 7300 n += 1 + sovTypes(uint64(m.Code)) 7301 } 7302 l = len(m.Data) 7303 if l > 0 { 7304 n += 1 + l + sovTypes(uint64(l)) 7305 } 7306 l = len(m.Log) 7307 if l > 0 { 7308 n += 1 + l + sovTypes(uint64(l)) 7309 } 7310 l = len(m.Info) 7311 if l > 0 { 7312 n += 1 + l + sovTypes(uint64(l)) 7313 } 7314 if m.GasWanted != 0 { 7315 n += 1 + sovTypes(uint64(m.GasWanted)) 7316 } 7317 if m.GasUsed != 0 { 7318 n += 1 + sovTypes(uint64(m.GasUsed)) 7319 } 7320 if len(m.Events) > 0 { 7321 for _, e := range m.Events { 7322 l = e.Size() 7323 n += 1 + l + sovTypes(uint64(l)) 7324 } 7325 } 7326 l = len(m.Codespace) 7327 if l > 0 { 7328 n += 1 + l + sovTypes(uint64(l)) 7329 } 7330 return n 7331 } 7332 7333 func (m *ResponseDeliverTx) Size() (n int) { 7334 if m == nil { 7335 return 0 7336 } 7337 var l int 7338 _ = l 7339 if m.Code != 0 { 7340 n += 1 + sovTypes(uint64(m.Code)) 7341 } 7342 l = len(m.Data) 7343 if l > 0 { 7344 n += 1 + l + sovTypes(uint64(l)) 7345 } 7346 l = len(m.Log) 7347 if l > 0 { 7348 n += 1 + l + sovTypes(uint64(l)) 7349 } 7350 l = len(m.Info) 7351 if l > 0 { 7352 n += 1 + l + sovTypes(uint64(l)) 7353 } 7354 if m.GasWanted != 0 { 7355 n += 1 + sovTypes(uint64(m.GasWanted)) 7356 } 7357 if m.GasUsed != 0 { 7358 n += 1 + sovTypes(uint64(m.GasUsed)) 7359 } 7360 if len(m.Events) > 0 { 7361 for _, e := range m.Events { 7362 l = e.Size() 7363 n += 1 + l + sovTypes(uint64(l)) 7364 } 7365 } 7366 l = len(m.Codespace) 7367 if l > 0 { 7368 n += 1 + l + sovTypes(uint64(l)) 7369 } 7370 return n 7371 } 7372 7373 func (m *ResponseEndBlock) Size() (n int) { 7374 if m == nil { 7375 return 0 7376 } 7377 var l int 7378 _ = l 7379 if len(m.ValidatorUpdates) > 0 { 7380 for _, e := range m.ValidatorUpdates { 7381 l = e.Size() 7382 n += 1 + l + sovTypes(uint64(l)) 7383 } 7384 } 7385 if m.ConsensusParamUpdates != nil { 7386 l = m.ConsensusParamUpdates.Size() 7387 n += 1 + l + sovTypes(uint64(l)) 7388 } 7389 if len(m.Events) > 0 { 7390 for _, e := range m.Events { 7391 l = e.Size() 7392 n += 1 + l + sovTypes(uint64(l)) 7393 } 7394 } 7395 return n 7396 } 7397 7398 func (m *ResponseCommit) Size() (n int) { 7399 if m == nil { 7400 return 0 7401 } 7402 var l int 7403 _ = l 7404 l = len(m.Data) 7405 if l > 0 { 7406 n += 1 + l + sovTypes(uint64(l)) 7407 } 7408 if m.RetainHeight != 0 { 7409 n += 1 + sovTypes(uint64(m.RetainHeight)) 7410 } 7411 return n 7412 } 7413 7414 func (m *ResponseListSnapshots) Size() (n int) { 7415 if m == nil { 7416 return 0 7417 } 7418 var l int 7419 _ = l 7420 if len(m.Snapshots) > 0 { 7421 for _, e := range m.Snapshots { 7422 l = e.Size() 7423 n += 1 + l + sovTypes(uint64(l)) 7424 } 7425 } 7426 return n 7427 } 7428 7429 func (m *ResponseOfferSnapshot) Size() (n int) { 7430 if m == nil { 7431 return 0 7432 } 7433 var l int 7434 _ = l 7435 if m.Result != 0 { 7436 n += 1 + sovTypes(uint64(m.Result)) 7437 } 7438 return n 7439 } 7440 7441 func (m *ResponseLoadSnapshotChunk) Size() (n int) { 7442 if m == nil { 7443 return 0 7444 } 7445 var l int 7446 _ = l 7447 l = len(m.Chunk) 7448 if l > 0 { 7449 n += 1 + l + sovTypes(uint64(l)) 7450 } 7451 return n 7452 } 7453 7454 func (m *ResponseApplySnapshotChunk) Size() (n int) { 7455 if m == nil { 7456 return 0 7457 } 7458 var l int 7459 _ = l 7460 if m.Result != 0 { 7461 n += 1 + sovTypes(uint64(m.Result)) 7462 } 7463 if len(m.RefetchChunks) > 0 { 7464 l = 0 7465 for _, e := range m.RefetchChunks { 7466 l += sovTypes(uint64(e)) 7467 } 7468 n += 1 + sovTypes(uint64(l)) + l 7469 } 7470 if len(m.RejectSenders) > 0 { 7471 for _, s := range m.RejectSenders { 7472 l = len(s) 7473 n += 1 + l + sovTypes(uint64(l)) 7474 } 7475 } 7476 return n 7477 } 7478 7479 func (m *ConsensusParams) Size() (n int) { 7480 if m == nil { 7481 return 0 7482 } 7483 var l int 7484 _ = l 7485 if m.Block != nil { 7486 l = m.Block.Size() 7487 n += 1 + l + sovTypes(uint64(l)) 7488 } 7489 if m.Evidence != nil { 7490 l = m.Evidence.Size() 7491 n += 1 + l + sovTypes(uint64(l)) 7492 } 7493 if m.Validator != nil { 7494 l = m.Validator.Size() 7495 n += 1 + l + sovTypes(uint64(l)) 7496 } 7497 if m.Version != nil { 7498 l = m.Version.Size() 7499 n += 1 + l + sovTypes(uint64(l)) 7500 } 7501 return n 7502 } 7503 7504 func (m *BlockParams) Size() (n int) { 7505 if m == nil { 7506 return 0 7507 } 7508 var l int 7509 _ = l 7510 if m.MaxBytes != 0 { 7511 n += 1 + sovTypes(uint64(m.MaxBytes)) 7512 } 7513 if m.MaxGas != 0 { 7514 n += 1 + sovTypes(uint64(m.MaxGas)) 7515 } 7516 return n 7517 } 7518 7519 func (m *LastCommitInfo) Size() (n int) { 7520 if m == nil { 7521 return 0 7522 } 7523 var l int 7524 _ = l 7525 if m.Round != 0 { 7526 n += 1 + sovTypes(uint64(m.Round)) 7527 } 7528 if len(m.Votes) > 0 { 7529 for _, e := range m.Votes { 7530 l = e.Size() 7531 n += 1 + l + sovTypes(uint64(l)) 7532 } 7533 } 7534 return n 7535 } 7536 7537 func (m *Event) Size() (n int) { 7538 if m == nil { 7539 return 0 7540 } 7541 var l int 7542 _ = l 7543 l = len(m.Type) 7544 if l > 0 { 7545 n += 1 + l + sovTypes(uint64(l)) 7546 } 7547 if len(m.Attributes) > 0 { 7548 for _, e := range m.Attributes { 7549 l = e.Size() 7550 n += 1 + l + sovTypes(uint64(l)) 7551 } 7552 } 7553 return n 7554 } 7555 7556 func (m *EventAttribute) Size() (n int) { 7557 if m == nil { 7558 return 0 7559 } 7560 var l int 7561 _ = l 7562 l = len(m.Key) 7563 if l > 0 { 7564 n += 1 + l + sovTypes(uint64(l)) 7565 } 7566 l = len(m.Value) 7567 if l > 0 { 7568 n += 1 + l + sovTypes(uint64(l)) 7569 } 7570 if m.Index { 7571 n += 2 7572 } 7573 return n 7574 } 7575 7576 func (m *TxResult) Size() (n int) { 7577 if m == nil { 7578 return 0 7579 } 7580 var l int 7581 _ = l 7582 if m.Height != 0 { 7583 n += 1 + sovTypes(uint64(m.Height)) 7584 } 7585 if m.Index != 0 { 7586 n += 1 + sovTypes(uint64(m.Index)) 7587 } 7588 l = len(m.Tx) 7589 if l > 0 { 7590 n += 1 + l + sovTypes(uint64(l)) 7591 } 7592 l = m.Result.Size() 7593 n += 1 + l + sovTypes(uint64(l)) 7594 return n 7595 } 7596 7597 func (m *Validator) Size() (n int) { 7598 if m == nil { 7599 return 0 7600 } 7601 var l int 7602 _ = l 7603 l = len(m.Address) 7604 if l > 0 { 7605 n += 1 + l + sovTypes(uint64(l)) 7606 } 7607 if m.Power != 0 { 7608 n += 1 + sovTypes(uint64(m.Power)) 7609 } 7610 return n 7611 } 7612 7613 func (m *ValidatorUpdate) Size() (n int) { 7614 if m == nil { 7615 return 0 7616 } 7617 var l int 7618 _ = l 7619 l = m.PubKey.Size() 7620 n += 1 + l + sovTypes(uint64(l)) 7621 if m.Power != 0 { 7622 n += 1 + sovTypes(uint64(m.Power)) 7623 } 7624 return n 7625 } 7626 7627 func (m *VoteInfo) Size() (n int) { 7628 if m == nil { 7629 return 0 7630 } 7631 var l int 7632 _ = l 7633 l = m.Validator.Size() 7634 n += 1 + l + sovTypes(uint64(l)) 7635 if m.SignedLastBlock { 7636 n += 2 7637 } 7638 return n 7639 } 7640 7641 func (m *Evidence) Size() (n int) { 7642 if m == nil { 7643 return 0 7644 } 7645 var l int 7646 _ = l 7647 l = len(m.Type) 7648 if l > 0 { 7649 n += 1 + l + sovTypes(uint64(l)) 7650 } 7651 l = m.Validator.Size() 7652 n += 1 + l + sovTypes(uint64(l)) 7653 if m.Height != 0 { 7654 n += 1 + sovTypes(uint64(m.Height)) 7655 } 7656 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 7657 n += 1 + l + sovTypes(uint64(l)) 7658 if m.TotalVotingPower != 0 { 7659 n += 1 + sovTypes(uint64(m.TotalVotingPower)) 7660 } 7661 return n 7662 } 7663 7664 func (m *Snapshot) Size() (n int) { 7665 if m == nil { 7666 return 0 7667 } 7668 var l int 7669 _ = l 7670 if m.Height != 0 { 7671 n += 1 + sovTypes(uint64(m.Height)) 7672 } 7673 if m.Format != 0 { 7674 n += 1 + sovTypes(uint64(m.Format)) 7675 } 7676 if m.Chunks != 0 { 7677 n += 1 + sovTypes(uint64(m.Chunks)) 7678 } 7679 l = len(m.Hash) 7680 if l > 0 { 7681 n += 1 + l + sovTypes(uint64(l)) 7682 } 7683 l = len(m.Metadata) 7684 if l > 0 { 7685 n += 1 + l + sovTypes(uint64(l)) 7686 } 7687 return n 7688 } 7689 7690 func sovTypes(x uint64) (n int) { 7691 return (math_bits.Len64(x|1) + 6) / 7 7692 } 7693 func sozTypes(x uint64) (n int) { 7694 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 7695 } 7696 func (m *Request) Unmarshal(dAtA []byte) error { 7697 l := len(dAtA) 7698 iNdEx := 0 7699 for iNdEx < l { 7700 preIndex := iNdEx 7701 var wire uint64 7702 for shift := uint(0); ; shift += 7 { 7703 if shift >= 64 { 7704 return ErrIntOverflowTypes 7705 } 7706 if iNdEx >= l { 7707 return io.ErrUnexpectedEOF 7708 } 7709 b := dAtA[iNdEx] 7710 iNdEx++ 7711 wire |= uint64(b&0x7F) << shift 7712 if b < 0x80 { 7713 break 7714 } 7715 } 7716 fieldNum := int32(wire >> 3) 7717 wireType := int(wire & 0x7) 7718 if wireType == 4 { 7719 return fmt.Errorf("proto: Request: wiretype end group for non-group") 7720 } 7721 if fieldNum <= 0 { 7722 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 7723 } 7724 switch fieldNum { 7725 case 1: 7726 if wireType != 2 { 7727 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 7728 } 7729 var msglen int 7730 for shift := uint(0); ; shift += 7 { 7731 if shift >= 64 { 7732 return ErrIntOverflowTypes 7733 } 7734 if iNdEx >= l { 7735 return io.ErrUnexpectedEOF 7736 } 7737 b := dAtA[iNdEx] 7738 iNdEx++ 7739 msglen |= int(b&0x7F) << shift 7740 if b < 0x80 { 7741 break 7742 } 7743 } 7744 if msglen < 0 { 7745 return ErrInvalidLengthTypes 7746 } 7747 postIndex := iNdEx + msglen 7748 if postIndex < 0 { 7749 return ErrInvalidLengthTypes 7750 } 7751 if postIndex > l { 7752 return io.ErrUnexpectedEOF 7753 } 7754 v := &RequestEcho{} 7755 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7756 return err 7757 } 7758 m.Value = &Request_Echo{v} 7759 iNdEx = postIndex 7760 case 2: 7761 if wireType != 2 { 7762 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 7763 } 7764 var msglen int 7765 for shift := uint(0); ; shift += 7 { 7766 if shift >= 64 { 7767 return ErrIntOverflowTypes 7768 } 7769 if iNdEx >= l { 7770 return io.ErrUnexpectedEOF 7771 } 7772 b := dAtA[iNdEx] 7773 iNdEx++ 7774 msglen |= int(b&0x7F) << shift 7775 if b < 0x80 { 7776 break 7777 } 7778 } 7779 if msglen < 0 { 7780 return ErrInvalidLengthTypes 7781 } 7782 postIndex := iNdEx + msglen 7783 if postIndex < 0 { 7784 return ErrInvalidLengthTypes 7785 } 7786 if postIndex > l { 7787 return io.ErrUnexpectedEOF 7788 } 7789 v := &RequestFlush{} 7790 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7791 return err 7792 } 7793 m.Value = &Request_Flush{v} 7794 iNdEx = postIndex 7795 case 3: 7796 if wireType != 2 { 7797 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 7798 } 7799 var msglen int 7800 for shift := uint(0); ; shift += 7 { 7801 if shift >= 64 { 7802 return ErrIntOverflowTypes 7803 } 7804 if iNdEx >= l { 7805 return io.ErrUnexpectedEOF 7806 } 7807 b := dAtA[iNdEx] 7808 iNdEx++ 7809 msglen |= int(b&0x7F) << shift 7810 if b < 0x80 { 7811 break 7812 } 7813 } 7814 if msglen < 0 { 7815 return ErrInvalidLengthTypes 7816 } 7817 postIndex := iNdEx + msglen 7818 if postIndex < 0 { 7819 return ErrInvalidLengthTypes 7820 } 7821 if postIndex > l { 7822 return io.ErrUnexpectedEOF 7823 } 7824 v := &RequestInfo{} 7825 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7826 return err 7827 } 7828 m.Value = &Request_Info{v} 7829 iNdEx = postIndex 7830 case 4: 7831 if wireType != 2 { 7832 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 7833 } 7834 var msglen int 7835 for shift := uint(0); ; shift += 7 { 7836 if shift >= 64 { 7837 return ErrIntOverflowTypes 7838 } 7839 if iNdEx >= l { 7840 return io.ErrUnexpectedEOF 7841 } 7842 b := dAtA[iNdEx] 7843 iNdEx++ 7844 msglen |= int(b&0x7F) << shift 7845 if b < 0x80 { 7846 break 7847 } 7848 } 7849 if msglen < 0 { 7850 return ErrInvalidLengthTypes 7851 } 7852 postIndex := iNdEx + msglen 7853 if postIndex < 0 { 7854 return ErrInvalidLengthTypes 7855 } 7856 if postIndex > l { 7857 return io.ErrUnexpectedEOF 7858 } 7859 v := &RequestSetOption{} 7860 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7861 return err 7862 } 7863 m.Value = &Request_SetOption{v} 7864 iNdEx = postIndex 7865 case 5: 7866 if wireType != 2 { 7867 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 7868 } 7869 var msglen int 7870 for shift := uint(0); ; shift += 7 { 7871 if shift >= 64 { 7872 return ErrIntOverflowTypes 7873 } 7874 if iNdEx >= l { 7875 return io.ErrUnexpectedEOF 7876 } 7877 b := dAtA[iNdEx] 7878 iNdEx++ 7879 msglen |= int(b&0x7F) << shift 7880 if b < 0x80 { 7881 break 7882 } 7883 } 7884 if msglen < 0 { 7885 return ErrInvalidLengthTypes 7886 } 7887 postIndex := iNdEx + msglen 7888 if postIndex < 0 { 7889 return ErrInvalidLengthTypes 7890 } 7891 if postIndex > l { 7892 return io.ErrUnexpectedEOF 7893 } 7894 v := &RequestInitChain{} 7895 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7896 return err 7897 } 7898 m.Value = &Request_InitChain{v} 7899 iNdEx = postIndex 7900 case 6: 7901 if wireType != 2 { 7902 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 7903 } 7904 var msglen int 7905 for shift := uint(0); ; shift += 7 { 7906 if shift >= 64 { 7907 return ErrIntOverflowTypes 7908 } 7909 if iNdEx >= l { 7910 return io.ErrUnexpectedEOF 7911 } 7912 b := dAtA[iNdEx] 7913 iNdEx++ 7914 msglen |= int(b&0x7F) << shift 7915 if b < 0x80 { 7916 break 7917 } 7918 } 7919 if msglen < 0 { 7920 return ErrInvalidLengthTypes 7921 } 7922 postIndex := iNdEx + msglen 7923 if postIndex < 0 { 7924 return ErrInvalidLengthTypes 7925 } 7926 if postIndex > l { 7927 return io.ErrUnexpectedEOF 7928 } 7929 v := &RequestQuery{} 7930 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7931 return err 7932 } 7933 m.Value = &Request_Query{v} 7934 iNdEx = postIndex 7935 case 7: 7936 if wireType != 2 { 7937 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 7938 } 7939 var msglen int 7940 for shift := uint(0); ; shift += 7 { 7941 if shift >= 64 { 7942 return ErrIntOverflowTypes 7943 } 7944 if iNdEx >= l { 7945 return io.ErrUnexpectedEOF 7946 } 7947 b := dAtA[iNdEx] 7948 iNdEx++ 7949 msglen |= int(b&0x7F) << shift 7950 if b < 0x80 { 7951 break 7952 } 7953 } 7954 if msglen < 0 { 7955 return ErrInvalidLengthTypes 7956 } 7957 postIndex := iNdEx + msglen 7958 if postIndex < 0 { 7959 return ErrInvalidLengthTypes 7960 } 7961 if postIndex > l { 7962 return io.ErrUnexpectedEOF 7963 } 7964 v := &RequestBeginBlock{} 7965 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7966 return err 7967 } 7968 m.Value = &Request_BeginBlock{v} 7969 iNdEx = postIndex 7970 case 8: 7971 if wireType != 2 { 7972 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 7973 } 7974 var msglen int 7975 for shift := uint(0); ; shift += 7 { 7976 if shift >= 64 { 7977 return ErrIntOverflowTypes 7978 } 7979 if iNdEx >= l { 7980 return io.ErrUnexpectedEOF 7981 } 7982 b := dAtA[iNdEx] 7983 iNdEx++ 7984 msglen |= int(b&0x7F) << shift 7985 if b < 0x80 { 7986 break 7987 } 7988 } 7989 if msglen < 0 { 7990 return ErrInvalidLengthTypes 7991 } 7992 postIndex := iNdEx + msglen 7993 if postIndex < 0 { 7994 return ErrInvalidLengthTypes 7995 } 7996 if postIndex > l { 7997 return io.ErrUnexpectedEOF 7998 } 7999 v := &RequestCheckTx{} 8000 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8001 return err 8002 } 8003 m.Value = &Request_CheckTx{v} 8004 iNdEx = postIndex 8005 case 9: 8006 if wireType != 2 { 8007 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 8008 } 8009 var msglen int 8010 for shift := uint(0); ; shift += 7 { 8011 if shift >= 64 { 8012 return ErrIntOverflowTypes 8013 } 8014 if iNdEx >= l { 8015 return io.ErrUnexpectedEOF 8016 } 8017 b := dAtA[iNdEx] 8018 iNdEx++ 8019 msglen |= int(b&0x7F) << shift 8020 if b < 0x80 { 8021 break 8022 } 8023 } 8024 if msglen < 0 { 8025 return ErrInvalidLengthTypes 8026 } 8027 postIndex := iNdEx + msglen 8028 if postIndex < 0 { 8029 return ErrInvalidLengthTypes 8030 } 8031 if postIndex > l { 8032 return io.ErrUnexpectedEOF 8033 } 8034 v := &RequestDeliverTx{} 8035 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8036 return err 8037 } 8038 m.Value = &Request_DeliverTx{v} 8039 iNdEx = postIndex 8040 case 10: 8041 if wireType != 2 { 8042 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 8043 } 8044 var msglen int 8045 for shift := uint(0); ; shift += 7 { 8046 if shift >= 64 { 8047 return ErrIntOverflowTypes 8048 } 8049 if iNdEx >= l { 8050 return io.ErrUnexpectedEOF 8051 } 8052 b := dAtA[iNdEx] 8053 iNdEx++ 8054 msglen |= int(b&0x7F) << shift 8055 if b < 0x80 { 8056 break 8057 } 8058 } 8059 if msglen < 0 { 8060 return ErrInvalidLengthTypes 8061 } 8062 postIndex := iNdEx + msglen 8063 if postIndex < 0 { 8064 return ErrInvalidLengthTypes 8065 } 8066 if postIndex > l { 8067 return io.ErrUnexpectedEOF 8068 } 8069 v := &RequestEndBlock{} 8070 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8071 return err 8072 } 8073 m.Value = &Request_EndBlock{v} 8074 iNdEx = postIndex 8075 case 11: 8076 if wireType != 2 { 8077 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 8078 } 8079 var msglen int 8080 for shift := uint(0); ; shift += 7 { 8081 if shift >= 64 { 8082 return ErrIntOverflowTypes 8083 } 8084 if iNdEx >= l { 8085 return io.ErrUnexpectedEOF 8086 } 8087 b := dAtA[iNdEx] 8088 iNdEx++ 8089 msglen |= int(b&0x7F) << shift 8090 if b < 0x80 { 8091 break 8092 } 8093 } 8094 if msglen < 0 { 8095 return ErrInvalidLengthTypes 8096 } 8097 postIndex := iNdEx + msglen 8098 if postIndex < 0 { 8099 return ErrInvalidLengthTypes 8100 } 8101 if postIndex > l { 8102 return io.ErrUnexpectedEOF 8103 } 8104 v := &RequestCommit{} 8105 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8106 return err 8107 } 8108 m.Value = &Request_Commit{v} 8109 iNdEx = postIndex 8110 case 12: 8111 if wireType != 2 { 8112 return fmt.Errorf("proto: wrong wireType = %d for field ListSnapshots", wireType) 8113 } 8114 var msglen int 8115 for shift := uint(0); ; shift += 7 { 8116 if shift >= 64 { 8117 return ErrIntOverflowTypes 8118 } 8119 if iNdEx >= l { 8120 return io.ErrUnexpectedEOF 8121 } 8122 b := dAtA[iNdEx] 8123 iNdEx++ 8124 msglen |= int(b&0x7F) << shift 8125 if b < 0x80 { 8126 break 8127 } 8128 } 8129 if msglen < 0 { 8130 return ErrInvalidLengthTypes 8131 } 8132 postIndex := iNdEx + msglen 8133 if postIndex < 0 { 8134 return ErrInvalidLengthTypes 8135 } 8136 if postIndex > l { 8137 return io.ErrUnexpectedEOF 8138 } 8139 v := &RequestListSnapshots{} 8140 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8141 return err 8142 } 8143 m.Value = &Request_ListSnapshots{v} 8144 iNdEx = postIndex 8145 case 13: 8146 if wireType != 2 { 8147 return fmt.Errorf("proto: wrong wireType = %d for field OfferSnapshot", wireType) 8148 } 8149 var msglen int 8150 for shift := uint(0); ; shift += 7 { 8151 if shift >= 64 { 8152 return ErrIntOverflowTypes 8153 } 8154 if iNdEx >= l { 8155 return io.ErrUnexpectedEOF 8156 } 8157 b := dAtA[iNdEx] 8158 iNdEx++ 8159 msglen |= int(b&0x7F) << shift 8160 if b < 0x80 { 8161 break 8162 } 8163 } 8164 if msglen < 0 { 8165 return ErrInvalidLengthTypes 8166 } 8167 postIndex := iNdEx + msglen 8168 if postIndex < 0 { 8169 return ErrInvalidLengthTypes 8170 } 8171 if postIndex > l { 8172 return io.ErrUnexpectedEOF 8173 } 8174 v := &RequestOfferSnapshot{} 8175 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8176 return err 8177 } 8178 m.Value = &Request_OfferSnapshot{v} 8179 iNdEx = postIndex 8180 case 14: 8181 if wireType != 2 { 8182 return fmt.Errorf("proto: wrong wireType = %d for field LoadSnapshotChunk", wireType) 8183 } 8184 var msglen int 8185 for shift := uint(0); ; shift += 7 { 8186 if shift >= 64 { 8187 return ErrIntOverflowTypes 8188 } 8189 if iNdEx >= l { 8190 return io.ErrUnexpectedEOF 8191 } 8192 b := dAtA[iNdEx] 8193 iNdEx++ 8194 msglen |= int(b&0x7F) << shift 8195 if b < 0x80 { 8196 break 8197 } 8198 } 8199 if msglen < 0 { 8200 return ErrInvalidLengthTypes 8201 } 8202 postIndex := iNdEx + msglen 8203 if postIndex < 0 { 8204 return ErrInvalidLengthTypes 8205 } 8206 if postIndex > l { 8207 return io.ErrUnexpectedEOF 8208 } 8209 v := &RequestLoadSnapshotChunk{} 8210 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8211 return err 8212 } 8213 m.Value = &Request_LoadSnapshotChunk{v} 8214 iNdEx = postIndex 8215 case 15: 8216 if wireType != 2 { 8217 return fmt.Errorf("proto: wrong wireType = %d for field ApplySnapshotChunk", wireType) 8218 } 8219 var msglen int 8220 for shift := uint(0); ; shift += 7 { 8221 if shift >= 64 { 8222 return ErrIntOverflowTypes 8223 } 8224 if iNdEx >= l { 8225 return io.ErrUnexpectedEOF 8226 } 8227 b := dAtA[iNdEx] 8228 iNdEx++ 8229 msglen |= int(b&0x7F) << shift 8230 if b < 0x80 { 8231 break 8232 } 8233 } 8234 if msglen < 0 { 8235 return ErrInvalidLengthTypes 8236 } 8237 postIndex := iNdEx + msglen 8238 if postIndex < 0 { 8239 return ErrInvalidLengthTypes 8240 } 8241 if postIndex > l { 8242 return io.ErrUnexpectedEOF 8243 } 8244 v := &RequestApplySnapshotChunk{} 8245 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8246 return err 8247 } 8248 m.Value = &Request_ApplySnapshotChunk{v} 8249 iNdEx = postIndex 8250 default: 8251 iNdEx = preIndex 8252 skippy, err := skipTypes(dAtA[iNdEx:]) 8253 if err != nil { 8254 return err 8255 } 8256 if skippy < 0 { 8257 return ErrInvalidLengthTypes 8258 } 8259 if (iNdEx + skippy) < 0 { 8260 return ErrInvalidLengthTypes 8261 } 8262 if (iNdEx + skippy) > l { 8263 return io.ErrUnexpectedEOF 8264 } 8265 iNdEx += skippy 8266 } 8267 } 8268 8269 if iNdEx > l { 8270 return io.ErrUnexpectedEOF 8271 } 8272 return nil 8273 } 8274 func (m *RequestEcho) Unmarshal(dAtA []byte) error { 8275 l := len(dAtA) 8276 iNdEx := 0 8277 for iNdEx < l { 8278 preIndex := iNdEx 8279 var wire uint64 8280 for shift := uint(0); ; shift += 7 { 8281 if shift >= 64 { 8282 return ErrIntOverflowTypes 8283 } 8284 if iNdEx >= l { 8285 return io.ErrUnexpectedEOF 8286 } 8287 b := dAtA[iNdEx] 8288 iNdEx++ 8289 wire |= uint64(b&0x7F) << shift 8290 if b < 0x80 { 8291 break 8292 } 8293 } 8294 fieldNum := int32(wire >> 3) 8295 wireType := int(wire & 0x7) 8296 if wireType == 4 { 8297 return fmt.Errorf("proto: RequestEcho: wiretype end group for non-group") 8298 } 8299 if fieldNum <= 0 { 8300 return fmt.Errorf("proto: RequestEcho: illegal tag %d (wire type %d)", fieldNum, wire) 8301 } 8302 switch fieldNum { 8303 case 1: 8304 if wireType != 2 { 8305 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 8306 } 8307 var stringLen uint64 8308 for shift := uint(0); ; shift += 7 { 8309 if shift >= 64 { 8310 return ErrIntOverflowTypes 8311 } 8312 if iNdEx >= l { 8313 return io.ErrUnexpectedEOF 8314 } 8315 b := dAtA[iNdEx] 8316 iNdEx++ 8317 stringLen |= uint64(b&0x7F) << shift 8318 if b < 0x80 { 8319 break 8320 } 8321 } 8322 intStringLen := int(stringLen) 8323 if intStringLen < 0 { 8324 return ErrInvalidLengthTypes 8325 } 8326 postIndex := iNdEx + intStringLen 8327 if postIndex < 0 { 8328 return ErrInvalidLengthTypes 8329 } 8330 if postIndex > l { 8331 return io.ErrUnexpectedEOF 8332 } 8333 m.Message = string(dAtA[iNdEx:postIndex]) 8334 iNdEx = postIndex 8335 default: 8336 iNdEx = preIndex 8337 skippy, err := skipTypes(dAtA[iNdEx:]) 8338 if err != nil { 8339 return err 8340 } 8341 if skippy < 0 { 8342 return ErrInvalidLengthTypes 8343 } 8344 if (iNdEx + skippy) < 0 { 8345 return ErrInvalidLengthTypes 8346 } 8347 if (iNdEx + skippy) > l { 8348 return io.ErrUnexpectedEOF 8349 } 8350 iNdEx += skippy 8351 } 8352 } 8353 8354 if iNdEx > l { 8355 return io.ErrUnexpectedEOF 8356 } 8357 return nil 8358 } 8359 func (m *RequestFlush) Unmarshal(dAtA []byte) error { 8360 l := len(dAtA) 8361 iNdEx := 0 8362 for iNdEx < l { 8363 preIndex := iNdEx 8364 var wire uint64 8365 for shift := uint(0); ; shift += 7 { 8366 if shift >= 64 { 8367 return ErrIntOverflowTypes 8368 } 8369 if iNdEx >= l { 8370 return io.ErrUnexpectedEOF 8371 } 8372 b := dAtA[iNdEx] 8373 iNdEx++ 8374 wire |= uint64(b&0x7F) << shift 8375 if b < 0x80 { 8376 break 8377 } 8378 } 8379 fieldNum := int32(wire >> 3) 8380 wireType := int(wire & 0x7) 8381 if wireType == 4 { 8382 return fmt.Errorf("proto: RequestFlush: wiretype end group for non-group") 8383 } 8384 if fieldNum <= 0 { 8385 return fmt.Errorf("proto: RequestFlush: illegal tag %d (wire type %d)", fieldNum, wire) 8386 } 8387 switch fieldNum { 8388 default: 8389 iNdEx = preIndex 8390 skippy, err := skipTypes(dAtA[iNdEx:]) 8391 if err != nil { 8392 return err 8393 } 8394 if skippy < 0 { 8395 return ErrInvalidLengthTypes 8396 } 8397 if (iNdEx + skippy) < 0 { 8398 return ErrInvalidLengthTypes 8399 } 8400 if (iNdEx + skippy) > l { 8401 return io.ErrUnexpectedEOF 8402 } 8403 iNdEx += skippy 8404 } 8405 } 8406 8407 if iNdEx > l { 8408 return io.ErrUnexpectedEOF 8409 } 8410 return nil 8411 } 8412 func (m *RequestInfo) Unmarshal(dAtA []byte) error { 8413 l := len(dAtA) 8414 iNdEx := 0 8415 for iNdEx < l { 8416 preIndex := iNdEx 8417 var wire uint64 8418 for shift := uint(0); ; shift += 7 { 8419 if shift >= 64 { 8420 return ErrIntOverflowTypes 8421 } 8422 if iNdEx >= l { 8423 return io.ErrUnexpectedEOF 8424 } 8425 b := dAtA[iNdEx] 8426 iNdEx++ 8427 wire |= uint64(b&0x7F) << shift 8428 if b < 0x80 { 8429 break 8430 } 8431 } 8432 fieldNum := int32(wire >> 3) 8433 wireType := int(wire & 0x7) 8434 if wireType == 4 { 8435 return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group") 8436 } 8437 if fieldNum <= 0 { 8438 return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire) 8439 } 8440 switch fieldNum { 8441 case 1: 8442 if wireType != 2 { 8443 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 8444 } 8445 var stringLen uint64 8446 for shift := uint(0); ; shift += 7 { 8447 if shift >= 64 { 8448 return ErrIntOverflowTypes 8449 } 8450 if iNdEx >= l { 8451 return io.ErrUnexpectedEOF 8452 } 8453 b := dAtA[iNdEx] 8454 iNdEx++ 8455 stringLen |= uint64(b&0x7F) << shift 8456 if b < 0x80 { 8457 break 8458 } 8459 } 8460 intStringLen := int(stringLen) 8461 if intStringLen < 0 { 8462 return ErrInvalidLengthTypes 8463 } 8464 postIndex := iNdEx + intStringLen 8465 if postIndex < 0 { 8466 return ErrInvalidLengthTypes 8467 } 8468 if postIndex > l { 8469 return io.ErrUnexpectedEOF 8470 } 8471 m.Version = string(dAtA[iNdEx:postIndex]) 8472 iNdEx = postIndex 8473 case 2: 8474 if wireType != 0 { 8475 return fmt.Errorf("proto: wrong wireType = %d for field BlockVersion", wireType) 8476 } 8477 m.BlockVersion = 0 8478 for shift := uint(0); ; shift += 7 { 8479 if shift >= 64 { 8480 return ErrIntOverflowTypes 8481 } 8482 if iNdEx >= l { 8483 return io.ErrUnexpectedEOF 8484 } 8485 b := dAtA[iNdEx] 8486 iNdEx++ 8487 m.BlockVersion |= uint64(b&0x7F) << shift 8488 if b < 0x80 { 8489 break 8490 } 8491 } 8492 case 3: 8493 if wireType != 0 { 8494 return fmt.Errorf("proto: wrong wireType = %d for field P2PVersion", wireType) 8495 } 8496 m.P2PVersion = 0 8497 for shift := uint(0); ; shift += 7 { 8498 if shift >= 64 { 8499 return ErrIntOverflowTypes 8500 } 8501 if iNdEx >= l { 8502 return io.ErrUnexpectedEOF 8503 } 8504 b := dAtA[iNdEx] 8505 iNdEx++ 8506 m.P2PVersion |= uint64(b&0x7F) << shift 8507 if b < 0x80 { 8508 break 8509 } 8510 } 8511 default: 8512 iNdEx = preIndex 8513 skippy, err := skipTypes(dAtA[iNdEx:]) 8514 if err != nil { 8515 return err 8516 } 8517 if skippy < 0 { 8518 return ErrInvalidLengthTypes 8519 } 8520 if (iNdEx + skippy) < 0 { 8521 return ErrInvalidLengthTypes 8522 } 8523 if (iNdEx + skippy) > l { 8524 return io.ErrUnexpectedEOF 8525 } 8526 iNdEx += skippy 8527 } 8528 } 8529 8530 if iNdEx > l { 8531 return io.ErrUnexpectedEOF 8532 } 8533 return nil 8534 } 8535 func (m *RequestSetOption) Unmarshal(dAtA []byte) error { 8536 l := len(dAtA) 8537 iNdEx := 0 8538 for iNdEx < l { 8539 preIndex := iNdEx 8540 var wire uint64 8541 for shift := uint(0); ; shift += 7 { 8542 if shift >= 64 { 8543 return ErrIntOverflowTypes 8544 } 8545 if iNdEx >= l { 8546 return io.ErrUnexpectedEOF 8547 } 8548 b := dAtA[iNdEx] 8549 iNdEx++ 8550 wire |= uint64(b&0x7F) << shift 8551 if b < 0x80 { 8552 break 8553 } 8554 } 8555 fieldNum := int32(wire >> 3) 8556 wireType := int(wire & 0x7) 8557 if wireType == 4 { 8558 return fmt.Errorf("proto: RequestSetOption: wiretype end group for non-group") 8559 } 8560 if fieldNum <= 0 { 8561 return fmt.Errorf("proto: RequestSetOption: illegal tag %d (wire type %d)", fieldNum, wire) 8562 } 8563 switch fieldNum { 8564 case 1: 8565 if wireType != 2 { 8566 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 8567 } 8568 var stringLen uint64 8569 for shift := uint(0); ; shift += 7 { 8570 if shift >= 64 { 8571 return ErrIntOverflowTypes 8572 } 8573 if iNdEx >= l { 8574 return io.ErrUnexpectedEOF 8575 } 8576 b := dAtA[iNdEx] 8577 iNdEx++ 8578 stringLen |= uint64(b&0x7F) << shift 8579 if b < 0x80 { 8580 break 8581 } 8582 } 8583 intStringLen := int(stringLen) 8584 if intStringLen < 0 { 8585 return ErrInvalidLengthTypes 8586 } 8587 postIndex := iNdEx + intStringLen 8588 if postIndex < 0 { 8589 return ErrInvalidLengthTypes 8590 } 8591 if postIndex > l { 8592 return io.ErrUnexpectedEOF 8593 } 8594 m.Key = string(dAtA[iNdEx:postIndex]) 8595 iNdEx = postIndex 8596 case 2: 8597 if wireType != 2 { 8598 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 8599 } 8600 var stringLen uint64 8601 for shift := uint(0); ; shift += 7 { 8602 if shift >= 64 { 8603 return ErrIntOverflowTypes 8604 } 8605 if iNdEx >= l { 8606 return io.ErrUnexpectedEOF 8607 } 8608 b := dAtA[iNdEx] 8609 iNdEx++ 8610 stringLen |= uint64(b&0x7F) << shift 8611 if b < 0x80 { 8612 break 8613 } 8614 } 8615 intStringLen := int(stringLen) 8616 if intStringLen < 0 { 8617 return ErrInvalidLengthTypes 8618 } 8619 postIndex := iNdEx + intStringLen 8620 if postIndex < 0 { 8621 return ErrInvalidLengthTypes 8622 } 8623 if postIndex > l { 8624 return io.ErrUnexpectedEOF 8625 } 8626 m.Value = string(dAtA[iNdEx:postIndex]) 8627 iNdEx = postIndex 8628 default: 8629 iNdEx = preIndex 8630 skippy, err := skipTypes(dAtA[iNdEx:]) 8631 if err != nil { 8632 return err 8633 } 8634 if skippy < 0 { 8635 return ErrInvalidLengthTypes 8636 } 8637 if (iNdEx + skippy) < 0 { 8638 return ErrInvalidLengthTypes 8639 } 8640 if (iNdEx + skippy) > l { 8641 return io.ErrUnexpectedEOF 8642 } 8643 iNdEx += skippy 8644 } 8645 } 8646 8647 if iNdEx > l { 8648 return io.ErrUnexpectedEOF 8649 } 8650 return nil 8651 } 8652 func (m *RequestInitChain) Unmarshal(dAtA []byte) error { 8653 l := len(dAtA) 8654 iNdEx := 0 8655 for iNdEx < l { 8656 preIndex := iNdEx 8657 var wire uint64 8658 for shift := uint(0); ; shift += 7 { 8659 if shift >= 64 { 8660 return ErrIntOverflowTypes 8661 } 8662 if iNdEx >= l { 8663 return io.ErrUnexpectedEOF 8664 } 8665 b := dAtA[iNdEx] 8666 iNdEx++ 8667 wire |= uint64(b&0x7F) << shift 8668 if b < 0x80 { 8669 break 8670 } 8671 } 8672 fieldNum := int32(wire >> 3) 8673 wireType := int(wire & 0x7) 8674 if wireType == 4 { 8675 return fmt.Errorf("proto: RequestInitChain: wiretype end group for non-group") 8676 } 8677 if fieldNum <= 0 { 8678 return fmt.Errorf("proto: RequestInitChain: illegal tag %d (wire type %d)", fieldNum, wire) 8679 } 8680 switch fieldNum { 8681 case 1: 8682 if wireType != 2 { 8683 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 8684 } 8685 var msglen int 8686 for shift := uint(0); ; shift += 7 { 8687 if shift >= 64 { 8688 return ErrIntOverflowTypes 8689 } 8690 if iNdEx >= l { 8691 return io.ErrUnexpectedEOF 8692 } 8693 b := dAtA[iNdEx] 8694 iNdEx++ 8695 msglen |= int(b&0x7F) << shift 8696 if b < 0x80 { 8697 break 8698 } 8699 } 8700 if msglen < 0 { 8701 return ErrInvalidLengthTypes 8702 } 8703 postIndex := iNdEx + msglen 8704 if postIndex < 0 { 8705 return ErrInvalidLengthTypes 8706 } 8707 if postIndex > l { 8708 return io.ErrUnexpectedEOF 8709 } 8710 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 8711 return err 8712 } 8713 iNdEx = postIndex 8714 case 2: 8715 if wireType != 2 { 8716 return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) 8717 } 8718 var stringLen uint64 8719 for shift := uint(0); ; shift += 7 { 8720 if shift >= 64 { 8721 return ErrIntOverflowTypes 8722 } 8723 if iNdEx >= l { 8724 return io.ErrUnexpectedEOF 8725 } 8726 b := dAtA[iNdEx] 8727 iNdEx++ 8728 stringLen |= uint64(b&0x7F) << shift 8729 if b < 0x80 { 8730 break 8731 } 8732 } 8733 intStringLen := int(stringLen) 8734 if intStringLen < 0 { 8735 return ErrInvalidLengthTypes 8736 } 8737 postIndex := iNdEx + intStringLen 8738 if postIndex < 0 { 8739 return ErrInvalidLengthTypes 8740 } 8741 if postIndex > l { 8742 return io.ErrUnexpectedEOF 8743 } 8744 m.ChainId = string(dAtA[iNdEx:postIndex]) 8745 iNdEx = postIndex 8746 case 3: 8747 if wireType != 2 { 8748 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) 8749 } 8750 var msglen int 8751 for shift := uint(0); ; shift += 7 { 8752 if shift >= 64 { 8753 return ErrIntOverflowTypes 8754 } 8755 if iNdEx >= l { 8756 return io.ErrUnexpectedEOF 8757 } 8758 b := dAtA[iNdEx] 8759 iNdEx++ 8760 msglen |= int(b&0x7F) << shift 8761 if b < 0x80 { 8762 break 8763 } 8764 } 8765 if msglen < 0 { 8766 return ErrInvalidLengthTypes 8767 } 8768 postIndex := iNdEx + msglen 8769 if postIndex < 0 { 8770 return ErrInvalidLengthTypes 8771 } 8772 if postIndex > l { 8773 return io.ErrUnexpectedEOF 8774 } 8775 if m.ConsensusParams == nil { 8776 m.ConsensusParams = &ConsensusParams{} 8777 } 8778 if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8779 return err 8780 } 8781 iNdEx = postIndex 8782 case 4: 8783 if wireType != 2 { 8784 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 8785 } 8786 var msglen int 8787 for shift := uint(0); ; shift += 7 { 8788 if shift >= 64 { 8789 return ErrIntOverflowTypes 8790 } 8791 if iNdEx >= l { 8792 return io.ErrUnexpectedEOF 8793 } 8794 b := dAtA[iNdEx] 8795 iNdEx++ 8796 msglen |= int(b&0x7F) << shift 8797 if b < 0x80 { 8798 break 8799 } 8800 } 8801 if msglen < 0 { 8802 return ErrInvalidLengthTypes 8803 } 8804 postIndex := iNdEx + msglen 8805 if postIndex < 0 { 8806 return ErrInvalidLengthTypes 8807 } 8808 if postIndex > l { 8809 return io.ErrUnexpectedEOF 8810 } 8811 m.Validators = append(m.Validators, ValidatorUpdate{}) 8812 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8813 return err 8814 } 8815 iNdEx = postIndex 8816 case 5: 8817 if wireType != 2 { 8818 return fmt.Errorf("proto: wrong wireType = %d for field AppStateBytes", wireType) 8819 } 8820 var byteLen int 8821 for shift := uint(0); ; shift += 7 { 8822 if shift >= 64 { 8823 return ErrIntOverflowTypes 8824 } 8825 if iNdEx >= l { 8826 return io.ErrUnexpectedEOF 8827 } 8828 b := dAtA[iNdEx] 8829 iNdEx++ 8830 byteLen |= int(b&0x7F) << shift 8831 if b < 0x80 { 8832 break 8833 } 8834 } 8835 if byteLen < 0 { 8836 return ErrInvalidLengthTypes 8837 } 8838 postIndex := iNdEx + byteLen 8839 if postIndex < 0 { 8840 return ErrInvalidLengthTypes 8841 } 8842 if postIndex > l { 8843 return io.ErrUnexpectedEOF 8844 } 8845 m.AppStateBytes = append(m.AppStateBytes[:0], dAtA[iNdEx:postIndex]...) 8846 if m.AppStateBytes == nil { 8847 m.AppStateBytes = []byte{} 8848 } 8849 iNdEx = postIndex 8850 default: 8851 iNdEx = preIndex 8852 skippy, err := skipTypes(dAtA[iNdEx:]) 8853 if err != nil { 8854 return err 8855 } 8856 if skippy < 0 { 8857 return ErrInvalidLengthTypes 8858 } 8859 if (iNdEx + skippy) < 0 { 8860 return ErrInvalidLengthTypes 8861 } 8862 if (iNdEx + skippy) > l { 8863 return io.ErrUnexpectedEOF 8864 } 8865 iNdEx += skippy 8866 } 8867 } 8868 8869 if iNdEx > l { 8870 return io.ErrUnexpectedEOF 8871 } 8872 return nil 8873 } 8874 func (m *RequestQuery) Unmarshal(dAtA []byte) error { 8875 l := len(dAtA) 8876 iNdEx := 0 8877 for iNdEx < l { 8878 preIndex := iNdEx 8879 var wire uint64 8880 for shift := uint(0); ; shift += 7 { 8881 if shift >= 64 { 8882 return ErrIntOverflowTypes 8883 } 8884 if iNdEx >= l { 8885 return io.ErrUnexpectedEOF 8886 } 8887 b := dAtA[iNdEx] 8888 iNdEx++ 8889 wire |= uint64(b&0x7F) << shift 8890 if b < 0x80 { 8891 break 8892 } 8893 } 8894 fieldNum := int32(wire >> 3) 8895 wireType := int(wire & 0x7) 8896 if wireType == 4 { 8897 return fmt.Errorf("proto: RequestQuery: wiretype end group for non-group") 8898 } 8899 if fieldNum <= 0 { 8900 return fmt.Errorf("proto: RequestQuery: illegal tag %d (wire type %d)", fieldNum, wire) 8901 } 8902 switch fieldNum { 8903 case 1: 8904 if wireType != 2 { 8905 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 8906 } 8907 var byteLen int 8908 for shift := uint(0); ; shift += 7 { 8909 if shift >= 64 { 8910 return ErrIntOverflowTypes 8911 } 8912 if iNdEx >= l { 8913 return io.ErrUnexpectedEOF 8914 } 8915 b := dAtA[iNdEx] 8916 iNdEx++ 8917 byteLen |= int(b&0x7F) << shift 8918 if b < 0x80 { 8919 break 8920 } 8921 } 8922 if byteLen < 0 { 8923 return ErrInvalidLengthTypes 8924 } 8925 postIndex := iNdEx + byteLen 8926 if postIndex < 0 { 8927 return ErrInvalidLengthTypes 8928 } 8929 if postIndex > l { 8930 return io.ErrUnexpectedEOF 8931 } 8932 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 8933 if m.Data == nil { 8934 m.Data = []byte{} 8935 } 8936 iNdEx = postIndex 8937 case 2: 8938 if wireType != 2 { 8939 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 8940 } 8941 var stringLen uint64 8942 for shift := uint(0); ; shift += 7 { 8943 if shift >= 64 { 8944 return ErrIntOverflowTypes 8945 } 8946 if iNdEx >= l { 8947 return io.ErrUnexpectedEOF 8948 } 8949 b := dAtA[iNdEx] 8950 iNdEx++ 8951 stringLen |= uint64(b&0x7F) << shift 8952 if b < 0x80 { 8953 break 8954 } 8955 } 8956 intStringLen := int(stringLen) 8957 if intStringLen < 0 { 8958 return ErrInvalidLengthTypes 8959 } 8960 postIndex := iNdEx + intStringLen 8961 if postIndex < 0 { 8962 return ErrInvalidLengthTypes 8963 } 8964 if postIndex > l { 8965 return io.ErrUnexpectedEOF 8966 } 8967 m.Path = string(dAtA[iNdEx:postIndex]) 8968 iNdEx = postIndex 8969 case 3: 8970 if wireType != 0 { 8971 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 8972 } 8973 m.Height = 0 8974 for shift := uint(0); ; shift += 7 { 8975 if shift >= 64 { 8976 return ErrIntOverflowTypes 8977 } 8978 if iNdEx >= l { 8979 return io.ErrUnexpectedEOF 8980 } 8981 b := dAtA[iNdEx] 8982 iNdEx++ 8983 m.Height |= int64(b&0x7F) << shift 8984 if b < 0x80 { 8985 break 8986 } 8987 } 8988 case 4: 8989 if wireType != 0 { 8990 return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType) 8991 } 8992 var v int 8993 for shift := uint(0); ; shift += 7 { 8994 if shift >= 64 { 8995 return ErrIntOverflowTypes 8996 } 8997 if iNdEx >= l { 8998 return io.ErrUnexpectedEOF 8999 } 9000 b := dAtA[iNdEx] 9001 iNdEx++ 9002 v |= int(b&0x7F) << shift 9003 if b < 0x80 { 9004 break 9005 } 9006 } 9007 m.Prove = bool(v != 0) 9008 default: 9009 iNdEx = preIndex 9010 skippy, err := skipTypes(dAtA[iNdEx:]) 9011 if err != nil { 9012 return err 9013 } 9014 if skippy < 0 { 9015 return ErrInvalidLengthTypes 9016 } 9017 if (iNdEx + skippy) < 0 { 9018 return ErrInvalidLengthTypes 9019 } 9020 if (iNdEx + skippy) > l { 9021 return io.ErrUnexpectedEOF 9022 } 9023 iNdEx += skippy 9024 } 9025 } 9026 9027 if iNdEx > l { 9028 return io.ErrUnexpectedEOF 9029 } 9030 return nil 9031 } 9032 func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error { 9033 l := len(dAtA) 9034 iNdEx := 0 9035 for iNdEx < l { 9036 preIndex := iNdEx 9037 var wire uint64 9038 for shift := uint(0); ; shift += 7 { 9039 if shift >= 64 { 9040 return ErrIntOverflowTypes 9041 } 9042 if iNdEx >= l { 9043 return io.ErrUnexpectedEOF 9044 } 9045 b := dAtA[iNdEx] 9046 iNdEx++ 9047 wire |= uint64(b&0x7F) << shift 9048 if b < 0x80 { 9049 break 9050 } 9051 } 9052 fieldNum := int32(wire >> 3) 9053 wireType := int(wire & 0x7) 9054 if wireType == 4 { 9055 return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group") 9056 } 9057 if fieldNum <= 0 { 9058 return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 9059 } 9060 switch fieldNum { 9061 case 1: 9062 if wireType != 2 { 9063 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 9064 } 9065 var byteLen int 9066 for shift := uint(0); ; shift += 7 { 9067 if shift >= 64 { 9068 return ErrIntOverflowTypes 9069 } 9070 if iNdEx >= l { 9071 return io.ErrUnexpectedEOF 9072 } 9073 b := dAtA[iNdEx] 9074 iNdEx++ 9075 byteLen |= int(b&0x7F) << shift 9076 if b < 0x80 { 9077 break 9078 } 9079 } 9080 if byteLen < 0 { 9081 return ErrInvalidLengthTypes 9082 } 9083 postIndex := iNdEx + byteLen 9084 if postIndex < 0 { 9085 return ErrInvalidLengthTypes 9086 } 9087 if postIndex > l { 9088 return io.ErrUnexpectedEOF 9089 } 9090 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 9091 if m.Hash == nil { 9092 m.Hash = []byte{} 9093 } 9094 iNdEx = postIndex 9095 case 2: 9096 if wireType != 2 { 9097 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 9098 } 9099 var msglen int 9100 for shift := uint(0); ; shift += 7 { 9101 if shift >= 64 { 9102 return ErrIntOverflowTypes 9103 } 9104 if iNdEx >= l { 9105 return io.ErrUnexpectedEOF 9106 } 9107 b := dAtA[iNdEx] 9108 iNdEx++ 9109 msglen |= int(b&0x7F) << shift 9110 if b < 0x80 { 9111 break 9112 } 9113 } 9114 if msglen < 0 { 9115 return ErrInvalidLengthTypes 9116 } 9117 postIndex := iNdEx + msglen 9118 if postIndex < 0 { 9119 return ErrInvalidLengthTypes 9120 } 9121 if postIndex > l { 9122 return io.ErrUnexpectedEOF 9123 } 9124 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9125 return err 9126 } 9127 iNdEx = postIndex 9128 case 3: 9129 if wireType != 2 { 9130 return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType) 9131 } 9132 var msglen int 9133 for shift := uint(0); ; shift += 7 { 9134 if shift >= 64 { 9135 return ErrIntOverflowTypes 9136 } 9137 if iNdEx >= l { 9138 return io.ErrUnexpectedEOF 9139 } 9140 b := dAtA[iNdEx] 9141 iNdEx++ 9142 msglen |= int(b&0x7F) << shift 9143 if b < 0x80 { 9144 break 9145 } 9146 } 9147 if msglen < 0 { 9148 return ErrInvalidLengthTypes 9149 } 9150 postIndex := iNdEx + msglen 9151 if postIndex < 0 { 9152 return ErrInvalidLengthTypes 9153 } 9154 if postIndex > l { 9155 return io.ErrUnexpectedEOF 9156 } 9157 if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9158 return err 9159 } 9160 iNdEx = postIndex 9161 case 4: 9162 if wireType != 2 { 9163 return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType) 9164 } 9165 var msglen int 9166 for shift := uint(0); ; shift += 7 { 9167 if shift >= 64 { 9168 return ErrIntOverflowTypes 9169 } 9170 if iNdEx >= l { 9171 return io.ErrUnexpectedEOF 9172 } 9173 b := dAtA[iNdEx] 9174 iNdEx++ 9175 msglen |= int(b&0x7F) << shift 9176 if b < 0x80 { 9177 break 9178 } 9179 } 9180 if msglen < 0 { 9181 return ErrInvalidLengthTypes 9182 } 9183 postIndex := iNdEx + msglen 9184 if postIndex < 0 { 9185 return ErrInvalidLengthTypes 9186 } 9187 if postIndex > l { 9188 return io.ErrUnexpectedEOF 9189 } 9190 m.ByzantineValidators = append(m.ByzantineValidators, Evidence{}) 9191 if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9192 return err 9193 } 9194 iNdEx = postIndex 9195 default: 9196 iNdEx = preIndex 9197 skippy, err := skipTypes(dAtA[iNdEx:]) 9198 if err != nil { 9199 return err 9200 } 9201 if skippy < 0 { 9202 return ErrInvalidLengthTypes 9203 } 9204 if (iNdEx + skippy) < 0 { 9205 return ErrInvalidLengthTypes 9206 } 9207 if (iNdEx + skippy) > l { 9208 return io.ErrUnexpectedEOF 9209 } 9210 iNdEx += skippy 9211 } 9212 } 9213 9214 if iNdEx > l { 9215 return io.ErrUnexpectedEOF 9216 } 9217 return nil 9218 } 9219 func (m *RequestCheckTx) Unmarshal(dAtA []byte) error { 9220 l := len(dAtA) 9221 iNdEx := 0 9222 for iNdEx < l { 9223 preIndex := iNdEx 9224 var wire uint64 9225 for shift := uint(0); ; shift += 7 { 9226 if shift >= 64 { 9227 return ErrIntOverflowTypes 9228 } 9229 if iNdEx >= l { 9230 return io.ErrUnexpectedEOF 9231 } 9232 b := dAtA[iNdEx] 9233 iNdEx++ 9234 wire |= uint64(b&0x7F) << shift 9235 if b < 0x80 { 9236 break 9237 } 9238 } 9239 fieldNum := int32(wire >> 3) 9240 wireType := int(wire & 0x7) 9241 if wireType == 4 { 9242 return fmt.Errorf("proto: RequestCheckTx: wiretype end group for non-group") 9243 } 9244 if fieldNum <= 0 { 9245 return fmt.Errorf("proto: RequestCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 9246 } 9247 switch fieldNum { 9248 case 1: 9249 if wireType != 2 { 9250 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 9251 } 9252 var byteLen int 9253 for shift := uint(0); ; shift += 7 { 9254 if shift >= 64 { 9255 return ErrIntOverflowTypes 9256 } 9257 if iNdEx >= l { 9258 return io.ErrUnexpectedEOF 9259 } 9260 b := dAtA[iNdEx] 9261 iNdEx++ 9262 byteLen |= int(b&0x7F) << shift 9263 if b < 0x80 { 9264 break 9265 } 9266 } 9267 if byteLen < 0 { 9268 return ErrInvalidLengthTypes 9269 } 9270 postIndex := iNdEx + byteLen 9271 if postIndex < 0 { 9272 return ErrInvalidLengthTypes 9273 } 9274 if postIndex > l { 9275 return io.ErrUnexpectedEOF 9276 } 9277 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 9278 if m.Tx == nil { 9279 m.Tx = []byte{} 9280 } 9281 iNdEx = postIndex 9282 case 2: 9283 if wireType != 0 { 9284 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 9285 } 9286 m.Type = 0 9287 for shift := uint(0); ; shift += 7 { 9288 if shift >= 64 { 9289 return ErrIntOverflowTypes 9290 } 9291 if iNdEx >= l { 9292 return io.ErrUnexpectedEOF 9293 } 9294 b := dAtA[iNdEx] 9295 iNdEx++ 9296 m.Type |= CheckTxType(b&0x7F) << shift 9297 if b < 0x80 { 9298 break 9299 } 9300 } 9301 default: 9302 iNdEx = preIndex 9303 skippy, err := skipTypes(dAtA[iNdEx:]) 9304 if err != nil { 9305 return err 9306 } 9307 if skippy < 0 { 9308 return ErrInvalidLengthTypes 9309 } 9310 if (iNdEx + skippy) < 0 { 9311 return ErrInvalidLengthTypes 9312 } 9313 if (iNdEx + skippy) > l { 9314 return io.ErrUnexpectedEOF 9315 } 9316 iNdEx += skippy 9317 } 9318 } 9319 9320 if iNdEx > l { 9321 return io.ErrUnexpectedEOF 9322 } 9323 return nil 9324 } 9325 func (m *RequestDeliverTx) Unmarshal(dAtA []byte) error { 9326 l := len(dAtA) 9327 iNdEx := 0 9328 for iNdEx < l { 9329 preIndex := iNdEx 9330 var wire uint64 9331 for shift := uint(0); ; shift += 7 { 9332 if shift >= 64 { 9333 return ErrIntOverflowTypes 9334 } 9335 if iNdEx >= l { 9336 return io.ErrUnexpectedEOF 9337 } 9338 b := dAtA[iNdEx] 9339 iNdEx++ 9340 wire |= uint64(b&0x7F) << shift 9341 if b < 0x80 { 9342 break 9343 } 9344 } 9345 fieldNum := int32(wire >> 3) 9346 wireType := int(wire & 0x7) 9347 if wireType == 4 { 9348 return fmt.Errorf("proto: RequestDeliverTx: wiretype end group for non-group") 9349 } 9350 if fieldNum <= 0 { 9351 return fmt.Errorf("proto: RequestDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire) 9352 } 9353 switch fieldNum { 9354 case 1: 9355 if wireType != 2 { 9356 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 9357 } 9358 var byteLen int 9359 for shift := uint(0); ; shift += 7 { 9360 if shift >= 64 { 9361 return ErrIntOverflowTypes 9362 } 9363 if iNdEx >= l { 9364 return io.ErrUnexpectedEOF 9365 } 9366 b := dAtA[iNdEx] 9367 iNdEx++ 9368 byteLen |= int(b&0x7F) << shift 9369 if b < 0x80 { 9370 break 9371 } 9372 } 9373 if byteLen < 0 { 9374 return ErrInvalidLengthTypes 9375 } 9376 postIndex := iNdEx + byteLen 9377 if postIndex < 0 { 9378 return ErrInvalidLengthTypes 9379 } 9380 if postIndex > l { 9381 return io.ErrUnexpectedEOF 9382 } 9383 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 9384 if m.Tx == nil { 9385 m.Tx = []byte{} 9386 } 9387 iNdEx = postIndex 9388 default: 9389 iNdEx = preIndex 9390 skippy, err := skipTypes(dAtA[iNdEx:]) 9391 if err != nil { 9392 return err 9393 } 9394 if skippy < 0 { 9395 return ErrInvalidLengthTypes 9396 } 9397 if (iNdEx + skippy) < 0 { 9398 return ErrInvalidLengthTypes 9399 } 9400 if (iNdEx + skippy) > l { 9401 return io.ErrUnexpectedEOF 9402 } 9403 iNdEx += skippy 9404 } 9405 } 9406 9407 if iNdEx > l { 9408 return io.ErrUnexpectedEOF 9409 } 9410 return nil 9411 } 9412 func (m *RequestEndBlock) Unmarshal(dAtA []byte) error { 9413 l := len(dAtA) 9414 iNdEx := 0 9415 for iNdEx < l { 9416 preIndex := iNdEx 9417 var wire uint64 9418 for shift := uint(0); ; shift += 7 { 9419 if shift >= 64 { 9420 return ErrIntOverflowTypes 9421 } 9422 if iNdEx >= l { 9423 return io.ErrUnexpectedEOF 9424 } 9425 b := dAtA[iNdEx] 9426 iNdEx++ 9427 wire |= uint64(b&0x7F) << shift 9428 if b < 0x80 { 9429 break 9430 } 9431 } 9432 fieldNum := int32(wire >> 3) 9433 wireType := int(wire & 0x7) 9434 if wireType == 4 { 9435 return fmt.Errorf("proto: RequestEndBlock: wiretype end group for non-group") 9436 } 9437 if fieldNum <= 0 { 9438 return fmt.Errorf("proto: RequestEndBlock: illegal tag %d (wire type %d)", fieldNum, wire) 9439 } 9440 switch fieldNum { 9441 case 1: 9442 if wireType != 0 { 9443 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 9444 } 9445 m.Height = 0 9446 for shift := uint(0); ; shift += 7 { 9447 if shift >= 64 { 9448 return ErrIntOverflowTypes 9449 } 9450 if iNdEx >= l { 9451 return io.ErrUnexpectedEOF 9452 } 9453 b := dAtA[iNdEx] 9454 iNdEx++ 9455 m.Height |= int64(b&0x7F) << shift 9456 if b < 0x80 { 9457 break 9458 } 9459 } 9460 default: 9461 iNdEx = preIndex 9462 skippy, err := skipTypes(dAtA[iNdEx:]) 9463 if err != nil { 9464 return err 9465 } 9466 if skippy < 0 { 9467 return ErrInvalidLengthTypes 9468 } 9469 if (iNdEx + skippy) < 0 { 9470 return ErrInvalidLengthTypes 9471 } 9472 if (iNdEx + skippy) > l { 9473 return io.ErrUnexpectedEOF 9474 } 9475 iNdEx += skippy 9476 } 9477 } 9478 9479 if iNdEx > l { 9480 return io.ErrUnexpectedEOF 9481 } 9482 return nil 9483 } 9484 func (m *RequestCommit) Unmarshal(dAtA []byte) error { 9485 l := len(dAtA) 9486 iNdEx := 0 9487 for iNdEx < l { 9488 preIndex := iNdEx 9489 var wire uint64 9490 for shift := uint(0); ; shift += 7 { 9491 if shift >= 64 { 9492 return ErrIntOverflowTypes 9493 } 9494 if iNdEx >= l { 9495 return io.ErrUnexpectedEOF 9496 } 9497 b := dAtA[iNdEx] 9498 iNdEx++ 9499 wire |= uint64(b&0x7F) << shift 9500 if b < 0x80 { 9501 break 9502 } 9503 } 9504 fieldNum := int32(wire >> 3) 9505 wireType := int(wire & 0x7) 9506 if wireType == 4 { 9507 return fmt.Errorf("proto: RequestCommit: wiretype end group for non-group") 9508 } 9509 if fieldNum <= 0 { 9510 return fmt.Errorf("proto: RequestCommit: illegal tag %d (wire type %d)", fieldNum, wire) 9511 } 9512 switch fieldNum { 9513 default: 9514 iNdEx = preIndex 9515 skippy, err := skipTypes(dAtA[iNdEx:]) 9516 if err != nil { 9517 return err 9518 } 9519 if skippy < 0 { 9520 return ErrInvalidLengthTypes 9521 } 9522 if (iNdEx + skippy) < 0 { 9523 return ErrInvalidLengthTypes 9524 } 9525 if (iNdEx + skippy) > l { 9526 return io.ErrUnexpectedEOF 9527 } 9528 iNdEx += skippy 9529 } 9530 } 9531 9532 if iNdEx > l { 9533 return io.ErrUnexpectedEOF 9534 } 9535 return nil 9536 } 9537 func (m *RequestListSnapshots) Unmarshal(dAtA []byte) error { 9538 l := len(dAtA) 9539 iNdEx := 0 9540 for iNdEx < l { 9541 preIndex := iNdEx 9542 var wire uint64 9543 for shift := uint(0); ; shift += 7 { 9544 if shift >= 64 { 9545 return ErrIntOverflowTypes 9546 } 9547 if iNdEx >= l { 9548 return io.ErrUnexpectedEOF 9549 } 9550 b := dAtA[iNdEx] 9551 iNdEx++ 9552 wire |= uint64(b&0x7F) << shift 9553 if b < 0x80 { 9554 break 9555 } 9556 } 9557 fieldNum := int32(wire >> 3) 9558 wireType := int(wire & 0x7) 9559 if wireType == 4 { 9560 return fmt.Errorf("proto: RequestListSnapshots: wiretype end group for non-group") 9561 } 9562 if fieldNum <= 0 { 9563 return fmt.Errorf("proto: RequestListSnapshots: illegal tag %d (wire type %d)", fieldNum, wire) 9564 } 9565 switch fieldNum { 9566 default: 9567 iNdEx = preIndex 9568 skippy, err := skipTypes(dAtA[iNdEx:]) 9569 if err != nil { 9570 return err 9571 } 9572 if skippy < 0 { 9573 return ErrInvalidLengthTypes 9574 } 9575 if (iNdEx + skippy) < 0 { 9576 return ErrInvalidLengthTypes 9577 } 9578 if (iNdEx + skippy) > l { 9579 return io.ErrUnexpectedEOF 9580 } 9581 iNdEx += skippy 9582 } 9583 } 9584 9585 if iNdEx > l { 9586 return io.ErrUnexpectedEOF 9587 } 9588 return nil 9589 } 9590 func (m *RequestOfferSnapshot) Unmarshal(dAtA []byte) error { 9591 l := len(dAtA) 9592 iNdEx := 0 9593 for iNdEx < l { 9594 preIndex := iNdEx 9595 var wire uint64 9596 for shift := uint(0); ; shift += 7 { 9597 if shift >= 64 { 9598 return ErrIntOverflowTypes 9599 } 9600 if iNdEx >= l { 9601 return io.ErrUnexpectedEOF 9602 } 9603 b := dAtA[iNdEx] 9604 iNdEx++ 9605 wire |= uint64(b&0x7F) << shift 9606 if b < 0x80 { 9607 break 9608 } 9609 } 9610 fieldNum := int32(wire >> 3) 9611 wireType := int(wire & 0x7) 9612 if wireType == 4 { 9613 return fmt.Errorf("proto: RequestOfferSnapshot: wiretype end group for non-group") 9614 } 9615 if fieldNum <= 0 { 9616 return fmt.Errorf("proto: RequestOfferSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) 9617 } 9618 switch fieldNum { 9619 case 1: 9620 if wireType != 2 { 9621 return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) 9622 } 9623 var msglen int 9624 for shift := uint(0); ; shift += 7 { 9625 if shift >= 64 { 9626 return ErrIntOverflowTypes 9627 } 9628 if iNdEx >= l { 9629 return io.ErrUnexpectedEOF 9630 } 9631 b := dAtA[iNdEx] 9632 iNdEx++ 9633 msglen |= int(b&0x7F) << shift 9634 if b < 0x80 { 9635 break 9636 } 9637 } 9638 if msglen < 0 { 9639 return ErrInvalidLengthTypes 9640 } 9641 postIndex := iNdEx + msglen 9642 if postIndex < 0 { 9643 return ErrInvalidLengthTypes 9644 } 9645 if postIndex > l { 9646 return io.ErrUnexpectedEOF 9647 } 9648 if m.Snapshot == nil { 9649 m.Snapshot = &Snapshot{} 9650 } 9651 if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9652 return err 9653 } 9654 iNdEx = postIndex 9655 case 2: 9656 if wireType != 2 { 9657 return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType) 9658 } 9659 var byteLen int 9660 for shift := uint(0); ; shift += 7 { 9661 if shift >= 64 { 9662 return ErrIntOverflowTypes 9663 } 9664 if iNdEx >= l { 9665 return io.ErrUnexpectedEOF 9666 } 9667 b := dAtA[iNdEx] 9668 iNdEx++ 9669 byteLen |= int(b&0x7F) << shift 9670 if b < 0x80 { 9671 break 9672 } 9673 } 9674 if byteLen < 0 { 9675 return ErrInvalidLengthTypes 9676 } 9677 postIndex := iNdEx + byteLen 9678 if postIndex < 0 { 9679 return ErrInvalidLengthTypes 9680 } 9681 if postIndex > l { 9682 return io.ErrUnexpectedEOF 9683 } 9684 m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...) 9685 if m.AppHash == nil { 9686 m.AppHash = []byte{} 9687 } 9688 iNdEx = postIndex 9689 default: 9690 iNdEx = preIndex 9691 skippy, err := skipTypes(dAtA[iNdEx:]) 9692 if err != nil { 9693 return err 9694 } 9695 if skippy < 0 { 9696 return ErrInvalidLengthTypes 9697 } 9698 if (iNdEx + skippy) < 0 { 9699 return ErrInvalidLengthTypes 9700 } 9701 if (iNdEx + skippy) > l { 9702 return io.ErrUnexpectedEOF 9703 } 9704 iNdEx += skippy 9705 } 9706 } 9707 9708 if iNdEx > l { 9709 return io.ErrUnexpectedEOF 9710 } 9711 return nil 9712 } 9713 func (m *RequestLoadSnapshotChunk) Unmarshal(dAtA []byte) error { 9714 l := len(dAtA) 9715 iNdEx := 0 9716 for iNdEx < l { 9717 preIndex := iNdEx 9718 var wire uint64 9719 for shift := uint(0); ; shift += 7 { 9720 if shift >= 64 { 9721 return ErrIntOverflowTypes 9722 } 9723 if iNdEx >= l { 9724 return io.ErrUnexpectedEOF 9725 } 9726 b := dAtA[iNdEx] 9727 iNdEx++ 9728 wire |= uint64(b&0x7F) << shift 9729 if b < 0x80 { 9730 break 9731 } 9732 } 9733 fieldNum := int32(wire >> 3) 9734 wireType := int(wire & 0x7) 9735 if wireType == 4 { 9736 return fmt.Errorf("proto: RequestLoadSnapshotChunk: wiretype end group for non-group") 9737 } 9738 if fieldNum <= 0 { 9739 return fmt.Errorf("proto: RequestLoadSnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) 9740 } 9741 switch fieldNum { 9742 case 1: 9743 if wireType != 0 { 9744 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 9745 } 9746 m.Height = 0 9747 for shift := uint(0); ; shift += 7 { 9748 if shift >= 64 { 9749 return ErrIntOverflowTypes 9750 } 9751 if iNdEx >= l { 9752 return io.ErrUnexpectedEOF 9753 } 9754 b := dAtA[iNdEx] 9755 iNdEx++ 9756 m.Height |= uint64(b&0x7F) << shift 9757 if b < 0x80 { 9758 break 9759 } 9760 } 9761 case 2: 9762 if wireType != 0 { 9763 return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) 9764 } 9765 m.Format = 0 9766 for shift := uint(0); ; shift += 7 { 9767 if shift >= 64 { 9768 return ErrIntOverflowTypes 9769 } 9770 if iNdEx >= l { 9771 return io.ErrUnexpectedEOF 9772 } 9773 b := dAtA[iNdEx] 9774 iNdEx++ 9775 m.Format |= uint32(b&0x7F) << shift 9776 if b < 0x80 { 9777 break 9778 } 9779 } 9780 case 3: 9781 if wireType != 0 { 9782 return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType) 9783 } 9784 m.Chunk = 0 9785 for shift := uint(0); ; shift += 7 { 9786 if shift >= 64 { 9787 return ErrIntOverflowTypes 9788 } 9789 if iNdEx >= l { 9790 return io.ErrUnexpectedEOF 9791 } 9792 b := dAtA[iNdEx] 9793 iNdEx++ 9794 m.Chunk |= uint32(b&0x7F) << shift 9795 if b < 0x80 { 9796 break 9797 } 9798 } 9799 default: 9800 iNdEx = preIndex 9801 skippy, err := skipTypes(dAtA[iNdEx:]) 9802 if err != nil { 9803 return err 9804 } 9805 if skippy < 0 { 9806 return ErrInvalidLengthTypes 9807 } 9808 if (iNdEx + skippy) < 0 { 9809 return ErrInvalidLengthTypes 9810 } 9811 if (iNdEx + skippy) > l { 9812 return io.ErrUnexpectedEOF 9813 } 9814 iNdEx += skippy 9815 } 9816 } 9817 9818 if iNdEx > l { 9819 return io.ErrUnexpectedEOF 9820 } 9821 return nil 9822 } 9823 func (m *RequestApplySnapshotChunk) Unmarshal(dAtA []byte) error { 9824 l := len(dAtA) 9825 iNdEx := 0 9826 for iNdEx < l { 9827 preIndex := iNdEx 9828 var wire uint64 9829 for shift := uint(0); ; shift += 7 { 9830 if shift >= 64 { 9831 return ErrIntOverflowTypes 9832 } 9833 if iNdEx >= l { 9834 return io.ErrUnexpectedEOF 9835 } 9836 b := dAtA[iNdEx] 9837 iNdEx++ 9838 wire |= uint64(b&0x7F) << shift 9839 if b < 0x80 { 9840 break 9841 } 9842 } 9843 fieldNum := int32(wire >> 3) 9844 wireType := int(wire & 0x7) 9845 if wireType == 4 { 9846 return fmt.Errorf("proto: RequestApplySnapshotChunk: wiretype end group for non-group") 9847 } 9848 if fieldNum <= 0 { 9849 return fmt.Errorf("proto: RequestApplySnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) 9850 } 9851 switch fieldNum { 9852 case 1: 9853 if wireType != 0 { 9854 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 9855 } 9856 m.Index = 0 9857 for shift := uint(0); ; shift += 7 { 9858 if shift >= 64 { 9859 return ErrIntOverflowTypes 9860 } 9861 if iNdEx >= l { 9862 return io.ErrUnexpectedEOF 9863 } 9864 b := dAtA[iNdEx] 9865 iNdEx++ 9866 m.Index |= uint32(b&0x7F) << shift 9867 if b < 0x80 { 9868 break 9869 } 9870 } 9871 case 2: 9872 if wireType != 2 { 9873 return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType) 9874 } 9875 var byteLen int 9876 for shift := uint(0); ; shift += 7 { 9877 if shift >= 64 { 9878 return ErrIntOverflowTypes 9879 } 9880 if iNdEx >= l { 9881 return io.ErrUnexpectedEOF 9882 } 9883 b := dAtA[iNdEx] 9884 iNdEx++ 9885 byteLen |= int(b&0x7F) << shift 9886 if b < 0x80 { 9887 break 9888 } 9889 } 9890 if byteLen < 0 { 9891 return ErrInvalidLengthTypes 9892 } 9893 postIndex := iNdEx + byteLen 9894 if postIndex < 0 { 9895 return ErrInvalidLengthTypes 9896 } 9897 if postIndex > l { 9898 return io.ErrUnexpectedEOF 9899 } 9900 m.Chunk = append(m.Chunk[:0], dAtA[iNdEx:postIndex]...) 9901 if m.Chunk == nil { 9902 m.Chunk = []byte{} 9903 } 9904 iNdEx = postIndex 9905 case 3: 9906 if wireType != 2 { 9907 return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) 9908 } 9909 var stringLen uint64 9910 for shift := uint(0); ; shift += 7 { 9911 if shift >= 64 { 9912 return ErrIntOverflowTypes 9913 } 9914 if iNdEx >= l { 9915 return io.ErrUnexpectedEOF 9916 } 9917 b := dAtA[iNdEx] 9918 iNdEx++ 9919 stringLen |= uint64(b&0x7F) << shift 9920 if b < 0x80 { 9921 break 9922 } 9923 } 9924 intStringLen := int(stringLen) 9925 if intStringLen < 0 { 9926 return ErrInvalidLengthTypes 9927 } 9928 postIndex := iNdEx + intStringLen 9929 if postIndex < 0 { 9930 return ErrInvalidLengthTypes 9931 } 9932 if postIndex > l { 9933 return io.ErrUnexpectedEOF 9934 } 9935 m.Sender = string(dAtA[iNdEx:postIndex]) 9936 iNdEx = postIndex 9937 default: 9938 iNdEx = preIndex 9939 skippy, err := skipTypes(dAtA[iNdEx:]) 9940 if err != nil { 9941 return err 9942 } 9943 if skippy < 0 { 9944 return ErrInvalidLengthTypes 9945 } 9946 if (iNdEx + skippy) < 0 { 9947 return ErrInvalidLengthTypes 9948 } 9949 if (iNdEx + skippy) > l { 9950 return io.ErrUnexpectedEOF 9951 } 9952 iNdEx += skippy 9953 } 9954 } 9955 9956 if iNdEx > l { 9957 return io.ErrUnexpectedEOF 9958 } 9959 return nil 9960 } 9961 func (m *Response) Unmarshal(dAtA []byte) error { 9962 l := len(dAtA) 9963 iNdEx := 0 9964 for iNdEx < l { 9965 preIndex := iNdEx 9966 var wire uint64 9967 for shift := uint(0); ; shift += 7 { 9968 if shift >= 64 { 9969 return ErrIntOverflowTypes 9970 } 9971 if iNdEx >= l { 9972 return io.ErrUnexpectedEOF 9973 } 9974 b := dAtA[iNdEx] 9975 iNdEx++ 9976 wire |= uint64(b&0x7F) << shift 9977 if b < 0x80 { 9978 break 9979 } 9980 } 9981 fieldNum := int32(wire >> 3) 9982 wireType := int(wire & 0x7) 9983 if wireType == 4 { 9984 return fmt.Errorf("proto: Response: wiretype end group for non-group") 9985 } 9986 if fieldNum <= 0 { 9987 return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 9988 } 9989 switch fieldNum { 9990 case 1: 9991 if wireType != 2 { 9992 return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType) 9993 } 9994 var msglen int 9995 for shift := uint(0); ; shift += 7 { 9996 if shift >= 64 { 9997 return ErrIntOverflowTypes 9998 } 9999 if iNdEx >= l { 10000 return io.ErrUnexpectedEOF 10001 } 10002 b := dAtA[iNdEx] 10003 iNdEx++ 10004 msglen |= int(b&0x7F) << shift 10005 if b < 0x80 { 10006 break 10007 } 10008 } 10009 if msglen < 0 { 10010 return ErrInvalidLengthTypes 10011 } 10012 postIndex := iNdEx + msglen 10013 if postIndex < 0 { 10014 return ErrInvalidLengthTypes 10015 } 10016 if postIndex > l { 10017 return io.ErrUnexpectedEOF 10018 } 10019 v := &ResponseException{} 10020 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10021 return err 10022 } 10023 m.Value = &Response_Exception{v} 10024 iNdEx = postIndex 10025 case 2: 10026 if wireType != 2 { 10027 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 10028 } 10029 var msglen int 10030 for shift := uint(0); ; shift += 7 { 10031 if shift >= 64 { 10032 return ErrIntOverflowTypes 10033 } 10034 if iNdEx >= l { 10035 return io.ErrUnexpectedEOF 10036 } 10037 b := dAtA[iNdEx] 10038 iNdEx++ 10039 msglen |= int(b&0x7F) << shift 10040 if b < 0x80 { 10041 break 10042 } 10043 } 10044 if msglen < 0 { 10045 return ErrInvalidLengthTypes 10046 } 10047 postIndex := iNdEx + msglen 10048 if postIndex < 0 { 10049 return ErrInvalidLengthTypes 10050 } 10051 if postIndex > l { 10052 return io.ErrUnexpectedEOF 10053 } 10054 v := &ResponseEcho{} 10055 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10056 return err 10057 } 10058 m.Value = &Response_Echo{v} 10059 iNdEx = postIndex 10060 case 3: 10061 if wireType != 2 { 10062 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 10063 } 10064 var msglen int 10065 for shift := uint(0); ; shift += 7 { 10066 if shift >= 64 { 10067 return ErrIntOverflowTypes 10068 } 10069 if iNdEx >= l { 10070 return io.ErrUnexpectedEOF 10071 } 10072 b := dAtA[iNdEx] 10073 iNdEx++ 10074 msglen |= int(b&0x7F) << shift 10075 if b < 0x80 { 10076 break 10077 } 10078 } 10079 if msglen < 0 { 10080 return ErrInvalidLengthTypes 10081 } 10082 postIndex := iNdEx + msglen 10083 if postIndex < 0 { 10084 return ErrInvalidLengthTypes 10085 } 10086 if postIndex > l { 10087 return io.ErrUnexpectedEOF 10088 } 10089 v := &ResponseFlush{} 10090 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10091 return err 10092 } 10093 m.Value = &Response_Flush{v} 10094 iNdEx = postIndex 10095 case 4: 10096 if wireType != 2 { 10097 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 10098 } 10099 var msglen int 10100 for shift := uint(0); ; shift += 7 { 10101 if shift >= 64 { 10102 return ErrIntOverflowTypes 10103 } 10104 if iNdEx >= l { 10105 return io.ErrUnexpectedEOF 10106 } 10107 b := dAtA[iNdEx] 10108 iNdEx++ 10109 msglen |= int(b&0x7F) << shift 10110 if b < 0x80 { 10111 break 10112 } 10113 } 10114 if msglen < 0 { 10115 return ErrInvalidLengthTypes 10116 } 10117 postIndex := iNdEx + msglen 10118 if postIndex < 0 { 10119 return ErrInvalidLengthTypes 10120 } 10121 if postIndex > l { 10122 return io.ErrUnexpectedEOF 10123 } 10124 v := &ResponseInfo{} 10125 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10126 return err 10127 } 10128 m.Value = &Response_Info{v} 10129 iNdEx = postIndex 10130 case 5: 10131 if wireType != 2 { 10132 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 10133 } 10134 var msglen int 10135 for shift := uint(0); ; shift += 7 { 10136 if shift >= 64 { 10137 return ErrIntOverflowTypes 10138 } 10139 if iNdEx >= l { 10140 return io.ErrUnexpectedEOF 10141 } 10142 b := dAtA[iNdEx] 10143 iNdEx++ 10144 msglen |= int(b&0x7F) << shift 10145 if b < 0x80 { 10146 break 10147 } 10148 } 10149 if msglen < 0 { 10150 return ErrInvalidLengthTypes 10151 } 10152 postIndex := iNdEx + msglen 10153 if postIndex < 0 { 10154 return ErrInvalidLengthTypes 10155 } 10156 if postIndex > l { 10157 return io.ErrUnexpectedEOF 10158 } 10159 v := &ResponseSetOption{} 10160 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10161 return err 10162 } 10163 m.Value = &Response_SetOption{v} 10164 iNdEx = postIndex 10165 case 6: 10166 if wireType != 2 { 10167 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 10168 } 10169 var msglen int 10170 for shift := uint(0); ; shift += 7 { 10171 if shift >= 64 { 10172 return ErrIntOverflowTypes 10173 } 10174 if iNdEx >= l { 10175 return io.ErrUnexpectedEOF 10176 } 10177 b := dAtA[iNdEx] 10178 iNdEx++ 10179 msglen |= int(b&0x7F) << shift 10180 if b < 0x80 { 10181 break 10182 } 10183 } 10184 if msglen < 0 { 10185 return ErrInvalidLengthTypes 10186 } 10187 postIndex := iNdEx + msglen 10188 if postIndex < 0 { 10189 return ErrInvalidLengthTypes 10190 } 10191 if postIndex > l { 10192 return io.ErrUnexpectedEOF 10193 } 10194 v := &ResponseInitChain{} 10195 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10196 return err 10197 } 10198 m.Value = &Response_InitChain{v} 10199 iNdEx = postIndex 10200 case 7: 10201 if wireType != 2 { 10202 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 10203 } 10204 var msglen int 10205 for shift := uint(0); ; shift += 7 { 10206 if shift >= 64 { 10207 return ErrIntOverflowTypes 10208 } 10209 if iNdEx >= l { 10210 return io.ErrUnexpectedEOF 10211 } 10212 b := dAtA[iNdEx] 10213 iNdEx++ 10214 msglen |= int(b&0x7F) << shift 10215 if b < 0x80 { 10216 break 10217 } 10218 } 10219 if msglen < 0 { 10220 return ErrInvalidLengthTypes 10221 } 10222 postIndex := iNdEx + msglen 10223 if postIndex < 0 { 10224 return ErrInvalidLengthTypes 10225 } 10226 if postIndex > l { 10227 return io.ErrUnexpectedEOF 10228 } 10229 v := &ResponseQuery{} 10230 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10231 return err 10232 } 10233 m.Value = &Response_Query{v} 10234 iNdEx = postIndex 10235 case 8: 10236 if wireType != 2 { 10237 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 10238 } 10239 var msglen int 10240 for shift := uint(0); ; shift += 7 { 10241 if shift >= 64 { 10242 return ErrIntOverflowTypes 10243 } 10244 if iNdEx >= l { 10245 return io.ErrUnexpectedEOF 10246 } 10247 b := dAtA[iNdEx] 10248 iNdEx++ 10249 msglen |= int(b&0x7F) << shift 10250 if b < 0x80 { 10251 break 10252 } 10253 } 10254 if msglen < 0 { 10255 return ErrInvalidLengthTypes 10256 } 10257 postIndex := iNdEx + msglen 10258 if postIndex < 0 { 10259 return ErrInvalidLengthTypes 10260 } 10261 if postIndex > l { 10262 return io.ErrUnexpectedEOF 10263 } 10264 v := &ResponseBeginBlock{} 10265 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10266 return err 10267 } 10268 m.Value = &Response_BeginBlock{v} 10269 iNdEx = postIndex 10270 case 9: 10271 if wireType != 2 { 10272 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 10273 } 10274 var msglen int 10275 for shift := uint(0); ; shift += 7 { 10276 if shift >= 64 { 10277 return ErrIntOverflowTypes 10278 } 10279 if iNdEx >= l { 10280 return io.ErrUnexpectedEOF 10281 } 10282 b := dAtA[iNdEx] 10283 iNdEx++ 10284 msglen |= int(b&0x7F) << shift 10285 if b < 0x80 { 10286 break 10287 } 10288 } 10289 if msglen < 0 { 10290 return ErrInvalidLengthTypes 10291 } 10292 postIndex := iNdEx + msglen 10293 if postIndex < 0 { 10294 return ErrInvalidLengthTypes 10295 } 10296 if postIndex > l { 10297 return io.ErrUnexpectedEOF 10298 } 10299 v := &ResponseCheckTx{} 10300 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10301 return err 10302 } 10303 m.Value = &Response_CheckTx{v} 10304 iNdEx = postIndex 10305 case 10: 10306 if wireType != 2 { 10307 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 10308 } 10309 var msglen int 10310 for shift := uint(0); ; shift += 7 { 10311 if shift >= 64 { 10312 return ErrIntOverflowTypes 10313 } 10314 if iNdEx >= l { 10315 return io.ErrUnexpectedEOF 10316 } 10317 b := dAtA[iNdEx] 10318 iNdEx++ 10319 msglen |= int(b&0x7F) << shift 10320 if b < 0x80 { 10321 break 10322 } 10323 } 10324 if msglen < 0 { 10325 return ErrInvalidLengthTypes 10326 } 10327 postIndex := iNdEx + msglen 10328 if postIndex < 0 { 10329 return ErrInvalidLengthTypes 10330 } 10331 if postIndex > l { 10332 return io.ErrUnexpectedEOF 10333 } 10334 v := &ResponseDeliverTx{} 10335 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10336 return err 10337 } 10338 m.Value = &Response_DeliverTx{v} 10339 iNdEx = postIndex 10340 case 11: 10341 if wireType != 2 { 10342 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 10343 } 10344 var msglen int 10345 for shift := uint(0); ; shift += 7 { 10346 if shift >= 64 { 10347 return ErrIntOverflowTypes 10348 } 10349 if iNdEx >= l { 10350 return io.ErrUnexpectedEOF 10351 } 10352 b := dAtA[iNdEx] 10353 iNdEx++ 10354 msglen |= int(b&0x7F) << shift 10355 if b < 0x80 { 10356 break 10357 } 10358 } 10359 if msglen < 0 { 10360 return ErrInvalidLengthTypes 10361 } 10362 postIndex := iNdEx + msglen 10363 if postIndex < 0 { 10364 return ErrInvalidLengthTypes 10365 } 10366 if postIndex > l { 10367 return io.ErrUnexpectedEOF 10368 } 10369 v := &ResponseEndBlock{} 10370 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10371 return err 10372 } 10373 m.Value = &Response_EndBlock{v} 10374 iNdEx = postIndex 10375 case 12: 10376 if wireType != 2 { 10377 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 10378 } 10379 var msglen int 10380 for shift := uint(0); ; shift += 7 { 10381 if shift >= 64 { 10382 return ErrIntOverflowTypes 10383 } 10384 if iNdEx >= l { 10385 return io.ErrUnexpectedEOF 10386 } 10387 b := dAtA[iNdEx] 10388 iNdEx++ 10389 msglen |= int(b&0x7F) << shift 10390 if b < 0x80 { 10391 break 10392 } 10393 } 10394 if msglen < 0 { 10395 return ErrInvalidLengthTypes 10396 } 10397 postIndex := iNdEx + msglen 10398 if postIndex < 0 { 10399 return ErrInvalidLengthTypes 10400 } 10401 if postIndex > l { 10402 return io.ErrUnexpectedEOF 10403 } 10404 v := &ResponseCommit{} 10405 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10406 return err 10407 } 10408 m.Value = &Response_Commit{v} 10409 iNdEx = postIndex 10410 case 13: 10411 if wireType != 2 { 10412 return fmt.Errorf("proto: wrong wireType = %d for field ListSnapshots", wireType) 10413 } 10414 var msglen int 10415 for shift := uint(0); ; shift += 7 { 10416 if shift >= 64 { 10417 return ErrIntOverflowTypes 10418 } 10419 if iNdEx >= l { 10420 return io.ErrUnexpectedEOF 10421 } 10422 b := dAtA[iNdEx] 10423 iNdEx++ 10424 msglen |= int(b&0x7F) << shift 10425 if b < 0x80 { 10426 break 10427 } 10428 } 10429 if msglen < 0 { 10430 return ErrInvalidLengthTypes 10431 } 10432 postIndex := iNdEx + msglen 10433 if postIndex < 0 { 10434 return ErrInvalidLengthTypes 10435 } 10436 if postIndex > l { 10437 return io.ErrUnexpectedEOF 10438 } 10439 v := &ResponseListSnapshots{} 10440 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10441 return err 10442 } 10443 m.Value = &Response_ListSnapshots{v} 10444 iNdEx = postIndex 10445 case 14: 10446 if wireType != 2 { 10447 return fmt.Errorf("proto: wrong wireType = %d for field OfferSnapshot", wireType) 10448 } 10449 var msglen int 10450 for shift := uint(0); ; shift += 7 { 10451 if shift >= 64 { 10452 return ErrIntOverflowTypes 10453 } 10454 if iNdEx >= l { 10455 return io.ErrUnexpectedEOF 10456 } 10457 b := dAtA[iNdEx] 10458 iNdEx++ 10459 msglen |= int(b&0x7F) << shift 10460 if b < 0x80 { 10461 break 10462 } 10463 } 10464 if msglen < 0 { 10465 return ErrInvalidLengthTypes 10466 } 10467 postIndex := iNdEx + msglen 10468 if postIndex < 0 { 10469 return ErrInvalidLengthTypes 10470 } 10471 if postIndex > l { 10472 return io.ErrUnexpectedEOF 10473 } 10474 v := &ResponseOfferSnapshot{} 10475 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10476 return err 10477 } 10478 m.Value = &Response_OfferSnapshot{v} 10479 iNdEx = postIndex 10480 case 15: 10481 if wireType != 2 { 10482 return fmt.Errorf("proto: wrong wireType = %d for field LoadSnapshotChunk", wireType) 10483 } 10484 var msglen int 10485 for shift := uint(0); ; shift += 7 { 10486 if shift >= 64 { 10487 return ErrIntOverflowTypes 10488 } 10489 if iNdEx >= l { 10490 return io.ErrUnexpectedEOF 10491 } 10492 b := dAtA[iNdEx] 10493 iNdEx++ 10494 msglen |= int(b&0x7F) << shift 10495 if b < 0x80 { 10496 break 10497 } 10498 } 10499 if msglen < 0 { 10500 return ErrInvalidLengthTypes 10501 } 10502 postIndex := iNdEx + msglen 10503 if postIndex < 0 { 10504 return ErrInvalidLengthTypes 10505 } 10506 if postIndex > l { 10507 return io.ErrUnexpectedEOF 10508 } 10509 v := &ResponseLoadSnapshotChunk{} 10510 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10511 return err 10512 } 10513 m.Value = &Response_LoadSnapshotChunk{v} 10514 iNdEx = postIndex 10515 case 16: 10516 if wireType != 2 { 10517 return fmt.Errorf("proto: wrong wireType = %d for field ApplySnapshotChunk", wireType) 10518 } 10519 var msglen int 10520 for shift := uint(0); ; shift += 7 { 10521 if shift >= 64 { 10522 return ErrIntOverflowTypes 10523 } 10524 if iNdEx >= l { 10525 return io.ErrUnexpectedEOF 10526 } 10527 b := dAtA[iNdEx] 10528 iNdEx++ 10529 msglen |= int(b&0x7F) << shift 10530 if b < 0x80 { 10531 break 10532 } 10533 } 10534 if msglen < 0 { 10535 return ErrInvalidLengthTypes 10536 } 10537 postIndex := iNdEx + msglen 10538 if postIndex < 0 { 10539 return ErrInvalidLengthTypes 10540 } 10541 if postIndex > l { 10542 return io.ErrUnexpectedEOF 10543 } 10544 v := &ResponseApplySnapshotChunk{} 10545 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10546 return err 10547 } 10548 m.Value = &Response_ApplySnapshotChunk{v} 10549 iNdEx = postIndex 10550 default: 10551 iNdEx = preIndex 10552 skippy, err := skipTypes(dAtA[iNdEx:]) 10553 if err != nil { 10554 return err 10555 } 10556 if skippy < 0 { 10557 return ErrInvalidLengthTypes 10558 } 10559 if (iNdEx + skippy) < 0 { 10560 return ErrInvalidLengthTypes 10561 } 10562 if (iNdEx + skippy) > l { 10563 return io.ErrUnexpectedEOF 10564 } 10565 iNdEx += skippy 10566 } 10567 } 10568 10569 if iNdEx > l { 10570 return io.ErrUnexpectedEOF 10571 } 10572 return nil 10573 } 10574 func (m *ResponseException) Unmarshal(dAtA []byte) error { 10575 l := len(dAtA) 10576 iNdEx := 0 10577 for iNdEx < l { 10578 preIndex := iNdEx 10579 var wire uint64 10580 for shift := uint(0); ; shift += 7 { 10581 if shift >= 64 { 10582 return ErrIntOverflowTypes 10583 } 10584 if iNdEx >= l { 10585 return io.ErrUnexpectedEOF 10586 } 10587 b := dAtA[iNdEx] 10588 iNdEx++ 10589 wire |= uint64(b&0x7F) << shift 10590 if b < 0x80 { 10591 break 10592 } 10593 } 10594 fieldNum := int32(wire >> 3) 10595 wireType := int(wire & 0x7) 10596 if wireType == 4 { 10597 return fmt.Errorf("proto: ResponseException: wiretype end group for non-group") 10598 } 10599 if fieldNum <= 0 { 10600 return fmt.Errorf("proto: ResponseException: illegal tag %d (wire type %d)", fieldNum, wire) 10601 } 10602 switch fieldNum { 10603 case 1: 10604 if wireType != 2 { 10605 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) 10606 } 10607 var stringLen uint64 10608 for shift := uint(0); ; shift += 7 { 10609 if shift >= 64 { 10610 return ErrIntOverflowTypes 10611 } 10612 if iNdEx >= l { 10613 return io.ErrUnexpectedEOF 10614 } 10615 b := dAtA[iNdEx] 10616 iNdEx++ 10617 stringLen |= uint64(b&0x7F) << shift 10618 if b < 0x80 { 10619 break 10620 } 10621 } 10622 intStringLen := int(stringLen) 10623 if intStringLen < 0 { 10624 return ErrInvalidLengthTypes 10625 } 10626 postIndex := iNdEx + intStringLen 10627 if postIndex < 0 { 10628 return ErrInvalidLengthTypes 10629 } 10630 if postIndex > l { 10631 return io.ErrUnexpectedEOF 10632 } 10633 m.Error = string(dAtA[iNdEx:postIndex]) 10634 iNdEx = postIndex 10635 default: 10636 iNdEx = preIndex 10637 skippy, err := skipTypes(dAtA[iNdEx:]) 10638 if err != nil { 10639 return err 10640 } 10641 if skippy < 0 { 10642 return ErrInvalidLengthTypes 10643 } 10644 if (iNdEx + skippy) < 0 { 10645 return ErrInvalidLengthTypes 10646 } 10647 if (iNdEx + skippy) > l { 10648 return io.ErrUnexpectedEOF 10649 } 10650 iNdEx += skippy 10651 } 10652 } 10653 10654 if iNdEx > l { 10655 return io.ErrUnexpectedEOF 10656 } 10657 return nil 10658 } 10659 func (m *ResponseEcho) Unmarshal(dAtA []byte) error { 10660 l := len(dAtA) 10661 iNdEx := 0 10662 for iNdEx < l { 10663 preIndex := iNdEx 10664 var wire uint64 10665 for shift := uint(0); ; shift += 7 { 10666 if shift >= 64 { 10667 return ErrIntOverflowTypes 10668 } 10669 if iNdEx >= l { 10670 return io.ErrUnexpectedEOF 10671 } 10672 b := dAtA[iNdEx] 10673 iNdEx++ 10674 wire |= uint64(b&0x7F) << shift 10675 if b < 0x80 { 10676 break 10677 } 10678 } 10679 fieldNum := int32(wire >> 3) 10680 wireType := int(wire & 0x7) 10681 if wireType == 4 { 10682 return fmt.Errorf("proto: ResponseEcho: wiretype end group for non-group") 10683 } 10684 if fieldNum <= 0 { 10685 return fmt.Errorf("proto: ResponseEcho: illegal tag %d (wire type %d)", fieldNum, wire) 10686 } 10687 switch fieldNum { 10688 case 1: 10689 if wireType != 2 { 10690 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 10691 } 10692 var stringLen uint64 10693 for shift := uint(0); ; shift += 7 { 10694 if shift >= 64 { 10695 return ErrIntOverflowTypes 10696 } 10697 if iNdEx >= l { 10698 return io.ErrUnexpectedEOF 10699 } 10700 b := dAtA[iNdEx] 10701 iNdEx++ 10702 stringLen |= uint64(b&0x7F) << shift 10703 if b < 0x80 { 10704 break 10705 } 10706 } 10707 intStringLen := int(stringLen) 10708 if intStringLen < 0 { 10709 return ErrInvalidLengthTypes 10710 } 10711 postIndex := iNdEx + intStringLen 10712 if postIndex < 0 { 10713 return ErrInvalidLengthTypes 10714 } 10715 if postIndex > l { 10716 return io.ErrUnexpectedEOF 10717 } 10718 m.Message = string(dAtA[iNdEx:postIndex]) 10719 iNdEx = postIndex 10720 default: 10721 iNdEx = preIndex 10722 skippy, err := skipTypes(dAtA[iNdEx:]) 10723 if err != nil { 10724 return err 10725 } 10726 if skippy < 0 { 10727 return ErrInvalidLengthTypes 10728 } 10729 if (iNdEx + skippy) < 0 { 10730 return ErrInvalidLengthTypes 10731 } 10732 if (iNdEx + skippy) > l { 10733 return io.ErrUnexpectedEOF 10734 } 10735 iNdEx += skippy 10736 } 10737 } 10738 10739 if iNdEx > l { 10740 return io.ErrUnexpectedEOF 10741 } 10742 return nil 10743 } 10744 func (m *ResponseFlush) Unmarshal(dAtA []byte) error { 10745 l := len(dAtA) 10746 iNdEx := 0 10747 for iNdEx < l { 10748 preIndex := iNdEx 10749 var wire uint64 10750 for shift := uint(0); ; shift += 7 { 10751 if shift >= 64 { 10752 return ErrIntOverflowTypes 10753 } 10754 if iNdEx >= l { 10755 return io.ErrUnexpectedEOF 10756 } 10757 b := dAtA[iNdEx] 10758 iNdEx++ 10759 wire |= uint64(b&0x7F) << shift 10760 if b < 0x80 { 10761 break 10762 } 10763 } 10764 fieldNum := int32(wire >> 3) 10765 wireType := int(wire & 0x7) 10766 if wireType == 4 { 10767 return fmt.Errorf("proto: ResponseFlush: wiretype end group for non-group") 10768 } 10769 if fieldNum <= 0 { 10770 return fmt.Errorf("proto: ResponseFlush: illegal tag %d (wire type %d)", fieldNum, wire) 10771 } 10772 switch fieldNum { 10773 default: 10774 iNdEx = preIndex 10775 skippy, err := skipTypes(dAtA[iNdEx:]) 10776 if err != nil { 10777 return err 10778 } 10779 if skippy < 0 { 10780 return ErrInvalidLengthTypes 10781 } 10782 if (iNdEx + skippy) < 0 { 10783 return ErrInvalidLengthTypes 10784 } 10785 if (iNdEx + skippy) > l { 10786 return io.ErrUnexpectedEOF 10787 } 10788 iNdEx += skippy 10789 } 10790 } 10791 10792 if iNdEx > l { 10793 return io.ErrUnexpectedEOF 10794 } 10795 return nil 10796 } 10797 func (m *ResponseInfo) Unmarshal(dAtA []byte) error { 10798 l := len(dAtA) 10799 iNdEx := 0 10800 for iNdEx < l { 10801 preIndex := iNdEx 10802 var wire uint64 10803 for shift := uint(0); ; shift += 7 { 10804 if shift >= 64 { 10805 return ErrIntOverflowTypes 10806 } 10807 if iNdEx >= l { 10808 return io.ErrUnexpectedEOF 10809 } 10810 b := dAtA[iNdEx] 10811 iNdEx++ 10812 wire |= uint64(b&0x7F) << shift 10813 if b < 0x80 { 10814 break 10815 } 10816 } 10817 fieldNum := int32(wire >> 3) 10818 wireType := int(wire & 0x7) 10819 if wireType == 4 { 10820 return fmt.Errorf("proto: ResponseInfo: wiretype end group for non-group") 10821 } 10822 if fieldNum <= 0 { 10823 return fmt.Errorf("proto: ResponseInfo: illegal tag %d (wire type %d)", fieldNum, wire) 10824 } 10825 switch fieldNum { 10826 case 1: 10827 if wireType != 2 { 10828 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 10829 } 10830 var stringLen uint64 10831 for shift := uint(0); ; shift += 7 { 10832 if shift >= 64 { 10833 return ErrIntOverflowTypes 10834 } 10835 if iNdEx >= l { 10836 return io.ErrUnexpectedEOF 10837 } 10838 b := dAtA[iNdEx] 10839 iNdEx++ 10840 stringLen |= uint64(b&0x7F) << shift 10841 if b < 0x80 { 10842 break 10843 } 10844 } 10845 intStringLen := int(stringLen) 10846 if intStringLen < 0 { 10847 return ErrInvalidLengthTypes 10848 } 10849 postIndex := iNdEx + intStringLen 10850 if postIndex < 0 { 10851 return ErrInvalidLengthTypes 10852 } 10853 if postIndex > l { 10854 return io.ErrUnexpectedEOF 10855 } 10856 m.Data = string(dAtA[iNdEx:postIndex]) 10857 iNdEx = postIndex 10858 case 2: 10859 if wireType != 2 { 10860 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 10861 } 10862 var stringLen uint64 10863 for shift := uint(0); ; shift += 7 { 10864 if shift >= 64 { 10865 return ErrIntOverflowTypes 10866 } 10867 if iNdEx >= l { 10868 return io.ErrUnexpectedEOF 10869 } 10870 b := dAtA[iNdEx] 10871 iNdEx++ 10872 stringLen |= uint64(b&0x7F) << shift 10873 if b < 0x80 { 10874 break 10875 } 10876 } 10877 intStringLen := int(stringLen) 10878 if intStringLen < 0 { 10879 return ErrInvalidLengthTypes 10880 } 10881 postIndex := iNdEx + intStringLen 10882 if postIndex < 0 { 10883 return ErrInvalidLengthTypes 10884 } 10885 if postIndex > l { 10886 return io.ErrUnexpectedEOF 10887 } 10888 m.Version = string(dAtA[iNdEx:postIndex]) 10889 iNdEx = postIndex 10890 case 3: 10891 if wireType != 0 { 10892 return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType) 10893 } 10894 m.AppVersion = 0 10895 for shift := uint(0); ; shift += 7 { 10896 if shift >= 64 { 10897 return ErrIntOverflowTypes 10898 } 10899 if iNdEx >= l { 10900 return io.ErrUnexpectedEOF 10901 } 10902 b := dAtA[iNdEx] 10903 iNdEx++ 10904 m.AppVersion |= uint64(b&0x7F) << shift 10905 if b < 0x80 { 10906 break 10907 } 10908 } 10909 case 4: 10910 if wireType != 0 { 10911 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType) 10912 } 10913 m.LastBlockHeight = 0 10914 for shift := uint(0); ; shift += 7 { 10915 if shift >= 64 { 10916 return ErrIntOverflowTypes 10917 } 10918 if iNdEx >= l { 10919 return io.ErrUnexpectedEOF 10920 } 10921 b := dAtA[iNdEx] 10922 iNdEx++ 10923 m.LastBlockHeight |= int64(b&0x7F) << shift 10924 if b < 0x80 { 10925 break 10926 } 10927 } 10928 case 5: 10929 if wireType != 2 { 10930 return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType) 10931 } 10932 var byteLen int 10933 for shift := uint(0); ; shift += 7 { 10934 if shift >= 64 { 10935 return ErrIntOverflowTypes 10936 } 10937 if iNdEx >= l { 10938 return io.ErrUnexpectedEOF 10939 } 10940 b := dAtA[iNdEx] 10941 iNdEx++ 10942 byteLen |= int(b&0x7F) << shift 10943 if b < 0x80 { 10944 break 10945 } 10946 } 10947 if byteLen < 0 { 10948 return ErrInvalidLengthTypes 10949 } 10950 postIndex := iNdEx + byteLen 10951 if postIndex < 0 { 10952 return ErrInvalidLengthTypes 10953 } 10954 if postIndex > l { 10955 return io.ErrUnexpectedEOF 10956 } 10957 m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...) 10958 if m.LastBlockAppHash == nil { 10959 m.LastBlockAppHash = []byte{} 10960 } 10961 iNdEx = postIndex 10962 default: 10963 iNdEx = preIndex 10964 skippy, err := skipTypes(dAtA[iNdEx:]) 10965 if err != nil { 10966 return err 10967 } 10968 if skippy < 0 { 10969 return ErrInvalidLengthTypes 10970 } 10971 if (iNdEx + skippy) < 0 { 10972 return ErrInvalidLengthTypes 10973 } 10974 if (iNdEx + skippy) > l { 10975 return io.ErrUnexpectedEOF 10976 } 10977 iNdEx += skippy 10978 } 10979 } 10980 10981 if iNdEx > l { 10982 return io.ErrUnexpectedEOF 10983 } 10984 return nil 10985 } 10986 func (m *ResponseSetOption) Unmarshal(dAtA []byte) error { 10987 l := len(dAtA) 10988 iNdEx := 0 10989 for iNdEx < l { 10990 preIndex := iNdEx 10991 var wire uint64 10992 for shift := uint(0); ; shift += 7 { 10993 if shift >= 64 { 10994 return ErrIntOverflowTypes 10995 } 10996 if iNdEx >= l { 10997 return io.ErrUnexpectedEOF 10998 } 10999 b := dAtA[iNdEx] 11000 iNdEx++ 11001 wire |= uint64(b&0x7F) << shift 11002 if b < 0x80 { 11003 break 11004 } 11005 } 11006 fieldNum := int32(wire >> 3) 11007 wireType := int(wire & 0x7) 11008 if wireType == 4 { 11009 return fmt.Errorf("proto: ResponseSetOption: wiretype end group for non-group") 11010 } 11011 if fieldNum <= 0 { 11012 return fmt.Errorf("proto: ResponseSetOption: illegal tag %d (wire type %d)", fieldNum, wire) 11013 } 11014 switch fieldNum { 11015 case 1: 11016 if wireType != 0 { 11017 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 11018 } 11019 m.Code = 0 11020 for shift := uint(0); ; shift += 7 { 11021 if shift >= 64 { 11022 return ErrIntOverflowTypes 11023 } 11024 if iNdEx >= l { 11025 return io.ErrUnexpectedEOF 11026 } 11027 b := dAtA[iNdEx] 11028 iNdEx++ 11029 m.Code |= uint32(b&0x7F) << shift 11030 if b < 0x80 { 11031 break 11032 } 11033 } 11034 case 3: 11035 if wireType != 2 { 11036 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 11037 } 11038 var stringLen uint64 11039 for shift := uint(0); ; shift += 7 { 11040 if shift >= 64 { 11041 return ErrIntOverflowTypes 11042 } 11043 if iNdEx >= l { 11044 return io.ErrUnexpectedEOF 11045 } 11046 b := dAtA[iNdEx] 11047 iNdEx++ 11048 stringLen |= uint64(b&0x7F) << shift 11049 if b < 0x80 { 11050 break 11051 } 11052 } 11053 intStringLen := int(stringLen) 11054 if intStringLen < 0 { 11055 return ErrInvalidLengthTypes 11056 } 11057 postIndex := iNdEx + intStringLen 11058 if postIndex < 0 { 11059 return ErrInvalidLengthTypes 11060 } 11061 if postIndex > l { 11062 return io.ErrUnexpectedEOF 11063 } 11064 m.Log = string(dAtA[iNdEx:postIndex]) 11065 iNdEx = postIndex 11066 case 4: 11067 if wireType != 2 { 11068 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 11069 } 11070 var stringLen 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 stringLen |= uint64(b&0x7F) << shift 11081 if b < 0x80 { 11082 break 11083 } 11084 } 11085 intStringLen := int(stringLen) 11086 if intStringLen < 0 { 11087 return ErrInvalidLengthTypes 11088 } 11089 postIndex := iNdEx + intStringLen 11090 if postIndex < 0 { 11091 return ErrInvalidLengthTypes 11092 } 11093 if postIndex > l { 11094 return io.ErrUnexpectedEOF 11095 } 11096 m.Info = string(dAtA[iNdEx:postIndex]) 11097 iNdEx = postIndex 11098 default: 11099 iNdEx = preIndex 11100 skippy, err := skipTypes(dAtA[iNdEx:]) 11101 if err != nil { 11102 return err 11103 } 11104 if skippy < 0 { 11105 return ErrInvalidLengthTypes 11106 } 11107 if (iNdEx + skippy) < 0 { 11108 return ErrInvalidLengthTypes 11109 } 11110 if (iNdEx + skippy) > l { 11111 return io.ErrUnexpectedEOF 11112 } 11113 iNdEx += skippy 11114 } 11115 } 11116 11117 if iNdEx > l { 11118 return io.ErrUnexpectedEOF 11119 } 11120 return nil 11121 } 11122 func (m *ResponseInitChain) Unmarshal(dAtA []byte) error { 11123 l := len(dAtA) 11124 iNdEx := 0 11125 for iNdEx < l { 11126 preIndex := iNdEx 11127 var wire uint64 11128 for shift := uint(0); ; shift += 7 { 11129 if shift >= 64 { 11130 return ErrIntOverflowTypes 11131 } 11132 if iNdEx >= l { 11133 return io.ErrUnexpectedEOF 11134 } 11135 b := dAtA[iNdEx] 11136 iNdEx++ 11137 wire |= uint64(b&0x7F) << shift 11138 if b < 0x80 { 11139 break 11140 } 11141 } 11142 fieldNum := int32(wire >> 3) 11143 wireType := int(wire & 0x7) 11144 if wireType == 4 { 11145 return fmt.Errorf("proto: ResponseInitChain: wiretype end group for non-group") 11146 } 11147 if fieldNum <= 0 { 11148 return fmt.Errorf("proto: ResponseInitChain: illegal tag %d (wire type %d)", fieldNum, wire) 11149 } 11150 switch fieldNum { 11151 case 1: 11152 if wireType != 2 { 11153 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType) 11154 } 11155 var msglen int 11156 for shift := uint(0); ; shift += 7 { 11157 if shift >= 64 { 11158 return ErrIntOverflowTypes 11159 } 11160 if iNdEx >= l { 11161 return io.ErrUnexpectedEOF 11162 } 11163 b := dAtA[iNdEx] 11164 iNdEx++ 11165 msglen |= int(b&0x7F) << shift 11166 if b < 0x80 { 11167 break 11168 } 11169 } 11170 if msglen < 0 { 11171 return ErrInvalidLengthTypes 11172 } 11173 postIndex := iNdEx + msglen 11174 if postIndex < 0 { 11175 return ErrInvalidLengthTypes 11176 } 11177 if postIndex > l { 11178 return io.ErrUnexpectedEOF 11179 } 11180 if m.ConsensusParams == nil { 11181 m.ConsensusParams = &ConsensusParams{} 11182 } 11183 if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11184 return err 11185 } 11186 iNdEx = postIndex 11187 case 2: 11188 if wireType != 2 { 11189 return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) 11190 } 11191 var msglen int 11192 for shift := uint(0); ; shift += 7 { 11193 if shift >= 64 { 11194 return ErrIntOverflowTypes 11195 } 11196 if iNdEx >= l { 11197 return io.ErrUnexpectedEOF 11198 } 11199 b := dAtA[iNdEx] 11200 iNdEx++ 11201 msglen |= int(b&0x7F) << shift 11202 if b < 0x80 { 11203 break 11204 } 11205 } 11206 if msglen < 0 { 11207 return ErrInvalidLengthTypes 11208 } 11209 postIndex := iNdEx + msglen 11210 if postIndex < 0 { 11211 return ErrInvalidLengthTypes 11212 } 11213 if postIndex > l { 11214 return io.ErrUnexpectedEOF 11215 } 11216 m.Validators = append(m.Validators, ValidatorUpdate{}) 11217 if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11218 return err 11219 } 11220 iNdEx = postIndex 11221 default: 11222 iNdEx = preIndex 11223 skippy, err := skipTypes(dAtA[iNdEx:]) 11224 if err != nil { 11225 return err 11226 } 11227 if skippy < 0 { 11228 return ErrInvalidLengthTypes 11229 } 11230 if (iNdEx + skippy) < 0 { 11231 return ErrInvalidLengthTypes 11232 } 11233 if (iNdEx + skippy) > l { 11234 return io.ErrUnexpectedEOF 11235 } 11236 iNdEx += skippy 11237 } 11238 } 11239 11240 if iNdEx > l { 11241 return io.ErrUnexpectedEOF 11242 } 11243 return nil 11244 } 11245 func (m *ResponseQuery) Unmarshal(dAtA []byte) error { 11246 l := len(dAtA) 11247 iNdEx := 0 11248 for iNdEx < l { 11249 preIndex := iNdEx 11250 var wire uint64 11251 for shift := uint(0); ; shift += 7 { 11252 if shift >= 64 { 11253 return ErrIntOverflowTypes 11254 } 11255 if iNdEx >= l { 11256 return io.ErrUnexpectedEOF 11257 } 11258 b := dAtA[iNdEx] 11259 iNdEx++ 11260 wire |= uint64(b&0x7F) << shift 11261 if b < 0x80 { 11262 break 11263 } 11264 } 11265 fieldNum := int32(wire >> 3) 11266 wireType := int(wire & 0x7) 11267 if wireType == 4 { 11268 return fmt.Errorf("proto: ResponseQuery: wiretype end group for non-group") 11269 } 11270 if fieldNum <= 0 { 11271 return fmt.Errorf("proto: ResponseQuery: illegal tag %d (wire type %d)", fieldNum, wire) 11272 } 11273 switch fieldNum { 11274 case 1: 11275 if wireType != 0 { 11276 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 11277 } 11278 m.Code = 0 11279 for shift := uint(0); ; shift += 7 { 11280 if shift >= 64 { 11281 return ErrIntOverflowTypes 11282 } 11283 if iNdEx >= l { 11284 return io.ErrUnexpectedEOF 11285 } 11286 b := dAtA[iNdEx] 11287 iNdEx++ 11288 m.Code |= uint32(b&0x7F) << shift 11289 if b < 0x80 { 11290 break 11291 } 11292 } 11293 case 3: 11294 if wireType != 2 { 11295 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 11296 } 11297 var stringLen uint64 11298 for shift := uint(0); ; shift += 7 { 11299 if shift >= 64 { 11300 return ErrIntOverflowTypes 11301 } 11302 if iNdEx >= l { 11303 return io.ErrUnexpectedEOF 11304 } 11305 b := dAtA[iNdEx] 11306 iNdEx++ 11307 stringLen |= uint64(b&0x7F) << shift 11308 if b < 0x80 { 11309 break 11310 } 11311 } 11312 intStringLen := int(stringLen) 11313 if intStringLen < 0 { 11314 return ErrInvalidLengthTypes 11315 } 11316 postIndex := iNdEx + intStringLen 11317 if postIndex < 0 { 11318 return ErrInvalidLengthTypes 11319 } 11320 if postIndex > l { 11321 return io.ErrUnexpectedEOF 11322 } 11323 m.Log = string(dAtA[iNdEx:postIndex]) 11324 iNdEx = postIndex 11325 case 4: 11326 if wireType != 2 { 11327 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 11328 } 11329 var stringLen uint64 11330 for shift := uint(0); ; shift += 7 { 11331 if shift >= 64 { 11332 return ErrIntOverflowTypes 11333 } 11334 if iNdEx >= l { 11335 return io.ErrUnexpectedEOF 11336 } 11337 b := dAtA[iNdEx] 11338 iNdEx++ 11339 stringLen |= uint64(b&0x7F) << shift 11340 if b < 0x80 { 11341 break 11342 } 11343 } 11344 intStringLen := int(stringLen) 11345 if intStringLen < 0 { 11346 return ErrInvalidLengthTypes 11347 } 11348 postIndex := iNdEx + intStringLen 11349 if postIndex < 0 { 11350 return ErrInvalidLengthTypes 11351 } 11352 if postIndex > l { 11353 return io.ErrUnexpectedEOF 11354 } 11355 m.Info = string(dAtA[iNdEx:postIndex]) 11356 iNdEx = postIndex 11357 case 5: 11358 if wireType != 0 { 11359 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 11360 } 11361 m.Index = 0 11362 for shift := uint(0); ; shift += 7 { 11363 if shift >= 64 { 11364 return ErrIntOverflowTypes 11365 } 11366 if iNdEx >= l { 11367 return io.ErrUnexpectedEOF 11368 } 11369 b := dAtA[iNdEx] 11370 iNdEx++ 11371 m.Index |= int64(b&0x7F) << shift 11372 if b < 0x80 { 11373 break 11374 } 11375 } 11376 case 6: 11377 if wireType != 2 { 11378 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 11379 } 11380 var byteLen int 11381 for shift := uint(0); ; shift += 7 { 11382 if shift >= 64 { 11383 return ErrIntOverflowTypes 11384 } 11385 if iNdEx >= l { 11386 return io.ErrUnexpectedEOF 11387 } 11388 b := dAtA[iNdEx] 11389 iNdEx++ 11390 byteLen |= int(b&0x7F) << shift 11391 if b < 0x80 { 11392 break 11393 } 11394 } 11395 if byteLen < 0 { 11396 return ErrInvalidLengthTypes 11397 } 11398 postIndex := iNdEx + byteLen 11399 if postIndex < 0 { 11400 return ErrInvalidLengthTypes 11401 } 11402 if postIndex > l { 11403 return io.ErrUnexpectedEOF 11404 } 11405 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) 11406 if m.Key == nil { 11407 m.Key = []byte{} 11408 } 11409 iNdEx = postIndex 11410 case 7: 11411 if wireType != 2 { 11412 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 11413 } 11414 var byteLen int 11415 for shift := uint(0); ; shift += 7 { 11416 if shift >= 64 { 11417 return ErrIntOverflowTypes 11418 } 11419 if iNdEx >= l { 11420 return io.ErrUnexpectedEOF 11421 } 11422 b := dAtA[iNdEx] 11423 iNdEx++ 11424 byteLen |= int(b&0x7F) << shift 11425 if b < 0x80 { 11426 break 11427 } 11428 } 11429 if byteLen < 0 { 11430 return ErrInvalidLengthTypes 11431 } 11432 postIndex := iNdEx + byteLen 11433 if postIndex < 0 { 11434 return ErrInvalidLengthTypes 11435 } 11436 if postIndex > l { 11437 return io.ErrUnexpectedEOF 11438 } 11439 m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) 11440 if m.Value == nil { 11441 m.Value = []byte{} 11442 } 11443 iNdEx = postIndex 11444 case 8: 11445 if wireType != 2 { 11446 return fmt.Errorf("proto: wrong wireType = %d for field ProofOps", wireType) 11447 } 11448 var msglen int 11449 for shift := uint(0); ; shift += 7 { 11450 if shift >= 64 { 11451 return ErrIntOverflowTypes 11452 } 11453 if iNdEx >= l { 11454 return io.ErrUnexpectedEOF 11455 } 11456 b := dAtA[iNdEx] 11457 iNdEx++ 11458 msglen |= int(b&0x7F) << shift 11459 if b < 0x80 { 11460 break 11461 } 11462 } 11463 if msglen < 0 { 11464 return ErrInvalidLengthTypes 11465 } 11466 postIndex := iNdEx + msglen 11467 if postIndex < 0 { 11468 return ErrInvalidLengthTypes 11469 } 11470 if postIndex > l { 11471 return io.ErrUnexpectedEOF 11472 } 11473 if m.ProofOps == nil { 11474 m.ProofOps = &crypto.ProofOps{} 11475 } 11476 if err := m.ProofOps.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11477 return err 11478 } 11479 iNdEx = postIndex 11480 case 9: 11481 if wireType != 0 { 11482 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 11483 } 11484 m.Height = 0 11485 for shift := uint(0); ; shift += 7 { 11486 if shift >= 64 { 11487 return ErrIntOverflowTypes 11488 } 11489 if iNdEx >= l { 11490 return io.ErrUnexpectedEOF 11491 } 11492 b := dAtA[iNdEx] 11493 iNdEx++ 11494 m.Height |= int64(b&0x7F) << shift 11495 if b < 0x80 { 11496 break 11497 } 11498 } 11499 case 10: 11500 if wireType != 2 { 11501 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 11502 } 11503 var stringLen uint64 11504 for shift := uint(0); ; shift += 7 { 11505 if shift >= 64 { 11506 return ErrIntOverflowTypes 11507 } 11508 if iNdEx >= l { 11509 return io.ErrUnexpectedEOF 11510 } 11511 b := dAtA[iNdEx] 11512 iNdEx++ 11513 stringLen |= uint64(b&0x7F) << shift 11514 if b < 0x80 { 11515 break 11516 } 11517 } 11518 intStringLen := int(stringLen) 11519 if intStringLen < 0 { 11520 return ErrInvalidLengthTypes 11521 } 11522 postIndex := iNdEx + intStringLen 11523 if postIndex < 0 { 11524 return ErrInvalidLengthTypes 11525 } 11526 if postIndex > l { 11527 return io.ErrUnexpectedEOF 11528 } 11529 m.Codespace = string(dAtA[iNdEx:postIndex]) 11530 iNdEx = postIndex 11531 default: 11532 iNdEx = preIndex 11533 skippy, err := skipTypes(dAtA[iNdEx:]) 11534 if err != nil { 11535 return err 11536 } 11537 if skippy < 0 { 11538 return ErrInvalidLengthTypes 11539 } 11540 if (iNdEx + skippy) < 0 { 11541 return ErrInvalidLengthTypes 11542 } 11543 if (iNdEx + skippy) > l { 11544 return io.ErrUnexpectedEOF 11545 } 11546 iNdEx += skippy 11547 } 11548 } 11549 11550 if iNdEx > l { 11551 return io.ErrUnexpectedEOF 11552 } 11553 return nil 11554 } 11555 func (m *ResponseBeginBlock) Unmarshal(dAtA []byte) error { 11556 l := len(dAtA) 11557 iNdEx := 0 11558 for iNdEx < l { 11559 preIndex := iNdEx 11560 var wire uint64 11561 for shift := uint(0); ; shift += 7 { 11562 if shift >= 64 { 11563 return ErrIntOverflowTypes 11564 } 11565 if iNdEx >= l { 11566 return io.ErrUnexpectedEOF 11567 } 11568 b := dAtA[iNdEx] 11569 iNdEx++ 11570 wire |= uint64(b&0x7F) << shift 11571 if b < 0x80 { 11572 break 11573 } 11574 } 11575 fieldNum := int32(wire >> 3) 11576 wireType := int(wire & 0x7) 11577 if wireType == 4 { 11578 return fmt.Errorf("proto: ResponseBeginBlock: wiretype end group for non-group") 11579 } 11580 if fieldNum <= 0 { 11581 return fmt.Errorf("proto: ResponseBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 11582 } 11583 switch fieldNum { 11584 case 1: 11585 if wireType != 2 { 11586 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 11587 } 11588 var msglen int 11589 for shift := uint(0); ; shift += 7 { 11590 if shift >= 64 { 11591 return ErrIntOverflowTypes 11592 } 11593 if iNdEx >= l { 11594 return io.ErrUnexpectedEOF 11595 } 11596 b := dAtA[iNdEx] 11597 iNdEx++ 11598 msglen |= int(b&0x7F) << shift 11599 if b < 0x80 { 11600 break 11601 } 11602 } 11603 if msglen < 0 { 11604 return ErrInvalidLengthTypes 11605 } 11606 postIndex := iNdEx + msglen 11607 if postIndex < 0 { 11608 return ErrInvalidLengthTypes 11609 } 11610 if postIndex > l { 11611 return io.ErrUnexpectedEOF 11612 } 11613 m.Events = append(m.Events, Event{}) 11614 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11615 return err 11616 } 11617 iNdEx = postIndex 11618 default: 11619 iNdEx = preIndex 11620 skippy, err := skipTypes(dAtA[iNdEx:]) 11621 if err != nil { 11622 return err 11623 } 11624 if skippy < 0 { 11625 return ErrInvalidLengthTypes 11626 } 11627 if (iNdEx + skippy) < 0 { 11628 return ErrInvalidLengthTypes 11629 } 11630 if (iNdEx + skippy) > l { 11631 return io.ErrUnexpectedEOF 11632 } 11633 iNdEx += skippy 11634 } 11635 } 11636 11637 if iNdEx > l { 11638 return io.ErrUnexpectedEOF 11639 } 11640 return nil 11641 } 11642 func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error { 11643 l := len(dAtA) 11644 iNdEx := 0 11645 for iNdEx < l { 11646 preIndex := iNdEx 11647 var wire uint64 11648 for shift := uint(0); ; shift += 7 { 11649 if shift >= 64 { 11650 return ErrIntOverflowTypes 11651 } 11652 if iNdEx >= l { 11653 return io.ErrUnexpectedEOF 11654 } 11655 b := dAtA[iNdEx] 11656 iNdEx++ 11657 wire |= uint64(b&0x7F) << shift 11658 if b < 0x80 { 11659 break 11660 } 11661 } 11662 fieldNum := int32(wire >> 3) 11663 wireType := int(wire & 0x7) 11664 if wireType == 4 { 11665 return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group") 11666 } 11667 if fieldNum <= 0 { 11668 return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 11669 } 11670 switch fieldNum { 11671 case 1: 11672 if wireType != 0 { 11673 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 11674 } 11675 m.Code = 0 11676 for shift := uint(0); ; shift += 7 { 11677 if shift >= 64 { 11678 return ErrIntOverflowTypes 11679 } 11680 if iNdEx >= l { 11681 return io.ErrUnexpectedEOF 11682 } 11683 b := dAtA[iNdEx] 11684 iNdEx++ 11685 m.Code |= uint32(b&0x7F) << shift 11686 if b < 0x80 { 11687 break 11688 } 11689 } 11690 case 2: 11691 if wireType != 2 { 11692 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 11693 } 11694 var byteLen int 11695 for shift := uint(0); ; shift += 7 { 11696 if shift >= 64 { 11697 return ErrIntOverflowTypes 11698 } 11699 if iNdEx >= l { 11700 return io.ErrUnexpectedEOF 11701 } 11702 b := dAtA[iNdEx] 11703 iNdEx++ 11704 byteLen |= int(b&0x7F) << shift 11705 if b < 0x80 { 11706 break 11707 } 11708 } 11709 if byteLen < 0 { 11710 return ErrInvalidLengthTypes 11711 } 11712 postIndex := iNdEx + byteLen 11713 if postIndex < 0 { 11714 return ErrInvalidLengthTypes 11715 } 11716 if postIndex > l { 11717 return io.ErrUnexpectedEOF 11718 } 11719 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 11720 if m.Data == nil { 11721 m.Data = []byte{} 11722 } 11723 iNdEx = postIndex 11724 case 3: 11725 if wireType != 2 { 11726 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 11727 } 11728 var stringLen uint64 11729 for shift := uint(0); ; shift += 7 { 11730 if shift >= 64 { 11731 return ErrIntOverflowTypes 11732 } 11733 if iNdEx >= l { 11734 return io.ErrUnexpectedEOF 11735 } 11736 b := dAtA[iNdEx] 11737 iNdEx++ 11738 stringLen |= uint64(b&0x7F) << shift 11739 if b < 0x80 { 11740 break 11741 } 11742 } 11743 intStringLen := int(stringLen) 11744 if intStringLen < 0 { 11745 return ErrInvalidLengthTypes 11746 } 11747 postIndex := iNdEx + intStringLen 11748 if postIndex < 0 { 11749 return ErrInvalidLengthTypes 11750 } 11751 if postIndex > l { 11752 return io.ErrUnexpectedEOF 11753 } 11754 m.Log = string(dAtA[iNdEx:postIndex]) 11755 iNdEx = postIndex 11756 case 4: 11757 if wireType != 2 { 11758 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 11759 } 11760 var stringLen uint64 11761 for shift := uint(0); ; shift += 7 { 11762 if shift >= 64 { 11763 return ErrIntOverflowTypes 11764 } 11765 if iNdEx >= l { 11766 return io.ErrUnexpectedEOF 11767 } 11768 b := dAtA[iNdEx] 11769 iNdEx++ 11770 stringLen |= uint64(b&0x7F) << shift 11771 if b < 0x80 { 11772 break 11773 } 11774 } 11775 intStringLen := int(stringLen) 11776 if intStringLen < 0 { 11777 return ErrInvalidLengthTypes 11778 } 11779 postIndex := iNdEx + intStringLen 11780 if postIndex < 0 { 11781 return ErrInvalidLengthTypes 11782 } 11783 if postIndex > l { 11784 return io.ErrUnexpectedEOF 11785 } 11786 m.Info = string(dAtA[iNdEx:postIndex]) 11787 iNdEx = postIndex 11788 case 5: 11789 if wireType != 0 { 11790 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 11791 } 11792 m.GasWanted = 0 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 m.GasWanted |= int64(b&0x7F) << shift 11803 if b < 0x80 { 11804 break 11805 } 11806 } 11807 case 6: 11808 if wireType != 0 { 11809 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 11810 } 11811 m.GasUsed = 0 11812 for shift := uint(0); ; shift += 7 { 11813 if shift >= 64 { 11814 return ErrIntOverflowTypes 11815 } 11816 if iNdEx >= l { 11817 return io.ErrUnexpectedEOF 11818 } 11819 b := dAtA[iNdEx] 11820 iNdEx++ 11821 m.GasUsed |= int64(b&0x7F) << shift 11822 if b < 0x80 { 11823 break 11824 } 11825 } 11826 case 7: 11827 if wireType != 2 { 11828 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 11829 } 11830 var msglen int 11831 for shift := uint(0); ; shift += 7 { 11832 if shift >= 64 { 11833 return ErrIntOverflowTypes 11834 } 11835 if iNdEx >= l { 11836 return io.ErrUnexpectedEOF 11837 } 11838 b := dAtA[iNdEx] 11839 iNdEx++ 11840 msglen |= int(b&0x7F) << shift 11841 if b < 0x80 { 11842 break 11843 } 11844 } 11845 if msglen < 0 { 11846 return ErrInvalidLengthTypes 11847 } 11848 postIndex := iNdEx + msglen 11849 if postIndex < 0 { 11850 return ErrInvalidLengthTypes 11851 } 11852 if postIndex > l { 11853 return io.ErrUnexpectedEOF 11854 } 11855 m.Events = append(m.Events, Event{}) 11856 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11857 return err 11858 } 11859 iNdEx = postIndex 11860 case 8: 11861 if wireType != 2 { 11862 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 11863 } 11864 var stringLen uint64 11865 for shift := uint(0); ; shift += 7 { 11866 if shift >= 64 { 11867 return ErrIntOverflowTypes 11868 } 11869 if iNdEx >= l { 11870 return io.ErrUnexpectedEOF 11871 } 11872 b := dAtA[iNdEx] 11873 iNdEx++ 11874 stringLen |= uint64(b&0x7F) << shift 11875 if b < 0x80 { 11876 break 11877 } 11878 } 11879 intStringLen := int(stringLen) 11880 if intStringLen < 0 { 11881 return ErrInvalidLengthTypes 11882 } 11883 postIndex := iNdEx + intStringLen 11884 if postIndex < 0 { 11885 return ErrInvalidLengthTypes 11886 } 11887 if postIndex > l { 11888 return io.ErrUnexpectedEOF 11889 } 11890 m.Codespace = string(dAtA[iNdEx:postIndex]) 11891 iNdEx = postIndex 11892 default: 11893 iNdEx = preIndex 11894 skippy, err := skipTypes(dAtA[iNdEx:]) 11895 if err != nil { 11896 return err 11897 } 11898 if skippy < 0 { 11899 return ErrInvalidLengthTypes 11900 } 11901 if (iNdEx + skippy) < 0 { 11902 return ErrInvalidLengthTypes 11903 } 11904 if (iNdEx + skippy) > l { 11905 return io.ErrUnexpectedEOF 11906 } 11907 iNdEx += skippy 11908 } 11909 } 11910 11911 if iNdEx > l { 11912 return io.ErrUnexpectedEOF 11913 } 11914 return nil 11915 } 11916 func (m *ResponseDeliverTx) Unmarshal(dAtA []byte) error { 11917 l := len(dAtA) 11918 iNdEx := 0 11919 for iNdEx < l { 11920 preIndex := iNdEx 11921 var wire uint64 11922 for shift := uint(0); ; shift += 7 { 11923 if shift >= 64 { 11924 return ErrIntOverflowTypes 11925 } 11926 if iNdEx >= l { 11927 return io.ErrUnexpectedEOF 11928 } 11929 b := dAtA[iNdEx] 11930 iNdEx++ 11931 wire |= uint64(b&0x7F) << shift 11932 if b < 0x80 { 11933 break 11934 } 11935 } 11936 fieldNum := int32(wire >> 3) 11937 wireType := int(wire & 0x7) 11938 if wireType == 4 { 11939 return fmt.Errorf("proto: ResponseDeliverTx: wiretype end group for non-group") 11940 } 11941 if fieldNum <= 0 { 11942 return fmt.Errorf("proto: ResponseDeliverTx: illegal tag %d (wire type %d)", fieldNum, wire) 11943 } 11944 switch fieldNum { 11945 case 1: 11946 if wireType != 0 { 11947 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 11948 } 11949 m.Code = 0 11950 for shift := uint(0); ; shift += 7 { 11951 if shift >= 64 { 11952 return ErrIntOverflowTypes 11953 } 11954 if iNdEx >= l { 11955 return io.ErrUnexpectedEOF 11956 } 11957 b := dAtA[iNdEx] 11958 iNdEx++ 11959 m.Code |= uint32(b&0x7F) << shift 11960 if b < 0x80 { 11961 break 11962 } 11963 } 11964 case 2: 11965 if wireType != 2 { 11966 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 11967 } 11968 var byteLen int 11969 for shift := uint(0); ; shift += 7 { 11970 if shift >= 64 { 11971 return ErrIntOverflowTypes 11972 } 11973 if iNdEx >= l { 11974 return io.ErrUnexpectedEOF 11975 } 11976 b := dAtA[iNdEx] 11977 iNdEx++ 11978 byteLen |= int(b&0x7F) << shift 11979 if b < 0x80 { 11980 break 11981 } 11982 } 11983 if byteLen < 0 { 11984 return ErrInvalidLengthTypes 11985 } 11986 postIndex := iNdEx + byteLen 11987 if postIndex < 0 { 11988 return ErrInvalidLengthTypes 11989 } 11990 if postIndex > l { 11991 return io.ErrUnexpectedEOF 11992 } 11993 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 11994 if m.Data == nil { 11995 m.Data = []byte{} 11996 } 11997 iNdEx = postIndex 11998 case 3: 11999 if wireType != 2 { 12000 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 12001 } 12002 var stringLen uint64 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 stringLen |= uint64(b&0x7F) << shift 12013 if b < 0x80 { 12014 break 12015 } 12016 } 12017 intStringLen := int(stringLen) 12018 if intStringLen < 0 { 12019 return ErrInvalidLengthTypes 12020 } 12021 postIndex := iNdEx + intStringLen 12022 if postIndex < 0 { 12023 return ErrInvalidLengthTypes 12024 } 12025 if postIndex > l { 12026 return io.ErrUnexpectedEOF 12027 } 12028 m.Log = string(dAtA[iNdEx:postIndex]) 12029 iNdEx = postIndex 12030 case 4: 12031 if wireType != 2 { 12032 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 12033 } 12034 var stringLen uint64 12035 for shift := uint(0); ; shift += 7 { 12036 if shift >= 64 { 12037 return ErrIntOverflowTypes 12038 } 12039 if iNdEx >= l { 12040 return io.ErrUnexpectedEOF 12041 } 12042 b := dAtA[iNdEx] 12043 iNdEx++ 12044 stringLen |= uint64(b&0x7F) << shift 12045 if b < 0x80 { 12046 break 12047 } 12048 } 12049 intStringLen := int(stringLen) 12050 if intStringLen < 0 { 12051 return ErrInvalidLengthTypes 12052 } 12053 postIndex := iNdEx + intStringLen 12054 if postIndex < 0 { 12055 return ErrInvalidLengthTypes 12056 } 12057 if postIndex > l { 12058 return io.ErrUnexpectedEOF 12059 } 12060 m.Info = string(dAtA[iNdEx:postIndex]) 12061 iNdEx = postIndex 12062 case 5: 12063 if wireType != 0 { 12064 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 12065 } 12066 m.GasWanted = 0 12067 for shift := uint(0); ; shift += 7 { 12068 if shift >= 64 { 12069 return ErrIntOverflowTypes 12070 } 12071 if iNdEx >= l { 12072 return io.ErrUnexpectedEOF 12073 } 12074 b := dAtA[iNdEx] 12075 iNdEx++ 12076 m.GasWanted |= int64(b&0x7F) << shift 12077 if b < 0x80 { 12078 break 12079 } 12080 } 12081 case 6: 12082 if wireType != 0 { 12083 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 12084 } 12085 m.GasUsed = 0 12086 for shift := uint(0); ; shift += 7 { 12087 if shift >= 64 { 12088 return ErrIntOverflowTypes 12089 } 12090 if iNdEx >= l { 12091 return io.ErrUnexpectedEOF 12092 } 12093 b := dAtA[iNdEx] 12094 iNdEx++ 12095 m.GasUsed |= int64(b&0x7F) << shift 12096 if b < 0x80 { 12097 break 12098 } 12099 } 12100 case 7: 12101 if wireType != 2 { 12102 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 12103 } 12104 var msglen int 12105 for shift := uint(0); ; shift += 7 { 12106 if shift >= 64 { 12107 return ErrIntOverflowTypes 12108 } 12109 if iNdEx >= l { 12110 return io.ErrUnexpectedEOF 12111 } 12112 b := dAtA[iNdEx] 12113 iNdEx++ 12114 msglen |= int(b&0x7F) << shift 12115 if b < 0x80 { 12116 break 12117 } 12118 } 12119 if msglen < 0 { 12120 return ErrInvalidLengthTypes 12121 } 12122 postIndex := iNdEx + msglen 12123 if postIndex < 0 { 12124 return ErrInvalidLengthTypes 12125 } 12126 if postIndex > l { 12127 return io.ErrUnexpectedEOF 12128 } 12129 m.Events = append(m.Events, Event{}) 12130 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12131 return err 12132 } 12133 iNdEx = postIndex 12134 case 8: 12135 if wireType != 2 { 12136 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 12137 } 12138 var stringLen uint64 12139 for shift := uint(0); ; shift += 7 { 12140 if shift >= 64 { 12141 return ErrIntOverflowTypes 12142 } 12143 if iNdEx >= l { 12144 return io.ErrUnexpectedEOF 12145 } 12146 b := dAtA[iNdEx] 12147 iNdEx++ 12148 stringLen |= uint64(b&0x7F) << shift 12149 if b < 0x80 { 12150 break 12151 } 12152 } 12153 intStringLen := int(stringLen) 12154 if intStringLen < 0 { 12155 return ErrInvalidLengthTypes 12156 } 12157 postIndex := iNdEx + intStringLen 12158 if postIndex < 0 { 12159 return ErrInvalidLengthTypes 12160 } 12161 if postIndex > l { 12162 return io.ErrUnexpectedEOF 12163 } 12164 m.Codespace = string(dAtA[iNdEx:postIndex]) 12165 iNdEx = postIndex 12166 default: 12167 iNdEx = preIndex 12168 skippy, err := skipTypes(dAtA[iNdEx:]) 12169 if err != nil { 12170 return err 12171 } 12172 if skippy < 0 { 12173 return ErrInvalidLengthTypes 12174 } 12175 if (iNdEx + skippy) < 0 { 12176 return ErrInvalidLengthTypes 12177 } 12178 if (iNdEx + skippy) > l { 12179 return io.ErrUnexpectedEOF 12180 } 12181 iNdEx += skippy 12182 } 12183 } 12184 12185 if iNdEx > l { 12186 return io.ErrUnexpectedEOF 12187 } 12188 return nil 12189 } 12190 func (m *ResponseEndBlock) Unmarshal(dAtA []byte) error { 12191 l := len(dAtA) 12192 iNdEx := 0 12193 for iNdEx < l { 12194 preIndex := iNdEx 12195 var wire uint64 12196 for shift := uint(0); ; shift += 7 { 12197 if shift >= 64 { 12198 return ErrIntOverflowTypes 12199 } 12200 if iNdEx >= l { 12201 return io.ErrUnexpectedEOF 12202 } 12203 b := dAtA[iNdEx] 12204 iNdEx++ 12205 wire |= uint64(b&0x7F) << shift 12206 if b < 0x80 { 12207 break 12208 } 12209 } 12210 fieldNum := int32(wire >> 3) 12211 wireType := int(wire & 0x7) 12212 if wireType == 4 { 12213 return fmt.Errorf("proto: ResponseEndBlock: wiretype end group for non-group") 12214 } 12215 if fieldNum <= 0 { 12216 return fmt.Errorf("proto: ResponseEndBlock: illegal tag %d (wire type %d)", fieldNum, wire) 12217 } 12218 switch fieldNum { 12219 case 1: 12220 if wireType != 2 { 12221 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdates", wireType) 12222 } 12223 var msglen int 12224 for shift := uint(0); ; shift += 7 { 12225 if shift >= 64 { 12226 return ErrIntOverflowTypes 12227 } 12228 if iNdEx >= l { 12229 return io.ErrUnexpectedEOF 12230 } 12231 b := dAtA[iNdEx] 12232 iNdEx++ 12233 msglen |= int(b&0x7F) << shift 12234 if b < 0x80 { 12235 break 12236 } 12237 } 12238 if msglen < 0 { 12239 return ErrInvalidLengthTypes 12240 } 12241 postIndex := iNdEx + msglen 12242 if postIndex < 0 { 12243 return ErrInvalidLengthTypes 12244 } 12245 if postIndex > l { 12246 return io.ErrUnexpectedEOF 12247 } 12248 m.ValidatorUpdates = append(m.ValidatorUpdates, ValidatorUpdate{}) 12249 if err := m.ValidatorUpdates[len(m.ValidatorUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12250 return err 12251 } 12252 iNdEx = postIndex 12253 case 2: 12254 if wireType != 2 { 12255 return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParamUpdates", wireType) 12256 } 12257 var msglen int 12258 for shift := uint(0); ; shift += 7 { 12259 if shift >= 64 { 12260 return ErrIntOverflowTypes 12261 } 12262 if iNdEx >= l { 12263 return io.ErrUnexpectedEOF 12264 } 12265 b := dAtA[iNdEx] 12266 iNdEx++ 12267 msglen |= int(b&0x7F) << shift 12268 if b < 0x80 { 12269 break 12270 } 12271 } 12272 if msglen < 0 { 12273 return ErrInvalidLengthTypes 12274 } 12275 postIndex := iNdEx + msglen 12276 if postIndex < 0 { 12277 return ErrInvalidLengthTypes 12278 } 12279 if postIndex > l { 12280 return io.ErrUnexpectedEOF 12281 } 12282 if m.ConsensusParamUpdates == nil { 12283 m.ConsensusParamUpdates = &ConsensusParams{} 12284 } 12285 if err := m.ConsensusParamUpdates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12286 return err 12287 } 12288 iNdEx = postIndex 12289 case 3: 12290 if wireType != 2 { 12291 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 12292 } 12293 var msglen int 12294 for shift := uint(0); ; shift += 7 { 12295 if shift >= 64 { 12296 return ErrIntOverflowTypes 12297 } 12298 if iNdEx >= l { 12299 return io.ErrUnexpectedEOF 12300 } 12301 b := dAtA[iNdEx] 12302 iNdEx++ 12303 msglen |= int(b&0x7F) << shift 12304 if b < 0x80 { 12305 break 12306 } 12307 } 12308 if msglen < 0 { 12309 return ErrInvalidLengthTypes 12310 } 12311 postIndex := iNdEx + msglen 12312 if postIndex < 0 { 12313 return ErrInvalidLengthTypes 12314 } 12315 if postIndex > l { 12316 return io.ErrUnexpectedEOF 12317 } 12318 m.Events = append(m.Events, Event{}) 12319 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12320 return err 12321 } 12322 iNdEx = postIndex 12323 default: 12324 iNdEx = preIndex 12325 skippy, err := skipTypes(dAtA[iNdEx:]) 12326 if err != nil { 12327 return err 12328 } 12329 if skippy < 0 { 12330 return ErrInvalidLengthTypes 12331 } 12332 if (iNdEx + skippy) < 0 { 12333 return ErrInvalidLengthTypes 12334 } 12335 if (iNdEx + skippy) > l { 12336 return io.ErrUnexpectedEOF 12337 } 12338 iNdEx += skippy 12339 } 12340 } 12341 12342 if iNdEx > l { 12343 return io.ErrUnexpectedEOF 12344 } 12345 return nil 12346 } 12347 func (m *ResponseCommit) Unmarshal(dAtA []byte) error { 12348 l := len(dAtA) 12349 iNdEx := 0 12350 for iNdEx < l { 12351 preIndex := iNdEx 12352 var wire uint64 12353 for shift := uint(0); ; shift += 7 { 12354 if shift >= 64 { 12355 return ErrIntOverflowTypes 12356 } 12357 if iNdEx >= l { 12358 return io.ErrUnexpectedEOF 12359 } 12360 b := dAtA[iNdEx] 12361 iNdEx++ 12362 wire |= uint64(b&0x7F) << shift 12363 if b < 0x80 { 12364 break 12365 } 12366 } 12367 fieldNum := int32(wire >> 3) 12368 wireType := int(wire & 0x7) 12369 if wireType == 4 { 12370 return fmt.Errorf("proto: ResponseCommit: wiretype end group for non-group") 12371 } 12372 if fieldNum <= 0 { 12373 return fmt.Errorf("proto: ResponseCommit: illegal tag %d (wire type %d)", fieldNum, wire) 12374 } 12375 switch fieldNum { 12376 case 2: 12377 if wireType != 2 { 12378 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 12379 } 12380 var byteLen int 12381 for shift := uint(0); ; shift += 7 { 12382 if shift >= 64 { 12383 return ErrIntOverflowTypes 12384 } 12385 if iNdEx >= l { 12386 return io.ErrUnexpectedEOF 12387 } 12388 b := dAtA[iNdEx] 12389 iNdEx++ 12390 byteLen |= int(b&0x7F) << shift 12391 if b < 0x80 { 12392 break 12393 } 12394 } 12395 if byteLen < 0 { 12396 return ErrInvalidLengthTypes 12397 } 12398 postIndex := iNdEx + byteLen 12399 if postIndex < 0 { 12400 return ErrInvalidLengthTypes 12401 } 12402 if postIndex > l { 12403 return io.ErrUnexpectedEOF 12404 } 12405 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 12406 if m.Data == nil { 12407 m.Data = []byte{} 12408 } 12409 iNdEx = postIndex 12410 case 3: 12411 if wireType != 0 { 12412 return fmt.Errorf("proto: wrong wireType = %d for field RetainHeight", wireType) 12413 } 12414 m.RetainHeight = 0 12415 for shift := uint(0); ; shift += 7 { 12416 if shift >= 64 { 12417 return ErrIntOverflowTypes 12418 } 12419 if iNdEx >= l { 12420 return io.ErrUnexpectedEOF 12421 } 12422 b := dAtA[iNdEx] 12423 iNdEx++ 12424 m.RetainHeight |= int64(b&0x7F) << shift 12425 if b < 0x80 { 12426 break 12427 } 12428 } 12429 default: 12430 iNdEx = preIndex 12431 skippy, err := skipTypes(dAtA[iNdEx:]) 12432 if err != nil { 12433 return err 12434 } 12435 if skippy < 0 { 12436 return ErrInvalidLengthTypes 12437 } 12438 if (iNdEx + skippy) < 0 { 12439 return ErrInvalidLengthTypes 12440 } 12441 if (iNdEx + skippy) > l { 12442 return io.ErrUnexpectedEOF 12443 } 12444 iNdEx += skippy 12445 } 12446 } 12447 12448 if iNdEx > l { 12449 return io.ErrUnexpectedEOF 12450 } 12451 return nil 12452 } 12453 func (m *ResponseListSnapshots) Unmarshal(dAtA []byte) error { 12454 l := len(dAtA) 12455 iNdEx := 0 12456 for iNdEx < l { 12457 preIndex := iNdEx 12458 var wire uint64 12459 for shift := uint(0); ; shift += 7 { 12460 if shift >= 64 { 12461 return ErrIntOverflowTypes 12462 } 12463 if iNdEx >= l { 12464 return io.ErrUnexpectedEOF 12465 } 12466 b := dAtA[iNdEx] 12467 iNdEx++ 12468 wire |= uint64(b&0x7F) << shift 12469 if b < 0x80 { 12470 break 12471 } 12472 } 12473 fieldNum := int32(wire >> 3) 12474 wireType := int(wire & 0x7) 12475 if wireType == 4 { 12476 return fmt.Errorf("proto: ResponseListSnapshots: wiretype end group for non-group") 12477 } 12478 if fieldNum <= 0 { 12479 return fmt.Errorf("proto: ResponseListSnapshots: illegal tag %d (wire type %d)", fieldNum, wire) 12480 } 12481 switch fieldNum { 12482 case 1: 12483 if wireType != 2 { 12484 return fmt.Errorf("proto: wrong wireType = %d for field Snapshots", wireType) 12485 } 12486 var msglen int 12487 for shift := uint(0); ; shift += 7 { 12488 if shift >= 64 { 12489 return ErrIntOverflowTypes 12490 } 12491 if iNdEx >= l { 12492 return io.ErrUnexpectedEOF 12493 } 12494 b := dAtA[iNdEx] 12495 iNdEx++ 12496 msglen |= int(b&0x7F) << shift 12497 if b < 0x80 { 12498 break 12499 } 12500 } 12501 if msglen < 0 { 12502 return ErrInvalidLengthTypes 12503 } 12504 postIndex := iNdEx + msglen 12505 if postIndex < 0 { 12506 return ErrInvalidLengthTypes 12507 } 12508 if postIndex > l { 12509 return io.ErrUnexpectedEOF 12510 } 12511 m.Snapshots = append(m.Snapshots, &Snapshot{}) 12512 if err := m.Snapshots[len(m.Snapshots)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12513 return err 12514 } 12515 iNdEx = postIndex 12516 default: 12517 iNdEx = preIndex 12518 skippy, err := skipTypes(dAtA[iNdEx:]) 12519 if err != nil { 12520 return err 12521 } 12522 if skippy < 0 { 12523 return ErrInvalidLengthTypes 12524 } 12525 if (iNdEx + skippy) < 0 { 12526 return ErrInvalidLengthTypes 12527 } 12528 if (iNdEx + skippy) > l { 12529 return io.ErrUnexpectedEOF 12530 } 12531 iNdEx += skippy 12532 } 12533 } 12534 12535 if iNdEx > l { 12536 return io.ErrUnexpectedEOF 12537 } 12538 return nil 12539 } 12540 func (m *ResponseOfferSnapshot) Unmarshal(dAtA []byte) error { 12541 l := len(dAtA) 12542 iNdEx := 0 12543 for iNdEx < l { 12544 preIndex := iNdEx 12545 var wire uint64 12546 for shift := uint(0); ; shift += 7 { 12547 if shift >= 64 { 12548 return ErrIntOverflowTypes 12549 } 12550 if iNdEx >= l { 12551 return io.ErrUnexpectedEOF 12552 } 12553 b := dAtA[iNdEx] 12554 iNdEx++ 12555 wire |= uint64(b&0x7F) << shift 12556 if b < 0x80 { 12557 break 12558 } 12559 } 12560 fieldNum := int32(wire >> 3) 12561 wireType := int(wire & 0x7) 12562 if wireType == 4 { 12563 return fmt.Errorf("proto: ResponseOfferSnapshot: wiretype end group for non-group") 12564 } 12565 if fieldNum <= 0 { 12566 return fmt.Errorf("proto: ResponseOfferSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) 12567 } 12568 switch fieldNum { 12569 case 1: 12570 if wireType != 0 { 12571 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 12572 } 12573 m.Result = 0 12574 for shift := uint(0); ; shift += 7 { 12575 if shift >= 64 { 12576 return ErrIntOverflowTypes 12577 } 12578 if iNdEx >= l { 12579 return io.ErrUnexpectedEOF 12580 } 12581 b := dAtA[iNdEx] 12582 iNdEx++ 12583 m.Result |= ResponseOfferSnapshot_Result(b&0x7F) << shift 12584 if b < 0x80 { 12585 break 12586 } 12587 } 12588 default: 12589 iNdEx = preIndex 12590 skippy, err := skipTypes(dAtA[iNdEx:]) 12591 if err != nil { 12592 return err 12593 } 12594 if skippy < 0 { 12595 return ErrInvalidLengthTypes 12596 } 12597 if (iNdEx + skippy) < 0 { 12598 return ErrInvalidLengthTypes 12599 } 12600 if (iNdEx + skippy) > l { 12601 return io.ErrUnexpectedEOF 12602 } 12603 iNdEx += skippy 12604 } 12605 } 12606 12607 if iNdEx > l { 12608 return io.ErrUnexpectedEOF 12609 } 12610 return nil 12611 } 12612 func (m *ResponseLoadSnapshotChunk) Unmarshal(dAtA []byte) error { 12613 l := len(dAtA) 12614 iNdEx := 0 12615 for iNdEx < l { 12616 preIndex := iNdEx 12617 var wire uint64 12618 for shift := uint(0); ; shift += 7 { 12619 if shift >= 64 { 12620 return ErrIntOverflowTypes 12621 } 12622 if iNdEx >= l { 12623 return io.ErrUnexpectedEOF 12624 } 12625 b := dAtA[iNdEx] 12626 iNdEx++ 12627 wire |= uint64(b&0x7F) << shift 12628 if b < 0x80 { 12629 break 12630 } 12631 } 12632 fieldNum := int32(wire >> 3) 12633 wireType := int(wire & 0x7) 12634 if wireType == 4 { 12635 return fmt.Errorf("proto: ResponseLoadSnapshotChunk: wiretype end group for non-group") 12636 } 12637 if fieldNum <= 0 { 12638 return fmt.Errorf("proto: ResponseLoadSnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) 12639 } 12640 switch fieldNum { 12641 case 1: 12642 if wireType != 2 { 12643 return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType) 12644 } 12645 var byteLen int 12646 for shift := uint(0); ; shift += 7 { 12647 if shift >= 64 { 12648 return ErrIntOverflowTypes 12649 } 12650 if iNdEx >= l { 12651 return io.ErrUnexpectedEOF 12652 } 12653 b := dAtA[iNdEx] 12654 iNdEx++ 12655 byteLen |= int(b&0x7F) << shift 12656 if b < 0x80 { 12657 break 12658 } 12659 } 12660 if byteLen < 0 { 12661 return ErrInvalidLengthTypes 12662 } 12663 postIndex := iNdEx + byteLen 12664 if postIndex < 0 { 12665 return ErrInvalidLengthTypes 12666 } 12667 if postIndex > l { 12668 return io.ErrUnexpectedEOF 12669 } 12670 m.Chunk = append(m.Chunk[:0], dAtA[iNdEx:postIndex]...) 12671 if m.Chunk == nil { 12672 m.Chunk = []byte{} 12673 } 12674 iNdEx = postIndex 12675 default: 12676 iNdEx = preIndex 12677 skippy, err := skipTypes(dAtA[iNdEx:]) 12678 if err != nil { 12679 return err 12680 } 12681 if skippy < 0 { 12682 return ErrInvalidLengthTypes 12683 } 12684 if (iNdEx + skippy) < 0 { 12685 return ErrInvalidLengthTypes 12686 } 12687 if (iNdEx + skippy) > l { 12688 return io.ErrUnexpectedEOF 12689 } 12690 iNdEx += skippy 12691 } 12692 } 12693 12694 if iNdEx > l { 12695 return io.ErrUnexpectedEOF 12696 } 12697 return nil 12698 } 12699 func (m *ResponseApplySnapshotChunk) Unmarshal(dAtA []byte) error { 12700 l := len(dAtA) 12701 iNdEx := 0 12702 for iNdEx < l { 12703 preIndex := iNdEx 12704 var wire uint64 12705 for shift := uint(0); ; shift += 7 { 12706 if shift >= 64 { 12707 return ErrIntOverflowTypes 12708 } 12709 if iNdEx >= l { 12710 return io.ErrUnexpectedEOF 12711 } 12712 b := dAtA[iNdEx] 12713 iNdEx++ 12714 wire |= uint64(b&0x7F) << shift 12715 if b < 0x80 { 12716 break 12717 } 12718 } 12719 fieldNum := int32(wire >> 3) 12720 wireType := int(wire & 0x7) 12721 if wireType == 4 { 12722 return fmt.Errorf("proto: ResponseApplySnapshotChunk: wiretype end group for non-group") 12723 } 12724 if fieldNum <= 0 { 12725 return fmt.Errorf("proto: ResponseApplySnapshotChunk: illegal tag %d (wire type %d)", fieldNum, wire) 12726 } 12727 switch fieldNum { 12728 case 1: 12729 if wireType != 0 { 12730 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 12731 } 12732 m.Result = 0 12733 for shift := uint(0); ; shift += 7 { 12734 if shift >= 64 { 12735 return ErrIntOverflowTypes 12736 } 12737 if iNdEx >= l { 12738 return io.ErrUnexpectedEOF 12739 } 12740 b := dAtA[iNdEx] 12741 iNdEx++ 12742 m.Result |= ResponseApplySnapshotChunk_Result(b&0x7F) << shift 12743 if b < 0x80 { 12744 break 12745 } 12746 } 12747 case 2: 12748 if wireType == 0 { 12749 var v uint32 12750 for shift := uint(0); ; shift += 7 { 12751 if shift >= 64 { 12752 return ErrIntOverflowTypes 12753 } 12754 if iNdEx >= l { 12755 return io.ErrUnexpectedEOF 12756 } 12757 b := dAtA[iNdEx] 12758 iNdEx++ 12759 v |= uint32(b&0x7F) << shift 12760 if b < 0x80 { 12761 break 12762 } 12763 } 12764 m.RefetchChunks = append(m.RefetchChunks, v) 12765 } else if wireType == 2 { 12766 var packedLen int 12767 for shift := uint(0); ; shift += 7 { 12768 if shift >= 64 { 12769 return ErrIntOverflowTypes 12770 } 12771 if iNdEx >= l { 12772 return io.ErrUnexpectedEOF 12773 } 12774 b := dAtA[iNdEx] 12775 iNdEx++ 12776 packedLen |= int(b&0x7F) << shift 12777 if b < 0x80 { 12778 break 12779 } 12780 } 12781 if packedLen < 0 { 12782 return ErrInvalidLengthTypes 12783 } 12784 postIndex := iNdEx + packedLen 12785 if postIndex < 0 { 12786 return ErrInvalidLengthTypes 12787 } 12788 if postIndex > l { 12789 return io.ErrUnexpectedEOF 12790 } 12791 var elementCount int 12792 var count int 12793 for _, integer := range dAtA[iNdEx:postIndex] { 12794 if integer < 128 { 12795 count++ 12796 } 12797 } 12798 elementCount = count 12799 if elementCount != 0 && len(m.RefetchChunks) == 0 { 12800 m.RefetchChunks = make([]uint32, 0, elementCount) 12801 } 12802 for iNdEx < postIndex { 12803 var v uint32 12804 for shift := uint(0); ; shift += 7 { 12805 if shift >= 64 { 12806 return ErrIntOverflowTypes 12807 } 12808 if iNdEx >= l { 12809 return io.ErrUnexpectedEOF 12810 } 12811 b := dAtA[iNdEx] 12812 iNdEx++ 12813 v |= uint32(b&0x7F) << shift 12814 if b < 0x80 { 12815 break 12816 } 12817 } 12818 m.RefetchChunks = append(m.RefetchChunks, v) 12819 } 12820 } else { 12821 return fmt.Errorf("proto: wrong wireType = %d for field RefetchChunks", wireType) 12822 } 12823 case 3: 12824 if wireType != 2 { 12825 return fmt.Errorf("proto: wrong wireType = %d for field RejectSenders", wireType) 12826 } 12827 var stringLen uint64 12828 for shift := uint(0); ; shift += 7 { 12829 if shift >= 64 { 12830 return ErrIntOverflowTypes 12831 } 12832 if iNdEx >= l { 12833 return io.ErrUnexpectedEOF 12834 } 12835 b := dAtA[iNdEx] 12836 iNdEx++ 12837 stringLen |= uint64(b&0x7F) << shift 12838 if b < 0x80 { 12839 break 12840 } 12841 } 12842 intStringLen := int(stringLen) 12843 if intStringLen < 0 { 12844 return ErrInvalidLengthTypes 12845 } 12846 postIndex := iNdEx + intStringLen 12847 if postIndex < 0 { 12848 return ErrInvalidLengthTypes 12849 } 12850 if postIndex > l { 12851 return io.ErrUnexpectedEOF 12852 } 12853 m.RejectSenders = append(m.RejectSenders, string(dAtA[iNdEx:postIndex])) 12854 iNdEx = postIndex 12855 default: 12856 iNdEx = preIndex 12857 skippy, err := skipTypes(dAtA[iNdEx:]) 12858 if err != nil { 12859 return err 12860 } 12861 if skippy < 0 { 12862 return ErrInvalidLengthTypes 12863 } 12864 if (iNdEx + skippy) < 0 { 12865 return ErrInvalidLengthTypes 12866 } 12867 if (iNdEx + skippy) > l { 12868 return io.ErrUnexpectedEOF 12869 } 12870 iNdEx += skippy 12871 } 12872 } 12873 12874 if iNdEx > l { 12875 return io.ErrUnexpectedEOF 12876 } 12877 return nil 12878 } 12879 func (m *ConsensusParams) Unmarshal(dAtA []byte) error { 12880 l := len(dAtA) 12881 iNdEx := 0 12882 for iNdEx < l { 12883 preIndex := iNdEx 12884 var wire uint64 12885 for shift := uint(0); ; shift += 7 { 12886 if shift >= 64 { 12887 return ErrIntOverflowTypes 12888 } 12889 if iNdEx >= l { 12890 return io.ErrUnexpectedEOF 12891 } 12892 b := dAtA[iNdEx] 12893 iNdEx++ 12894 wire |= uint64(b&0x7F) << shift 12895 if b < 0x80 { 12896 break 12897 } 12898 } 12899 fieldNum := int32(wire >> 3) 12900 wireType := int(wire & 0x7) 12901 if wireType == 4 { 12902 return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group") 12903 } 12904 if fieldNum <= 0 { 12905 return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire) 12906 } 12907 switch fieldNum { 12908 case 1: 12909 if wireType != 2 { 12910 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 12911 } 12912 var msglen int 12913 for shift := uint(0); ; shift += 7 { 12914 if shift >= 64 { 12915 return ErrIntOverflowTypes 12916 } 12917 if iNdEx >= l { 12918 return io.ErrUnexpectedEOF 12919 } 12920 b := dAtA[iNdEx] 12921 iNdEx++ 12922 msglen |= int(b&0x7F) << shift 12923 if b < 0x80 { 12924 break 12925 } 12926 } 12927 if msglen < 0 { 12928 return ErrInvalidLengthTypes 12929 } 12930 postIndex := iNdEx + msglen 12931 if postIndex < 0 { 12932 return ErrInvalidLengthTypes 12933 } 12934 if postIndex > l { 12935 return io.ErrUnexpectedEOF 12936 } 12937 if m.Block == nil { 12938 m.Block = &BlockParams{} 12939 } 12940 if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12941 return err 12942 } 12943 iNdEx = postIndex 12944 case 2: 12945 if wireType != 2 { 12946 return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType) 12947 } 12948 var msglen int 12949 for shift := uint(0); ; shift += 7 { 12950 if shift >= 64 { 12951 return ErrIntOverflowTypes 12952 } 12953 if iNdEx >= l { 12954 return io.ErrUnexpectedEOF 12955 } 12956 b := dAtA[iNdEx] 12957 iNdEx++ 12958 msglen |= int(b&0x7F) << shift 12959 if b < 0x80 { 12960 break 12961 } 12962 } 12963 if msglen < 0 { 12964 return ErrInvalidLengthTypes 12965 } 12966 postIndex := iNdEx + msglen 12967 if postIndex < 0 { 12968 return ErrInvalidLengthTypes 12969 } 12970 if postIndex > l { 12971 return io.ErrUnexpectedEOF 12972 } 12973 if m.Evidence == nil { 12974 m.Evidence = &types1.EvidenceParams{} 12975 } 12976 if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 12977 return err 12978 } 12979 iNdEx = postIndex 12980 case 3: 12981 if wireType != 2 { 12982 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 12983 } 12984 var msglen int 12985 for shift := uint(0); ; shift += 7 { 12986 if shift >= 64 { 12987 return ErrIntOverflowTypes 12988 } 12989 if iNdEx >= l { 12990 return io.ErrUnexpectedEOF 12991 } 12992 b := dAtA[iNdEx] 12993 iNdEx++ 12994 msglen |= int(b&0x7F) << shift 12995 if b < 0x80 { 12996 break 12997 } 12998 } 12999 if msglen < 0 { 13000 return ErrInvalidLengthTypes 13001 } 13002 postIndex := iNdEx + msglen 13003 if postIndex < 0 { 13004 return ErrInvalidLengthTypes 13005 } 13006 if postIndex > l { 13007 return io.ErrUnexpectedEOF 13008 } 13009 if m.Validator == nil { 13010 m.Validator = &types1.ValidatorParams{} 13011 } 13012 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13013 return err 13014 } 13015 iNdEx = postIndex 13016 case 4: 13017 if wireType != 2 { 13018 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 13019 } 13020 var msglen int 13021 for shift := uint(0); ; shift += 7 { 13022 if shift >= 64 { 13023 return ErrIntOverflowTypes 13024 } 13025 if iNdEx >= l { 13026 return io.ErrUnexpectedEOF 13027 } 13028 b := dAtA[iNdEx] 13029 iNdEx++ 13030 msglen |= int(b&0x7F) << shift 13031 if b < 0x80 { 13032 break 13033 } 13034 } 13035 if msglen < 0 { 13036 return ErrInvalidLengthTypes 13037 } 13038 postIndex := iNdEx + msglen 13039 if postIndex < 0 { 13040 return ErrInvalidLengthTypes 13041 } 13042 if postIndex > l { 13043 return io.ErrUnexpectedEOF 13044 } 13045 if m.Version == nil { 13046 m.Version = &types1.VersionParams{} 13047 } 13048 if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13049 return err 13050 } 13051 iNdEx = postIndex 13052 default: 13053 iNdEx = preIndex 13054 skippy, err := skipTypes(dAtA[iNdEx:]) 13055 if err != nil { 13056 return err 13057 } 13058 if skippy < 0 { 13059 return ErrInvalidLengthTypes 13060 } 13061 if (iNdEx + skippy) < 0 { 13062 return ErrInvalidLengthTypes 13063 } 13064 if (iNdEx + skippy) > l { 13065 return io.ErrUnexpectedEOF 13066 } 13067 iNdEx += skippy 13068 } 13069 } 13070 13071 if iNdEx > l { 13072 return io.ErrUnexpectedEOF 13073 } 13074 return nil 13075 } 13076 func (m *BlockParams) Unmarshal(dAtA []byte) error { 13077 l := len(dAtA) 13078 iNdEx := 0 13079 for iNdEx < l { 13080 preIndex := iNdEx 13081 var wire uint64 13082 for shift := uint(0); ; shift += 7 { 13083 if shift >= 64 { 13084 return ErrIntOverflowTypes 13085 } 13086 if iNdEx >= l { 13087 return io.ErrUnexpectedEOF 13088 } 13089 b := dAtA[iNdEx] 13090 iNdEx++ 13091 wire |= uint64(b&0x7F) << shift 13092 if b < 0x80 { 13093 break 13094 } 13095 } 13096 fieldNum := int32(wire >> 3) 13097 wireType := int(wire & 0x7) 13098 if wireType == 4 { 13099 return fmt.Errorf("proto: BlockParams: wiretype end group for non-group") 13100 } 13101 if fieldNum <= 0 { 13102 return fmt.Errorf("proto: BlockParams: illegal tag %d (wire type %d)", fieldNum, wire) 13103 } 13104 switch fieldNum { 13105 case 1: 13106 if wireType != 0 { 13107 return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType) 13108 } 13109 m.MaxBytes = 0 13110 for shift := uint(0); ; shift += 7 { 13111 if shift >= 64 { 13112 return ErrIntOverflowTypes 13113 } 13114 if iNdEx >= l { 13115 return io.ErrUnexpectedEOF 13116 } 13117 b := dAtA[iNdEx] 13118 iNdEx++ 13119 m.MaxBytes |= int64(b&0x7F) << shift 13120 if b < 0x80 { 13121 break 13122 } 13123 } 13124 case 2: 13125 if wireType != 0 { 13126 return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType) 13127 } 13128 m.MaxGas = 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.MaxGas |= int64(b&0x7F) << shift 13139 if b < 0x80 { 13140 break 13141 } 13142 } 13143 default: 13144 iNdEx = preIndex 13145 skippy, err := skipTypes(dAtA[iNdEx:]) 13146 if err != nil { 13147 return err 13148 } 13149 if skippy < 0 { 13150 return ErrInvalidLengthTypes 13151 } 13152 if (iNdEx + skippy) < 0 { 13153 return ErrInvalidLengthTypes 13154 } 13155 if (iNdEx + skippy) > l { 13156 return io.ErrUnexpectedEOF 13157 } 13158 iNdEx += skippy 13159 } 13160 } 13161 13162 if iNdEx > l { 13163 return io.ErrUnexpectedEOF 13164 } 13165 return nil 13166 } 13167 func (m *LastCommitInfo) Unmarshal(dAtA []byte) error { 13168 l := len(dAtA) 13169 iNdEx := 0 13170 for iNdEx < l { 13171 preIndex := iNdEx 13172 var wire uint64 13173 for shift := uint(0); ; shift += 7 { 13174 if shift >= 64 { 13175 return ErrIntOverflowTypes 13176 } 13177 if iNdEx >= l { 13178 return io.ErrUnexpectedEOF 13179 } 13180 b := dAtA[iNdEx] 13181 iNdEx++ 13182 wire |= uint64(b&0x7F) << shift 13183 if b < 0x80 { 13184 break 13185 } 13186 } 13187 fieldNum := int32(wire >> 3) 13188 wireType := int(wire & 0x7) 13189 if wireType == 4 { 13190 return fmt.Errorf("proto: LastCommitInfo: wiretype end group for non-group") 13191 } 13192 if fieldNum <= 0 { 13193 return fmt.Errorf("proto: LastCommitInfo: illegal tag %d (wire type %d)", fieldNum, wire) 13194 } 13195 switch fieldNum { 13196 case 1: 13197 if wireType != 0 { 13198 return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) 13199 } 13200 m.Round = 0 13201 for shift := uint(0); ; shift += 7 { 13202 if shift >= 64 { 13203 return ErrIntOverflowTypes 13204 } 13205 if iNdEx >= l { 13206 return io.ErrUnexpectedEOF 13207 } 13208 b := dAtA[iNdEx] 13209 iNdEx++ 13210 m.Round |= int32(b&0x7F) << shift 13211 if b < 0x80 { 13212 break 13213 } 13214 } 13215 case 2: 13216 if wireType != 2 { 13217 return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType) 13218 } 13219 var msglen int 13220 for shift := uint(0); ; shift += 7 { 13221 if shift >= 64 { 13222 return ErrIntOverflowTypes 13223 } 13224 if iNdEx >= l { 13225 return io.ErrUnexpectedEOF 13226 } 13227 b := dAtA[iNdEx] 13228 iNdEx++ 13229 msglen |= int(b&0x7F) << shift 13230 if b < 0x80 { 13231 break 13232 } 13233 } 13234 if msglen < 0 { 13235 return ErrInvalidLengthTypes 13236 } 13237 postIndex := iNdEx + msglen 13238 if postIndex < 0 { 13239 return ErrInvalidLengthTypes 13240 } 13241 if postIndex > l { 13242 return io.ErrUnexpectedEOF 13243 } 13244 m.Votes = append(m.Votes, VoteInfo{}) 13245 if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13246 return err 13247 } 13248 iNdEx = postIndex 13249 default: 13250 iNdEx = preIndex 13251 skippy, err := skipTypes(dAtA[iNdEx:]) 13252 if err != nil { 13253 return err 13254 } 13255 if skippy < 0 { 13256 return ErrInvalidLengthTypes 13257 } 13258 if (iNdEx + skippy) < 0 { 13259 return ErrInvalidLengthTypes 13260 } 13261 if (iNdEx + skippy) > l { 13262 return io.ErrUnexpectedEOF 13263 } 13264 iNdEx += skippy 13265 } 13266 } 13267 13268 if iNdEx > l { 13269 return io.ErrUnexpectedEOF 13270 } 13271 return nil 13272 } 13273 func (m *Event) Unmarshal(dAtA []byte) error { 13274 l := len(dAtA) 13275 iNdEx := 0 13276 for iNdEx < l { 13277 preIndex := iNdEx 13278 var wire uint64 13279 for shift := uint(0); ; shift += 7 { 13280 if shift >= 64 { 13281 return ErrIntOverflowTypes 13282 } 13283 if iNdEx >= l { 13284 return io.ErrUnexpectedEOF 13285 } 13286 b := dAtA[iNdEx] 13287 iNdEx++ 13288 wire |= uint64(b&0x7F) << shift 13289 if b < 0x80 { 13290 break 13291 } 13292 } 13293 fieldNum := int32(wire >> 3) 13294 wireType := int(wire & 0x7) 13295 if wireType == 4 { 13296 return fmt.Errorf("proto: Event: wiretype end group for non-group") 13297 } 13298 if fieldNum <= 0 { 13299 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) 13300 } 13301 switch fieldNum { 13302 case 1: 13303 if wireType != 2 { 13304 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 13305 } 13306 var stringLen uint64 13307 for shift := uint(0); ; shift += 7 { 13308 if shift >= 64 { 13309 return ErrIntOverflowTypes 13310 } 13311 if iNdEx >= l { 13312 return io.ErrUnexpectedEOF 13313 } 13314 b := dAtA[iNdEx] 13315 iNdEx++ 13316 stringLen |= uint64(b&0x7F) << shift 13317 if b < 0x80 { 13318 break 13319 } 13320 } 13321 intStringLen := int(stringLen) 13322 if intStringLen < 0 { 13323 return ErrInvalidLengthTypes 13324 } 13325 postIndex := iNdEx + intStringLen 13326 if postIndex < 0 { 13327 return ErrInvalidLengthTypes 13328 } 13329 if postIndex > l { 13330 return io.ErrUnexpectedEOF 13331 } 13332 m.Type = string(dAtA[iNdEx:postIndex]) 13333 iNdEx = postIndex 13334 case 2: 13335 if wireType != 2 { 13336 return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) 13337 } 13338 var msglen int 13339 for shift := uint(0); ; shift += 7 { 13340 if shift >= 64 { 13341 return ErrIntOverflowTypes 13342 } 13343 if iNdEx >= l { 13344 return io.ErrUnexpectedEOF 13345 } 13346 b := dAtA[iNdEx] 13347 iNdEx++ 13348 msglen |= int(b&0x7F) << shift 13349 if b < 0x80 { 13350 break 13351 } 13352 } 13353 if msglen < 0 { 13354 return ErrInvalidLengthTypes 13355 } 13356 postIndex := iNdEx + msglen 13357 if postIndex < 0 { 13358 return ErrInvalidLengthTypes 13359 } 13360 if postIndex > l { 13361 return io.ErrUnexpectedEOF 13362 } 13363 m.Attributes = append(m.Attributes, EventAttribute{}) 13364 if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13365 return err 13366 } 13367 iNdEx = postIndex 13368 default: 13369 iNdEx = preIndex 13370 skippy, err := skipTypes(dAtA[iNdEx:]) 13371 if err != nil { 13372 return err 13373 } 13374 if skippy < 0 { 13375 return ErrInvalidLengthTypes 13376 } 13377 if (iNdEx + skippy) < 0 { 13378 return ErrInvalidLengthTypes 13379 } 13380 if (iNdEx + skippy) > l { 13381 return io.ErrUnexpectedEOF 13382 } 13383 iNdEx += skippy 13384 } 13385 } 13386 13387 if iNdEx > l { 13388 return io.ErrUnexpectedEOF 13389 } 13390 return nil 13391 } 13392 func (m *EventAttribute) Unmarshal(dAtA []byte) error { 13393 l := len(dAtA) 13394 iNdEx := 0 13395 for iNdEx < l { 13396 preIndex := iNdEx 13397 var wire uint64 13398 for shift := uint(0); ; shift += 7 { 13399 if shift >= 64 { 13400 return ErrIntOverflowTypes 13401 } 13402 if iNdEx >= l { 13403 return io.ErrUnexpectedEOF 13404 } 13405 b := dAtA[iNdEx] 13406 iNdEx++ 13407 wire |= uint64(b&0x7F) << shift 13408 if b < 0x80 { 13409 break 13410 } 13411 } 13412 fieldNum := int32(wire >> 3) 13413 wireType := int(wire & 0x7) 13414 if wireType == 4 { 13415 return fmt.Errorf("proto: EventAttribute: wiretype end group for non-group") 13416 } 13417 if fieldNum <= 0 { 13418 return fmt.Errorf("proto: EventAttribute: illegal tag %d (wire type %d)", fieldNum, wire) 13419 } 13420 switch fieldNum { 13421 case 1: 13422 if wireType != 2 { 13423 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 13424 } 13425 var byteLen int 13426 for shift := uint(0); ; shift += 7 { 13427 if shift >= 64 { 13428 return ErrIntOverflowTypes 13429 } 13430 if iNdEx >= l { 13431 return io.ErrUnexpectedEOF 13432 } 13433 b := dAtA[iNdEx] 13434 iNdEx++ 13435 byteLen |= int(b&0x7F) << shift 13436 if b < 0x80 { 13437 break 13438 } 13439 } 13440 if byteLen < 0 { 13441 return ErrInvalidLengthTypes 13442 } 13443 postIndex := iNdEx + byteLen 13444 if postIndex < 0 { 13445 return ErrInvalidLengthTypes 13446 } 13447 if postIndex > l { 13448 return io.ErrUnexpectedEOF 13449 } 13450 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) 13451 if m.Key == nil { 13452 m.Key = []byte{} 13453 } 13454 iNdEx = postIndex 13455 case 2: 13456 if wireType != 2 { 13457 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 13458 } 13459 var byteLen int 13460 for shift := uint(0); ; shift += 7 { 13461 if shift >= 64 { 13462 return ErrIntOverflowTypes 13463 } 13464 if iNdEx >= l { 13465 return io.ErrUnexpectedEOF 13466 } 13467 b := dAtA[iNdEx] 13468 iNdEx++ 13469 byteLen |= int(b&0x7F) << shift 13470 if b < 0x80 { 13471 break 13472 } 13473 } 13474 if byteLen < 0 { 13475 return ErrInvalidLengthTypes 13476 } 13477 postIndex := iNdEx + byteLen 13478 if postIndex < 0 { 13479 return ErrInvalidLengthTypes 13480 } 13481 if postIndex > l { 13482 return io.ErrUnexpectedEOF 13483 } 13484 m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) 13485 if m.Value == nil { 13486 m.Value = []byte{} 13487 } 13488 iNdEx = postIndex 13489 case 3: 13490 if wireType != 0 { 13491 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 13492 } 13493 var v int 13494 for shift := uint(0); ; shift += 7 { 13495 if shift >= 64 { 13496 return ErrIntOverflowTypes 13497 } 13498 if iNdEx >= l { 13499 return io.ErrUnexpectedEOF 13500 } 13501 b := dAtA[iNdEx] 13502 iNdEx++ 13503 v |= int(b&0x7F) << shift 13504 if b < 0x80 { 13505 break 13506 } 13507 } 13508 m.Index = bool(v != 0) 13509 default: 13510 iNdEx = preIndex 13511 skippy, err := skipTypes(dAtA[iNdEx:]) 13512 if err != nil { 13513 return err 13514 } 13515 if skippy < 0 { 13516 return ErrInvalidLengthTypes 13517 } 13518 if (iNdEx + skippy) < 0 { 13519 return ErrInvalidLengthTypes 13520 } 13521 if (iNdEx + skippy) > l { 13522 return io.ErrUnexpectedEOF 13523 } 13524 iNdEx += skippy 13525 } 13526 } 13527 13528 if iNdEx > l { 13529 return io.ErrUnexpectedEOF 13530 } 13531 return nil 13532 } 13533 func (m *TxResult) Unmarshal(dAtA []byte) error { 13534 l := len(dAtA) 13535 iNdEx := 0 13536 for iNdEx < l { 13537 preIndex := iNdEx 13538 var wire uint64 13539 for shift := uint(0); ; shift += 7 { 13540 if shift >= 64 { 13541 return ErrIntOverflowTypes 13542 } 13543 if iNdEx >= l { 13544 return io.ErrUnexpectedEOF 13545 } 13546 b := dAtA[iNdEx] 13547 iNdEx++ 13548 wire |= uint64(b&0x7F) << shift 13549 if b < 0x80 { 13550 break 13551 } 13552 } 13553 fieldNum := int32(wire >> 3) 13554 wireType := int(wire & 0x7) 13555 if wireType == 4 { 13556 return fmt.Errorf("proto: TxResult: wiretype end group for non-group") 13557 } 13558 if fieldNum <= 0 { 13559 return fmt.Errorf("proto: TxResult: illegal tag %d (wire type %d)", fieldNum, wire) 13560 } 13561 switch fieldNum { 13562 case 1: 13563 if wireType != 0 { 13564 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 13565 } 13566 m.Height = 0 13567 for shift := uint(0); ; shift += 7 { 13568 if shift >= 64 { 13569 return ErrIntOverflowTypes 13570 } 13571 if iNdEx >= l { 13572 return io.ErrUnexpectedEOF 13573 } 13574 b := dAtA[iNdEx] 13575 iNdEx++ 13576 m.Height |= int64(b&0x7F) << shift 13577 if b < 0x80 { 13578 break 13579 } 13580 } 13581 case 2: 13582 if wireType != 0 { 13583 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 13584 } 13585 m.Index = 0 13586 for shift := uint(0); ; shift += 7 { 13587 if shift >= 64 { 13588 return ErrIntOverflowTypes 13589 } 13590 if iNdEx >= l { 13591 return io.ErrUnexpectedEOF 13592 } 13593 b := dAtA[iNdEx] 13594 iNdEx++ 13595 m.Index |= uint32(b&0x7F) << shift 13596 if b < 0x80 { 13597 break 13598 } 13599 } 13600 case 3: 13601 if wireType != 2 { 13602 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 13603 } 13604 var byteLen int 13605 for shift := uint(0); ; shift += 7 { 13606 if shift >= 64 { 13607 return ErrIntOverflowTypes 13608 } 13609 if iNdEx >= l { 13610 return io.ErrUnexpectedEOF 13611 } 13612 b := dAtA[iNdEx] 13613 iNdEx++ 13614 byteLen |= int(b&0x7F) << shift 13615 if b < 0x80 { 13616 break 13617 } 13618 } 13619 if byteLen < 0 { 13620 return ErrInvalidLengthTypes 13621 } 13622 postIndex := iNdEx + byteLen 13623 if postIndex < 0 { 13624 return ErrInvalidLengthTypes 13625 } 13626 if postIndex > l { 13627 return io.ErrUnexpectedEOF 13628 } 13629 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 13630 if m.Tx == nil { 13631 m.Tx = []byte{} 13632 } 13633 iNdEx = postIndex 13634 case 4: 13635 if wireType != 2 { 13636 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 13637 } 13638 var msglen int 13639 for shift := uint(0); ; shift += 7 { 13640 if shift >= 64 { 13641 return ErrIntOverflowTypes 13642 } 13643 if iNdEx >= l { 13644 return io.ErrUnexpectedEOF 13645 } 13646 b := dAtA[iNdEx] 13647 iNdEx++ 13648 msglen |= int(b&0x7F) << shift 13649 if b < 0x80 { 13650 break 13651 } 13652 } 13653 if msglen < 0 { 13654 return ErrInvalidLengthTypes 13655 } 13656 postIndex := iNdEx + msglen 13657 if postIndex < 0 { 13658 return ErrInvalidLengthTypes 13659 } 13660 if postIndex > l { 13661 return io.ErrUnexpectedEOF 13662 } 13663 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13664 return err 13665 } 13666 iNdEx = postIndex 13667 default: 13668 iNdEx = preIndex 13669 skippy, err := skipTypes(dAtA[iNdEx:]) 13670 if err != nil { 13671 return err 13672 } 13673 if skippy < 0 { 13674 return ErrInvalidLengthTypes 13675 } 13676 if (iNdEx + skippy) < 0 { 13677 return ErrInvalidLengthTypes 13678 } 13679 if (iNdEx + skippy) > l { 13680 return io.ErrUnexpectedEOF 13681 } 13682 iNdEx += skippy 13683 } 13684 } 13685 13686 if iNdEx > l { 13687 return io.ErrUnexpectedEOF 13688 } 13689 return nil 13690 } 13691 func (m *Validator) Unmarshal(dAtA []byte) error { 13692 l := len(dAtA) 13693 iNdEx := 0 13694 for iNdEx < l { 13695 preIndex := iNdEx 13696 var wire uint64 13697 for shift := uint(0); ; shift += 7 { 13698 if shift >= 64 { 13699 return ErrIntOverflowTypes 13700 } 13701 if iNdEx >= l { 13702 return io.ErrUnexpectedEOF 13703 } 13704 b := dAtA[iNdEx] 13705 iNdEx++ 13706 wire |= uint64(b&0x7F) << shift 13707 if b < 0x80 { 13708 break 13709 } 13710 } 13711 fieldNum := int32(wire >> 3) 13712 wireType := int(wire & 0x7) 13713 if wireType == 4 { 13714 return fmt.Errorf("proto: Validator: wiretype end group for non-group") 13715 } 13716 if fieldNum <= 0 { 13717 return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) 13718 } 13719 switch fieldNum { 13720 case 1: 13721 if wireType != 2 { 13722 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 13723 } 13724 var byteLen int 13725 for shift := uint(0); ; shift += 7 { 13726 if shift >= 64 { 13727 return ErrIntOverflowTypes 13728 } 13729 if iNdEx >= l { 13730 return io.ErrUnexpectedEOF 13731 } 13732 b := dAtA[iNdEx] 13733 iNdEx++ 13734 byteLen |= int(b&0x7F) << shift 13735 if b < 0x80 { 13736 break 13737 } 13738 } 13739 if byteLen < 0 { 13740 return ErrInvalidLengthTypes 13741 } 13742 postIndex := iNdEx + byteLen 13743 if postIndex < 0 { 13744 return ErrInvalidLengthTypes 13745 } 13746 if postIndex > l { 13747 return io.ErrUnexpectedEOF 13748 } 13749 m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) 13750 if m.Address == nil { 13751 m.Address = []byte{} 13752 } 13753 iNdEx = postIndex 13754 case 3: 13755 if wireType != 0 { 13756 return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) 13757 } 13758 m.Power = 0 13759 for shift := uint(0); ; shift += 7 { 13760 if shift >= 64 { 13761 return ErrIntOverflowTypes 13762 } 13763 if iNdEx >= l { 13764 return io.ErrUnexpectedEOF 13765 } 13766 b := dAtA[iNdEx] 13767 iNdEx++ 13768 m.Power |= int64(b&0x7F) << shift 13769 if b < 0x80 { 13770 break 13771 } 13772 } 13773 default: 13774 iNdEx = preIndex 13775 skippy, err := skipTypes(dAtA[iNdEx:]) 13776 if err != nil { 13777 return err 13778 } 13779 if skippy < 0 { 13780 return ErrInvalidLengthTypes 13781 } 13782 if (iNdEx + skippy) < 0 { 13783 return ErrInvalidLengthTypes 13784 } 13785 if (iNdEx + skippy) > l { 13786 return io.ErrUnexpectedEOF 13787 } 13788 iNdEx += skippy 13789 } 13790 } 13791 13792 if iNdEx > l { 13793 return io.ErrUnexpectedEOF 13794 } 13795 return nil 13796 } 13797 func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error { 13798 l := len(dAtA) 13799 iNdEx := 0 13800 for iNdEx < l { 13801 preIndex := iNdEx 13802 var wire uint64 13803 for shift := uint(0); ; shift += 7 { 13804 if shift >= 64 { 13805 return ErrIntOverflowTypes 13806 } 13807 if iNdEx >= l { 13808 return io.ErrUnexpectedEOF 13809 } 13810 b := dAtA[iNdEx] 13811 iNdEx++ 13812 wire |= uint64(b&0x7F) << shift 13813 if b < 0x80 { 13814 break 13815 } 13816 } 13817 fieldNum := int32(wire >> 3) 13818 wireType := int(wire & 0x7) 13819 if wireType == 4 { 13820 return fmt.Errorf("proto: ValidatorUpdate: wiretype end group for non-group") 13821 } 13822 if fieldNum <= 0 { 13823 return fmt.Errorf("proto: ValidatorUpdate: illegal tag %d (wire type %d)", fieldNum, wire) 13824 } 13825 switch fieldNum { 13826 case 1: 13827 if wireType != 2 { 13828 return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) 13829 } 13830 var msglen int 13831 for shift := uint(0); ; shift += 7 { 13832 if shift >= 64 { 13833 return ErrIntOverflowTypes 13834 } 13835 if iNdEx >= l { 13836 return io.ErrUnexpectedEOF 13837 } 13838 b := dAtA[iNdEx] 13839 iNdEx++ 13840 msglen |= int(b&0x7F) << shift 13841 if b < 0x80 { 13842 break 13843 } 13844 } 13845 if msglen < 0 { 13846 return ErrInvalidLengthTypes 13847 } 13848 postIndex := iNdEx + msglen 13849 if postIndex < 0 { 13850 return ErrInvalidLengthTypes 13851 } 13852 if postIndex > l { 13853 return io.ErrUnexpectedEOF 13854 } 13855 if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13856 return err 13857 } 13858 iNdEx = postIndex 13859 case 2: 13860 if wireType != 0 { 13861 return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType) 13862 } 13863 m.Power = 0 13864 for shift := uint(0); ; shift += 7 { 13865 if shift >= 64 { 13866 return ErrIntOverflowTypes 13867 } 13868 if iNdEx >= l { 13869 return io.ErrUnexpectedEOF 13870 } 13871 b := dAtA[iNdEx] 13872 iNdEx++ 13873 m.Power |= int64(b&0x7F) << shift 13874 if b < 0x80 { 13875 break 13876 } 13877 } 13878 default: 13879 iNdEx = preIndex 13880 skippy, err := skipTypes(dAtA[iNdEx:]) 13881 if err != nil { 13882 return err 13883 } 13884 if skippy < 0 { 13885 return ErrInvalidLengthTypes 13886 } 13887 if (iNdEx + skippy) < 0 { 13888 return ErrInvalidLengthTypes 13889 } 13890 if (iNdEx + skippy) > l { 13891 return io.ErrUnexpectedEOF 13892 } 13893 iNdEx += skippy 13894 } 13895 } 13896 13897 if iNdEx > l { 13898 return io.ErrUnexpectedEOF 13899 } 13900 return nil 13901 } 13902 func (m *VoteInfo) Unmarshal(dAtA []byte) error { 13903 l := len(dAtA) 13904 iNdEx := 0 13905 for iNdEx < l { 13906 preIndex := iNdEx 13907 var wire uint64 13908 for shift := uint(0); ; shift += 7 { 13909 if shift >= 64 { 13910 return ErrIntOverflowTypes 13911 } 13912 if iNdEx >= l { 13913 return io.ErrUnexpectedEOF 13914 } 13915 b := dAtA[iNdEx] 13916 iNdEx++ 13917 wire |= uint64(b&0x7F) << shift 13918 if b < 0x80 { 13919 break 13920 } 13921 } 13922 fieldNum := int32(wire >> 3) 13923 wireType := int(wire & 0x7) 13924 if wireType == 4 { 13925 return fmt.Errorf("proto: VoteInfo: wiretype end group for non-group") 13926 } 13927 if fieldNum <= 0 { 13928 return fmt.Errorf("proto: VoteInfo: illegal tag %d (wire type %d)", fieldNum, wire) 13929 } 13930 switch fieldNum { 13931 case 1: 13932 if wireType != 2 { 13933 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 13934 } 13935 var msglen int 13936 for shift := uint(0); ; shift += 7 { 13937 if shift >= 64 { 13938 return ErrIntOverflowTypes 13939 } 13940 if iNdEx >= l { 13941 return io.ErrUnexpectedEOF 13942 } 13943 b := dAtA[iNdEx] 13944 iNdEx++ 13945 msglen |= int(b&0x7F) << shift 13946 if b < 0x80 { 13947 break 13948 } 13949 } 13950 if msglen < 0 { 13951 return ErrInvalidLengthTypes 13952 } 13953 postIndex := iNdEx + msglen 13954 if postIndex < 0 { 13955 return ErrInvalidLengthTypes 13956 } 13957 if postIndex > l { 13958 return io.ErrUnexpectedEOF 13959 } 13960 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13961 return err 13962 } 13963 iNdEx = postIndex 13964 case 2: 13965 if wireType != 0 { 13966 return fmt.Errorf("proto: wrong wireType = %d for field SignedLastBlock", wireType) 13967 } 13968 var v int 13969 for shift := uint(0); ; shift += 7 { 13970 if shift >= 64 { 13971 return ErrIntOverflowTypes 13972 } 13973 if iNdEx >= l { 13974 return io.ErrUnexpectedEOF 13975 } 13976 b := dAtA[iNdEx] 13977 iNdEx++ 13978 v |= int(b&0x7F) << shift 13979 if b < 0x80 { 13980 break 13981 } 13982 } 13983 m.SignedLastBlock = bool(v != 0) 13984 default: 13985 iNdEx = preIndex 13986 skippy, err := skipTypes(dAtA[iNdEx:]) 13987 if err != nil { 13988 return err 13989 } 13990 if skippy < 0 { 13991 return ErrInvalidLengthTypes 13992 } 13993 if (iNdEx + skippy) < 0 { 13994 return ErrInvalidLengthTypes 13995 } 13996 if (iNdEx + skippy) > l { 13997 return io.ErrUnexpectedEOF 13998 } 13999 iNdEx += skippy 14000 } 14001 } 14002 14003 if iNdEx > l { 14004 return io.ErrUnexpectedEOF 14005 } 14006 return nil 14007 } 14008 func (m *Evidence) Unmarshal(dAtA []byte) error { 14009 l := len(dAtA) 14010 iNdEx := 0 14011 for iNdEx < l { 14012 preIndex := iNdEx 14013 var wire uint64 14014 for shift := uint(0); ; shift += 7 { 14015 if shift >= 64 { 14016 return ErrIntOverflowTypes 14017 } 14018 if iNdEx >= l { 14019 return io.ErrUnexpectedEOF 14020 } 14021 b := dAtA[iNdEx] 14022 iNdEx++ 14023 wire |= uint64(b&0x7F) << shift 14024 if b < 0x80 { 14025 break 14026 } 14027 } 14028 fieldNum := int32(wire >> 3) 14029 wireType := int(wire & 0x7) 14030 if wireType == 4 { 14031 return fmt.Errorf("proto: Evidence: wiretype end group for non-group") 14032 } 14033 if fieldNum <= 0 { 14034 return fmt.Errorf("proto: Evidence: illegal tag %d (wire type %d)", fieldNum, wire) 14035 } 14036 switch fieldNum { 14037 case 1: 14038 if wireType != 2 { 14039 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 14040 } 14041 var stringLen uint64 14042 for shift := uint(0); ; shift += 7 { 14043 if shift >= 64 { 14044 return ErrIntOverflowTypes 14045 } 14046 if iNdEx >= l { 14047 return io.ErrUnexpectedEOF 14048 } 14049 b := dAtA[iNdEx] 14050 iNdEx++ 14051 stringLen |= uint64(b&0x7F) << shift 14052 if b < 0x80 { 14053 break 14054 } 14055 } 14056 intStringLen := int(stringLen) 14057 if intStringLen < 0 { 14058 return ErrInvalidLengthTypes 14059 } 14060 postIndex := iNdEx + intStringLen 14061 if postIndex < 0 { 14062 return ErrInvalidLengthTypes 14063 } 14064 if postIndex > l { 14065 return io.ErrUnexpectedEOF 14066 } 14067 m.Type = string(dAtA[iNdEx:postIndex]) 14068 iNdEx = postIndex 14069 case 2: 14070 if wireType != 2 { 14071 return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) 14072 } 14073 var msglen int 14074 for shift := uint(0); ; shift += 7 { 14075 if shift >= 64 { 14076 return ErrIntOverflowTypes 14077 } 14078 if iNdEx >= l { 14079 return io.ErrUnexpectedEOF 14080 } 14081 b := dAtA[iNdEx] 14082 iNdEx++ 14083 msglen |= int(b&0x7F) << shift 14084 if b < 0x80 { 14085 break 14086 } 14087 } 14088 if msglen < 0 { 14089 return ErrInvalidLengthTypes 14090 } 14091 postIndex := iNdEx + msglen 14092 if postIndex < 0 { 14093 return ErrInvalidLengthTypes 14094 } 14095 if postIndex > l { 14096 return io.ErrUnexpectedEOF 14097 } 14098 if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 14099 return err 14100 } 14101 iNdEx = postIndex 14102 case 3: 14103 if wireType != 0 { 14104 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 14105 } 14106 m.Height = 0 14107 for shift := uint(0); ; shift += 7 { 14108 if shift >= 64 { 14109 return ErrIntOverflowTypes 14110 } 14111 if iNdEx >= l { 14112 return io.ErrUnexpectedEOF 14113 } 14114 b := dAtA[iNdEx] 14115 iNdEx++ 14116 m.Height |= int64(b&0x7F) << shift 14117 if b < 0x80 { 14118 break 14119 } 14120 } 14121 case 4: 14122 if wireType != 2 { 14123 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 14124 } 14125 var msglen int 14126 for shift := uint(0); ; shift += 7 { 14127 if shift >= 64 { 14128 return ErrIntOverflowTypes 14129 } 14130 if iNdEx >= l { 14131 return io.ErrUnexpectedEOF 14132 } 14133 b := dAtA[iNdEx] 14134 iNdEx++ 14135 msglen |= int(b&0x7F) << shift 14136 if b < 0x80 { 14137 break 14138 } 14139 } 14140 if msglen < 0 { 14141 return ErrInvalidLengthTypes 14142 } 14143 postIndex := iNdEx + msglen 14144 if postIndex < 0 { 14145 return ErrInvalidLengthTypes 14146 } 14147 if postIndex > l { 14148 return io.ErrUnexpectedEOF 14149 } 14150 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 14151 return err 14152 } 14153 iNdEx = postIndex 14154 case 5: 14155 if wireType != 0 { 14156 return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType) 14157 } 14158 m.TotalVotingPower = 0 14159 for shift := uint(0); ; shift += 7 { 14160 if shift >= 64 { 14161 return ErrIntOverflowTypes 14162 } 14163 if iNdEx >= l { 14164 return io.ErrUnexpectedEOF 14165 } 14166 b := dAtA[iNdEx] 14167 iNdEx++ 14168 m.TotalVotingPower |= int64(b&0x7F) << shift 14169 if b < 0x80 { 14170 break 14171 } 14172 } 14173 default: 14174 iNdEx = preIndex 14175 skippy, err := skipTypes(dAtA[iNdEx:]) 14176 if err != nil { 14177 return err 14178 } 14179 if skippy < 0 { 14180 return ErrInvalidLengthTypes 14181 } 14182 if (iNdEx + skippy) < 0 { 14183 return ErrInvalidLengthTypes 14184 } 14185 if (iNdEx + skippy) > l { 14186 return io.ErrUnexpectedEOF 14187 } 14188 iNdEx += skippy 14189 } 14190 } 14191 14192 if iNdEx > l { 14193 return io.ErrUnexpectedEOF 14194 } 14195 return nil 14196 } 14197 func (m *Snapshot) Unmarshal(dAtA []byte) error { 14198 l := len(dAtA) 14199 iNdEx := 0 14200 for iNdEx < l { 14201 preIndex := iNdEx 14202 var wire uint64 14203 for shift := uint(0); ; shift += 7 { 14204 if shift >= 64 { 14205 return ErrIntOverflowTypes 14206 } 14207 if iNdEx >= l { 14208 return io.ErrUnexpectedEOF 14209 } 14210 b := dAtA[iNdEx] 14211 iNdEx++ 14212 wire |= uint64(b&0x7F) << shift 14213 if b < 0x80 { 14214 break 14215 } 14216 } 14217 fieldNum := int32(wire >> 3) 14218 wireType := int(wire & 0x7) 14219 if wireType == 4 { 14220 return fmt.Errorf("proto: Snapshot: wiretype end group for non-group") 14221 } 14222 if fieldNum <= 0 { 14223 return fmt.Errorf("proto: Snapshot: illegal tag %d (wire type %d)", fieldNum, wire) 14224 } 14225 switch fieldNum { 14226 case 1: 14227 if wireType != 0 { 14228 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 14229 } 14230 m.Height = 0 14231 for shift := uint(0); ; shift += 7 { 14232 if shift >= 64 { 14233 return ErrIntOverflowTypes 14234 } 14235 if iNdEx >= l { 14236 return io.ErrUnexpectedEOF 14237 } 14238 b := dAtA[iNdEx] 14239 iNdEx++ 14240 m.Height |= uint64(b&0x7F) << shift 14241 if b < 0x80 { 14242 break 14243 } 14244 } 14245 case 2: 14246 if wireType != 0 { 14247 return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) 14248 } 14249 m.Format = 0 14250 for shift := uint(0); ; shift += 7 { 14251 if shift >= 64 { 14252 return ErrIntOverflowTypes 14253 } 14254 if iNdEx >= l { 14255 return io.ErrUnexpectedEOF 14256 } 14257 b := dAtA[iNdEx] 14258 iNdEx++ 14259 m.Format |= uint32(b&0x7F) << shift 14260 if b < 0x80 { 14261 break 14262 } 14263 } 14264 case 3: 14265 if wireType != 0 { 14266 return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType) 14267 } 14268 m.Chunks = 0 14269 for shift := uint(0); ; shift += 7 { 14270 if shift >= 64 { 14271 return ErrIntOverflowTypes 14272 } 14273 if iNdEx >= l { 14274 return io.ErrUnexpectedEOF 14275 } 14276 b := dAtA[iNdEx] 14277 iNdEx++ 14278 m.Chunks |= uint32(b&0x7F) << shift 14279 if b < 0x80 { 14280 break 14281 } 14282 } 14283 case 4: 14284 if wireType != 2 { 14285 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 14286 } 14287 var byteLen int 14288 for shift := uint(0); ; shift += 7 { 14289 if shift >= 64 { 14290 return ErrIntOverflowTypes 14291 } 14292 if iNdEx >= l { 14293 return io.ErrUnexpectedEOF 14294 } 14295 b := dAtA[iNdEx] 14296 iNdEx++ 14297 byteLen |= int(b&0x7F) << shift 14298 if b < 0x80 { 14299 break 14300 } 14301 } 14302 if byteLen < 0 { 14303 return ErrInvalidLengthTypes 14304 } 14305 postIndex := iNdEx + byteLen 14306 if postIndex < 0 { 14307 return ErrInvalidLengthTypes 14308 } 14309 if postIndex > l { 14310 return io.ErrUnexpectedEOF 14311 } 14312 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 14313 if m.Hash == nil { 14314 m.Hash = []byte{} 14315 } 14316 iNdEx = postIndex 14317 case 5: 14318 if wireType != 2 { 14319 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 14320 } 14321 var byteLen int 14322 for shift := uint(0); ; shift += 7 { 14323 if shift >= 64 { 14324 return ErrIntOverflowTypes 14325 } 14326 if iNdEx >= l { 14327 return io.ErrUnexpectedEOF 14328 } 14329 b := dAtA[iNdEx] 14330 iNdEx++ 14331 byteLen |= int(b&0x7F) << shift 14332 if b < 0x80 { 14333 break 14334 } 14335 } 14336 if byteLen < 0 { 14337 return ErrInvalidLengthTypes 14338 } 14339 postIndex := iNdEx + byteLen 14340 if postIndex < 0 { 14341 return ErrInvalidLengthTypes 14342 } 14343 if postIndex > l { 14344 return io.ErrUnexpectedEOF 14345 } 14346 m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) 14347 if m.Metadata == nil { 14348 m.Metadata = []byte{} 14349 } 14350 iNdEx = postIndex 14351 default: 14352 iNdEx = preIndex 14353 skippy, err := skipTypes(dAtA[iNdEx:]) 14354 if err != nil { 14355 return err 14356 } 14357 if skippy < 0 { 14358 return ErrInvalidLengthTypes 14359 } 14360 if (iNdEx + skippy) < 0 { 14361 return ErrInvalidLengthTypes 14362 } 14363 if (iNdEx + skippy) > l { 14364 return io.ErrUnexpectedEOF 14365 } 14366 iNdEx += skippy 14367 } 14368 } 14369 14370 if iNdEx > l { 14371 return io.ErrUnexpectedEOF 14372 } 14373 return nil 14374 } 14375 func skipTypes(dAtA []byte) (n int, err error) { 14376 l := len(dAtA) 14377 iNdEx := 0 14378 depth := 0 14379 for iNdEx < l { 14380 var wire uint64 14381 for shift := uint(0); ; shift += 7 { 14382 if shift >= 64 { 14383 return 0, ErrIntOverflowTypes 14384 } 14385 if iNdEx >= l { 14386 return 0, io.ErrUnexpectedEOF 14387 } 14388 b := dAtA[iNdEx] 14389 iNdEx++ 14390 wire |= (uint64(b) & 0x7F) << shift 14391 if b < 0x80 { 14392 break 14393 } 14394 } 14395 wireType := int(wire & 0x7) 14396 switch wireType { 14397 case 0: 14398 for shift := uint(0); ; shift += 7 { 14399 if shift >= 64 { 14400 return 0, ErrIntOverflowTypes 14401 } 14402 if iNdEx >= l { 14403 return 0, io.ErrUnexpectedEOF 14404 } 14405 iNdEx++ 14406 if dAtA[iNdEx-1] < 0x80 { 14407 break 14408 } 14409 } 14410 case 1: 14411 iNdEx += 8 14412 case 2: 14413 var length int 14414 for shift := uint(0); ; shift += 7 { 14415 if shift >= 64 { 14416 return 0, ErrIntOverflowTypes 14417 } 14418 if iNdEx >= l { 14419 return 0, io.ErrUnexpectedEOF 14420 } 14421 b := dAtA[iNdEx] 14422 iNdEx++ 14423 length |= (int(b) & 0x7F) << shift 14424 if b < 0x80 { 14425 break 14426 } 14427 } 14428 if length < 0 { 14429 return 0, ErrInvalidLengthTypes 14430 } 14431 iNdEx += length 14432 case 3: 14433 depth++ 14434 case 4: 14435 if depth == 0 { 14436 return 0, ErrUnexpectedEndOfGroupTypes 14437 } 14438 depth-- 14439 case 5: 14440 iNdEx += 4 14441 default: 14442 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 14443 } 14444 if iNdEx < 0 { 14445 return 0, ErrInvalidLengthTypes 14446 } 14447 if depth == 0 { 14448 return iNdEx, nil 14449 } 14450 } 14451 return 0, io.ErrUnexpectedEOF 14452 } 14453 14454 var ( 14455 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 14456 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 14457 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 14458 )