github.com/Finschia/ostracon@v1.1.5/abci/types/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: ostracon/abci/types.proto 3 4 package types 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types2 "github.com/Finschia/ostracon/proto/ostracon/types" 10 _ "github.com/gogo/protobuf/gogoproto" 11 proto "github.com/gogo/protobuf/proto" 12 types "github.com/tendermint/tendermint/abci/types" 13 types1 "github.com/tendermint/tendermint/proto/tendermint/types" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17 io "io" 18 math "math" 19 math_bits "math/bits" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 27 // This is a compile-time assertion to ensure that this generated file 28 // is compatible with the proto package it is being compiled against. 29 // A compilation error at this line likely means your copy of the 30 // proto package needs to be updated. 31 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 32 33 type Request struct { 34 // Types that are valid to be assigned to Value: 35 // *Request_Echo 36 // *Request_Flush 37 // *Request_Info 38 // *Request_SetOption 39 // *Request_InitChain 40 // *Request_Query 41 // *Request_BeginBlock 42 // *Request_CheckTx 43 // *Request_DeliverTx 44 // *Request_EndBlock 45 // *Request_Commit 46 // *Request_ListSnapshots 47 // *Request_OfferSnapshot 48 // *Request_LoadSnapshotChunk 49 // *Request_ApplySnapshotChunk 50 // *Request_BeginRecheckTx 51 // *Request_EndRecheckTx 52 Value isRequest_Value `protobuf_oneof:"value"` 53 } 54 55 func (m *Request) Reset() { *m = Request{} } 56 func (m *Request) String() string { return proto.CompactTextString(m) } 57 func (*Request) ProtoMessage() {} 58 func (*Request) Descriptor() ([]byte, []int) { 59 return fileDescriptor_addf585b2317eb36, []int{0} 60 } 61 func (m *Request) XXX_Unmarshal(b []byte) error { 62 return m.Unmarshal(b) 63 } 64 func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 if deterministic { 66 return xxx_messageInfo_Request.Marshal(b, m, deterministic) 67 } else { 68 b = b[:cap(b)] 69 n, err := m.MarshalToSizedBuffer(b) 70 if err != nil { 71 return nil, err 72 } 73 return b[:n], nil 74 } 75 } 76 func (m *Request) XXX_Merge(src proto.Message) { 77 xxx_messageInfo_Request.Merge(m, src) 78 } 79 func (m *Request) XXX_Size() int { 80 return m.Size() 81 } 82 func (m *Request) XXX_DiscardUnknown() { 83 xxx_messageInfo_Request.DiscardUnknown(m) 84 } 85 86 var xxx_messageInfo_Request proto.InternalMessageInfo 87 88 type isRequest_Value interface { 89 isRequest_Value() 90 MarshalTo([]byte) (int, error) 91 Size() int 92 } 93 94 type Request_Echo struct { 95 Echo *types.RequestEcho `protobuf:"bytes,1,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 96 } 97 type Request_Flush struct { 98 Flush *types.RequestFlush `protobuf:"bytes,2,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 99 } 100 type Request_Info struct { 101 Info *types.RequestInfo `protobuf:"bytes,3,opt,name=info,proto3,oneof" json:"info,omitempty"` 102 } 103 type Request_SetOption struct { 104 SetOption *types.RequestSetOption `protobuf:"bytes,4,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 105 } 106 type Request_InitChain struct { 107 InitChain *types.RequestInitChain `protobuf:"bytes,5,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 108 } 109 type Request_Query struct { 110 Query *types.RequestQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof" json:"query,omitempty"` 111 } 112 type Request_BeginBlock struct { 113 BeginBlock *RequestBeginBlock `protobuf:"bytes,7,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 114 } 115 type Request_CheckTx struct { 116 CheckTx *types.RequestCheckTx `protobuf:"bytes,8,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 117 } 118 type Request_DeliverTx struct { 119 DeliverTx *types.RequestDeliverTx `protobuf:"bytes,9,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 120 } 121 type Request_EndBlock struct { 122 EndBlock *types.RequestEndBlock `protobuf:"bytes,10,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 123 } 124 type Request_Commit struct { 125 Commit *types.RequestCommit `protobuf:"bytes,11,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 126 } 127 type Request_ListSnapshots struct { 128 ListSnapshots *types.RequestListSnapshots `protobuf:"bytes,12,opt,name=list_snapshots,json=listSnapshots,proto3,oneof" json:"list_snapshots,omitempty"` 129 } 130 type Request_OfferSnapshot struct { 131 OfferSnapshot *types.RequestOfferSnapshot `protobuf:"bytes,13,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof" json:"offer_snapshot,omitempty"` 132 } 133 type Request_LoadSnapshotChunk struct { 134 LoadSnapshotChunk *types.RequestLoadSnapshotChunk `protobuf:"bytes,14,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof" json:"load_snapshot_chunk,omitempty"` 135 } 136 type Request_ApplySnapshotChunk struct { 137 ApplySnapshotChunk *types.RequestApplySnapshotChunk `protobuf:"bytes,15,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"` 138 } 139 type Request_BeginRecheckTx struct { 140 BeginRecheckTx *RequestBeginRecheckTx `protobuf:"bytes,1000,opt,name=begin_recheck_tx,json=beginRecheckTx,proto3,oneof" json:"begin_recheck_tx,omitempty"` 141 } 142 type Request_EndRecheckTx struct { 143 EndRecheckTx *RequestEndRecheckTx `protobuf:"bytes,1001,opt,name=end_recheck_tx,json=endRecheckTx,proto3,oneof" json:"end_recheck_tx,omitempty"` 144 } 145 146 func (*Request_Echo) isRequest_Value() {} 147 func (*Request_Flush) isRequest_Value() {} 148 func (*Request_Info) isRequest_Value() {} 149 func (*Request_SetOption) isRequest_Value() {} 150 func (*Request_InitChain) isRequest_Value() {} 151 func (*Request_Query) isRequest_Value() {} 152 func (*Request_BeginBlock) isRequest_Value() {} 153 func (*Request_CheckTx) isRequest_Value() {} 154 func (*Request_DeliverTx) isRequest_Value() {} 155 func (*Request_EndBlock) isRequest_Value() {} 156 func (*Request_Commit) isRequest_Value() {} 157 func (*Request_ListSnapshots) isRequest_Value() {} 158 func (*Request_OfferSnapshot) isRequest_Value() {} 159 func (*Request_LoadSnapshotChunk) isRequest_Value() {} 160 func (*Request_ApplySnapshotChunk) isRequest_Value() {} 161 func (*Request_BeginRecheckTx) isRequest_Value() {} 162 func (*Request_EndRecheckTx) isRequest_Value() {} 163 164 func (m *Request) GetValue() isRequest_Value { 165 if m != nil { 166 return m.Value 167 } 168 return nil 169 } 170 171 func (m *Request) GetEcho() *types.RequestEcho { 172 if x, ok := m.GetValue().(*Request_Echo); ok { 173 return x.Echo 174 } 175 return nil 176 } 177 178 func (m *Request) GetFlush() *types.RequestFlush { 179 if x, ok := m.GetValue().(*Request_Flush); ok { 180 return x.Flush 181 } 182 return nil 183 } 184 185 func (m *Request) GetInfo() *types.RequestInfo { 186 if x, ok := m.GetValue().(*Request_Info); ok { 187 return x.Info 188 } 189 return nil 190 } 191 192 func (m *Request) GetSetOption() *types.RequestSetOption { 193 if x, ok := m.GetValue().(*Request_SetOption); ok { 194 return x.SetOption 195 } 196 return nil 197 } 198 199 func (m *Request) GetInitChain() *types.RequestInitChain { 200 if x, ok := m.GetValue().(*Request_InitChain); ok { 201 return x.InitChain 202 } 203 return nil 204 } 205 206 func (m *Request) GetQuery() *types.RequestQuery { 207 if x, ok := m.GetValue().(*Request_Query); ok { 208 return x.Query 209 } 210 return nil 211 } 212 213 func (m *Request) GetBeginBlock() *RequestBeginBlock { 214 if x, ok := m.GetValue().(*Request_BeginBlock); ok { 215 return x.BeginBlock 216 } 217 return nil 218 } 219 220 func (m *Request) GetCheckTx() *types.RequestCheckTx { 221 if x, ok := m.GetValue().(*Request_CheckTx); ok { 222 return x.CheckTx 223 } 224 return nil 225 } 226 227 func (m *Request) GetDeliverTx() *types.RequestDeliverTx { 228 if x, ok := m.GetValue().(*Request_DeliverTx); ok { 229 return x.DeliverTx 230 } 231 return nil 232 } 233 234 func (m *Request) GetEndBlock() *types.RequestEndBlock { 235 if x, ok := m.GetValue().(*Request_EndBlock); ok { 236 return x.EndBlock 237 } 238 return nil 239 } 240 241 func (m *Request) GetCommit() *types.RequestCommit { 242 if x, ok := m.GetValue().(*Request_Commit); ok { 243 return x.Commit 244 } 245 return nil 246 } 247 248 func (m *Request) GetListSnapshots() *types.RequestListSnapshots { 249 if x, ok := m.GetValue().(*Request_ListSnapshots); ok { 250 return x.ListSnapshots 251 } 252 return nil 253 } 254 255 func (m *Request) GetOfferSnapshot() *types.RequestOfferSnapshot { 256 if x, ok := m.GetValue().(*Request_OfferSnapshot); ok { 257 return x.OfferSnapshot 258 } 259 return nil 260 } 261 262 func (m *Request) GetLoadSnapshotChunk() *types.RequestLoadSnapshotChunk { 263 if x, ok := m.GetValue().(*Request_LoadSnapshotChunk); ok { 264 return x.LoadSnapshotChunk 265 } 266 return nil 267 } 268 269 func (m *Request) GetApplySnapshotChunk() *types.RequestApplySnapshotChunk { 270 if x, ok := m.GetValue().(*Request_ApplySnapshotChunk); ok { 271 return x.ApplySnapshotChunk 272 } 273 return nil 274 } 275 276 func (m *Request) GetBeginRecheckTx() *RequestBeginRecheckTx { 277 if x, ok := m.GetValue().(*Request_BeginRecheckTx); ok { 278 return x.BeginRecheckTx 279 } 280 return nil 281 } 282 283 func (m *Request) GetEndRecheckTx() *RequestEndRecheckTx { 284 if x, ok := m.GetValue().(*Request_EndRecheckTx); ok { 285 return x.EndRecheckTx 286 } 287 return nil 288 } 289 290 // XXX_OneofWrappers is for the internal use of the proto package. 291 func (*Request) XXX_OneofWrappers() []interface{} { 292 return []interface{}{ 293 (*Request_Echo)(nil), 294 (*Request_Flush)(nil), 295 (*Request_Info)(nil), 296 (*Request_SetOption)(nil), 297 (*Request_InitChain)(nil), 298 (*Request_Query)(nil), 299 (*Request_BeginBlock)(nil), 300 (*Request_CheckTx)(nil), 301 (*Request_DeliverTx)(nil), 302 (*Request_EndBlock)(nil), 303 (*Request_Commit)(nil), 304 (*Request_ListSnapshots)(nil), 305 (*Request_OfferSnapshot)(nil), 306 (*Request_LoadSnapshotChunk)(nil), 307 (*Request_ApplySnapshotChunk)(nil), 308 (*Request_BeginRecheckTx)(nil), 309 (*Request_EndRecheckTx)(nil), 310 } 311 } 312 313 type RequestBeginBlock struct { 314 Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 315 Header types1.Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header"` 316 LastCommitInfo types.LastCommitInfo `protobuf:"bytes,3,opt,name=last_commit_info,json=lastCommitInfo,proto3" json:"last_commit_info"` 317 ByzantineValidators []types.Evidence `protobuf:"bytes,4,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators"` 318 // *** Ostracon Extended Fields *** 319 Entropy types2.Entropy `protobuf:"bytes,1000,opt,name=entropy,proto3" json:"entropy"` 320 } 321 322 func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} } 323 func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) } 324 func (*RequestBeginBlock) ProtoMessage() {} 325 func (*RequestBeginBlock) Descriptor() ([]byte, []int) { 326 return fileDescriptor_addf585b2317eb36, []int{1} 327 } 328 func (m *RequestBeginBlock) XXX_Unmarshal(b []byte) error { 329 return m.Unmarshal(b) 330 } 331 func (m *RequestBeginBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 332 if deterministic { 333 return xxx_messageInfo_RequestBeginBlock.Marshal(b, m, deterministic) 334 } else { 335 b = b[:cap(b)] 336 n, err := m.MarshalToSizedBuffer(b) 337 if err != nil { 338 return nil, err 339 } 340 return b[:n], nil 341 } 342 } 343 func (m *RequestBeginBlock) XXX_Merge(src proto.Message) { 344 xxx_messageInfo_RequestBeginBlock.Merge(m, src) 345 } 346 func (m *RequestBeginBlock) XXX_Size() int { 347 return m.Size() 348 } 349 func (m *RequestBeginBlock) XXX_DiscardUnknown() { 350 xxx_messageInfo_RequestBeginBlock.DiscardUnknown(m) 351 } 352 353 var xxx_messageInfo_RequestBeginBlock proto.InternalMessageInfo 354 355 func (m *RequestBeginBlock) GetHash() []byte { 356 if m != nil { 357 return m.Hash 358 } 359 return nil 360 } 361 362 func (m *RequestBeginBlock) GetHeader() types1.Header { 363 if m != nil { 364 return m.Header 365 } 366 return types1.Header{} 367 } 368 369 func (m *RequestBeginBlock) GetLastCommitInfo() types.LastCommitInfo { 370 if m != nil { 371 return m.LastCommitInfo 372 } 373 return types.LastCommitInfo{} 374 } 375 376 func (m *RequestBeginBlock) GetByzantineValidators() []types.Evidence { 377 if m != nil { 378 return m.ByzantineValidators 379 } 380 return nil 381 } 382 383 func (m *RequestBeginBlock) GetEntropy() types2.Entropy { 384 if m != nil { 385 return m.Entropy 386 } 387 return types2.Entropy{} 388 } 389 390 type RequestBeginRecheckTx struct { 391 Header types1.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` 392 } 393 394 func (m *RequestBeginRecheckTx) Reset() { *m = RequestBeginRecheckTx{} } 395 func (m *RequestBeginRecheckTx) String() string { return proto.CompactTextString(m) } 396 func (*RequestBeginRecheckTx) ProtoMessage() {} 397 func (*RequestBeginRecheckTx) Descriptor() ([]byte, []int) { 398 return fileDescriptor_addf585b2317eb36, []int{2} 399 } 400 func (m *RequestBeginRecheckTx) XXX_Unmarshal(b []byte) error { 401 return m.Unmarshal(b) 402 } 403 func (m *RequestBeginRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 404 if deterministic { 405 return xxx_messageInfo_RequestBeginRecheckTx.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 *RequestBeginRecheckTx) XXX_Merge(src proto.Message) { 416 xxx_messageInfo_RequestBeginRecheckTx.Merge(m, src) 417 } 418 func (m *RequestBeginRecheckTx) XXX_Size() int { 419 return m.Size() 420 } 421 func (m *RequestBeginRecheckTx) XXX_DiscardUnknown() { 422 xxx_messageInfo_RequestBeginRecheckTx.DiscardUnknown(m) 423 } 424 425 var xxx_messageInfo_RequestBeginRecheckTx proto.InternalMessageInfo 426 427 func (m *RequestBeginRecheckTx) GetHeader() types1.Header { 428 if m != nil { 429 return m.Header 430 } 431 return types1.Header{} 432 } 433 434 type RequestEndRecheckTx struct { 435 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 436 } 437 438 func (m *RequestEndRecheckTx) Reset() { *m = RequestEndRecheckTx{} } 439 func (m *RequestEndRecheckTx) String() string { return proto.CompactTextString(m) } 440 func (*RequestEndRecheckTx) ProtoMessage() {} 441 func (*RequestEndRecheckTx) Descriptor() ([]byte, []int) { 442 return fileDescriptor_addf585b2317eb36, []int{3} 443 } 444 func (m *RequestEndRecheckTx) XXX_Unmarshal(b []byte) error { 445 return m.Unmarshal(b) 446 } 447 func (m *RequestEndRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 448 if deterministic { 449 return xxx_messageInfo_RequestEndRecheckTx.Marshal(b, m, deterministic) 450 } else { 451 b = b[:cap(b)] 452 n, err := m.MarshalToSizedBuffer(b) 453 if err != nil { 454 return nil, err 455 } 456 return b[:n], nil 457 } 458 } 459 func (m *RequestEndRecheckTx) XXX_Merge(src proto.Message) { 460 xxx_messageInfo_RequestEndRecheckTx.Merge(m, src) 461 } 462 func (m *RequestEndRecheckTx) XXX_Size() int { 463 return m.Size() 464 } 465 func (m *RequestEndRecheckTx) XXX_DiscardUnknown() { 466 xxx_messageInfo_RequestEndRecheckTx.DiscardUnknown(m) 467 } 468 469 var xxx_messageInfo_RequestEndRecheckTx proto.InternalMessageInfo 470 471 func (m *RequestEndRecheckTx) GetHeight() int64 { 472 if m != nil { 473 return m.Height 474 } 475 return 0 476 } 477 478 type Response struct { 479 // Types that are valid to be assigned to Value: 480 // *Response_Exception 481 // *Response_Echo 482 // *Response_Flush 483 // *Response_Info 484 // *Response_SetOption 485 // *Response_InitChain 486 // *Response_Query 487 // *Response_BeginBlock 488 // *Response_CheckTx 489 // *Response_DeliverTx 490 // *Response_EndBlock 491 // *Response_Commit 492 // *Response_ListSnapshots 493 // *Response_OfferSnapshot 494 // *Response_LoadSnapshotChunk 495 // *Response_ApplySnapshotChunk 496 // *Response_BeginRecheckTx 497 // *Response_EndRecheckTx 498 Value isResponse_Value `protobuf_oneof:"value"` 499 } 500 501 func (m *Response) Reset() { *m = Response{} } 502 func (m *Response) String() string { return proto.CompactTextString(m) } 503 func (*Response) ProtoMessage() {} 504 func (*Response) Descriptor() ([]byte, []int) { 505 return fileDescriptor_addf585b2317eb36, []int{4} 506 } 507 func (m *Response) XXX_Unmarshal(b []byte) error { 508 return m.Unmarshal(b) 509 } 510 func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 511 if deterministic { 512 return xxx_messageInfo_Response.Marshal(b, m, deterministic) 513 } else { 514 b = b[:cap(b)] 515 n, err := m.MarshalToSizedBuffer(b) 516 if err != nil { 517 return nil, err 518 } 519 return b[:n], nil 520 } 521 } 522 func (m *Response) XXX_Merge(src proto.Message) { 523 xxx_messageInfo_Response.Merge(m, src) 524 } 525 func (m *Response) XXX_Size() int { 526 return m.Size() 527 } 528 func (m *Response) XXX_DiscardUnknown() { 529 xxx_messageInfo_Response.DiscardUnknown(m) 530 } 531 532 var xxx_messageInfo_Response proto.InternalMessageInfo 533 534 type isResponse_Value interface { 535 isResponse_Value() 536 MarshalTo([]byte) (int, error) 537 Size() int 538 } 539 540 type Response_Exception struct { 541 Exception *types.ResponseException `protobuf:"bytes,1,opt,name=exception,proto3,oneof" json:"exception,omitempty"` 542 } 543 type Response_Echo struct { 544 Echo *types.ResponseEcho `protobuf:"bytes,2,opt,name=echo,proto3,oneof" json:"echo,omitempty"` 545 } 546 type Response_Flush struct { 547 Flush *types.ResponseFlush `protobuf:"bytes,3,opt,name=flush,proto3,oneof" json:"flush,omitempty"` 548 } 549 type Response_Info struct { 550 Info *types.ResponseInfo `protobuf:"bytes,4,opt,name=info,proto3,oneof" json:"info,omitempty"` 551 } 552 type Response_SetOption struct { 553 SetOption *types.ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,proto3,oneof" json:"set_option,omitempty"` 554 } 555 type Response_InitChain struct { 556 InitChain *types.ResponseInitChain `protobuf:"bytes,6,opt,name=init_chain,json=initChain,proto3,oneof" json:"init_chain,omitempty"` 557 } 558 type Response_Query struct { 559 Query *types.ResponseQuery `protobuf:"bytes,7,opt,name=query,proto3,oneof" json:"query,omitempty"` 560 } 561 type Response_BeginBlock struct { 562 BeginBlock *types.ResponseBeginBlock `protobuf:"bytes,8,opt,name=begin_block,json=beginBlock,proto3,oneof" json:"begin_block,omitempty"` 563 } 564 type Response_CheckTx struct { 565 CheckTx *ResponseCheckTx `protobuf:"bytes,9,opt,name=check_tx,json=checkTx,proto3,oneof" json:"check_tx,omitempty"` 566 } 567 type Response_DeliverTx struct { 568 DeliverTx *types.ResponseDeliverTx `protobuf:"bytes,10,opt,name=deliver_tx,json=deliverTx,proto3,oneof" json:"deliver_tx,omitempty"` 569 } 570 type Response_EndBlock struct { 571 EndBlock *types.ResponseEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,proto3,oneof" json:"end_block,omitempty"` 572 } 573 type Response_Commit struct { 574 Commit *types.ResponseCommit `protobuf:"bytes,12,opt,name=commit,proto3,oneof" json:"commit,omitempty"` 575 } 576 type Response_ListSnapshots struct { 577 ListSnapshots *types.ResponseListSnapshots `protobuf:"bytes,13,opt,name=list_snapshots,json=listSnapshots,proto3,oneof" json:"list_snapshots,omitempty"` 578 } 579 type Response_OfferSnapshot struct { 580 OfferSnapshot *types.ResponseOfferSnapshot `protobuf:"bytes,14,opt,name=offer_snapshot,json=offerSnapshot,proto3,oneof" json:"offer_snapshot,omitempty"` 581 } 582 type Response_LoadSnapshotChunk struct { 583 LoadSnapshotChunk *types.ResponseLoadSnapshotChunk `protobuf:"bytes,15,opt,name=load_snapshot_chunk,json=loadSnapshotChunk,proto3,oneof" json:"load_snapshot_chunk,omitempty"` 584 } 585 type Response_ApplySnapshotChunk struct { 586 ApplySnapshotChunk *types.ResponseApplySnapshotChunk `protobuf:"bytes,16,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"` 587 } 588 type Response_BeginRecheckTx struct { 589 BeginRecheckTx *ResponseBeginRecheckTx `protobuf:"bytes,1000,opt,name=begin_recheck_tx,json=beginRecheckTx,proto3,oneof" json:"begin_recheck_tx,omitempty"` 590 } 591 type Response_EndRecheckTx struct { 592 EndRecheckTx *ResponseEndRecheckTx `protobuf:"bytes,1001,opt,name=end_recheck_tx,json=endRecheckTx,proto3,oneof" json:"end_recheck_tx,omitempty"` 593 } 594 595 func (*Response_Exception) isResponse_Value() {} 596 func (*Response_Echo) isResponse_Value() {} 597 func (*Response_Flush) isResponse_Value() {} 598 func (*Response_Info) isResponse_Value() {} 599 func (*Response_SetOption) isResponse_Value() {} 600 func (*Response_InitChain) isResponse_Value() {} 601 func (*Response_Query) isResponse_Value() {} 602 func (*Response_BeginBlock) isResponse_Value() {} 603 func (*Response_CheckTx) isResponse_Value() {} 604 func (*Response_DeliverTx) isResponse_Value() {} 605 func (*Response_EndBlock) isResponse_Value() {} 606 func (*Response_Commit) isResponse_Value() {} 607 func (*Response_ListSnapshots) isResponse_Value() {} 608 func (*Response_OfferSnapshot) isResponse_Value() {} 609 func (*Response_LoadSnapshotChunk) isResponse_Value() {} 610 func (*Response_ApplySnapshotChunk) isResponse_Value() {} 611 func (*Response_BeginRecheckTx) isResponse_Value() {} 612 func (*Response_EndRecheckTx) isResponse_Value() {} 613 614 func (m *Response) GetValue() isResponse_Value { 615 if m != nil { 616 return m.Value 617 } 618 return nil 619 } 620 621 func (m *Response) GetException() *types.ResponseException { 622 if x, ok := m.GetValue().(*Response_Exception); ok { 623 return x.Exception 624 } 625 return nil 626 } 627 628 func (m *Response) GetEcho() *types.ResponseEcho { 629 if x, ok := m.GetValue().(*Response_Echo); ok { 630 return x.Echo 631 } 632 return nil 633 } 634 635 func (m *Response) GetFlush() *types.ResponseFlush { 636 if x, ok := m.GetValue().(*Response_Flush); ok { 637 return x.Flush 638 } 639 return nil 640 } 641 642 func (m *Response) GetInfo() *types.ResponseInfo { 643 if x, ok := m.GetValue().(*Response_Info); ok { 644 return x.Info 645 } 646 return nil 647 } 648 649 func (m *Response) GetSetOption() *types.ResponseSetOption { 650 if x, ok := m.GetValue().(*Response_SetOption); ok { 651 return x.SetOption 652 } 653 return nil 654 } 655 656 func (m *Response) GetInitChain() *types.ResponseInitChain { 657 if x, ok := m.GetValue().(*Response_InitChain); ok { 658 return x.InitChain 659 } 660 return nil 661 } 662 663 func (m *Response) GetQuery() *types.ResponseQuery { 664 if x, ok := m.GetValue().(*Response_Query); ok { 665 return x.Query 666 } 667 return nil 668 } 669 670 func (m *Response) GetBeginBlock() *types.ResponseBeginBlock { 671 if x, ok := m.GetValue().(*Response_BeginBlock); ok { 672 return x.BeginBlock 673 } 674 return nil 675 } 676 677 func (m *Response) GetCheckTx() *ResponseCheckTx { 678 if x, ok := m.GetValue().(*Response_CheckTx); ok { 679 return x.CheckTx 680 } 681 return nil 682 } 683 684 func (m *Response) GetDeliverTx() *types.ResponseDeliverTx { 685 if x, ok := m.GetValue().(*Response_DeliverTx); ok { 686 return x.DeliverTx 687 } 688 return nil 689 } 690 691 func (m *Response) GetEndBlock() *types.ResponseEndBlock { 692 if x, ok := m.GetValue().(*Response_EndBlock); ok { 693 return x.EndBlock 694 } 695 return nil 696 } 697 698 func (m *Response) GetCommit() *types.ResponseCommit { 699 if x, ok := m.GetValue().(*Response_Commit); ok { 700 return x.Commit 701 } 702 return nil 703 } 704 705 func (m *Response) GetListSnapshots() *types.ResponseListSnapshots { 706 if x, ok := m.GetValue().(*Response_ListSnapshots); ok { 707 return x.ListSnapshots 708 } 709 return nil 710 } 711 712 func (m *Response) GetOfferSnapshot() *types.ResponseOfferSnapshot { 713 if x, ok := m.GetValue().(*Response_OfferSnapshot); ok { 714 return x.OfferSnapshot 715 } 716 return nil 717 } 718 719 func (m *Response) GetLoadSnapshotChunk() *types.ResponseLoadSnapshotChunk { 720 if x, ok := m.GetValue().(*Response_LoadSnapshotChunk); ok { 721 return x.LoadSnapshotChunk 722 } 723 return nil 724 } 725 726 func (m *Response) GetApplySnapshotChunk() *types.ResponseApplySnapshotChunk { 727 if x, ok := m.GetValue().(*Response_ApplySnapshotChunk); ok { 728 return x.ApplySnapshotChunk 729 } 730 return nil 731 } 732 733 func (m *Response) GetBeginRecheckTx() *ResponseBeginRecheckTx { 734 if x, ok := m.GetValue().(*Response_BeginRecheckTx); ok { 735 return x.BeginRecheckTx 736 } 737 return nil 738 } 739 740 func (m *Response) GetEndRecheckTx() *ResponseEndRecheckTx { 741 if x, ok := m.GetValue().(*Response_EndRecheckTx); ok { 742 return x.EndRecheckTx 743 } 744 return nil 745 } 746 747 // XXX_OneofWrappers is for the internal use of the proto package. 748 func (*Response) XXX_OneofWrappers() []interface{} { 749 return []interface{}{ 750 (*Response_Exception)(nil), 751 (*Response_Echo)(nil), 752 (*Response_Flush)(nil), 753 (*Response_Info)(nil), 754 (*Response_SetOption)(nil), 755 (*Response_InitChain)(nil), 756 (*Response_Query)(nil), 757 (*Response_BeginBlock)(nil), 758 (*Response_CheckTx)(nil), 759 (*Response_DeliverTx)(nil), 760 (*Response_EndBlock)(nil), 761 (*Response_Commit)(nil), 762 (*Response_ListSnapshots)(nil), 763 (*Response_OfferSnapshot)(nil), 764 (*Response_LoadSnapshotChunk)(nil), 765 (*Response_ApplySnapshotChunk)(nil), 766 (*Response_BeginRecheckTx)(nil), 767 (*Response_EndRecheckTx)(nil), 768 } 769 } 770 771 type ResponseCheckTx struct { 772 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 773 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 774 Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` 775 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 776 GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,proto3" json:"gas_wanted,omitempty"` 777 GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,proto3" json:"gas_used,omitempty"` 778 Events []types.Event `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` 779 Codespace string `protobuf:"bytes,8,opt,name=codespace,proto3" json:"codespace,omitempty"` 780 Sender string `protobuf:"bytes,9,opt,name=sender,proto3" json:"sender,omitempty"` 781 Priority int64 `protobuf:"varint,10,opt,name=priority,proto3" json:"priority,omitempty"` 782 // mempool_error is set by Ostracon. 783 // ABCI applictions creating a ResponseCheckTX should not set mempool_error. 784 MempoolError string `protobuf:"bytes,11,opt,name=mempool_error,json=mempoolError,proto3" json:"mempool_error,omitempty"` 785 } 786 787 func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} } 788 func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) } 789 func (*ResponseCheckTx) ProtoMessage() {} 790 func (*ResponseCheckTx) Descriptor() ([]byte, []int) { 791 return fileDescriptor_addf585b2317eb36, []int{5} 792 } 793 func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error { 794 return m.Unmarshal(b) 795 } 796 func (m *ResponseCheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 797 if deterministic { 798 return xxx_messageInfo_ResponseCheckTx.Marshal(b, m, deterministic) 799 } else { 800 b = b[:cap(b)] 801 n, err := m.MarshalToSizedBuffer(b) 802 if err != nil { 803 return nil, err 804 } 805 return b[:n], nil 806 } 807 } 808 func (m *ResponseCheckTx) XXX_Merge(src proto.Message) { 809 xxx_messageInfo_ResponseCheckTx.Merge(m, src) 810 } 811 func (m *ResponseCheckTx) XXX_Size() int { 812 return m.Size() 813 } 814 func (m *ResponseCheckTx) XXX_DiscardUnknown() { 815 xxx_messageInfo_ResponseCheckTx.DiscardUnknown(m) 816 } 817 818 var xxx_messageInfo_ResponseCheckTx proto.InternalMessageInfo 819 820 func (m *ResponseCheckTx) GetCode() uint32 { 821 if m != nil { 822 return m.Code 823 } 824 return 0 825 } 826 827 func (m *ResponseCheckTx) GetData() []byte { 828 if m != nil { 829 return m.Data 830 } 831 return nil 832 } 833 834 func (m *ResponseCheckTx) GetLog() string { 835 if m != nil { 836 return m.Log 837 } 838 return "" 839 } 840 841 func (m *ResponseCheckTx) GetInfo() string { 842 if m != nil { 843 return m.Info 844 } 845 return "" 846 } 847 848 func (m *ResponseCheckTx) GetGasWanted() int64 { 849 if m != nil { 850 return m.GasWanted 851 } 852 return 0 853 } 854 855 func (m *ResponseCheckTx) GetGasUsed() int64 { 856 if m != nil { 857 return m.GasUsed 858 } 859 return 0 860 } 861 862 func (m *ResponseCheckTx) GetEvents() []types.Event { 863 if m != nil { 864 return m.Events 865 } 866 return nil 867 } 868 869 func (m *ResponseCheckTx) GetCodespace() string { 870 if m != nil { 871 return m.Codespace 872 } 873 return "" 874 } 875 876 func (m *ResponseCheckTx) GetSender() string { 877 if m != nil { 878 return m.Sender 879 } 880 return "" 881 } 882 883 func (m *ResponseCheckTx) GetPriority() int64 { 884 if m != nil { 885 return m.Priority 886 } 887 return 0 888 } 889 890 func (m *ResponseCheckTx) GetMempoolError() string { 891 if m != nil { 892 return m.MempoolError 893 } 894 return "" 895 } 896 897 type ResponseBeginRecheckTx struct { 898 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 899 } 900 901 func (m *ResponseBeginRecheckTx) Reset() { *m = ResponseBeginRecheckTx{} } 902 func (m *ResponseBeginRecheckTx) String() string { return proto.CompactTextString(m) } 903 func (*ResponseBeginRecheckTx) ProtoMessage() {} 904 func (*ResponseBeginRecheckTx) Descriptor() ([]byte, []int) { 905 return fileDescriptor_addf585b2317eb36, []int{6} 906 } 907 func (m *ResponseBeginRecheckTx) XXX_Unmarshal(b []byte) error { 908 return m.Unmarshal(b) 909 } 910 func (m *ResponseBeginRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 911 if deterministic { 912 return xxx_messageInfo_ResponseBeginRecheckTx.Marshal(b, m, deterministic) 913 } else { 914 b = b[:cap(b)] 915 n, err := m.MarshalToSizedBuffer(b) 916 if err != nil { 917 return nil, err 918 } 919 return b[:n], nil 920 } 921 } 922 func (m *ResponseBeginRecheckTx) XXX_Merge(src proto.Message) { 923 xxx_messageInfo_ResponseBeginRecheckTx.Merge(m, src) 924 } 925 func (m *ResponseBeginRecheckTx) XXX_Size() int { 926 return m.Size() 927 } 928 func (m *ResponseBeginRecheckTx) XXX_DiscardUnknown() { 929 xxx_messageInfo_ResponseBeginRecheckTx.DiscardUnknown(m) 930 } 931 932 var xxx_messageInfo_ResponseBeginRecheckTx proto.InternalMessageInfo 933 934 func (m *ResponseBeginRecheckTx) GetCode() uint32 { 935 if m != nil { 936 return m.Code 937 } 938 return 0 939 } 940 941 type ResponseEndRecheckTx struct { 942 Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 943 } 944 945 func (m *ResponseEndRecheckTx) Reset() { *m = ResponseEndRecheckTx{} } 946 func (m *ResponseEndRecheckTx) String() string { return proto.CompactTextString(m) } 947 func (*ResponseEndRecheckTx) ProtoMessage() {} 948 func (*ResponseEndRecheckTx) Descriptor() ([]byte, []int) { 949 return fileDescriptor_addf585b2317eb36, []int{7} 950 } 951 func (m *ResponseEndRecheckTx) XXX_Unmarshal(b []byte) error { 952 return m.Unmarshal(b) 953 } 954 func (m *ResponseEndRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 955 if deterministic { 956 return xxx_messageInfo_ResponseEndRecheckTx.Marshal(b, m, deterministic) 957 } else { 958 b = b[:cap(b)] 959 n, err := m.MarshalToSizedBuffer(b) 960 if err != nil { 961 return nil, err 962 } 963 return b[:n], nil 964 } 965 } 966 func (m *ResponseEndRecheckTx) XXX_Merge(src proto.Message) { 967 xxx_messageInfo_ResponseEndRecheckTx.Merge(m, src) 968 } 969 func (m *ResponseEndRecheckTx) XXX_Size() int { 970 return m.Size() 971 } 972 func (m *ResponseEndRecheckTx) XXX_DiscardUnknown() { 973 xxx_messageInfo_ResponseEndRecheckTx.DiscardUnknown(m) 974 } 975 976 var xxx_messageInfo_ResponseEndRecheckTx proto.InternalMessageInfo 977 978 func (m *ResponseEndRecheckTx) GetCode() uint32 { 979 if m != nil { 980 return m.Code 981 } 982 return 0 983 } 984 985 func init() { 986 proto.RegisterType((*Request)(nil), "ostracon.abci.Request") 987 proto.RegisterType((*RequestBeginBlock)(nil), "ostracon.abci.RequestBeginBlock") 988 proto.RegisterType((*RequestBeginRecheckTx)(nil), "ostracon.abci.RequestBeginRecheckTx") 989 proto.RegisterType((*RequestEndRecheckTx)(nil), "ostracon.abci.RequestEndRecheckTx") 990 proto.RegisterType((*Response)(nil), "ostracon.abci.Response") 991 proto.RegisterType((*ResponseCheckTx)(nil), "ostracon.abci.ResponseCheckTx") 992 proto.RegisterType((*ResponseBeginRecheckTx)(nil), "ostracon.abci.ResponseBeginRecheckTx") 993 proto.RegisterType((*ResponseEndRecheckTx)(nil), "ostracon.abci.ResponseEndRecheckTx") 994 } 995 996 func init() { proto.RegisterFile("ostracon/abci/types.proto", fileDescriptor_addf585b2317eb36) } 997 998 var fileDescriptor_addf585b2317eb36 = []byte{ 999 // 1407 bytes of a gzipped FileDescriptorProto 1000 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x98, 0x5d, 0x8f, 0xdb, 0x44, 1001 0x17, 0xc7, 0xb3, 0x4d, 0x36, 0x59, 0x9f, 0xcd, 0xa6, 0xdb, 0xd3, 0x7d, 0xfa, 0xb8, 0xa6, 0xa4, 1002 0x25, 0xa5, 0x50, 0x4a, 0xd9, 0x95, 0xb6, 0xa2, 0x2a, 0x02, 0x09, 0x9a, 0xb0, 0xab, 0x2c, 0x54, 1003 0x44, 0x9d, 0x22, 0x90, 0x78, 0x69, 0xe4, 0xd8, 0xb3, 0xb1, 0xa9, 0xe3, 0x49, 0xed, 0xc9, 0xd2, 1004 0x70, 0xcf, 0x3d, 0xdf, 0x84, 0x4b, 0xee, 0xb8, 0xee, 0x65, 0x2f, 0xb9, 0x40, 0x15, 0x6a, 0x6f, 1005 0x80, 0x4f, 0x81, 0x66, 0xfc, 0x52, 0xe7, 0x65, 0x62, 0xef, 0xdd, 0xcc, 0xf8, 0x9c, 0xff, 0xf8, 1006 0xcc, 0x1c, 0x9f, 0x5f, 0x4e, 0xe0, 0x22, 0x0b, 0x79, 0x60, 0x5a, 0xcc, 0xdf, 0x33, 0x07, 0x96, 1007 0xbb, 0xc7, 0xa7, 0x63, 0x1a, 0xee, 0x8e, 0x03, 0xc6, 0x19, 0x6e, 0x25, 0x8f, 0x76, 0xc5, 0x23, 1008 0xe3, 0x35, 0x4e, 0x7d, 0x9b, 0x06, 0x23, 0xd7, 0xe7, 0x0b, 0xb6, 0xc6, 0xa5, 0xcc, 0x43, 0xb9, 1009 0x3e, 0xf3, 0xd4, 0x48, 0x37, 0x59, 0x7c, 0xb6, 0x33, 0x64, 0x43, 0x26, 0x87, 0x7b, 0x62, 0x14, 1010 0xad, 0xb6, 0x7e, 0xd5, 0xa0, 0x46, 0xe8, 0xe3, 0x09, 0x0d, 0x39, 0xee, 0x43, 0x85, 0x5a, 0x0e, 1011 0xd3, 0xd7, 0xae, 0xac, 0x5d, 0xdf, 0xdc, 0xbf, 0xb4, 0xfb, 0x6a, 0x2b, 0xf9, 0x62, 0xbb, 0xb1, 1012 0xdd, 0x81, 0xe5, 0xb0, 0x6e, 0x89, 0x48, 0x5b, 0x7c, 0x1f, 0xd6, 0x8f, 0xbd, 0x49, 0xe8, 0xe8, 1013 0x67, 0xa4, 0xd3, 0xeb, 0x2a, 0xa7, 0x43, 0x61, 0xd4, 0x2d, 0x91, 0xc8, 0x5a, 0x6c, 0xe5, 0xfa, 1014 0xc7, 0x4c, 0x2f, 0xaf, 0xde, 0xea, 0xc8, 0x3f, 0x96, 0x5b, 0x09, 0x5b, 0x6c, 0x03, 0x84, 0x94, 1015 0xf7, 0xd9, 0x98, 0xbb, 0xcc, 0xd7, 0x2b, 0xd2, 0xf3, 0x0d, 0x95, 0xe7, 0x03, 0xca, 0x7b, 0xd2, 1016 0xb0, 0x5b, 0x22, 0x5a, 0x98, 0x4c, 0x84, 0x86, 0xeb, 0xbb, 0xbc, 0x6f, 0x39, 0xa6, 0xeb, 0xeb, 1017 0xeb, 0xab, 0x35, 0x8e, 0x7c, 0x97, 0x77, 0x84, 0xa1, 0xd0, 0x70, 0x93, 0x89, 0x08, 0xf9, 0xf1, 1018 0x84, 0x06, 0x53, 0xbd, 0xba, 0x3a, 0xe4, 0xfb, 0xc2, 0x48, 0x84, 0x2c, 0xad, 0xb1, 0x03, 0x9b, 1019 0x03, 0x3a, 0x74, 0xfd, 0xfe, 0xc0, 0x63, 0xd6, 0x23, 0xbd, 0x26, 0x9d, 0xaf, 0xec, 0xce, 0xdc, 1020 0x7d, 0xe2, 0xda, 0x16, 0x86, 0x6d, 0x61, 0xd7, 0x2d, 0x11, 0x18, 0xa4, 0x33, 0xfc, 0x08, 0x36, 1021 0x2c, 0x87, 0x5a, 0x8f, 0xfa, 0xfc, 0x89, 0xbe, 0x21, 0x15, 0x2e, 0xab, 0xb6, 0xef, 0x08, 0xbb, 1022 0x2f, 0x9f, 0x74, 0x4b, 0xa4, 0x66, 0x45, 0x43, 0x11, 0xbd, 0x4d, 0x3d, 0xf7, 0x84, 0x06, 0xc2, 1023 0x5f, 0x5b, 0x1d, 0xfd, 0xa7, 0x91, 0xa5, 0x54, 0xd0, 0xec, 0x64, 0x82, 0x1f, 0x83, 0x46, 0x7d, 1024 0x3b, 0x0e, 0x02, 0xe2, 0x20, 0x54, 0x99, 0xe2, 0xdb, 0x49, 0x10, 0x1b, 0x34, 0x1e, 0xe3, 0x1d, 1025 0xa8, 0x5a, 0x6c, 0x34, 0x72, 0xb9, 0xbe, 0x29, 0xbd, 0x9b, 0xca, 0x00, 0xa4, 0x55, 0xb7, 0x44, 1026 0x62, 0x7b, 0xfc, 0x02, 0x1a, 0x9e, 0x1b, 0xf2, 0x7e, 0xe8, 0x9b, 0xe3, 0xd0, 0x61, 0x3c, 0xd4, 1027 0xeb, 0x52, 0xe1, 0x9a, 0x4a, 0xe1, 0x9e, 0x1b, 0xf2, 0x07, 0x89, 0x71, 0xb7, 0x44, 0xb6, 0xbc, 1028 0xec, 0x82, 0xd0, 0x63, 0xc7, 0xc7, 0x34, 0x48, 0x05, 0xf5, 0xad, 0xd5, 0x7a, 0x3d, 0x61, 0x9d, 1029 0xf8, 0x0b, 0x3d, 0x96, 0x5d, 0xc0, 0x6f, 0xe1, 0xbc, 0xc7, 0x4c, 0x3b, 0x95, 0xeb, 0x5b, 0xce, 1030 0xc4, 0x7f, 0xa4, 0x37, 0xa4, 0xe8, 0x3b, 0xca, 0x97, 0x64, 0xa6, 0x9d, 0x48, 0x74, 0x84, 0x43, 1031 0xb7, 0x44, 0xce, 0x79, 0xf3, 0x8b, 0xf8, 0x10, 0x76, 0xcc, 0xf1, 0xd8, 0x9b, 0xce, 0xab, 0x9f, 1032 0x95, 0xea, 0x37, 0x54, 0xea, 0x77, 0x85, 0xcf, 0xbc, 0x3c, 0x9a, 0x0b, 0xab, 0x78, 0x1f, 0xb6, 1033 0xa3, 0xf4, 0x0c, 0x68, 0x9a, 0x61, 0x7f, 0x47, 0x49, 0xfa, 0xe6, 0x8a, 0x24, 0x25, 0xd4, 0x4a, 1034 0xf3, 0xac, 0x31, 0x98, 0x59, 0xc1, 0xcf, 0xa1, 0x21, 0x52, 0x25, 0x23, 0xf8, 0x4f, 0x24, 0xd8, 1035 0x5a, 0x2e, 0x78, 0xe0, 0xdb, 0x59, 0xb9, 0x3a, 0xcd, 0xcc, 0xdb, 0x35, 0x58, 0x3f, 0x31, 0xbd, 1036 0x09, 0x6d, 0xfd, 0x7e, 0x06, 0xce, 0x2d, 0x7c, 0x26, 0x88, 0x50, 0x71, 0xcc, 0xd0, 0x91, 0xb5, 1037 0xab, 0x4e, 0xe4, 0x18, 0x6f, 0x43, 0xd5, 0xa1, 0xa6, 0x4d, 0x83, 0xb8, 0x38, 0xe9, 0xd9, 0x43, 1038 0x8a, 0x4a, 0x63, 0x57, 0x3e, 0x6f, 0x57, 0x9e, 0x3e, 0xbf, 0x5c, 0x22, 0xb1, 0x35, 0xf6, 0x60, 1039 0xdb, 0x33, 0x43, 0xde, 0x8f, 0xd2, 0xae, 0x9f, 0x29, 0x54, 0x8b, 0x1f, 0xdb, 0x3d, 0x33, 0x49, 1040 0x54, 0x51, 0xab, 0x62, 0xa1, 0x86, 0x37, 0xb3, 0x8a, 0x04, 0x76, 0x06, 0xd3, 0x9f, 0x4c, 0x9f, 1041 0xbb, 0x3e, 0xed, 0x9f, 0x98, 0x9e, 0x6b, 0x9b, 0x9c, 0x05, 0xa1, 0x5e, 0xb9, 0x52, 0xbe, 0xbe, 1042 0xb9, 0x7f, 0x71, 0x41, 0xf4, 0xe0, 0xc4, 0xb5, 0xa9, 0x6f, 0xd1, 0x58, 0xee, 0x7c, 0xea, 0xfc, 1043 0x55, 0xea, 0x8b, 0x77, 0xa0, 0x46, 0x7d, 0x1e, 0xb0, 0xf1, 0x34, 0xb9, 0xa6, 0xff, 0xbf, 0x3a, 1044 0xd5, 0x28, 0xb8, 0x83, 0xe8, 0x79, 0xac, 0x92, 0x98, 0xb7, 0x7a, 0xf0, 0xbf, 0xa5, 0x37, 0x98, 1045 0x39, 0xaf, 0xb5, 0xd3, 0x9c, 0x57, 0xeb, 0x3d, 0x38, 0xbf, 0xe4, 0x06, 0xf1, 0x82, 0x90, 0x73, 1046 0x87, 0x0e, 0x97, 0x72, 0x65, 0x12, 0xcf, 0x5a, 0x3f, 0x03, 0x6c, 0x10, 0x1a, 0x8e, 0x99, 0x1f, 1047 0x52, 0x6c, 0x83, 0x46, 0x9f, 0x58, 0x34, 0xaa, 0xe9, 0x6b, 0x71, 0x76, 0x2c, 0xe6, 0x72, 0x64, 1048 0x7d, 0x90, 0x58, 0x8a, 0x92, 0x94, 0xba, 0xe1, 0xad, 0x98, 0x5b, 0x6a, 0x04, 0xc5, 0xee, 0x59, 1049 0x70, 0xdd, 0x4e, 0xc0, 0x55, 0x56, 0x56, 0xa1, 0xc8, 0x6b, 0x8e, 0x5c, 0xb7, 0x62, 0x72, 0x55, 1050 0x72, 0x36, 0x9b, 0x41, 0x57, 0x67, 0x06, 0x5d, 0xeb, 0x39, 0x61, 0x2a, 0xd8, 0xd5, 0x99, 0x61, 1051 0x57, 0x35, 0x47, 0x44, 0x01, 0xaf, 0xdb, 0x09, 0xbc, 0x6a, 0x39, 0x61, 0xcf, 0xd1, 0xeb, 0x70, 1052 0x96, 0x5e, 0x11, 0x7b, 0xae, 0x2a, 0xbd, 0x95, 0x00, 0xfb, 0x30, 0x03, 0x30, 0x2d, 0x7e, 0x85, 1053 0xf9, 0x62, 0x10, 0x49, 0x2c, 0xe1, 0x57, 0x67, 0x86, 0x5f, 0x90, 0x73, 0x02, 0x0a, 0x80, 0x7d, 1054 0x92, 0x05, 0xd8, 0xa6, 0x92, 0x81, 0x71, 0xca, 0x2c, 0x23, 0xd8, 0x07, 0x29, 0xc1, 0xea, 0x4a, 1055 0x04, 0xc7, 0x31, 0xcc, 0x23, 0xac, 0xb7, 0x80, 0xb0, 0x08, 0x39, 0x6f, 0x29, 0x25, 0x72, 0x18, 1056 0xd6, 0x5b, 0x60, 0x58, 0x23, 0x47, 0x30, 0x07, 0x62, 0xdf, 0x2d, 0x87, 0x98, 0x1a, 0x33, 0xf1, 1057 0x6b, 0x16, 0xa3, 0x58, 0x5f, 0x41, 0xb1, 0x6d, 0x29, 0xff, 0xae, 0x52, 0xbe, 0x30, 0xc6, 0x88, 1058 0x1a, 0x63, 0xd7, 0x14, 0x89, 0x96, 0xcb, 0xb1, 0x7b, 0x2a, 0x8e, 0x5d, 0x55, 0x28, 0x16, 0x03, 1059 0xd9, 0x9f, 0x67, 0xe0, 0xec, 0x5c, 0xb2, 0x0b, 0x8c, 0x59, 0xcc, 0xa6, 0xb2, 0x12, 0x6e, 0x11, 1060 0x39, 0x16, 0x6b, 0xb6, 0xc9, 0x4d, 0x59, 0xde, 0xea, 0x44, 0x8e, 0x71, 0x1b, 0xca, 0x1e, 0x1b, 1061 0xca, 0xda, 0xa5, 0x11, 0x31, 0x14, 0x56, 0x69, 0x5d, 0xd2, 0xe2, 0xb2, 0xd3, 0x04, 0x18, 0x9a, 1062 0x61, 0xff, 0x47, 0xd3, 0xe7, 0xd4, 0x96, 0x65, 0xa7, 0x4c, 0x32, 0x2b, 0x68, 0xc0, 0x86, 0x98, 1063 0x4d, 0x42, 0x6a, 0xcb, 0x7a, 0x52, 0x26, 0xe9, 0x1c, 0xbb, 0x50, 0xa5, 0x27, 0xd4, 0xe7, 0xa1, 1064 0x5e, 0x93, 0x94, 0xba, 0xb0, 0x84, 0x52, 0xd4, 0xe7, 0x6d, 0x5d, 0xa0, 0xe0, 0xdf, 0xe7, 0x97, 1065 0xb7, 0x23, 0xeb, 0x9b, 0x6c, 0xe4, 0x72, 0x3a, 0x1a, 0xf3, 0x29, 0x89, 0xfd, 0xf1, 0x12, 0x68, 1066 0x22, 0x8e, 0x70, 0x6c, 0x5a, 0x54, 0x16, 0x0e, 0x8d, 0xbc, 0x5a, 0x10, 0x94, 0x08, 0xa5, 0xb0, 1067 0x2c, 0x07, 0x1a, 0x89, 0x67, 0xe2, 0xdd, 0xc6, 0x81, 0xcb, 0x02, 0x97, 0x4f, 0xe5, 0x97, 0x5e, 1068 0x26, 0xe9, 0x1c, 0xaf, 0xc2, 0xd6, 0x88, 0x8e, 0xc6, 0x8c, 0x79, 0x7d, 0x1a, 0x04, 0x2c, 0x90, 1069 0x9f, 0xb1, 0x46, 0xea, 0xf1, 0xe2, 0x81, 0x58, 0x6b, 0xdd, 0x84, 0x0b, 0xcb, 0x6f, 0x78, 0xd9, 1070 0x21, 0xb7, 0x6e, 0xc0, 0xce, 0xb2, 0xdb, 0x5b, 0x66, 0xbb, 0xff, 0xdb, 0x26, 0x9c, 0xbd, 0xdb, 1071 0xee, 0x1c, 0x89, 0xa4, 0x74, 0x2d, 0x33, 0x2e, 0xce, 0x15, 0x81, 0x17, 0x5c, 0xd9, 0x35, 0x19, 1072 0xab, 0xd9, 0x84, 0x87, 0xb0, 0x2e, 0x69, 0x83, 0xab, 0xdb, 0x28, 0x23, 0x07, 0x56, 0xe2, 0x65, 1073 0xe4, 0xef, 0x8e, 0x95, 0x7d, 0x95, 0xb1, 0x9a, 0x5d, 0x48, 0x40, 0x4b, 0x41, 0x84, 0xf9, 0x7d, 1074 0x96, 0x51, 0x80, 0x67, 0x42, 0x33, 0xad, 0xca, 0x98, 0xdf, 0x79, 0x18, 0x05, 0x8a, 0x3b, 0x7e, 1075 0x06, 0xb5, 0xe4, 0xeb, 0xc9, 0xeb, 0x85, 0x8c, 0x1c, 0xd6, 0x88, 0x0b, 0x90, 0xdc, 0xc3, 0xd5, 1076 0x4d, 0x9d, 0x91, 0x83, 0x4d, 0x3c, 0x82, 0x6a, 0x54, 0xfa, 0x31, 0xa7, 0xbb, 0x31, 0xf2, 0xd8, 1077 0x21, 0x8e, 0x2c, 0x45, 0x39, 0xe6, 0xb7, 0xaa, 0x46, 0x81, 0x5f, 0x04, 0xf8, 0x00, 0x20, 0xf3, 1078 0xd3, 0x39, 0xb7, 0x07, 0x35, 0x8a, 0x70, 0x1e, 0x7b, 0xb0, 0x91, 0xd0, 0x12, 0x73, 0x3b, 0x42, 1079 0x23, 0x1f, 0xb9, 0xf8, 0x10, 0xb6, 0x66, 0xe0, 0x87, 0xc5, 0xfa, 0x3c, 0xa3, 0x20, 0x4b, 0x85, 1080 0xfe, 0x0c, 0x0b, 0xb1, 0x58, 0xdf, 0x67, 0x14, 0x44, 0x2b, 0xfe, 0x00, 0xe7, 0x16, 0xa8, 0x88, 1081 0xc5, 0xdb, 0x40, 0xe3, 0x14, 0xb0, 0xc5, 0x11, 0xe0, 0x22, 0x22, 0xf1, 0x14, 0x5d, 0xa1, 0x71, 1082 0x1a, 0xf6, 0xe2, 0xf7, 0xd0, 0x98, 0xab, 0xa9, 0x85, 0x7a, 0x44, 0xa3, 0x18, 0x82, 0xf1, 0x6b, 1083 0xa8, 0xcf, 0x14, 0xe1, 0x02, 0xfd, 0xa2, 0x51, 0x84, 0xc5, 0xed, 0xbb, 0x4f, 0x5f, 0x34, 0xd7, 1084 0x9e, 0xbd, 0x68, 0xae, 0xfd, 0xf5, 0xa2, 0xb9, 0xf6, 0xcb, 0xcb, 0x66, 0xe9, 0xd9, 0xcb, 0x66, 1085 0xe9, 0x8f, 0x97, 0xcd, 0xd2, 0x37, 0x6f, 0x0f, 0x5d, 0xee, 0x4c, 0x06, 0xbb, 0x16, 0x1b, 0xed, 1086 0x1d, 0xba, 0x7e, 0x68, 0x39, 0xae, 0xb9, 0xb7, 0xe4, 0x2f, 0xbb, 0x41, 0x55, 0xfe, 0x6f, 0x76, 1087 0xeb, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x28, 0x00, 0x44, 0x1c, 0xd0, 0x13, 0x00, 0x00, 1088 } 1089 1090 // Reference imports to suppress errors if they are not otherwise used. 1091 var _ context.Context 1092 var _ grpc.ClientConn 1093 1094 // This is a compile-time assertion to ensure that this generated file 1095 // is compatible with the grpc package it is being compiled against. 1096 const _ = grpc.SupportPackageIsVersion4 1097 1098 // ABCIApplicationClient is the client API for ABCIApplication service. 1099 // 1100 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1101 type ABCIApplicationClient interface { 1102 Echo(ctx context.Context, in *types.RequestEcho, opts ...grpc.CallOption) (*types.ResponseEcho, error) 1103 Flush(ctx context.Context, in *types.RequestFlush, opts ...grpc.CallOption) (*types.ResponseFlush, error) 1104 Info(ctx context.Context, in *types.RequestInfo, opts ...grpc.CallOption) (*types.ResponseInfo, error) 1105 SetOption(ctx context.Context, in *types.RequestSetOption, opts ...grpc.CallOption) (*types.ResponseSetOption, error) 1106 DeliverTx(ctx context.Context, in *types.RequestDeliverTx, opts ...grpc.CallOption) (*types.ResponseDeliverTx, error) 1107 CheckTx(ctx context.Context, in *types.RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) 1108 Query(ctx context.Context, in *types.RequestQuery, opts ...grpc.CallOption) (*types.ResponseQuery, error) 1109 Commit(ctx context.Context, in *types.RequestCommit, opts ...grpc.CallOption) (*types.ResponseCommit, error) 1110 InitChain(ctx context.Context, in *types.RequestInitChain, opts ...grpc.CallOption) (*types.ResponseInitChain, error) 1111 BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*types.ResponseBeginBlock, error) 1112 EndBlock(ctx context.Context, in *types.RequestEndBlock, opts ...grpc.CallOption) (*types.ResponseEndBlock, error) 1113 ListSnapshots(ctx context.Context, in *types.RequestListSnapshots, opts ...grpc.CallOption) (*types.ResponseListSnapshots, error) 1114 OfferSnapshot(ctx context.Context, in *types.RequestOfferSnapshot, opts ...grpc.CallOption) (*types.ResponseOfferSnapshot, error) 1115 LoadSnapshotChunk(ctx context.Context, in *types.RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*types.ResponseLoadSnapshotChunk, error) 1116 ApplySnapshotChunk(ctx context.Context, in *types.RequestApplySnapshotChunk, opts ...grpc.CallOption) (*types.ResponseApplySnapshotChunk, error) 1117 BeginRecheckTx(ctx context.Context, in *RequestBeginRecheckTx, opts ...grpc.CallOption) (*ResponseBeginRecheckTx, error) 1118 EndRecheckTx(ctx context.Context, in *RequestEndRecheckTx, opts ...grpc.CallOption) (*ResponseEndRecheckTx, error) 1119 } 1120 1121 type aBCIApplicationClient struct { 1122 cc *grpc.ClientConn 1123 } 1124 1125 func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient { 1126 return &aBCIApplicationClient{cc} 1127 } 1128 1129 func (c *aBCIApplicationClient) Echo(ctx context.Context, in *types.RequestEcho, opts ...grpc.CallOption) (*types.ResponseEcho, error) { 1130 out := new(types.ResponseEcho) 1131 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/Echo", in, out, opts...) 1132 if err != nil { 1133 return nil, err 1134 } 1135 return out, nil 1136 } 1137 1138 func (c *aBCIApplicationClient) Flush(ctx context.Context, in *types.RequestFlush, opts ...grpc.CallOption) (*types.ResponseFlush, error) { 1139 out := new(types.ResponseFlush) 1140 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/Flush", in, out, opts...) 1141 if err != nil { 1142 return nil, err 1143 } 1144 return out, nil 1145 } 1146 1147 func (c *aBCIApplicationClient) Info(ctx context.Context, in *types.RequestInfo, opts ...grpc.CallOption) (*types.ResponseInfo, error) { 1148 out := new(types.ResponseInfo) 1149 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/Info", in, out, opts...) 1150 if err != nil { 1151 return nil, err 1152 } 1153 return out, nil 1154 } 1155 1156 func (c *aBCIApplicationClient) SetOption(ctx context.Context, in *types.RequestSetOption, opts ...grpc.CallOption) (*types.ResponseSetOption, error) { 1157 out := new(types.ResponseSetOption) 1158 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/SetOption", in, out, opts...) 1159 if err != nil { 1160 return nil, err 1161 } 1162 return out, nil 1163 } 1164 1165 func (c *aBCIApplicationClient) DeliverTx(ctx context.Context, in *types.RequestDeliverTx, opts ...grpc.CallOption) (*types.ResponseDeliverTx, error) { 1166 out := new(types.ResponseDeliverTx) 1167 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/DeliverTx", in, out, opts...) 1168 if err != nil { 1169 return nil, err 1170 } 1171 return out, nil 1172 } 1173 1174 func (c *aBCIApplicationClient) CheckTx(ctx context.Context, in *types.RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) { 1175 out := new(ResponseCheckTx) 1176 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/CheckTx", in, out, opts...) 1177 if err != nil { 1178 return nil, err 1179 } 1180 return out, nil 1181 } 1182 1183 func (c *aBCIApplicationClient) Query(ctx context.Context, in *types.RequestQuery, opts ...grpc.CallOption) (*types.ResponseQuery, error) { 1184 out := new(types.ResponseQuery) 1185 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/Query", in, out, opts...) 1186 if err != nil { 1187 return nil, err 1188 } 1189 return out, nil 1190 } 1191 1192 func (c *aBCIApplicationClient) Commit(ctx context.Context, in *types.RequestCommit, opts ...grpc.CallOption) (*types.ResponseCommit, error) { 1193 out := new(types.ResponseCommit) 1194 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/Commit", in, out, opts...) 1195 if err != nil { 1196 return nil, err 1197 } 1198 return out, nil 1199 } 1200 1201 func (c *aBCIApplicationClient) InitChain(ctx context.Context, in *types.RequestInitChain, opts ...grpc.CallOption) (*types.ResponseInitChain, error) { 1202 out := new(types.ResponseInitChain) 1203 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/InitChain", in, out, opts...) 1204 if err != nil { 1205 return nil, err 1206 } 1207 return out, nil 1208 } 1209 1210 func (c *aBCIApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*types.ResponseBeginBlock, error) { 1211 out := new(types.ResponseBeginBlock) 1212 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/BeginBlock", in, out, opts...) 1213 if err != nil { 1214 return nil, err 1215 } 1216 return out, nil 1217 } 1218 1219 func (c *aBCIApplicationClient) EndBlock(ctx context.Context, in *types.RequestEndBlock, opts ...grpc.CallOption) (*types.ResponseEndBlock, error) { 1220 out := new(types.ResponseEndBlock) 1221 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/EndBlock", in, out, opts...) 1222 if err != nil { 1223 return nil, err 1224 } 1225 return out, nil 1226 } 1227 1228 func (c *aBCIApplicationClient) ListSnapshots(ctx context.Context, in *types.RequestListSnapshots, opts ...grpc.CallOption) (*types.ResponseListSnapshots, error) { 1229 out := new(types.ResponseListSnapshots) 1230 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/ListSnapshots", in, out, opts...) 1231 if err != nil { 1232 return nil, err 1233 } 1234 return out, nil 1235 } 1236 1237 func (c *aBCIApplicationClient) OfferSnapshot(ctx context.Context, in *types.RequestOfferSnapshot, opts ...grpc.CallOption) (*types.ResponseOfferSnapshot, error) { 1238 out := new(types.ResponseOfferSnapshot) 1239 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/OfferSnapshot", in, out, opts...) 1240 if err != nil { 1241 return nil, err 1242 } 1243 return out, nil 1244 } 1245 1246 func (c *aBCIApplicationClient) LoadSnapshotChunk(ctx context.Context, in *types.RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*types.ResponseLoadSnapshotChunk, error) { 1247 out := new(types.ResponseLoadSnapshotChunk) 1248 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/LoadSnapshotChunk", in, out, opts...) 1249 if err != nil { 1250 return nil, err 1251 } 1252 return out, nil 1253 } 1254 1255 func (c *aBCIApplicationClient) ApplySnapshotChunk(ctx context.Context, in *types.RequestApplySnapshotChunk, opts ...grpc.CallOption) (*types.ResponseApplySnapshotChunk, error) { 1256 out := new(types.ResponseApplySnapshotChunk) 1257 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/ApplySnapshotChunk", in, out, opts...) 1258 if err != nil { 1259 return nil, err 1260 } 1261 return out, nil 1262 } 1263 1264 func (c *aBCIApplicationClient) BeginRecheckTx(ctx context.Context, in *RequestBeginRecheckTx, opts ...grpc.CallOption) (*ResponseBeginRecheckTx, error) { 1265 out := new(ResponseBeginRecheckTx) 1266 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/BeginRecheckTx", in, out, opts...) 1267 if err != nil { 1268 return nil, err 1269 } 1270 return out, nil 1271 } 1272 1273 func (c *aBCIApplicationClient) EndRecheckTx(ctx context.Context, in *RequestEndRecheckTx, opts ...grpc.CallOption) (*ResponseEndRecheckTx, error) { 1274 out := new(ResponseEndRecheckTx) 1275 err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/EndRecheckTx", in, out, opts...) 1276 if err != nil { 1277 return nil, err 1278 } 1279 return out, nil 1280 } 1281 1282 // ABCIApplicationServer is the server API for ABCIApplication service. 1283 type ABCIApplicationServer interface { 1284 Echo(context.Context, *types.RequestEcho) (*types.ResponseEcho, error) 1285 Flush(context.Context, *types.RequestFlush) (*types.ResponseFlush, error) 1286 Info(context.Context, *types.RequestInfo) (*types.ResponseInfo, error) 1287 SetOption(context.Context, *types.RequestSetOption) (*types.ResponseSetOption, error) 1288 DeliverTx(context.Context, *types.RequestDeliverTx) (*types.ResponseDeliverTx, error) 1289 CheckTx(context.Context, *types.RequestCheckTx) (*ResponseCheckTx, error) 1290 Query(context.Context, *types.RequestQuery) (*types.ResponseQuery, error) 1291 Commit(context.Context, *types.RequestCommit) (*types.ResponseCommit, error) 1292 InitChain(context.Context, *types.RequestInitChain) (*types.ResponseInitChain, error) 1293 BeginBlock(context.Context, *RequestBeginBlock) (*types.ResponseBeginBlock, error) 1294 EndBlock(context.Context, *types.RequestEndBlock) (*types.ResponseEndBlock, error) 1295 ListSnapshots(context.Context, *types.RequestListSnapshots) (*types.ResponseListSnapshots, error) 1296 OfferSnapshot(context.Context, *types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) 1297 LoadSnapshotChunk(context.Context, *types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) 1298 ApplySnapshotChunk(context.Context, *types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) 1299 BeginRecheckTx(context.Context, *RequestBeginRecheckTx) (*ResponseBeginRecheckTx, error) 1300 EndRecheckTx(context.Context, *RequestEndRecheckTx) (*ResponseEndRecheckTx, error) 1301 } 1302 1303 // UnimplementedABCIApplicationServer can be embedded to have forward compatible implementations. 1304 type UnimplementedABCIApplicationServer struct { 1305 } 1306 1307 func (*UnimplementedABCIApplicationServer) Echo(ctx context.Context, req *types.RequestEcho) (*types.ResponseEcho, error) { 1308 return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") 1309 } 1310 func (*UnimplementedABCIApplicationServer) Flush(ctx context.Context, req *types.RequestFlush) (*types.ResponseFlush, error) { 1311 return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented") 1312 } 1313 func (*UnimplementedABCIApplicationServer) Info(ctx context.Context, req *types.RequestInfo) (*types.ResponseInfo, error) { 1314 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") 1315 } 1316 func (*UnimplementedABCIApplicationServer) SetOption(ctx context.Context, req *types.RequestSetOption) (*types.ResponseSetOption, error) { 1317 return nil, status.Errorf(codes.Unimplemented, "method SetOption not implemented") 1318 } 1319 func (*UnimplementedABCIApplicationServer) DeliverTx(ctx context.Context, req *types.RequestDeliverTx) (*types.ResponseDeliverTx, error) { 1320 return nil, status.Errorf(codes.Unimplemented, "method DeliverTx not implemented") 1321 } 1322 func (*UnimplementedABCIApplicationServer) CheckTx(ctx context.Context, req *types.RequestCheckTx) (*ResponseCheckTx, error) { 1323 return nil, status.Errorf(codes.Unimplemented, "method CheckTx not implemented") 1324 } 1325 func (*UnimplementedABCIApplicationServer) Query(ctx context.Context, req *types.RequestQuery) (*types.ResponseQuery, error) { 1326 return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") 1327 } 1328 func (*UnimplementedABCIApplicationServer) Commit(ctx context.Context, req *types.RequestCommit) (*types.ResponseCommit, error) { 1329 return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") 1330 } 1331 func (*UnimplementedABCIApplicationServer) InitChain(ctx context.Context, req *types.RequestInitChain) (*types.ResponseInitChain, error) { 1332 return nil, status.Errorf(codes.Unimplemented, "method InitChain not implemented") 1333 } 1334 func (*UnimplementedABCIApplicationServer) BeginBlock(ctx context.Context, req *RequestBeginBlock) (*types.ResponseBeginBlock, error) { 1335 return nil, status.Errorf(codes.Unimplemented, "method BeginBlock not implemented") 1336 } 1337 func (*UnimplementedABCIApplicationServer) EndBlock(ctx context.Context, req *types.RequestEndBlock) (*types.ResponseEndBlock, error) { 1338 return nil, status.Errorf(codes.Unimplemented, "method EndBlock not implemented") 1339 } 1340 func (*UnimplementedABCIApplicationServer) ListSnapshots(ctx context.Context, req *types.RequestListSnapshots) (*types.ResponseListSnapshots, error) { 1341 return nil, status.Errorf(codes.Unimplemented, "method ListSnapshots not implemented") 1342 } 1343 func (*UnimplementedABCIApplicationServer) OfferSnapshot(ctx context.Context, req *types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) { 1344 return nil, status.Errorf(codes.Unimplemented, "method OfferSnapshot not implemented") 1345 } 1346 func (*UnimplementedABCIApplicationServer) LoadSnapshotChunk(ctx context.Context, req *types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) { 1347 return nil, status.Errorf(codes.Unimplemented, "method LoadSnapshotChunk not implemented") 1348 } 1349 func (*UnimplementedABCIApplicationServer) ApplySnapshotChunk(ctx context.Context, req *types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) { 1350 return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented") 1351 } 1352 func (*UnimplementedABCIApplicationServer) BeginRecheckTx(ctx context.Context, req *RequestBeginRecheckTx) (*ResponseBeginRecheckTx, error) { 1353 return nil, status.Errorf(codes.Unimplemented, "method BeginRecheckTx not implemented") 1354 } 1355 func (*UnimplementedABCIApplicationServer) EndRecheckTx(ctx context.Context, req *RequestEndRecheckTx) (*ResponseEndRecheckTx, error) { 1356 return nil, status.Errorf(codes.Unimplemented, "method EndRecheckTx not implemented") 1357 } 1358 1359 func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) { 1360 s.RegisterService(&_ABCIApplication_serviceDesc, srv) 1361 } 1362 1363 func _ABCIApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1364 in := new(types.RequestEcho) 1365 if err := dec(in); err != nil { 1366 return nil, err 1367 } 1368 if interceptor == nil { 1369 return srv.(ABCIApplicationServer).Echo(ctx, in) 1370 } 1371 info := &grpc.UnaryServerInfo{ 1372 Server: srv, 1373 FullMethod: "/ostracon.abci.ABCIApplication/Echo", 1374 } 1375 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1376 return srv.(ABCIApplicationServer).Echo(ctx, req.(*types.RequestEcho)) 1377 } 1378 return interceptor(ctx, in, info, handler) 1379 } 1380 1381 func _ABCIApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1382 in := new(types.RequestFlush) 1383 if err := dec(in); err != nil { 1384 return nil, err 1385 } 1386 if interceptor == nil { 1387 return srv.(ABCIApplicationServer).Flush(ctx, in) 1388 } 1389 info := &grpc.UnaryServerInfo{ 1390 Server: srv, 1391 FullMethod: "/ostracon.abci.ABCIApplication/Flush", 1392 } 1393 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1394 return srv.(ABCIApplicationServer).Flush(ctx, req.(*types.RequestFlush)) 1395 } 1396 return interceptor(ctx, in, info, handler) 1397 } 1398 1399 func _ABCIApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1400 in := new(types.RequestInfo) 1401 if err := dec(in); err != nil { 1402 return nil, err 1403 } 1404 if interceptor == nil { 1405 return srv.(ABCIApplicationServer).Info(ctx, in) 1406 } 1407 info := &grpc.UnaryServerInfo{ 1408 Server: srv, 1409 FullMethod: "/ostracon.abci.ABCIApplication/Info", 1410 } 1411 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1412 return srv.(ABCIApplicationServer).Info(ctx, req.(*types.RequestInfo)) 1413 } 1414 return interceptor(ctx, in, info, handler) 1415 } 1416 1417 func _ABCIApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1418 in := new(types.RequestSetOption) 1419 if err := dec(in); err != nil { 1420 return nil, err 1421 } 1422 if interceptor == nil { 1423 return srv.(ABCIApplicationServer).SetOption(ctx, in) 1424 } 1425 info := &grpc.UnaryServerInfo{ 1426 Server: srv, 1427 FullMethod: "/ostracon.abci.ABCIApplication/SetOption", 1428 } 1429 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1430 return srv.(ABCIApplicationServer).SetOption(ctx, req.(*types.RequestSetOption)) 1431 } 1432 return interceptor(ctx, in, info, handler) 1433 } 1434 1435 func _ABCIApplication_DeliverTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1436 in := new(types.RequestDeliverTx) 1437 if err := dec(in); err != nil { 1438 return nil, err 1439 } 1440 if interceptor == nil { 1441 return srv.(ABCIApplicationServer).DeliverTx(ctx, in) 1442 } 1443 info := &grpc.UnaryServerInfo{ 1444 Server: srv, 1445 FullMethod: "/ostracon.abci.ABCIApplication/DeliverTx", 1446 } 1447 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1448 return srv.(ABCIApplicationServer).DeliverTx(ctx, req.(*types.RequestDeliverTx)) 1449 } 1450 return interceptor(ctx, in, info, handler) 1451 } 1452 1453 func _ABCIApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1454 in := new(types.RequestCheckTx) 1455 if err := dec(in); err != nil { 1456 return nil, err 1457 } 1458 if interceptor == nil { 1459 return srv.(ABCIApplicationServer).CheckTx(ctx, in) 1460 } 1461 info := &grpc.UnaryServerInfo{ 1462 Server: srv, 1463 FullMethod: "/ostracon.abci.ABCIApplication/CheckTx", 1464 } 1465 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1466 return srv.(ABCIApplicationServer).CheckTx(ctx, req.(*types.RequestCheckTx)) 1467 } 1468 return interceptor(ctx, in, info, handler) 1469 } 1470 1471 func _ABCIApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1472 in := new(types.RequestQuery) 1473 if err := dec(in); err != nil { 1474 return nil, err 1475 } 1476 if interceptor == nil { 1477 return srv.(ABCIApplicationServer).Query(ctx, in) 1478 } 1479 info := &grpc.UnaryServerInfo{ 1480 Server: srv, 1481 FullMethod: "/ostracon.abci.ABCIApplication/Query", 1482 } 1483 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1484 return srv.(ABCIApplicationServer).Query(ctx, req.(*types.RequestQuery)) 1485 } 1486 return interceptor(ctx, in, info, handler) 1487 } 1488 1489 func _ABCIApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1490 in := new(types.RequestCommit) 1491 if err := dec(in); err != nil { 1492 return nil, err 1493 } 1494 if interceptor == nil { 1495 return srv.(ABCIApplicationServer).Commit(ctx, in) 1496 } 1497 info := &grpc.UnaryServerInfo{ 1498 Server: srv, 1499 FullMethod: "/ostracon.abci.ABCIApplication/Commit", 1500 } 1501 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1502 return srv.(ABCIApplicationServer).Commit(ctx, req.(*types.RequestCommit)) 1503 } 1504 return interceptor(ctx, in, info, handler) 1505 } 1506 1507 func _ABCIApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1508 in := new(types.RequestInitChain) 1509 if err := dec(in); err != nil { 1510 return nil, err 1511 } 1512 if interceptor == nil { 1513 return srv.(ABCIApplicationServer).InitChain(ctx, in) 1514 } 1515 info := &grpc.UnaryServerInfo{ 1516 Server: srv, 1517 FullMethod: "/ostracon.abci.ABCIApplication/InitChain", 1518 } 1519 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1520 return srv.(ABCIApplicationServer).InitChain(ctx, req.(*types.RequestInitChain)) 1521 } 1522 return interceptor(ctx, in, info, handler) 1523 } 1524 1525 func _ABCIApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1526 in := new(RequestBeginBlock) 1527 if err := dec(in); err != nil { 1528 return nil, err 1529 } 1530 if interceptor == nil { 1531 return srv.(ABCIApplicationServer).BeginBlock(ctx, in) 1532 } 1533 info := &grpc.UnaryServerInfo{ 1534 Server: srv, 1535 FullMethod: "/ostracon.abci.ABCIApplication/BeginBlock", 1536 } 1537 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1538 return srv.(ABCIApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock)) 1539 } 1540 return interceptor(ctx, in, info, handler) 1541 } 1542 1543 func _ABCIApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1544 in := new(types.RequestEndBlock) 1545 if err := dec(in); err != nil { 1546 return nil, err 1547 } 1548 if interceptor == nil { 1549 return srv.(ABCIApplicationServer).EndBlock(ctx, in) 1550 } 1551 info := &grpc.UnaryServerInfo{ 1552 Server: srv, 1553 FullMethod: "/ostracon.abci.ABCIApplication/EndBlock", 1554 } 1555 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1556 return srv.(ABCIApplicationServer).EndBlock(ctx, req.(*types.RequestEndBlock)) 1557 } 1558 return interceptor(ctx, in, info, handler) 1559 } 1560 1561 func _ABCIApplication_ListSnapshots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1562 in := new(types.RequestListSnapshots) 1563 if err := dec(in); err != nil { 1564 return nil, err 1565 } 1566 if interceptor == nil { 1567 return srv.(ABCIApplicationServer).ListSnapshots(ctx, in) 1568 } 1569 info := &grpc.UnaryServerInfo{ 1570 Server: srv, 1571 FullMethod: "/ostracon.abci.ABCIApplication/ListSnapshots", 1572 } 1573 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1574 return srv.(ABCIApplicationServer).ListSnapshots(ctx, req.(*types.RequestListSnapshots)) 1575 } 1576 return interceptor(ctx, in, info, handler) 1577 } 1578 1579 func _ABCIApplication_OfferSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1580 in := new(types.RequestOfferSnapshot) 1581 if err := dec(in); err != nil { 1582 return nil, err 1583 } 1584 if interceptor == nil { 1585 return srv.(ABCIApplicationServer).OfferSnapshot(ctx, in) 1586 } 1587 info := &grpc.UnaryServerInfo{ 1588 Server: srv, 1589 FullMethod: "/ostracon.abci.ABCIApplication/OfferSnapshot", 1590 } 1591 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1592 return srv.(ABCIApplicationServer).OfferSnapshot(ctx, req.(*types.RequestOfferSnapshot)) 1593 } 1594 return interceptor(ctx, in, info, handler) 1595 } 1596 1597 func _ABCIApplication_LoadSnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1598 in := new(types.RequestLoadSnapshotChunk) 1599 if err := dec(in); err != nil { 1600 return nil, err 1601 } 1602 if interceptor == nil { 1603 return srv.(ABCIApplicationServer).LoadSnapshotChunk(ctx, in) 1604 } 1605 info := &grpc.UnaryServerInfo{ 1606 Server: srv, 1607 FullMethod: "/ostracon.abci.ABCIApplication/LoadSnapshotChunk", 1608 } 1609 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1610 return srv.(ABCIApplicationServer).LoadSnapshotChunk(ctx, req.(*types.RequestLoadSnapshotChunk)) 1611 } 1612 return interceptor(ctx, in, info, handler) 1613 } 1614 1615 func _ABCIApplication_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1616 in := new(types.RequestApplySnapshotChunk) 1617 if err := dec(in); err != nil { 1618 return nil, err 1619 } 1620 if interceptor == nil { 1621 return srv.(ABCIApplicationServer).ApplySnapshotChunk(ctx, in) 1622 } 1623 info := &grpc.UnaryServerInfo{ 1624 Server: srv, 1625 FullMethod: "/ostracon.abci.ABCIApplication/ApplySnapshotChunk", 1626 } 1627 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1628 return srv.(ABCIApplicationServer).ApplySnapshotChunk(ctx, req.(*types.RequestApplySnapshotChunk)) 1629 } 1630 return interceptor(ctx, in, info, handler) 1631 } 1632 1633 func _ABCIApplication_BeginRecheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1634 in := new(RequestBeginRecheckTx) 1635 if err := dec(in); err != nil { 1636 return nil, err 1637 } 1638 if interceptor == nil { 1639 return srv.(ABCIApplicationServer).BeginRecheckTx(ctx, in) 1640 } 1641 info := &grpc.UnaryServerInfo{ 1642 Server: srv, 1643 FullMethod: "/ostracon.abci.ABCIApplication/BeginRecheckTx", 1644 } 1645 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1646 return srv.(ABCIApplicationServer).BeginRecheckTx(ctx, req.(*RequestBeginRecheckTx)) 1647 } 1648 return interceptor(ctx, in, info, handler) 1649 } 1650 1651 func _ABCIApplication_EndRecheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1652 in := new(RequestEndRecheckTx) 1653 if err := dec(in); err != nil { 1654 return nil, err 1655 } 1656 if interceptor == nil { 1657 return srv.(ABCIApplicationServer).EndRecheckTx(ctx, in) 1658 } 1659 info := &grpc.UnaryServerInfo{ 1660 Server: srv, 1661 FullMethod: "/ostracon.abci.ABCIApplication/EndRecheckTx", 1662 } 1663 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1664 return srv.(ABCIApplicationServer).EndRecheckTx(ctx, req.(*RequestEndRecheckTx)) 1665 } 1666 return interceptor(ctx, in, info, handler) 1667 } 1668 1669 var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ 1670 ServiceName: "ostracon.abci.ABCIApplication", 1671 HandlerType: (*ABCIApplicationServer)(nil), 1672 Methods: []grpc.MethodDesc{ 1673 { 1674 MethodName: "Echo", 1675 Handler: _ABCIApplication_Echo_Handler, 1676 }, 1677 { 1678 MethodName: "Flush", 1679 Handler: _ABCIApplication_Flush_Handler, 1680 }, 1681 { 1682 MethodName: "Info", 1683 Handler: _ABCIApplication_Info_Handler, 1684 }, 1685 { 1686 MethodName: "SetOption", 1687 Handler: _ABCIApplication_SetOption_Handler, 1688 }, 1689 { 1690 MethodName: "DeliverTx", 1691 Handler: _ABCIApplication_DeliverTx_Handler, 1692 }, 1693 { 1694 MethodName: "CheckTx", 1695 Handler: _ABCIApplication_CheckTx_Handler, 1696 }, 1697 { 1698 MethodName: "Query", 1699 Handler: _ABCIApplication_Query_Handler, 1700 }, 1701 { 1702 MethodName: "Commit", 1703 Handler: _ABCIApplication_Commit_Handler, 1704 }, 1705 { 1706 MethodName: "InitChain", 1707 Handler: _ABCIApplication_InitChain_Handler, 1708 }, 1709 { 1710 MethodName: "BeginBlock", 1711 Handler: _ABCIApplication_BeginBlock_Handler, 1712 }, 1713 { 1714 MethodName: "EndBlock", 1715 Handler: _ABCIApplication_EndBlock_Handler, 1716 }, 1717 { 1718 MethodName: "ListSnapshots", 1719 Handler: _ABCIApplication_ListSnapshots_Handler, 1720 }, 1721 { 1722 MethodName: "OfferSnapshot", 1723 Handler: _ABCIApplication_OfferSnapshot_Handler, 1724 }, 1725 { 1726 MethodName: "LoadSnapshotChunk", 1727 Handler: _ABCIApplication_LoadSnapshotChunk_Handler, 1728 }, 1729 { 1730 MethodName: "ApplySnapshotChunk", 1731 Handler: _ABCIApplication_ApplySnapshotChunk_Handler, 1732 }, 1733 { 1734 MethodName: "BeginRecheckTx", 1735 Handler: _ABCIApplication_BeginRecheckTx_Handler, 1736 }, 1737 { 1738 MethodName: "EndRecheckTx", 1739 Handler: _ABCIApplication_EndRecheckTx_Handler, 1740 }, 1741 }, 1742 Streams: []grpc.StreamDesc{}, 1743 Metadata: "ostracon/abci/types.proto", 1744 } 1745 1746 func (m *Request) Marshal() (dAtA []byte, err error) { 1747 size := m.Size() 1748 dAtA = make([]byte, size) 1749 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1750 if err != nil { 1751 return nil, err 1752 } 1753 return dAtA[:n], nil 1754 } 1755 1756 func (m *Request) MarshalTo(dAtA []byte) (int, error) { 1757 size := m.Size() 1758 return m.MarshalToSizedBuffer(dAtA[:size]) 1759 } 1760 1761 func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1762 i := len(dAtA) 1763 _ = i 1764 var l int 1765 _ = l 1766 if m.Value != nil { 1767 { 1768 size := m.Value.Size() 1769 i -= size 1770 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 1771 return 0, err 1772 } 1773 } 1774 } 1775 return len(dAtA) - i, nil 1776 } 1777 1778 func (m *Request_Echo) MarshalTo(dAtA []byte) (int, error) { 1779 size := m.Size() 1780 return m.MarshalToSizedBuffer(dAtA[:size]) 1781 } 1782 1783 func (m *Request_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1784 i := len(dAtA) 1785 if m.Echo != nil { 1786 { 1787 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 1788 if err != nil { 1789 return 0, err 1790 } 1791 i -= size 1792 i = encodeVarintTypes(dAtA, i, uint64(size)) 1793 } 1794 i-- 1795 dAtA[i] = 0xa 1796 } 1797 return len(dAtA) - i, nil 1798 } 1799 func (m *Request_Flush) MarshalTo(dAtA []byte) (int, error) { 1800 size := m.Size() 1801 return m.MarshalToSizedBuffer(dAtA[:size]) 1802 } 1803 1804 func (m *Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1805 i := len(dAtA) 1806 if m.Flush != nil { 1807 { 1808 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 1809 if err != nil { 1810 return 0, err 1811 } 1812 i -= size 1813 i = encodeVarintTypes(dAtA, i, uint64(size)) 1814 } 1815 i-- 1816 dAtA[i] = 0x12 1817 } 1818 return len(dAtA) - i, nil 1819 } 1820 func (m *Request_Info) MarshalTo(dAtA []byte) (int, error) { 1821 size := m.Size() 1822 return m.MarshalToSizedBuffer(dAtA[:size]) 1823 } 1824 1825 func (m *Request_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1826 i := len(dAtA) 1827 if m.Info != nil { 1828 { 1829 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 1830 if err != nil { 1831 return 0, err 1832 } 1833 i -= size 1834 i = encodeVarintTypes(dAtA, i, uint64(size)) 1835 } 1836 i-- 1837 dAtA[i] = 0x1a 1838 } 1839 return len(dAtA) - i, nil 1840 } 1841 func (m *Request_SetOption) MarshalTo(dAtA []byte) (int, error) { 1842 size := m.Size() 1843 return m.MarshalToSizedBuffer(dAtA[:size]) 1844 } 1845 1846 func (m *Request_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1847 i := len(dAtA) 1848 if m.SetOption != nil { 1849 { 1850 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 1851 if err != nil { 1852 return 0, err 1853 } 1854 i -= size 1855 i = encodeVarintTypes(dAtA, i, uint64(size)) 1856 } 1857 i-- 1858 dAtA[i] = 0x22 1859 } 1860 return len(dAtA) - i, nil 1861 } 1862 func (m *Request_InitChain) MarshalTo(dAtA []byte) (int, error) { 1863 size := m.Size() 1864 return m.MarshalToSizedBuffer(dAtA[:size]) 1865 } 1866 1867 func (m *Request_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1868 i := len(dAtA) 1869 if m.InitChain != nil { 1870 { 1871 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 1872 if err != nil { 1873 return 0, err 1874 } 1875 i -= size 1876 i = encodeVarintTypes(dAtA, i, uint64(size)) 1877 } 1878 i-- 1879 dAtA[i] = 0x2a 1880 } 1881 return len(dAtA) - i, nil 1882 } 1883 func (m *Request_Query) MarshalTo(dAtA []byte) (int, error) { 1884 size := m.Size() 1885 return m.MarshalToSizedBuffer(dAtA[:size]) 1886 } 1887 1888 func (m *Request_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1889 i := len(dAtA) 1890 if m.Query != nil { 1891 { 1892 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 1893 if err != nil { 1894 return 0, err 1895 } 1896 i -= size 1897 i = encodeVarintTypes(dAtA, i, uint64(size)) 1898 } 1899 i-- 1900 dAtA[i] = 0x32 1901 } 1902 return len(dAtA) - i, nil 1903 } 1904 func (m *Request_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 1905 size := m.Size() 1906 return m.MarshalToSizedBuffer(dAtA[:size]) 1907 } 1908 1909 func (m *Request_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1910 i := len(dAtA) 1911 if m.BeginBlock != nil { 1912 { 1913 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 1914 if err != nil { 1915 return 0, err 1916 } 1917 i -= size 1918 i = encodeVarintTypes(dAtA, i, uint64(size)) 1919 } 1920 i-- 1921 dAtA[i] = 0x3a 1922 } 1923 return len(dAtA) - i, nil 1924 } 1925 func (m *Request_CheckTx) MarshalTo(dAtA []byte) (int, error) { 1926 size := m.Size() 1927 return m.MarshalToSizedBuffer(dAtA[:size]) 1928 } 1929 1930 func (m *Request_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1931 i := len(dAtA) 1932 if m.CheckTx != nil { 1933 { 1934 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 1935 if err != nil { 1936 return 0, err 1937 } 1938 i -= size 1939 i = encodeVarintTypes(dAtA, i, uint64(size)) 1940 } 1941 i-- 1942 dAtA[i] = 0x42 1943 } 1944 return len(dAtA) - i, nil 1945 } 1946 func (m *Request_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 1947 size := m.Size() 1948 return m.MarshalToSizedBuffer(dAtA[:size]) 1949 } 1950 1951 func (m *Request_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1952 i := len(dAtA) 1953 if m.DeliverTx != nil { 1954 { 1955 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 1956 if err != nil { 1957 return 0, err 1958 } 1959 i -= size 1960 i = encodeVarintTypes(dAtA, i, uint64(size)) 1961 } 1962 i-- 1963 dAtA[i] = 0x4a 1964 } 1965 return len(dAtA) - i, nil 1966 } 1967 func (m *Request_EndBlock) MarshalTo(dAtA []byte) (int, error) { 1968 size := m.Size() 1969 return m.MarshalToSizedBuffer(dAtA[:size]) 1970 } 1971 1972 func (m *Request_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1973 i := len(dAtA) 1974 if m.EndBlock != nil { 1975 { 1976 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 1977 if err != nil { 1978 return 0, err 1979 } 1980 i -= size 1981 i = encodeVarintTypes(dAtA, i, uint64(size)) 1982 } 1983 i-- 1984 dAtA[i] = 0x52 1985 } 1986 return len(dAtA) - i, nil 1987 } 1988 func (m *Request_Commit) MarshalTo(dAtA []byte) (int, error) { 1989 size := m.Size() 1990 return m.MarshalToSizedBuffer(dAtA[:size]) 1991 } 1992 1993 func (m *Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1994 i := len(dAtA) 1995 if m.Commit != nil { 1996 { 1997 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 1998 if err != nil { 1999 return 0, err 2000 } 2001 i -= size 2002 i = encodeVarintTypes(dAtA, i, uint64(size)) 2003 } 2004 i-- 2005 dAtA[i] = 0x5a 2006 } 2007 return len(dAtA) - i, nil 2008 } 2009 func (m *Request_ListSnapshots) MarshalTo(dAtA []byte) (int, error) { 2010 size := m.Size() 2011 return m.MarshalToSizedBuffer(dAtA[:size]) 2012 } 2013 2014 func (m *Request_ListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2015 i := len(dAtA) 2016 if m.ListSnapshots != nil { 2017 { 2018 size, err := m.ListSnapshots.MarshalToSizedBuffer(dAtA[:i]) 2019 if err != nil { 2020 return 0, err 2021 } 2022 i -= size 2023 i = encodeVarintTypes(dAtA, i, uint64(size)) 2024 } 2025 i-- 2026 dAtA[i] = 0x62 2027 } 2028 return len(dAtA) - i, nil 2029 } 2030 func (m *Request_OfferSnapshot) MarshalTo(dAtA []byte) (int, error) { 2031 size := m.Size() 2032 return m.MarshalToSizedBuffer(dAtA[:size]) 2033 } 2034 2035 func (m *Request_OfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2036 i := len(dAtA) 2037 if m.OfferSnapshot != nil { 2038 { 2039 size, err := m.OfferSnapshot.MarshalToSizedBuffer(dAtA[:i]) 2040 if err != nil { 2041 return 0, err 2042 } 2043 i -= size 2044 i = encodeVarintTypes(dAtA, i, uint64(size)) 2045 } 2046 i-- 2047 dAtA[i] = 0x6a 2048 } 2049 return len(dAtA) - i, nil 2050 } 2051 func (m *Request_LoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 2052 size := m.Size() 2053 return m.MarshalToSizedBuffer(dAtA[:size]) 2054 } 2055 2056 func (m *Request_LoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2057 i := len(dAtA) 2058 if m.LoadSnapshotChunk != nil { 2059 { 2060 size, err := m.LoadSnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 2061 if err != nil { 2062 return 0, err 2063 } 2064 i -= size 2065 i = encodeVarintTypes(dAtA, i, uint64(size)) 2066 } 2067 i-- 2068 dAtA[i] = 0x72 2069 } 2070 return len(dAtA) - i, nil 2071 } 2072 func (m *Request_ApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 2073 size := m.Size() 2074 return m.MarshalToSizedBuffer(dAtA[:size]) 2075 } 2076 2077 func (m *Request_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2078 i := len(dAtA) 2079 if m.ApplySnapshotChunk != nil { 2080 { 2081 size, err := m.ApplySnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 2082 if err != nil { 2083 return 0, err 2084 } 2085 i -= size 2086 i = encodeVarintTypes(dAtA, i, uint64(size)) 2087 } 2088 i-- 2089 dAtA[i] = 0x7a 2090 } 2091 return len(dAtA) - i, nil 2092 } 2093 func (m *Request_BeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2094 size := m.Size() 2095 return m.MarshalToSizedBuffer(dAtA[:size]) 2096 } 2097 2098 func (m *Request_BeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2099 i := len(dAtA) 2100 if m.BeginRecheckTx != nil { 2101 { 2102 size, err := m.BeginRecheckTx.MarshalToSizedBuffer(dAtA[:i]) 2103 if err != nil { 2104 return 0, err 2105 } 2106 i -= size 2107 i = encodeVarintTypes(dAtA, i, uint64(size)) 2108 } 2109 i-- 2110 dAtA[i] = 0x3e 2111 i-- 2112 dAtA[i] = 0xc2 2113 } 2114 return len(dAtA) - i, nil 2115 } 2116 func (m *Request_EndRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2117 size := m.Size() 2118 return m.MarshalToSizedBuffer(dAtA[:size]) 2119 } 2120 2121 func (m *Request_EndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2122 i := len(dAtA) 2123 if m.EndRecheckTx != nil { 2124 { 2125 size, err := m.EndRecheckTx.MarshalToSizedBuffer(dAtA[:i]) 2126 if err != nil { 2127 return 0, err 2128 } 2129 i -= size 2130 i = encodeVarintTypes(dAtA, i, uint64(size)) 2131 } 2132 i-- 2133 dAtA[i] = 0x3e 2134 i-- 2135 dAtA[i] = 0xca 2136 } 2137 return len(dAtA) - i, nil 2138 } 2139 func (m *RequestBeginBlock) Marshal() (dAtA []byte, err error) { 2140 size := m.Size() 2141 dAtA = make([]byte, size) 2142 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2143 if err != nil { 2144 return nil, err 2145 } 2146 return dAtA[:n], nil 2147 } 2148 2149 func (m *RequestBeginBlock) MarshalTo(dAtA []byte) (int, error) { 2150 size := m.Size() 2151 return m.MarshalToSizedBuffer(dAtA[:size]) 2152 } 2153 2154 func (m *RequestBeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2155 i := len(dAtA) 2156 _ = i 2157 var l int 2158 _ = l 2159 { 2160 size, err := m.Entropy.MarshalToSizedBuffer(dAtA[:i]) 2161 if err != nil { 2162 return 0, err 2163 } 2164 i -= size 2165 i = encodeVarintTypes(dAtA, i, uint64(size)) 2166 } 2167 i-- 2168 dAtA[i] = 0x3e 2169 i-- 2170 dAtA[i] = 0xc2 2171 if len(m.ByzantineValidators) > 0 { 2172 for iNdEx := len(m.ByzantineValidators) - 1; iNdEx >= 0; iNdEx-- { 2173 { 2174 size, err := m.ByzantineValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2175 if err != nil { 2176 return 0, err 2177 } 2178 i -= size 2179 i = encodeVarintTypes(dAtA, i, uint64(size)) 2180 } 2181 i-- 2182 dAtA[i] = 0x22 2183 } 2184 } 2185 { 2186 size, err := m.LastCommitInfo.MarshalToSizedBuffer(dAtA[:i]) 2187 if err != nil { 2188 return 0, err 2189 } 2190 i -= size 2191 i = encodeVarintTypes(dAtA, i, uint64(size)) 2192 } 2193 i-- 2194 dAtA[i] = 0x1a 2195 { 2196 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) 2197 if err != nil { 2198 return 0, err 2199 } 2200 i -= size 2201 i = encodeVarintTypes(dAtA, i, uint64(size)) 2202 } 2203 i-- 2204 dAtA[i] = 0x12 2205 if len(m.Hash) > 0 { 2206 i -= len(m.Hash) 2207 copy(dAtA[i:], m.Hash) 2208 i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash))) 2209 i-- 2210 dAtA[i] = 0xa 2211 } 2212 return len(dAtA) - i, nil 2213 } 2214 2215 func (m *RequestBeginRecheckTx) Marshal() (dAtA []byte, err error) { 2216 size := m.Size() 2217 dAtA = make([]byte, size) 2218 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2219 if err != nil { 2220 return nil, err 2221 } 2222 return dAtA[:n], nil 2223 } 2224 2225 func (m *RequestBeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2226 size := m.Size() 2227 return m.MarshalToSizedBuffer(dAtA[:size]) 2228 } 2229 2230 func (m *RequestBeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2231 i := len(dAtA) 2232 _ = i 2233 var l int 2234 _ = l 2235 { 2236 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) 2237 if err != nil { 2238 return 0, err 2239 } 2240 i -= size 2241 i = encodeVarintTypes(dAtA, i, uint64(size)) 2242 } 2243 i-- 2244 dAtA[i] = 0xa 2245 return len(dAtA) - i, nil 2246 } 2247 2248 func (m *RequestEndRecheckTx) Marshal() (dAtA []byte, err error) { 2249 size := m.Size() 2250 dAtA = make([]byte, size) 2251 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2252 if err != nil { 2253 return nil, err 2254 } 2255 return dAtA[:n], nil 2256 } 2257 2258 func (m *RequestEndRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2259 size := m.Size() 2260 return m.MarshalToSizedBuffer(dAtA[:size]) 2261 } 2262 2263 func (m *RequestEndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2264 i := len(dAtA) 2265 _ = i 2266 var l int 2267 _ = l 2268 if m.Height != 0 { 2269 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 2270 i-- 2271 dAtA[i] = 0x8 2272 } 2273 return len(dAtA) - i, nil 2274 } 2275 2276 func (m *Response) Marshal() (dAtA []byte, err error) { 2277 size := m.Size() 2278 dAtA = make([]byte, size) 2279 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2280 if err != nil { 2281 return nil, err 2282 } 2283 return dAtA[:n], nil 2284 } 2285 2286 func (m *Response) MarshalTo(dAtA []byte) (int, error) { 2287 size := m.Size() 2288 return m.MarshalToSizedBuffer(dAtA[:size]) 2289 } 2290 2291 func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2292 i := len(dAtA) 2293 _ = i 2294 var l int 2295 _ = l 2296 if m.Value != nil { 2297 { 2298 size := m.Value.Size() 2299 i -= size 2300 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 2301 return 0, err 2302 } 2303 } 2304 } 2305 return len(dAtA) - i, nil 2306 } 2307 2308 func (m *Response_Exception) MarshalTo(dAtA []byte) (int, error) { 2309 size := m.Size() 2310 return m.MarshalToSizedBuffer(dAtA[:size]) 2311 } 2312 2313 func (m *Response_Exception) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2314 i := len(dAtA) 2315 if m.Exception != nil { 2316 { 2317 size, err := m.Exception.MarshalToSizedBuffer(dAtA[:i]) 2318 if err != nil { 2319 return 0, err 2320 } 2321 i -= size 2322 i = encodeVarintTypes(dAtA, i, uint64(size)) 2323 } 2324 i-- 2325 dAtA[i] = 0xa 2326 } 2327 return len(dAtA) - i, nil 2328 } 2329 func (m *Response_Echo) MarshalTo(dAtA []byte) (int, error) { 2330 size := m.Size() 2331 return m.MarshalToSizedBuffer(dAtA[:size]) 2332 } 2333 2334 func (m *Response_Echo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2335 i := len(dAtA) 2336 if m.Echo != nil { 2337 { 2338 size, err := m.Echo.MarshalToSizedBuffer(dAtA[:i]) 2339 if err != nil { 2340 return 0, err 2341 } 2342 i -= size 2343 i = encodeVarintTypes(dAtA, i, uint64(size)) 2344 } 2345 i-- 2346 dAtA[i] = 0x12 2347 } 2348 return len(dAtA) - i, nil 2349 } 2350 func (m *Response_Flush) MarshalTo(dAtA []byte) (int, error) { 2351 size := m.Size() 2352 return m.MarshalToSizedBuffer(dAtA[:size]) 2353 } 2354 2355 func (m *Response_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2356 i := len(dAtA) 2357 if m.Flush != nil { 2358 { 2359 size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) 2360 if err != nil { 2361 return 0, err 2362 } 2363 i -= size 2364 i = encodeVarintTypes(dAtA, i, uint64(size)) 2365 } 2366 i-- 2367 dAtA[i] = 0x1a 2368 } 2369 return len(dAtA) - i, nil 2370 } 2371 func (m *Response_Info) MarshalTo(dAtA []byte) (int, error) { 2372 size := m.Size() 2373 return m.MarshalToSizedBuffer(dAtA[:size]) 2374 } 2375 2376 func (m *Response_Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2377 i := len(dAtA) 2378 if m.Info != nil { 2379 { 2380 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 2381 if err != nil { 2382 return 0, err 2383 } 2384 i -= size 2385 i = encodeVarintTypes(dAtA, i, uint64(size)) 2386 } 2387 i-- 2388 dAtA[i] = 0x22 2389 } 2390 return len(dAtA) - i, nil 2391 } 2392 func (m *Response_SetOption) MarshalTo(dAtA []byte) (int, error) { 2393 size := m.Size() 2394 return m.MarshalToSizedBuffer(dAtA[:size]) 2395 } 2396 2397 func (m *Response_SetOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2398 i := len(dAtA) 2399 if m.SetOption != nil { 2400 { 2401 size, err := m.SetOption.MarshalToSizedBuffer(dAtA[:i]) 2402 if err != nil { 2403 return 0, err 2404 } 2405 i -= size 2406 i = encodeVarintTypes(dAtA, i, uint64(size)) 2407 } 2408 i-- 2409 dAtA[i] = 0x2a 2410 } 2411 return len(dAtA) - i, nil 2412 } 2413 func (m *Response_InitChain) MarshalTo(dAtA []byte) (int, error) { 2414 size := m.Size() 2415 return m.MarshalToSizedBuffer(dAtA[:size]) 2416 } 2417 2418 func (m *Response_InitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2419 i := len(dAtA) 2420 if m.InitChain != nil { 2421 { 2422 size, err := m.InitChain.MarshalToSizedBuffer(dAtA[:i]) 2423 if err != nil { 2424 return 0, err 2425 } 2426 i -= size 2427 i = encodeVarintTypes(dAtA, i, uint64(size)) 2428 } 2429 i-- 2430 dAtA[i] = 0x32 2431 } 2432 return len(dAtA) - i, nil 2433 } 2434 func (m *Response_Query) MarshalTo(dAtA []byte) (int, error) { 2435 size := m.Size() 2436 return m.MarshalToSizedBuffer(dAtA[:size]) 2437 } 2438 2439 func (m *Response_Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2440 i := len(dAtA) 2441 if m.Query != nil { 2442 { 2443 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 2444 if err != nil { 2445 return 0, err 2446 } 2447 i -= size 2448 i = encodeVarintTypes(dAtA, i, uint64(size)) 2449 } 2450 i-- 2451 dAtA[i] = 0x3a 2452 } 2453 return len(dAtA) - i, nil 2454 } 2455 func (m *Response_BeginBlock) MarshalTo(dAtA []byte) (int, error) { 2456 size := m.Size() 2457 return m.MarshalToSizedBuffer(dAtA[:size]) 2458 } 2459 2460 func (m *Response_BeginBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2461 i := len(dAtA) 2462 if m.BeginBlock != nil { 2463 { 2464 size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i]) 2465 if err != nil { 2466 return 0, err 2467 } 2468 i -= size 2469 i = encodeVarintTypes(dAtA, i, uint64(size)) 2470 } 2471 i-- 2472 dAtA[i] = 0x42 2473 } 2474 return len(dAtA) - i, nil 2475 } 2476 func (m *Response_CheckTx) MarshalTo(dAtA []byte) (int, error) { 2477 size := m.Size() 2478 return m.MarshalToSizedBuffer(dAtA[:size]) 2479 } 2480 2481 func (m *Response_CheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2482 i := len(dAtA) 2483 if m.CheckTx != nil { 2484 { 2485 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 2486 if err != nil { 2487 return 0, err 2488 } 2489 i -= size 2490 i = encodeVarintTypes(dAtA, i, uint64(size)) 2491 } 2492 i-- 2493 dAtA[i] = 0x4a 2494 } 2495 return len(dAtA) - i, nil 2496 } 2497 func (m *Response_DeliverTx) MarshalTo(dAtA []byte) (int, error) { 2498 size := m.Size() 2499 return m.MarshalToSizedBuffer(dAtA[:size]) 2500 } 2501 2502 func (m *Response_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2503 i := len(dAtA) 2504 if m.DeliverTx != nil { 2505 { 2506 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 2507 if err != nil { 2508 return 0, err 2509 } 2510 i -= size 2511 i = encodeVarintTypes(dAtA, i, uint64(size)) 2512 } 2513 i-- 2514 dAtA[i] = 0x52 2515 } 2516 return len(dAtA) - i, nil 2517 } 2518 func (m *Response_EndBlock) MarshalTo(dAtA []byte) (int, error) { 2519 size := m.Size() 2520 return m.MarshalToSizedBuffer(dAtA[:size]) 2521 } 2522 2523 func (m *Response_EndBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2524 i := len(dAtA) 2525 if m.EndBlock != nil { 2526 { 2527 size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i]) 2528 if err != nil { 2529 return 0, err 2530 } 2531 i -= size 2532 i = encodeVarintTypes(dAtA, i, uint64(size)) 2533 } 2534 i-- 2535 dAtA[i] = 0x5a 2536 } 2537 return len(dAtA) - i, nil 2538 } 2539 func (m *Response_Commit) MarshalTo(dAtA []byte) (int, error) { 2540 size := m.Size() 2541 return m.MarshalToSizedBuffer(dAtA[:size]) 2542 } 2543 2544 func (m *Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2545 i := len(dAtA) 2546 if m.Commit != nil { 2547 { 2548 size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) 2549 if err != nil { 2550 return 0, err 2551 } 2552 i -= size 2553 i = encodeVarintTypes(dAtA, i, uint64(size)) 2554 } 2555 i-- 2556 dAtA[i] = 0x62 2557 } 2558 return len(dAtA) - i, nil 2559 } 2560 func (m *Response_ListSnapshots) MarshalTo(dAtA []byte) (int, error) { 2561 size := m.Size() 2562 return m.MarshalToSizedBuffer(dAtA[:size]) 2563 } 2564 2565 func (m *Response_ListSnapshots) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2566 i := len(dAtA) 2567 if m.ListSnapshots != nil { 2568 { 2569 size, err := m.ListSnapshots.MarshalToSizedBuffer(dAtA[:i]) 2570 if err != nil { 2571 return 0, err 2572 } 2573 i -= size 2574 i = encodeVarintTypes(dAtA, i, uint64(size)) 2575 } 2576 i-- 2577 dAtA[i] = 0x6a 2578 } 2579 return len(dAtA) - i, nil 2580 } 2581 func (m *Response_OfferSnapshot) MarshalTo(dAtA []byte) (int, error) { 2582 size := m.Size() 2583 return m.MarshalToSizedBuffer(dAtA[:size]) 2584 } 2585 2586 func (m *Response_OfferSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2587 i := len(dAtA) 2588 if m.OfferSnapshot != nil { 2589 { 2590 size, err := m.OfferSnapshot.MarshalToSizedBuffer(dAtA[:i]) 2591 if err != nil { 2592 return 0, err 2593 } 2594 i -= size 2595 i = encodeVarintTypes(dAtA, i, uint64(size)) 2596 } 2597 i-- 2598 dAtA[i] = 0x72 2599 } 2600 return len(dAtA) - i, nil 2601 } 2602 func (m *Response_LoadSnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 2603 size := m.Size() 2604 return m.MarshalToSizedBuffer(dAtA[:size]) 2605 } 2606 2607 func (m *Response_LoadSnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2608 i := len(dAtA) 2609 if m.LoadSnapshotChunk != nil { 2610 { 2611 size, err := m.LoadSnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 2612 if err != nil { 2613 return 0, err 2614 } 2615 i -= size 2616 i = encodeVarintTypes(dAtA, i, uint64(size)) 2617 } 2618 i-- 2619 dAtA[i] = 0x7a 2620 } 2621 return len(dAtA) - i, nil 2622 } 2623 func (m *Response_ApplySnapshotChunk) MarshalTo(dAtA []byte) (int, error) { 2624 size := m.Size() 2625 return m.MarshalToSizedBuffer(dAtA[:size]) 2626 } 2627 2628 func (m *Response_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2629 i := len(dAtA) 2630 if m.ApplySnapshotChunk != nil { 2631 { 2632 size, err := m.ApplySnapshotChunk.MarshalToSizedBuffer(dAtA[:i]) 2633 if err != nil { 2634 return 0, err 2635 } 2636 i -= size 2637 i = encodeVarintTypes(dAtA, i, uint64(size)) 2638 } 2639 i-- 2640 dAtA[i] = 0x1 2641 i-- 2642 dAtA[i] = 0x82 2643 } 2644 return len(dAtA) - i, nil 2645 } 2646 func (m *Response_BeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2647 size := m.Size() 2648 return m.MarshalToSizedBuffer(dAtA[:size]) 2649 } 2650 2651 func (m *Response_BeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2652 i := len(dAtA) 2653 if m.BeginRecheckTx != nil { 2654 { 2655 size, err := m.BeginRecheckTx.MarshalToSizedBuffer(dAtA[:i]) 2656 if err != nil { 2657 return 0, err 2658 } 2659 i -= size 2660 i = encodeVarintTypes(dAtA, i, uint64(size)) 2661 } 2662 i-- 2663 dAtA[i] = 0x3e 2664 i-- 2665 dAtA[i] = 0xc2 2666 } 2667 return len(dAtA) - i, nil 2668 } 2669 func (m *Response_EndRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2670 size := m.Size() 2671 return m.MarshalToSizedBuffer(dAtA[:size]) 2672 } 2673 2674 func (m *Response_EndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2675 i := len(dAtA) 2676 if m.EndRecheckTx != nil { 2677 { 2678 size, err := m.EndRecheckTx.MarshalToSizedBuffer(dAtA[:i]) 2679 if err != nil { 2680 return 0, err 2681 } 2682 i -= size 2683 i = encodeVarintTypes(dAtA, i, uint64(size)) 2684 } 2685 i-- 2686 dAtA[i] = 0x3e 2687 i-- 2688 dAtA[i] = 0xca 2689 } 2690 return len(dAtA) - i, nil 2691 } 2692 func (m *ResponseCheckTx) Marshal() (dAtA []byte, err error) { 2693 size := m.Size() 2694 dAtA = make([]byte, size) 2695 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2696 if err != nil { 2697 return nil, err 2698 } 2699 return dAtA[:n], nil 2700 } 2701 2702 func (m *ResponseCheckTx) MarshalTo(dAtA []byte) (int, error) { 2703 size := m.Size() 2704 return m.MarshalToSizedBuffer(dAtA[:size]) 2705 } 2706 2707 func (m *ResponseCheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2708 i := len(dAtA) 2709 _ = i 2710 var l int 2711 _ = l 2712 if len(m.MempoolError) > 0 { 2713 i -= len(m.MempoolError) 2714 copy(dAtA[i:], m.MempoolError) 2715 i = encodeVarintTypes(dAtA, i, uint64(len(m.MempoolError))) 2716 i-- 2717 dAtA[i] = 0x5a 2718 } 2719 if m.Priority != 0 { 2720 i = encodeVarintTypes(dAtA, i, uint64(m.Priority)) 2721 i-- 2722 dAtA[i] = 0x50 2723 } 2724 if len(m.Sender) > 0 { 2725 i -= len(m.Sender) 2726 copy(dAtA[i:], m.Sender) 2727 i = encodeVarintTypes(dAtA, i, uint64(len(m.Sender))) 2728 i-- 2729 dAtA[i] = 0x4a 2730 } 2731 if len(m.Codespace) > 0 { 2732 i -= len(m.Codespace) 2733 copy(dAtA[i:], m.Codespace) 2734 i = encodeVarintTypes(dAtA, i, uint64(len(m.Codespace))) 2735 i-- 2736 dAtA[i] = 0x42 2737 } 2738 if len(m.Events) > 0 { 2739 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 2740 { 2741 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2742 if err != nil { 2743 return 0, err 2744 } 2745 i -= size 2746 i = encodeVarintTypes(dAtA, i, uint64(size)) 2747 } 2748 i-- 2749 dAtA[i] = 0x3a 2750 } 2751 } 2752 if m.GasUsed != 0 { 2753 i = encodeVarintTypes(dAtA, i, uint64(m.GasUsed)) 2754 i-- 2755 dAtA[i] = 0x30 2756 } 2757 if m.GasWanted != 0 { 2758 i = encodeVarintTypes(dAtA, i, uint64(m.GasWanted)) 2759 i-- 2760 dAtA[i] = 0x28 2761 } 2762 if len(m.Info) > 0 { 2763 i -= len(m.Info) 2764 copy(dAtA[i:], m.Info) 2765 i = encodeVarintTypes(dAtA, i, uint64(len(m.Info))) 2766 i-- 2767 dAtA[i] = 0x22 2768 } 2769 if len(m.Log) > 0 { 2770 i -= len(m.Log) 2771 copy(dAtA[i:], m.Log) 2772 i = encodeVarintTypes(dAtA, i, uint64(len(m.Log))) 2773 i-- 2774 dAtA[i] = 0x1a 2775 } 2776 if len(m.Data) > 0 { 2777 i -= len(m.Data) 2778 copy(dAtA[i:], m.Data) 2779 i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) 2780 i-- 2781 dAtA[i] = 0x12 2782 } 2783 if m.Code != 0 { 2784 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 2785 i-- 2786 dAtA[i] = 0x8 2787 } 2788 return len(dAtA) - i, nil 2789 } 2790 2791 func (m *ResponseBeginRecheckTx) Marshal() (dAtA []byte, err error) { 2792 size := m.Size() 2793 dAtA = make([]byte, size) 2794 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2795 if err != nil { 2796 return nil, err 2797 } 2798 return dAtA[:n], nil 2799 } 2800 2801 func (m *ResponseBeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2802 size := m.Size() 2803 return m.MarshalToSizedBuffer(dAtA[:size]) 2804 } 2805 2806 func (m *ResponseBeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2807 i := len(dAtA) 2808 _ = i 2809 var l int 2810 _ = l 2811 if m.Code != 0 { 2812 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 2813 i-- 2814 dAtA[i] = 0x8 2815 } 2816 return len(dAtA) - i, nil 2817 } 2818 2819 func (m *ResponseEndRecheckTx) Marshal() (dAtA []byte, err error) { 2820 size := m.Size() 2821 dAtA = make([]byte, size) 2822 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2823 if err != nil { 2824 return nil, err 2825 } 2826 return dAtA[:n], nil 2827 } 2828 2829 func (m *ResponseEndRecheckTx) MarshalTo(dAtA []byte) (int, error) { 2830 size := m.Size() 2831 return m.MarshalToSizedBuffer(dAtA[:size]) 2832 } 2833 2834 func (m *ResponseEndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2835 i := len(dAtA) 2836 _ = i 2837 var l int 2838 _ = l 2839 if m.Code != 0 { 2840 i = encodeVarintTypes(dAtA, i, uint64(m.Code)) 2841 i-- 2842 dAtA[i] = 0x8 2843 } 2844 return len(dAtA) - i, nil 2845 } 2846 2847 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 2848 offset -= sovTypes(v) 2849 base := offset 2850 for v >= 1<<7 { 2851 dAtA[offset] = uint8(v&0x7f | 0x80) 2852 v >>= 7 2853 offset++ 2854 } 2855 dAtA[offset] = uint8(v) 2856 return base 2857 } 2858 func (m *Request) Size() (n int) { 2859 if m == nil { 2860 return 0 2861 } 2862 var l int 2863 _ = l 2864 if m.Value != nil { 2865 n += m.Value.Size() 2866 } 2867 return n 2868 } 2869 2870 func (m *Request_Echo) Size() (n int) { 2871 if m == nil { 2872 return 0 2873 } 2874 var l int 2875 _ = l 2876 if m.Echo != nil { 2877 l = m.Echo.Size() 2878 n += 1 + l + sovTypes(uint64(l)) 2879 } 2880 return n 2881 } 2882 func (m *Request_Flush) Size() (n int) { 2883 if m == nil { 2884 return 0 2885 } 2886 var l int 2887 _ = l 2888 if m.Flush != nil { 2889 l = m.Flush.Size() 2890 n += 1 + l + sovTypes(uint64(l)) 2891 } 2892 return n 2893 } 2894 func (m *Request_Info) Size() (n int) { 2895 if m == nil { 2896 return 0 2897 } 2898 var l int 2899 _ = l 2900 if m.Info != nil { 2901 l = m.Info.Size() 2902 n += 1 + l + sovTypes(uint64(l)) 2903 } 2904 return n 2905 } 2906 func (m *Request_SetOption) Size() (n int) { 2907 if m == nil { 2908 return 0 2909 } 2910 var l int 2911 _ = l 2912 if m.SetOption != nil { 2913 l = m.SetOption.Size() 2914 n += 1 + l + sovTypes(uint64(l)) 2915 } 2916 return n 2917 } 2918 func (m *Request_InitChain) Size() (n int) { 2919 if m == nil { 2920 return 0 2921 } 2922 var l int 2923 _ = l 2924 if m.InitChain != nil { 2925 l = m.InitChain.Size() 2926 n += 1 + l + sovTypes(uint64(l)) 2927 } 2928 return n 2929 } 2930 func (m *Request_Query) Size() (n int) { 2931 if m == nil { 2932 return 0 2933 } 2934 var l int 2935 _ = l 2936 if m.Query != nil { 2937 l = m.Query.Size() 2938 n += 1 + l + sovTypes(uint64(l)) 2939 } 2940 return n 2941 } 2942 func (m *Request_BeginBlock) Size() (n int) { 2943 if m == nil { 2944 return 0 2945 } 2946 var l int 2947 _ = l 2948 if m.BeginBlock != nil { 2949 l = m.BeginBlock.Size() 2950 n += 1 + l + sovTypes(uint64(l)) 2951 } 2952 return n 2953 } 2954 func (m *Request_CheckTx) Size() (n int) { 2955 if m == nil { 2956 return 0 2957 } 2958 var l int 2959 _ = l 2960 if m.CheckTx != nil { 2961 l = m.CheckTx.Size() 2962 n += 1 + l + sovTypes(uint64(l)) 2963 } 2964 return n 2965 } 2966 func (m *Request_DeliverTx) Size() (n int) { 2967 if m == nil { 2968 return 0 2969 } 2970 var l int 2971 _ = l 2972 if m.DeliverTx != nil { 2973 l = m.DeliverTx.Size() 2974 n += 1 + l + sovTypes(uint64(l)) 2975 } 2976 return n 2977 } 2978 func (m *Request_EndBlock) Size() (n int) { 2979 if m == nil { 2980 return 0 2981 } 2982 var l int 2983 _ = l 2984 if m.EndBlock != nil { 2985 l = m.EndBlock.Size() 2986 n += 1 + l + sovTypes(uint64(l)) 2987 } 2988 return n 2989 } 2990 func (m *Request_Commit) Size() (n int) { 2991 if m == nil { 2992 return 0 2993 } 2994 var l int 2995 _ = l 2996 if m.Commit != nil { 2997 l = m.Commit.Size() 2998 n += 1 + l + sovTypes(uint64(l)) 2999 } 3000 return n 3001 } 3002 func (m *Request_ListSnapshots) Size() (n int) { 3003 if m == nil { 3004 return 0 3005 } 3006 var l int 3007 _ = l 3008 if m.ListSnapshots != nil { 3009 l = m.ListSnapshots.Size() 3010 n += 1 + l + sovTypes(uint64(l)) 3011 } 3012 return n 3013 } 3014 func (m *Request_OfferSnapshot) Size() (n int) { 3015 if m == nil { 3016 return 0 3017 } 3018 var l int 3019 _ = l 3020 if m.OfferSnapshot != nil { 3021 l = m.OfferSnapshot.Size() 3022 n += 1 + l + sovTypes(uint64(l)) 3023 } 3024 return n 3025 } 3026 func (m *Request_LoadSnapshotChunk) Size() (n int) { 3027 if m == nil { 3028 return 0 3029 } 3030 var l int 3031 _ = l 3032 if m.LoadSnapshotChunk != nil { 3033 l = m.LoadSnapshotChunk.Size() 3034 n += 1 + l + sovTypes(uint64(l)) 3035 } 3036 return n 3037 } 3038 func (m *Request_ApplySnapshotChunk) Size() (n int) { 3039 if m == nil { 3040 return 0 3041 } 3042 var l int 3043 _ = l 3044 if m.ApplySnapshotChunk != nil { 3045 l = m.ApplySnapshotChunk.Size() 3046 n += 1 + l + sovTypes(uint64(l)) 3047 } 3048 return n 3049 } 3050 func (m *Request_BeginRecheckTx) Size() (n int) { 3051 if m == nil { 3052 return 0 3053 } 3054 var l int 3055 _ = l 3056 if m.BeginRecheckTx != nil { 3057 l = m.BeginRecheckTx.Size() 3058 n += 2 + l + sovTypes(uint64(l)) 3059 } 3060 return n 3061 } 3062 func (m *Request_EndRecheckTx) Size() (n int) { 3063 if m == nil { 3064 return 0 3065 } 3066 var l int 3067 _ = l 3068 if m.EndRecheckTx != nil { 3069 l = m.EndRecheckTx.Size() 3070 n += 2 + l + sovTypes(uint64(l)) 3071 } 3072 return n 3073 } 3074 func (m *RequestBeginBlock) Size() (n int) { 3075 if m == nil { 3076 return 0 3077 } 3078 var l int 3079 _ = l 3080 l = len(m.Hash) 3081 if l > 0 { 3082 n += 1 + l + sovTypes(uint64(l)) 3083 } 3084 l = m.Header.Size() 3085 n += 1 + l + sovTypes(uint64(l)) 3086 l = m.LastCommitInfo.Size() 3087 n += 1 + l + sovTypes(uint64(l)) 3088 if len(m.ByzantineValidators) > 0 { 3089 for _, e := range m.ByzantineValidators { 3090 l = e.Size() 3091 n += 1 + l + sovTypes(uint64(l)) 3092 } 3093 } 3094 l = m.Entropy.Size() 3095 n += 2 + l + sovTypes(uint64(l)) 3096 return n 3097 } 3098 3099 func (m *RequestBeginRecheckTx) Size() (n int) { 3100 if m == nil { 3101 return 0 3102 } 3103 var l int 3104 _ = l 3105 l = m.Header.Size() 3106 n += 1 + l + sovTypes(uint64(l)) 3107 return n 3108 } 3109 3110 func (m *RequestEndRecheckTx) Size() (n int) { 3111 if m == nil { 3112 return 0 3113 } 3114 var l int 3115 _ = l 3116 if m.Height != 0 { 3117 n += 1 + sovTypes(uint64(m.Height)) 3118 } 3119 return n 3120 } 3121 3122 func (m *Response) Size() (n int) { 3123 if m == nil { 3124 return 0 3125 } 3126 var l int 3127 _ = l 3128 if m.Value != nil { 3129 n += m.Value.Size() 3130 } 3131 return n 3132 } 3133 3134 func (m *Response_Exception) Size() (n int) { 3135 if m == nil { 3136 return 0 3137 } 3138 var l int 3139 _ = l 3140 if m.Exception != nil { 3141 l = m.Exception.Size() 3142 n += 1 + l + sovTypes(uint64(l)) 3143 } 3144 return n 3145 } 3146 func (m *Response_Echo) Size() (n int) { 3147 if m == nil { 3148 return 0 3149 } 3150 var l int 3151 _ = l 3152 if m.Echo != nil { 3153 l = m.Echo.Size() 3154 n += 1 + l + sovTypes(uint64(l)) 3155 } 3156 return n 3157 } 3158 func (m *Response_Flush) Size() (n int) { 3159 if m == nil { 3160 return 0 3161 } 3162 var l int 3163 _ = l 3164 if m.Flush != nil { 3165 l = m.Flush.Size() 3166 n += 1 + l + sovTypes(uint64(l)) 3167 } 3168 return n 3169 } 3170 func (m *Response_Info) Size() (n int) { 3171 if m == nil { 3172 return 0 3173 } 3174 var l int 3175 _ = l 3176 if m.Info != nil { 3177 l = m.Info.Size() 3178 n += 1 + l + sovTypes(uint64(l)) 3179 } 3180 return n 3181 } 3182 func (m *Response_SetOption) Size() (n int) { 3183 if m == nil { 3184 return 0 3185 } 3186 var l int 3187 _ = l 3188 if m.SetOption != nil { 3189 l = m.SetOption.Size() 3190 n += 1 + l + sovTypes(uint64(l)) 3191 } 3192 return n 3193 } 3194 func (m *Response_InitChain) Size() (n int) { 3195 if m == nil { 3196 return 0 3197 } 3198 var l int 3199 _ = l 3200 if m.InitChain != nil { 3201 l = m.InitChain.Size() 3202 n += 1 + l + sovTypes(uint64(l)) 3203 } 3204 return n 3205 } 3206 func (m *Response_Query) Size() (n int) { 3207 if m == nil { 3208 return 0 3209 } 3210 var l int 3211 _ = l 3212 if m.Query != nil { 3213 l = m.Query.Size() 3214 n += 1 + l + sovTypes(uint64(l)) 3215 } 3216 return n 3217 } 3218 func (m *Response_BeginBlock) Size() (n int) { 3219 if m == nil { 3220 return 0 3221 } 3222 var l int 3223 _ = l 3224 if m.BeginBlock != nil { 3225 l = m.BeginBlock.Size() 3226 n += 1 + l + sovTypes(uint64(l)) 3227 } 3228 return n 3229 } 3230 func (m *Response_CheckTx) Size() (n int) { 3231 if m == nil { 3232 return 0 3233 } 3234 var l int 3235 _ = l 3236 if m.CheckTx != nil { 3237 l = m.CheckTx.Size() 3238 n += 1 + l + sovTypes(uint64(l)) 3239 } 3240 return n 3241 } 3242 func (m *Response_DeliverTx) Size() (n int) { 3243 if m == nil { 3244 return 0 3245 } 3246 var l int 3247 _ = l 3248 if m.DeliverTx != nil { 3249 l = m.DeliverTx.Size() 3250 n += 1 + l + sovTypes(uint64(l)) 3251 } 3252 return n 3253 } 3254 func (m *Response_EndBlock) Size() (n int) { 3255 if m == nil { 3256 return 0 3257 } 3258 var l int 3259 _ = l 3260 if m.EndBlock != nil { 3261 l = m.EndBlock.Size() 3262 n += 1 + l + sovTypes(uint64(l)) 3263 } 3264 return n 3265 } 3266 func (m *Response_Commit) Size() (n int) { 3267 if m == nil { 3268 return 0 3269 } 3270 var l int 3271 _ = l 3272 if m.Commit != nil { 3273 l = m.Commit.Size() 3274 n += 1 + l + sovTypes(uint64(l)) 3275 } 3276 return n 3277 } 3278 func (m *Response_ListSnapshots) Size() (n int) { 3279 if m == nil { 3280 return 0 3281 } 3282 var l int 3283 _ = l 3284 if m.ListSnapshots != nil { 3285 l = m.ListSnapshots.Size() 3286 n += 1 + l + sovTypes(uint64(l)) 3287 } 3288 return n 3289 } 3290 func (m *Response_OfferSnapshot) Size() (n int) { 3291 if m == nil { 3292 return 0 3293 } 3294 var l int 3295 _ = l 3296 if m.OfferSnapshot != nil { 3297 l = m.OfferSnapshot.Size() 3298 n += 1 + l + sovTypes(uint64(l)) 3299 } 3300 return n 3301 } 3302 func (m *Response_LoadSnapshotChunk) Size() (n int) { 3303 if m == nil { 3304 return 0 3305 } 3306 var l int 3307 _ = l 3308 if m.LoadSnapshotChunk != nil { 3309 l = m.LoadSnapshotChunk.Size() 3310 n += 1 + l + sovTypes(uint64(l)) 3311 } 3312 return n 3313 } 3314 func (m *Response_ApplySnapshotChunk) Size() (n int) { 3315 if m == nil { 3316 return 0 3317 } 3318 var l int 3319 _ = l 3320 if m.ApplySnapshotChunk != nil { 3321 l = m.ApplySnapshotChunk.Size() 3322 n += 2 + l + sovTypes(uint64(l)) 3323 } 3324 return n 3325 } 3326 func (m *Response_BeginRecheckTx) Size() (n int) { 3327 if m == nil { 3328 return 0 3329 } 3330 var l int 3331 _ = l 3332 if m.BeginRecheckTx != nil { 3333 l = m.BeginRecheckTx.Size() 3334 n += 2 + l + sovTypes(uint64(l)) 3335 } 3336 return n 3337 } 3338 func (m *Response_EndRecheckTx) Size() (n int) { 3339 if m == nil { 3340 return 0 3341 } 3342 var l int 3343 _ = l 3344 if m.EndRecheckTx != nil { 3345 l = m.EndRecheckTx.Size() 3346 n += 2 + l + sovTypes(uint64(l)) 3347 } 3348 return n 3349 } 3350 func (m *ResponseCheckTx) Size() (n int) { 3351 if m == nil { 3352 return 0 3353 } 3354 var l int 3355 _ = l 3356 if m.Code != 0 { 3357 n += 1 + sovTypes(uint64(m.Code)) 3358 } 3359 l = len(m.Data) 3360 if l > 0 { 3361 n += 1 + l + sovTypes(uint64(l)) 3362 } 3363 l = len(m.Log) 3364 if l > 0 { 3365 n += 1 + l + sovTypes(uint64(l)) 3366 } 3367 l = len(m.Info) 3368 if l > 0 { 3369 n += 1 + l + sovTypes(uint64(l)) 3370 } 3371 if m.GasWanted != 0 { 3372 n += 1 + sovTypes(uint64(m.GasWanted)) 3373 } 3374 if m.GasUsed != 0 { 3375 n += 1 + sovTypes(uint64(m.GasUsed)) 3376 } 3377 if len(m.Events) > 0 { 3378 for _, e := range m.Events { 3379 l = e.Size() 3380 n += 1 + l + sovTypes(uint64(l)) 3381 } 3382 } 3383 l = len(m.Codespace) 3384 if l > 0 { 3385 n += 1 + l + sovTypes(uint64(l)) 3386 } 3387 l = len(m.Sender) 3388 if l > 0 { 3389 n += 1 + l + sovTypes(uint64(l)) 3390 } 3391 if m.Priority != 0 { 3392 n += 1 + sovTypes(uint64(m.Priority)) 3393 } 3394 l = len(m.MempoolError) 3395 if l > 0 { 3396 n += 1 + l + sovTypes(uint64(l)) 3397 } 3398 return n 3399 } 3400 3401 func (m *ResponseBeginRecheckTx) Size() (n int) { 3402 if m == nil { 3403 return 0 3404 } 3405 var l int 3406 _ = l 3407 if m.Code != 0 { 3408 n += 1 + sovTypes(uint64(m.Code)) 3409 } 3410 return n 3411 } 3412 3413 func (m *ResponseEndRecheckTx) Size() (n int) { 3414 if m == nil { 3415 return 0 3416 } 3417 var l int 3418 _ = l 3419 if m.Code != 0 { 3420 n += 1 + sovTypes(uint64(m.Code)) 3421 } 3422 return n 3423 } 3424 3425 func sovTypes(x uint64) (n int) { 3426 return (math_bits.Len64(x|1) + 6) / 7 3427 } 3428 func sozTypes(x uint64) (n int) { 3429 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3430 } 3431 func (m *Request) Unmarshal(dAtA []byte) error { 3432 l := len(dAtA) 3433 iNdEx := 0 3434 for iNdEx < l { 3435 preIndex := iNdEx 3436 var wire uint64 3437 for shift := uint(0); ; shift += 7 { 3438 if shift >= 64 { 3439 return ErrIntOverflowTypes 3440 } 3441 if iNdEx >= l { 3442 return io.ErrUnexpectedEOF 3443 } 3444 b := dAtA[iNdEx] 3445 iNdEx++ 3446 wire |= uint64(b&0x7F) << shift 3447 if b < 0x80 { 3448 break 3449 } 3450 } 3451 fieldNum := int32(wire >> 3) 3452 wireType := int(wire & 0x7) 3453 if wireType == 4 { 3454 return fmt.Errorf("proto: Request: wiretype end group for non-group") 3455 } 3456 if fieldNum <= 0 { 3457 return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) 3458 } 3459 switch fieldNum { 3460 case 1: 3461 if wireType != 2 { 3462 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 3463 } 3464 var msglen int 3465 for shift := uint(0); ; shift += 7 { 3466 if shift >= 64 { 3467 return ErrIntOverflowTypes 3468 } 3469 if iNdEx >= l { 3470 return io.ErrUnexpectedEOF 3471 } 3472 b := dAtA[iNdEx] 3473 iNdEx++ 3474 msglen |= int(b&0x7F) << shift 3475 if b < 0x80 { 3476 break 3477 } 3478 } 3479 if msglen < 0 { 3480 return ErrInvalidLengthTypes 3481 } 3482 postIndex := iNdEx + msglen 3483 if postIndex < 0 { 3484 return ErrInvalidLengthTypes 3485 } 3486 if postIndex > l { 3487 return io.ErrUnexpectedEOF 3488 } 3489 v := &types.RequestEcho{} 3490 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3491 return err 3492 } 3493 m.Value = &Request_Echo{v} 3494 iNdEx = postIndex 3495 case 2: 3496 if wireType != 2 { 3497 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 3498 } 3499 var msglen int 3500 for shift := uint(0); ; shift += 7 { 3501 if shift >= 64 { 3502 return ErrIntOverflowTypes 3503 } 3504 if iNdEx >= l { 3505 return io.ErrUnexpectedEOF 3506 } 3507 b := dAtA[iNdEx] 3508 iNdEx++ 3509 msglen |= int(b&0x7F) << shift 3510 if b < 0x80 { 3511 break 3512 } 3513 } 3514 if msglen < 0 { 3515 return ErrInvalidLengthTypes 3516 } 3517 postIndex := iNdEx + msglen 3518 if postIndex < 0 { 3519 return ErrInvalidLengthTypes 3520 } 3521 if postIndex > l { 3522 return io.ErrUnexpectedEOF 3523 } 3524 v := &types.RequestFlush{} 3525 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3526 return err 3527 } 3528 m.Value = &Request_Flush{v} 3529 iNdEx = postIndex 3530 case 3: 3531 if wireType != 2 { 3532 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 3533 } 3534 var msglen int 3535 for shift := uint(0); ; shift += 7 { 3536 if shift >= 64 { 3537 return ErrIntOverflowTypes 3538 } 3539 if iNdEx >= l { 3540 return io.ErrUnexpectedEOF 3541 } 3542 b := dAtA[iNdEx] 3543 iNdEx++ 3544 msglen |= int(b&0x7F) << shift 3545 if b < 0x80 { 3546 break 3547 } 3548 } 3549 if msglen < 0 { 3550 return ErrInvalidLengthTypes 3551 } 3552 postIndex := iNdEx + msglen 3553 if postIndex < 0 { 3554 return ErrInvalidLengthTypes 3555 } 3556 if postIndex > l { 3557 return io.ErrUnexpectedEOF 3558 } 3559 v := &types.RequestInfo{} 3560 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3561 return err 3562 } 3563 m.Value = &Request_Info{v} 3564 iNdEx = postIndex 3565 case 4: 3566 if wireType != 2 { 3567 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 3568 } 3569 var msglen int 3570 for shift := uint(0); ; shift += 7 { 3571 if shift >= 64 { 3572 return ErrIntOverflowTypes 3573 } 3574 if iNdEx >= l { 3575 return io.ErrUnexpectedEOF 3576 } 3577 b := dAtA[iNdEx] 3578 iNdEx++ 3579 msglen |= int(b&0x7F) << shift 3580 if b < 0x80 { 3581 break 3582 } 3583 } 3584 if msglen < 0 { 3585 return ErrInvalidLengthTypes 3586 } 3587 postIndex := iNdEx + msglen 3588 if postIndex < 0 { 3589 return ErrInvalidLengthTypes 3590 } 3591 if postIndex > l { 3592 return io.ErrUnexpectedEOF 3593 } 3594 v := &types.RequestSetOption{} 3595 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3596 return err 3597 } 3598 m.Value = &Request_SetOption{v} 3599 iNdEx = postIndex 3600 case 5: 3601 if wireType != 2 { 3602 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 3603 } 3604 var msglen int 3605 for shift := uint(0); ; shift += 7 { 3606 if shift >= 64 { 3607 return ErrIntOverflowTypes 3608 } 3609 if iNdEx >= l { 3610 return io.ErrUnexpectedEOF 3611 } 3612 b := dAtA[iNdEx] 3613 iNdEx++ 3614 msglen |= int(b&0x7F) << shift 3615 if b < 0x80 { 3616 break 3617 } 3618 } 3619 if msglen < 0 { 3620 return ErrInvalidLengthTypes 3621 } 3622 postIndex := iNdEx + msglen 3623 if postIndex < 0 { 3624 return ErrInvalidLengthTypes 3625 } 3626 if postIndex > l { 3627 return io.ErrUnexpectedEOF 3628 } 3629 v := &types.RequestInitChain{} 3630 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3631 return err 3632 } 3633 m.Value = &Request_InitChain{v} 3634 iNdEx = postIndex 3635 case 6: 3636 if wireType != 2 { 3637 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 3638 } 3639 var msglen int 3640 for shift := uint(0); ; shift += 7 { 3641 if shift >= 64 { 3642 return ErrIntOverflowTypes 3643 } 3644 if iNdEx >= l { 3645 return io.ErrUnexpectedEOF 3646 } 3647 b := dAtA[iNdEx] 3648 iNdEx++ 3649 msglen |= int(b&0x7F) << shift 3650 if b < 0x80 { 3651 break 3652 } 3653 } 3654 if msglen < 0 { 3655 return ErrInvalidLengthTypes 3656 } 3657 postIndex := iNdEx + msglen 3658 if postIndex < 0 { 3659 return ErrInvalidLengthTypes 3660 } 3661 if postIndex > l { 3662 return io.ErrUnexpectedEOF 3663 } 3664 v := &types.RequestQuery{} 3665 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3666 return err 3667 } 3668 m.Value = &Request_Query{v} 3669 iNdEx = postIndex 3670 case 7: 3671 if wireType != 2 { 3672 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 3673 } 3674 var msglen int 3675 for shift := uint(0); ; shift += 7 { 3676 if shift >= 64 { 3677 return ErrIntOverflowTypes 3678 } 3679 if iNdEx >= l { 3680 return io.ErrUnexpectedEOF 3681 } 3682 b := dAtA[iNdEx] 3683 iNdEx++ 3684 msglen |= int(b&0x7F) << shift 3685 if b < 0x80 { 3686 break 3687 } 3688 } 3689 if msglen < 0 { 3690 return ErrInvalidLengthTypes 3691 } 3692 postIndex := iNdEx + msglen 3693 if postIndex < 0 { 3694 return ErrInvalidLengthTypes 3695 } 3696 if postIndex > l { 3697 return io.ErrUnexpectedEOF 3698 } 3699 v := &RequestBeginBlock{} 3700 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3701 return err 3702 } 3703 m.Value = &Request_BeginBlock{v} 3704 iNdEx = postIndex 3705 case 8: 3706 if wireType != 2 { 3707 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 3708 } 3709 var msglen int 3710 for shift := uint(0); ; shift += 7 { 3711 if shift >= 64 { 3712 return ErrIntOverflowTypes 3713 } 3714 if iNdEx >= l { 3715 return io.ErrUnexpectedEOF 3716 } 3717 b := dAtA[iNdEx] 3718 iNdEx++ 3719 msglen |= int(b&0x7F) << shift 3720 if b < 0x80 { 3721 break 3722 } 3723 } 3724 if msglen < 0 { 3725 return ErrInvalidLengthTypes 3726 } 3727 postIndex := iNdEx + msglen 3728 if postIndex < 0 { 3729 return ErrInvalidLengthTypes 3730 } 3731 if postIndex > l { 3732 return io.ErrUnexpectedEOF 3733 } 3734 v := &types.RequestCheckTx{} 3735 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3736 return err 3737 } 3738 m.Value = &Request_CheckTx{v} 3739 iNdEx = postIndex 3740 case 9: 3741 if wireType != 2 { 3742 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 3743 } 3744 var msglen int 3745 for shift := uint(0); ; shift += 7 { 3746 if shift >= 64 { 3747 return ErrIntOverflowTypes 3748 } 3749 if iNdEx >= l { 3750 return io.ErrUnexpectedEOF 3751 } 3752 b := dAtA[iNdEx] 3753 iNdEx++ 3754 msglen |= int(b&0x7F) << shift 3755 if b < 0x80 { 3756 break 3757 } 3758 } 3759 if msglen < 0 { 3760 return ErrInvalidLengthTypes 3761 } 3762 postIndex := iNdEx + msglen 3763 if postIndex < 0 { 3764 return ErrInvalidLengthTypes 3765 } 3766 if postIndex > l { 3767 return io.ErrUnexpectedEOF 3768 } 3769 v := &types.RequestDeliverTx{} 3770 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3771 return err 3772 } 3773 m.Value = &Request_DeliverTx{v} 3774 iNdEx = postIndex 3775 case 10: 3776 if wireType != 2 { 3777 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 3778 } 3779 var msglen int 3780 for shift := uint(0); ; shift += 7 { 3781 if shift >= 64 { 3782 return ErrIntOverflowTypes 3783 } 3784 if iNdEx >= l { 3785 return io.ErrUnexpectedEOF 3786 } 3787 b := dAtA[iNdEx] 3788 iNdEx++ 3789 msglen |= int(b&0x7F) << shift 3790 if b < 0x80 { 3791 break 3792 } 3793 } 3794 if msglen < 0 { 3795 return ErrInvalidLengthTypes 3796 } 3797 postIndex := iNdEx + msglen 3798 if postIndex < 0 { 3799 return ErrInvalidLengthTypes 3800 } 3801 if postIndex > l { 3802 return io.ErrUnexpectedEOF 3803 } 3804 v := &types.RequestEndBlock{} 3805 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3806 return err 3807 } 3808 m.Value = &Request_EndBlock{v} 3809 iNdEx = postIndex 3810 case 11: 3811 if wireType != 2 { 3812 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 3813 } 3814 var msglen int 3815 for shift := uint(0); ; shift += 7 { 3816 if shift >= 64 { 3817 return ErrIntOverflowTypes 3818 } 3819 if iNdEx >= l { 3820 return io.ErrUnexpectedEOF 3821 } 3822 b := dAtA[iNdEx] 3823 iNdEx++ 3824 msglen |= int(b&0x7F) << shift 3825 if b < 0x80 { 3826 break 3827 } 3828 } 3829 if msglen < 0 { 3830 return ErrInvalidLengthTypes 3831 } 3832 postIndex := iNdEx + msglen 3833 if postIndex < 0 { 3834 return ErrInvalidLengthTypes 3835 } 3836 if postIndex > l { 3837 return io.ErrUnexpectedEOF 3838 } 3839 v := &types.RequestCommit{} 3840 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3841 return err 3842 } 3843 m.Value = &Request_Commit{v} 3844 iNdEx = postIndex 3845 case 12: 3846 if wireType != 2 { 3847 return fmt.Errorf("proto: wrong wireType = %d for field ListSnapshots", wireType) 3848 } 3849 var msglen int 3850 for shift := uint(0); ; shift += 7 { 3851 if shift >= 64 { 3852 return ErrIntOverflowTypes 3853 } 3854 if iNdEx >= l { 3855 return io.ErrUnexpectedEOF 3856 } 3857 b := dAtA[iNdEx] 3858 iNdEx++ 3859 msglen |= int(b&0x7F) << shift 3860 if b < 0x80 { 3861 break 3862 } 3863 } 3864 if msglen < 0 { 3865 return ErrInvalidLengthTypes 3866 } 3867 postIndex := iNdEx + msglen 3868 if postIndex < 0 { 3869 return ErrInvalidLengthTypes 3870 } 3871 if postIndex > l { 3872 return io.ErrUnexpectedEOF 3873 } 3874 v := &types.RequestListSnapshots{} 3875 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3876 return err 3877 } 3878 m.Value = &Request_ListSnapshots{v} 3879 iNdEx = postIndex 3880 case 13: 3881 if wireType != 2 { 3882 return fmt.Errorf("proto: wrong wireType = %d for field OfferSnapshot", wireType) 3883 } 3884 var msglen int 3885 for shift := uint(0); ; shift += 7 { 3886 if shift >= 64 { 3887 return ErrIntOverflowTypes 3888 } 3889 if iNdEx >= l { 3890 return io.ErrUnexpectedEOF 3891 } 3892 b := dAtA[iNdEx] 3893 iNdEx++ 3894 msglen |= int(b&0x7F) << shift 3895 if b < 0x80 { 3896 break 3897 } 3898 } 3899 if msglen < 0 { 3900 return ErrInvalidLengthTypes 3901 } 3902 postIndex := iNdEx + msglen 3903 if postIndex < 0 { 3904 return ErrInvalidLengthTypes 3905 } 3906 if postIndex > l { 3907 return io.ErrUnexpectedEOF 3908 } 3909 v := &types.RequestOfferSnapshot{} 3910 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3911 return err 3912 } 3913 m.Value = &Request_OfferSnapshot{v} 3914 iNdEx = postIndex 3915 case 14: 3916 if wireType != 2 { 3917 return fmt.Errorf("proto: wrong wireType = %d for field LoadSnapshotChunk", wireType) 3918 } 3919 var msglen int 3920 for shift := uint(0); ; shift += 7 { 3921 if shift >= 64 { 3922 return ErrIntOverflowTypes 3923 } 3924 if iNdEx >= l { 3925 return io.ErrUnexpectedEOF 3926 } 3927 b := dAtA[iNdEx] 3928 iNdEx++ 3929 msglen |= int(b&0x7F) << shift 3930 if b < 0x80 { 3931 break 3932 } 3933 } 3934 if msglen < 0 { 3935 return ErrInvalidLengthTypes 3936 } 3937 postIndex := iNdEx + msglen 3938 if postIndex < 0 { 3939 return ErrInvalidLengthTypes 3940 } 3941 if postIndex > l { 3942 return io.ErrUnexpectedEOF 3943 } 3944 v := &types.RequestLoadSnapshotChunk{} 3945 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3946 return err 3947 } 3948 m.Value = &Request_LoadSnapshotChunk{v} 3949 iNdEx = postIndex 3950 case 15: 3951 if wireType != 2 { 3952 return fmt.Errorf("proto: wrong wireType = %d for field ApplySnapshotChunk", wireType) 3953 } 3954 var msglen int 3955 for shift := uint(0); ; shift += 7 { 3956 if shift >= 64 { 3957 return ErrIntOverflowTypes 3958 } 3959 if iNdEx >= l { 3960 return io.ErrUnexpectedEOF 3961 } 3962 b := dAtA[iNdEx] 3963 iNdEx++ 3964 msglen |= int(b&0x7F) << shift 3965 if b < 0x80 { 3966 break 3967 } 3968 } 3969 if msglen < 0 { 3970 return ErrInvalidLengthTypes 3971 } 3972 postIndex := iNdEx + msglen 3973 if postIndex < 0 { 3974 return ErrInvalidLengthTypes 3975 } 3976 if postIndex > l { 3977 return io.ErrUnexpectedEOF 3978 } 3979 v := &types.RequestApplySnapshotChunk{} 3980 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3981 return err 3982 } 3983 m.Value = &Request_ApplySnapshotChunk{v} 3984 iNdEx = postIndex 3985 case 1000: 3986 if wireType != 2 { 3987 return fmt.Errorf("proto: wrong wireType = %d for field BeginRecheckTx", wireType) 3988 } 3989 var msglen int 3990 for shift := uint(0); ; shift += 7 { 3991 if shift >= 64 { 3992 return ErrIntOverflowTypes 3993 } 3994 if iNdEx >= l { 3995 return io.ErrUnexpectedEOF 3996 } 3997 b := dAtA[iNdEx] 3998 iNdEx++ 3999 msglen |= int(b&0x7F) << shift 4000 if b < 0x80 { 4001 break 4002 } 4003 } 4004 if msglen < 0 { 4005 return ErrInvalidLengthTypes 4006 } 4007 postIndex := iNdEx + msglen 4008 if postIndex < 0 { 4009 return ErrInvalidLengthTypes 4010 } 4011 if postIndex > l { 4012 return io.ErrUnexpectedEOF 4013 } 4014 v := &RequestBeginRecheckTx{} 4015 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4016 return err 4017 } 4018 m.Value = &Request_BeginRecheckTx{v} 4019 iNdEx = postIndex 4020 case 1001: 4021 if wireType != 2 { 4022 return fmt.Errorf("proto: wrong wireType = %d for field EndRecheckTx", wireType) 4023 } 4024 var msglen int 4025 for shift := uint(0); ; shift += 7 { 4026 if shift >= 64 { 4027 return ErrIntOverflowTypes 4028 } 4029 if iNdEx >= l { 4030 return io.ErrUnexpectedEOF 4031 } 4032 b := dAtA[iNdEx] 4033 iNdEx++ 4034 msglen |= int(b&0x7F) << shift 4035 if b < 0x80 { 4036 break 4037 } 4038 } 4039 if msglen < 0 { 4040 return ErrInvalidLengthTypes 4041 } 4042 postIndex := iNdEx + msglen 4043 if postIndex < 0 { 4044 return ErrInvalidLengthTypes 4045 } 4046 if postIndex > l { 4047 return io.ErrUnexpectedEOF 4048 } 4049 v := &RequestEndRecheckTx{} 4050 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4051 return err 4052 } 4053 m.Value = &Request_EndRecheckTx{v} 4054 iNdEx = postIndex 4055 default: 4056 iNdEx = preIndex 4057 skippy, err := skipTypes(dAtA[iNdEx:]) 4058 if err != nil { 4059 return err 4060 } 4061 if (skippy < 0) || (iNdEx+skippy) < 0 { 4062 return ErrInvalidLengthTypes 4063 } 4064 if (iNdEx + skippy) > l { 4065 return io.ErrUnexpectedEOF 4066 } 4067 iNdEx += skippy 4068 } 4069 } 4070 4071 if iNdEx > l { 4072 return io.ErrUnexpectedEOF 4073 } 4074 return nil 4075 } 4076 func (m *RequestBeginBlock) Unmarshal(dAtA []byte) error { 4077 l := len(dAtA) 4078 iNdEx := 0 4079 for iNdEx < l { 4080 preIndex := iNdEx 4081 var wire uint64 4082 for shift := uint(0); ; shift += 7 { 4083 if shift >= 64 { 4084 return ErrIntOverflowTypes 4085 } 4086 if iNdEx >= l { 4087 return io.ErrUnexpectedEOF 4088 } 4089 b := dAtA[iNdEx] 4090 iNdEx++ 4091 wire |= uint64(b&0x7F) << shift 4092 if b < 0x80 { 4093 break 4094 } 4095 } 4096 fieldNum := int32(wire >> 3) 4097 wireType := int(wire & 0x7) 4098 if wireType == 4 { 4099 return fmt.Errorf("proto: RequestBeginBlock: wiretype end group for non-group") 4100 } 4101 if fieldNum <= 0 { 4102 return fmt.Errorf("proto: RequestBeginBlock: illegal tag %d (wire type %d)", fieldNum, wire) 4103 } 4104 switch fieldNum { 4105 case 1: 4106 if wireType != 2 { 4107 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 4108 } 4109 var byteLen int 4110 for shift := uint(0); ; shift += 7 { 4111 if shift >= 64 { 4112 return ErrIntOverflowTypes 4113 } 4114 if iNdEx >= l { 4115 return io.ErrUnexpectedEOF 4116 } 4117 b := dAtA[iNdEx] 4118 iNdEx++ 4119 byteLen |= int(b&0x7F) << shift 4120 if b < 0x80 { 4121 break 4122 } 4123 } 4124 if byteLen < 0 { 4125 return ErrInvalidLengthTypes 4126 } 4127 postIndex := iNdEx + byteLen 4128 if postIndex < 0 { 4129 return ErrInvalidLengthTypes 4130 } 4131 if postIndex > l { 4132 return io.ErrUnexpectedEOF 4133 } 4134 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 4135 if m.Hash == nil { 4136 m.Hash = []byte{} 4137 } 4138 iNdEx = postIndex 4139 case 2: 4140 if wireType != 2 { 4141 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 4142 } 4143 var msglen int 4144 for shift := uint(0); ; shift += 7 { 4145 if shift >= 64 { 4146 return ErrIntOverflowTypes 4147 } 4148 if iNdEx >= l { 4149 return io.ErrUnexpectedEOF 4150 } 4151 b := dAtA[iNdEx] 4152 iNdEx++ 4153 msglen |= int(b&0x7F) << shift 4154 if b < 0x80 { 4155 break 4156 } 4157 } 4158 if msglen < 0 { 4159 return ErrInvalidLengthTypes 4160 } 4161 postIndex := iNdEx + msglen 4162 if postIndex < 0 { 4163 return ErrInvalidLengthTypes 4164 } 4165 if postIndex > l { 4166 return io.ErrUnexpectedEOF 4167 } 4168 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4169 return err 4170 } 4171 iNdEx = postIndex 4172 case 3: 4173 if wireType != 2 { 4174 return fmt.Errorf("proto: wrong wireType = %d for field LastCommitInfo", wireType) 4175 } 4176 var msglen int 4177 for shift := uint(0); ; shift += 7 { 4178 if shift >= 64 { 4179 return ErrIntOverflowTypes 4180 } 4181 if iNdEx >= l { 4182 return io.ErrUnexpectedEOF 4183 } 4184 b := dAtA[iNdEx] 4185 iNdEx++ 4186 msglen |= int(b&0x7F) << shift 4187 if b < 0x80 { 4188 break 4189 } 4190 } 4191 if msglen < 0 { 4192 return ErrInvalidLengthTypes 4193 } 4194 postIndex := iNdEx + msglen 4195 if postIndex < 0 { 4196 return ErrInvalidLengthTypes 4197 } 4198 if postIndex > l { 4199 return io.ErrUnexpectedEOF 4200 } 4201 if err := m.LastCommitInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4202 return err 4203 } 4204 iNdEx = postIndex 4205 case 4: 4206 if wireType != 2 { 4207 return fmt.Errorf("proto: wrong wireType = %d for field ByzantineValidators", wireType) 4208 } 4209 var msglen int 4210 for shift := uint(0); ; shift += 7 { 4211 if shift >= 64 { 4212 return ErrIntOverflowTypes 4213 } 4214 if iNdEx >= l { 4215 return io.ErrUnexpectedEOF 4216 } 4217 b := dAtA[iNdEx] 4218 iNdEx++ 4219 msglen |= int(b&0x7F) << shift 4220 if b < 0x80 { 4221 break 4222 } 4223 } 4224 if msglen < 0 { 4225 return ErrInvalidLengthTypes 4226 } 4227 postIndex := iNdEx + msglen 4228 if postIndex < 0 { 4229 return ErrInvalidLengthTypes 4230 } 4231 if postIndex > l { 4232 return io.ErrUnexpectedEOF 4233 } 4234 m.ByzantineValidators = append(m.ByzantineValidators, types.Evidence{}) 4235 if err := m.ByzantineValidators[len(m.ByzantineValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4236 return err 4237 } 4238 iNdEx = postIndex 4239 case 1000: 4240 if wireType != 2 { 4241 return fmt.Errorf("proto: wrong wireType = %d for field Entropy", wireType) 4242 } 4243 var msglen int 4244 for shift := uint(0); ; shift += 7 { 4245 if shift >= 64 { 4246 return ErrIntOverflowTypes 4247 } 4248 if iNdEx >= l { 4249 return io.ErrUnexpectedEOF 4250 } 4251 b := dAtA[iNdEx] 4252 iNdEx++ 4253 msglen |= int(b&0x7F) << shift 4254 if b < 0x80 { 4255 break 4256 } 4257 } 4258 if msglen < 0 { 4259 return ErrInvalidLengthTypes 4260 } 4261 postIndex := iNdEx + msglen 4262 if postIndex < 0 { 4263 return ErrInvalidLengthTypes 4264 } 4265 if postIndex > l { 4266 return io.ErrUnexpectedEOF 4267 } 4268 if err := m.Entropy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4269 return err 4270 } 4271 iNdEx = postIndex 4272 default: 4273 iNdEx = preIndex 4274 skippy, err := skipTypes(dAtA[iNdEx:]) 4275 if err != nil { 4276 return err 4277 } 4278 if (skippy < 0) || (iNdEx+skippy) < 0 { 4279 return ErrInvalidLengthTypes 4280 } 4281 if (iNdEx + skippy) > l { 4282 return io.ErrUnexpectedEOF 4283 } 4284 iNdEx += skippy 4285 } 4286 } 4287 4288 if iNdEx > l { 4289 return io.ErrUnexpectedEOF 4290 } 4291 return nil 4292 } 4293 func (m *RequestBeginRecheckTx) Unmarshal(dAtA []byte) error { 4294 l := len(dAtA) 4295 iNdEx := 0 4296 for iNdEx < l { 4297 preIndex := iNdEx 4298 var wire uint64 4299 for shift := uint(0); ; shift += 7 { 4300 if shift >= 64 { 4301 return ErrIntOverflowTypes 4302 } 4303 if iNdEx >= l { 4304 return io.ErrUnexpectedEOF 4305 } 4306 b := dAtA[iNdEx] 4307 iNdEx++ 4308 wire |= uint64(b&0x7F) << shift 4309 if b < 0x80 { 4310 break 4311 } 4312 } 4313 fieldNum := int32(wire >> 3) 4314 wireType := int(wire & 0x7) 4315 if wireType == 4 { 4316 return fmt.Errorf("proto: RequestBeginRecheckTx: wiretype end group for non-group") 4317 } 4318 if fieldNum <= 0 { 4319 return fmt.Errorf("proto: RequestBeginRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 4320 } 4321 switch fieldNum { 4322 case 1: 4323 if wireType != 2 { 4324 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) 4325 } 4326 var msglen int 4327 for shift := uint(0); ; shift += 7 { 4328 if shift >= 64 { 4329 return ErrIntOverflowTypes 4330 } 4331 if iNdEx >= l { 4332 return io.ErrUnexpectedEOF 4333 } 4334 b := dAtA[iNdEx] 4335 iNdEx++ 4336 msglen |= int(b&0x7F) << shift 4337 if b < 0x80 { 4338 break 4339 } 4340 } 4341 if msglen < 0 { 4342 return ErrInvalidLengthTypes 4343 } 4344 postIndex := iNdEx + msglen 4345 if postIndex < 0 { 4346 return ErrInvalidLengthTypes 4347 } 4348 if postIndex > l { 4349 return io.ErrUnexpectedEOF 4350 } 4351 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4352 return err 4353 } 4354 iNdEx = postIndex 4355 default: 4356 iNdEx = preIndex 4357 skippy, err := skipTypes(dAtA[iNdEx:]) 4358 if err != nil { 4359 return err 4360 } 4361 if (skippy < 0) || (iNdEx+skippy) < 0 { 4362 return ErrInvalidLengthTypes 4363 } 4364 if (iNdEx + skippy) > l { 4365 return io.ErrUnexpectedEOF 4366 } 4367 iNdEx += skippy 4368 } 4369 } 4370 4371 if iNdEx > l { 4372 return io.ErrUnexpectedEOF 4373 } 4374 return nil 4375 } 4376 func (m *RequestEndRecheckTx) Unmarshal(dAtA []byte) error { 4377 l := len(dAtA) 4378 iNdEx := 0 4379 for iNdEx < l { 4380 preIndex := iNdEx 4381 var wire uint64 4382 for shift := uint(0); ; shift += 7 { 4383 if shift >= 64 { 4384 return ErrIntOverflowTypes 4385 } 4386 if iNdEx >= l { 4387 return io.ErrUnexpectedEOF 4388 } 4389 b := dAtA[iNdEx] 4390 iNdEx++ 4391 wire |= uint64(b&0x7F) << shift 4392 if b < 0x80 { 4393 break 4394 } 4395 } 4396 fieldNum := int32(wire >> 3) 4397 wireType := int(wire & 0x7) 4398 if wireType == 4 { 4399 return fmt.Errorf("proto: RequestEndRecheckTx: wiretype end group for non-group") 4400 } 4401 if fieldNum <= 0 { 4402 return fmt.Errorf("proto: RequestEndRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 4403 } 4404 switch fieldNum { 4405 case 1: 4406 if wireType != 0 { 4407 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 4408 } 4409 m.Height = 0 4410 for shift := uint(0); ; shift += 7 { 4411 if shift >= 64 { 4412 return ErrIntOverflowTypes 4413 } 4414 if iNdEx >= l { 4415 return io.ErrUnexpectedEOF 4416 } 4417 b := dAtA[iNdEx] 4418 iNdEx++ 4419 m.Height |= int64(b&0x7F) << shift 4420 if b < 0x80 { 4421 break 4422 } 4423 } 4424 default: 4425 iNdEx = preIndex 4426 skippy, err := skipTypes(dAtA[iNdEx:]) 4427 if err != nil { 4428 return err 4429 } 4430 if (skippy < 0) || (iNdEx+skippy) < 0 { 4431 return ErrInvalidLengthTypes 4432 } 4433 if (iNdEx + skippy) > l { 4434 return io.ErrUnexpectedEOF 4435 } 4436 iNdEx += skippy 4437 } 4438 } 4439 4440 if iNdEx > l { 4441 return io.ErrUnexpectedEOF 4442 } 4443 return nil 4444 } 4445 func (m *Response) Unmarshal(dAtA []byte) error { 4446 l := len(dAtA) 4447 iNdEx := 0 4448 for iNdEx < l { 4449 preIndex := iNdEx 4450 var wire uint64 4451 for shift := uint(0); ; shift += 7 { 4452 if shift >= 64 { 4453 return ErrIntOverflowTypes 4454 } 4455 if iNdEx >= l { 4456 return io.ErrUnexpectedEOF 4457 } 4458 b := dAtA[iNdEx] 4459 iNdEx++ 4460 wire |= uint64(b&0x7F) << shift 4461 if b < 0x80 { 4462 break 4463 } 4464 } 4465 fieldNum := int32(wire >> 3) 4466 wireType := int(wire & 0x7) 4467 if wireType == 4 { 4468 return fmt.Errorf("proto: Response: wiretype end group for non-group") 4469 } 4470 if fieldNum <= 0 { 4471 return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire) 4472 } 4473 switch fieldNum { 4474 case 1: 4475 if wireType != 2 { 4476 return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType) 4477 } 4478 var msglen int 4479 for shift := uint(0); ; shift += 7 { 4480 if shift >= 64 { 4481 return ErrIntOverflowTypes 4482 } 4483 if iNdEx >= l { 4484 return io.ErrUnexpectedEOF 4485 } 4486 b := dAtA[iNdEx] 4487 iNdEx++ 4488 msglen |= int(b&0x7F) << shift 4489 if b < 0x80 { 4490 break 4491 } 4492 } 4493 if msglen < 0 { 4494 return ErrInvalidLengthTypes 4495 } 4496 postIndex := iNdEx + msglen 4497 if postIndex < 0 { 4498 return ErrInvalidLengthTypes 4499 } 4500 if postIndex > l { 4501 return io.ErrUnexpectedEOF 4502 } 4503 v := &types.ResponseException{} 4504 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4505 return err 4506 } 4507 m.Value = &Response_Exception{v} 4508 iNdEx = postIndex 4509 case 2: 4510 if wireType != 2 { 4511 return fmt.Errorf("proto: wrong wireType = %d for field Echo", wireType) 4512 } 4513 var msglen int 4514 for shift := uint(0); ; shift += 7 { 4515 if shift >= 64 { 4516 return ErrIntOverflowTypes 4517 } 4518 if iNdEx >= l { 4519 return io.ErrUnexpectedEOF 4520 } 4521 b := dAtA[iNdEx] 4522 iNdEx++ 4523 msglen |= int(b&0x7F) << shift 4524 if b < 0x80 { 4525 break 4526 } 4527 } 4528 if msglen < 0 { 4529 return ErrInvalidLengthTypes 4530 } 4531 postIndex := iNdEx + msglen 4532 if postIndex < 0 { 4533 return ErrInvalidLengthTypes 4534 } 4535 if postIndex > l { 4536 return io.ErrUnexpectedEOF 4537 } 4538 v := &types.ResponseEcho{} 4539 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4540 return err 4541 } 4542 m.Value = &Response_Echo{v} 4543 iNdEx = postIndex 4544 case 3: 4545 if wireType != 2 { 4546 return fmt.Errorf("proto: wrong wireType = %d for field Flush", wireType) 4547 } 4548 var msglen int 4549 for shift := uint(0); ; shift += 7 { 4550 if shift >= 64 { 4551 return ErrIntOverflowTypes 4552 } 4553 if iNdEx >= l { 4554 return io.ErrUnexpectedEOF 4555 } 4556 b := dAtA[iNdEx] 4557 iNdEx++ 4558 msglen |= int(b&0x7F) << shift 4559 if b < 0x80 { 4560 break 4561 } 4562 } 4563 if msglen < 0 { 4564 return ErrInvalidLengthTypes 4565 } 4566 postIndex := iNdEx + msglen 4567 if postIndex < 0 { 4568 return ErrInvalidLengthTypes 4569 } 4570 if postIndex > l { 4571 return io.ErrUnexpectedEOF 4572 } 4573 v := &types.ResponseFlush{} 4574 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4575 return err 4576 } 4577 m.Value = &Response_Flush{v} 4578 iNdEx = postIndex 4579 case 4: 4580 if wireType != 2 { 4581 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 4582 } 4583 var msglen int 4584 for shift := uint(0); ; shift += 7 { 4585 if shift >= 64 { 4586 return ErrIntOverflowTypes 4587 } 4588 if iNdEx >= l { 4589 return io.ErrUnexpectedEOF 4590 } 4591 b := dAtA[iNdEx] 4592 iNdEx++ 4593 msglen |= int(b&0x7F) << shift 4594 if b < 0x80 { 4595 break 4596 } 4597 } 4598 if msglen < 0 { 4599 return ErrInvalidLengthTypes 4600 } 4601 postIndex := iNdEx + msglen 4602 if postIndex < 0 { 4603 return ErrInvalidLengthTypes 4604 } 4605 if postIndex > l { 4606 return io.ErrUnexpectedEOF 4607 } 4608 v := &types.ResponseInfo{} 4609 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4610 return err 4611 } 4612 m.Value = &Response_Info{v} 4613 iNdEx = postIndex 4614 case 5: 4615 if wireType != 2 { 4616 return fmt.Errorf("proto: wrong wireType = %d for field SetOption", wireType) 4617 } 4618 var msglen int 4619 for shift := uint(0); ; shift += 7 { 4620 if shift >= 64 { 4621 return ErrIntOverflowTypes 4622 } 4623 if iNdEx >= l { 4624 return io.ErrUnexpectedEOF 4625 } 4626 b := dAtA[iNdEx] 4627 iNdEx++ 4628 msglen |= int(b&0x7F) << shift 4629 if b < 0x80 { 4630 break 4631 } 4632 } 4633 if msglen < 0 { 4634 return ErrInvalidLengthTypes 4635 } 4636 postIndex := iNdEx + msglen 4637 if postIndex < 0 { 4638 return ErrInvalidLengthTypes 4639 } 4640 if postIndex > l { 4641 return io.ErrUnexpectedEOF 4642 } 4643 v := &types.ResponseSetOption{} 4644 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4645 return err 4646 } 4647 m.Value = &Response_SetOption{v} 4648 iNdEx = postIndex 4649 case 6: 4650 if wireType != 2 { 4651 return fmt.Errorf("proto: wrong wireType = %d for field InitChain", wireType) 4652 } 4653 var msglen int 4654 for shift := uint(0); ; shift += 7 { 4655 if shift >= 64 { 4656 return ErrIntOverflowTypes 4657 } 4658 if iNdEx >= l { 4659 return io.ErrUnexpectedEOF 4660 } 4661 b := dAtA[iNdEx] 4662 iNdEx++ 4663 msglen |= int(b&0x7F) << shift 4664 if b < 0x80 { 4665 break 4666 } 4667 } 4668 if msglen < 0 { 4669 return ErrInvalidLengthTypes 4670 } 4671 postIndex := iNdEx + msglen 4672 if postIndex < 0 { 4673 return ErrInvalidLengthTypes 4674 } 4675 if postIndex > l { 4676 return io.ErrUnexpectedEOF 4677 } 4678 v := &types.ResponseInitChain{} 4679 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4680 return err 4681 } 4682 m.Value = &Response_InitChain{v} 4683 iNdEx = postIndex 4684 case 7: 4685 if wireType != 2 { 4686 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 4687 } 4688 var msglen int 4689 for shift := uint(0); ; shift += 7 { 4690 if shift >= 64 { 4691 return ErrIntOverflowTypes 4692 } 4693 if iNdEx >= l { 4694 return io.ErrUnexpectedEOF 4695 } 4696 b := dAtA[iNdEx] 4697 iNdEx++ 4698 msglen |= int(b&0x7F) << shift 4699 if b < 0x80 { 4700 break 4701 } 4702 } 4703 if msglen < 0 { 4704 return ErrInvalidLengthTypes 4705 } 4706 postIndex := iNdEx + msglen 4707 if postIndex < 0 { 4708 return ErrInvalidLengthTypes 4709 } 4710 if postIndex > l { 4711 return io.ErrUnexpectedEOF 4712 } 4713 v := &types.ResponseQuery{} 4714 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4715 return err 4716 } 4717 m.Value = &Response_Query{v} 4718 iNdEx = postIndex 4719 case 8: 4720 if wireType != 2 { 4721 return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType) 4722 } 4723 var msglen int 4724 for shift := uint(0); ; shift += 7 { 4725 if shift >= 64 { 4726 return ErrIntOverflowTypes 4727 } 4728 if iNdEx >= l { 4729 return io.ErrUnexpectedEOF 4730 } 4731 b := dAtA[iNdEx] 4732 iNdEx++ 4733 msglen |= int(b&0x7F) << shift 4734 if b < 0x80 { 4735 break 4736 } 4737 } 4738 if msglen < 0 { 4739 return ErrInvalidLengthTypes 4740 } 4741 postIndex := iNdEx + msglen 4742 if postIndex < 0 { 4743 return ErrInvalidLengthTypes 4744 } 4745 if postIndex > l { 4746 return io.ErrUnexpectedEOF 4747 } 4748 v := &types.ResponseBeginBlock{} 4749 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4750 return err 4751 } 4752 m.Value = &Response_BeginBlock{v} 4753 iNdEx = postIndex 4754 case 9: 4755 if wireType != 2 { 4756 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 4757 } 4758 var msglen int 4759 for shift := uint(0); ; shift += 7 { 4760 if shift >= 64 { 4761 return ErrIntOverflowTypes 4762 } 4763 if iNdEx >= l { 4764 return io.ErrUnexpectedEOF 4765 } 4766 b := dAtA[iNdEx] 4767 iNdEx++ 4768 msglen |= int(b&0x7F) << shift 4769 if b < 0x80 { 4770 break 4771 } 4772 } 4773 if msglen < 0 { 4774 return ErrInvalidLengthTypes 4775 } 4776 postIndex := iNdEx + msglen 4777 if postIndex < 0 { 4778 return ErrInvalidLengthTypes 4779 } 4780 if postIndex > l { 4781 return io.ErrUnexpectedEOF 4782 } 4783 v := &ResponseCheckTx{} 4784 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4785 return err 4786 } 4787 m.Value = &Response_CheckTx{v} 4788 iNdEx = postIndex 4789 case 10: 4790 if wireType != 2 { 4791 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 4792 } 4793 var msglen int 4794 for shift := uint(0); ; shift += 7 { 4795 if shift >= 64 { 4796 return ErrIntOverflowTypes 4797 } 4798 if iNdEx >= l { 4799 return io.ErrUnexpectedEOF 4800 } 4801 b := dAtA[iNdEx] 4802 iNdEx++ 4803 msglen |= int(b&0x7F) << shift 4804 if b < 0x80 { 4805 break 4806 } 4807 } 4808 if msglen < 0 { 4809 return ErrInvalidLengthTypes 4810 } 4811 postIndex := iNdEx + msglen 4812 if postIndex < 0 { 4813 return ErrInvalidLengthTypes 4814 } 4815 if postIndex > l { 4816 return io.ErrUnexpectedEOF 4817 } 4818 v := &types.ResponseDeliverTx{} 4819 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4820 return err 4821 } 4822 m.Value = &Response_DeliverTx{v} 4823 iNdEx = postIndex 4824 case 11: 4825 if wireType != 2 { 4826 return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType) 4827 } 4828 var msglen int 4829 for shift := uint(0); ; shift += 7 { 4830 if shift >= 64 { 4831 return ErrIntOverflowTypes 4832 } 4833 if iNdEx >= l { 4834 return io.ErrUnexpectedEOF 4835 } 4836 b := dAtA[iNdEx] 4837 iNdEx++ 4838 msglen |= int(b&0x7F) << shift 4839 if b < 0x80 { 4840 break 4841 } 4842 } 4843 if msglen < 0 { 4844 return ErrInvalidLengthTypes 4845 } 4846 postIndex := iNdEx + msglen 4847 if postIndex < 0 { 4848 return ErrInvalidLengthTypes 4849 } 4850 if postIndex > l { 4851 return io.ErrUnexpectedEOF 4852 } 4853 v := &types.ResponseEndBlock{} 4854 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4855 return err 4856 } 4857 m.Value = &Response_EndBlock{v} 4858 iNdEx = postIndex 4859 case 12: 4860 if wireType != 2 { 4861 return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) 4862 } 4863 var msglen int 4864 for shift := uint(0); ; shift += 7 { 4865 if shift >= 64 { 4866 return ErrIntOverflowTypes 4867 } 4868 if iNdEx >= l { 4869 return io.ErrUnexpectedEOF 4870 } 4871 b := dAtA[iNdEx] 4872 iNdEx++ 4873 msglen |= int(b&0x7F) << shift 4874 if b < 0x80 { 4875 break 4876 } 4877 } 4878 if msglen < 0 { 4879 return ErrInvalidLengthTypes 4880 } 4881 postIndex := iNdEx + msglen 4882 if postIndex < 0 { 4883 return ErrInvalidLengthTypes 4884 } 4885 if postIndex > l { 4886 return io.ErrUnexpectedEOF 4887 } 4888 v := &types.ResponseCommit{} 4889 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4890 return err 4891 } 4892 m.Value = &Response_Commit{v} 4893 iNdEx = postIndex 4894 case 13: 4895 if wireType != 2 { 4896 return fmt.Errorf("proto: wrong wireType = %d for field ListSnapshots", wireType) 4897 } 4898 var msglen int 4899 for shift := uint(0); ; shift += 7 { 4900 if shift >= 64 { 4901 return ErrIntOverflowTypes 4902 } 4903 if iNdEx >= l { 4904 return io.ErrUnexpectedEOF 4905 } 4906 b := dAtA[iNdEx] 4907 iNdEx++ 4908 msglen |= int(b&0x7F) << shift 4909 if b < 0x80 { 4910 break 4911 } 4912 } 4913 if msglen < 0 { 4914 return ErrInvalidLengthTypes 4915 } 4916 postIndex := iNdEx + msglen 4917 if postIndex < 0 { 4918 return ErrInvalidLengthTypes 4919 } 4920 if postIndex > l { 4921 return io.ErrUnexpectedEOF 4922 } 4923 v := &types.ResponseListSnapshots{} 4924 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4925 return err 4926 } 4927 m.Value = &Response_ListSnapshots{v} 4928 iNdEx = postIndex 4929 case 14: 4930 if wireType != 2 { 4931 return fmt.Errorf("proto: wrong wireType = %d for field OfferSnapshot", wireType) 4932 } 4933 var msglen int 4934 for shift := uint(0); ; shift += 7 { 4935 if shift >= 64 { 4936 return ErrIntOverflowTypes 4937 } 4938 if iNdEx >= l { 4939 return io.ErrUnexpectedEOF 4940 } 4941 b := dAtA[iNdEx] 4942 iNdEx++ 4943 msglen |= int(b&0x7F) << shift 4944 if b < 0x80 { 4945 break 4946 } 4947 } 4948 if msglen < 0 { 4949 return ErrInvalidLengthTypes 4950 } 4951 postIndex := iNdEx + msglen 4952 if postIndex < 0 { 4953 return ErrInvalidLengthTypes 4954 } 4955 if postIndex > l { 4956 return io.ErrUnexpectedEOF 4957 } 4958 v := &types.ResponseOfferSnapshot{} 4959 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4960 return err 4961 } 4962 m.Value = &Response_OfferSnapshot{v} 4963 iNdEx = postIndex 4964 case 15: 4965 if wireType != 2 { 4966 return fmt.Errorf("proto: wrong wireType = %d for field LoadSnapshotChunk", wireType) 4967 } 4968 var msglen int 4969 for shift := uint(0); ; shift += 7 { 4970 if shift >= 64 { 4971 return ErrIntOverflowTypes 4972 } 4973 if iNdEx >= l { 4974 return io.ErrUnexpectedEOF 4975 } 4976 b := dAtA[iNdEx] 4977 iNdEx++ 4978 msglen |= int(b&0x7F) << shift 4979 if b < 0x80 { 4980 break 4981 } 4982 } 4983 if msglen < 0 { 4984 return ErrInvalidLengthTypes 4985 } 4986 postIndex := iNdEx + msglen 4987 if postIndex < 0 { 4988 return ErrInvalidLengthTypes 4989 } 4990 if postIndex > l { 4991 return io.ErrUnexpectedEOF 4992 } 4993 v := &types.ResponseLoadSnapshotChunk{} 4994 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4995 return err 4996 } 4997 m.Value = &Response_LoadSnapshotChunk{v} 4998 iNdEx = postIndex 4999 case 16: 5000 if wireType != 2 { 5001 return fmt.Errorf("proto: wrong wireType = %d for field ApplySnapshotChunk", wireType) 5002 } 5003 var msglen int 5004 for shift := uint(0); ; shift += 7 { 5005 if shift >= 64 { 5006 return ErrIntOverflowTypes 5007 } 5008 if iNdEx >= l { 5009 return io.ErrUnexpectedEOF 5010 } 5011 b := dAtA[iNdEx] 5012 iNdEx++ 5013 msglen |= int(b&0x7F) << shift 5014 if b < 0x80 { 5015 break 5016 } 5017 } 5018 if msglen < 0 { 5019 return ErrInvalidLengthTypes 5020 } 5021 postIndex := iNdEx + msglen 5022 if postIndex < 0 { 5023 return ErrInvalidLengthTypes 5024 } 5025 if postIndex > l { 5026 return io.ErrUnexpectedEOF 5027 } 5028 v := &types.ResponseApplySnapshotChunk{} 5029 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5030 return err 5031 } 5032 m.Value = &Response_ApplySnapshotChunk{v} 5033 iNdEx = postIndex 5034 case 1000: 5035 if wireType != 2 { 5036 return fmt.Errorf("proto: wrong wireType = %d for field BeginRecheckTx", wireType) 5037 } 5038 var msglen int 5039 for shift := uint(0); ; shift += 7 { 5040 if shift >= 64 { 5041 return ErrIntOverflowTypes 5042 } 5043 if iNdEx >= l { 5044 return io.ErrUnexpectedEOF 5045 } 5046 b := dAtA[iNdEx] 5047 iNdEx++ 5048 msglen |= int(b&0x7F) << shift 5049 if b < 0x80 { 5050 break 5051 } 5052 } 5053 if msglen < 0 { 5054 return ErrInvalidLengthTypes 5055 } 5056 postIndex := iNdEx + msglen 5057 if postIndex < 0 { 5058 return ErrInvalidLengthTypes 5059 } 5060 if postIndex > l { 5061 return io.ErrUnexpectedEOF 5062 } 5063 v := &ResponseBeginRecheckTx{} 5064 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5065 return err 5066 } 5067 m.Value = &Response_BeginRecheckTx{v} 5068 iNdEx = postIndex 5069 case 1001: 5070 if wireType != 2 { 5071 return fmt.Errorf("proto: wrong wireType = %d for field EndRecheckTx", wireType) 5072 } 5073 var msglen int 5074 for shift := uint(0); ; shift += 7 { 5075 if shift >= 64 { 5076 return ErrIntOverflowTypes 5077 } 5078 if iNdEx >= l { 5079 return io.ErrUnexpectedEOF 5080 } 5081 b := dAtA[iNdEx] 5082 iNdEx++ 5083 msglen |= int(b&0x7F) << shift 5084 if b < 0x80 { 5085 break 5086 } 5087 } 5088 if msglen < 0 { 5089 return ErrInvalidLengthTypes 5090 } 5091 postIndex := iNdEx + msglen 5092 if postIndex < 0 { 5093 return ErrInvalidLengthTypes 5094 } 5095 if postIndex > l { 5096 return io.ErrUnexpectedEOF 5097 } 5098 v := &ResponseEndRecheckTx{} 5099 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5100 return err 5101 } 5102 m.Value = &Response_EndRecheckTx{v} 5103 iNdEx = postIndex 5104 default: 5105 iNdEx = preIndex 5106 skippy, err := skipTypes(dAtA[iNdEx:]) 5107 if err != nil { 5108 return err 5109 } 5110 if (skippy < 0) || (iNdEx+skippy) < 0 { 5111 return ErrInvalidLengthTypes 5112 } 5113 if (iNdEx + skippy) > l { 5114 return io.ErrUnexpectedEOF 5115 } 5116 iNdEx += skippy 5117 } 5118 } 5119 5120 if iNdEx > l { 5121 return io.ErrUnexpectedEOF 5122 } 5123 return nil 5124 } 5125 func (m *ResponseCheckTx) Unmarshal(dAtA []byte) error { 5126 l := len(dAtA) 5127 iNdEx := 0 5128 for iNdEx < l { 5129 preIndex := iNdEx 5130 var wire uint64 5131 for shift := uint(0); ; shift += 7 { 5132 if shift >= 64 { 5133 return ErrIntOverflowTypes 5134 } 5135 if iNdEx >= l { 5136 return io.ErrUnexpectedEOF 5137 } 5138 b := dAtA[iNdEx] 5139 iNdEx++ 5140 wire |= uint64(b&0x7F) << shift 5141 if b < 0x80 { 5142 break 5143 } 5144 } 5145 fieldNum := int32(wire >> 3) 5146 wireType := int(wire & 0x7) 5147 if wireType == 4 { 5148 return fmt.Errorf("proto: ResponseCheckTx: wiretype end group for non-group") 5149 } 5150 if fieldNum <= 0 { 5151 return fmt.Errorf("proto: ResponseCheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 5152 } 5153 switch fieldNum { 5154 case 1: 5155 if wireType != 0 { 5156 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 5157 } 5158 m.Code = 0 5159 for shift := uint(0); ; shift += 7 { 5160 if shift >= 64 { 5161 return ErrIntOverflowTypes 5162 } 5163 if iNdEx >= l { 5164 return io.ErrUnexpectedEOF 5165 } 5166 b := dAtA[iNdEx] 5167 iNdEx++ 5168 m.Code |= uint32(b&0x7F) << shift 5169 if b < 0x80 { 5170 break 5171 } 5172 } 5173 case 2: 5174 if wireType != 2 { 5175 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 5176 } 5177 var byteLen int 5178 for shift := uint(0); ; shift += 7 { 5179 if shift >= 64 { 5180 return ErrIntOverflowTypes 5181 } 5182 if iNdEx >= l { 5183 return io.ErrUnexpectedEOF 5184 } 5185 b := dAtA[iNdEx] 5186 iNdEx++ 5187 byteLen |= int(b&0x7F) << shift 5188 if b < 0x80 { 5189 break 5190 } 5191 } 5192 if byteLen < 0 { 5193 return ErrInvalidLengthTypes 5194 } 5195 postIndex := iNdEx + byteLen 5196 if postIndex < 0 { 5197 return ErrInvalidLengthTypes 5198 } 5199 if postIndex > l { 5200 return io.ErrUnexpectedEOF 5201 } 5202 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) 5203 if m.Data == nil { 5204 m.Data = []byte{} 5205 } 5206 iNdEx = postIndex 5207 case 3: 5208 if wireType != 2 { 5209 return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) 5210 } 5211 var stringLen uint64 5212 for shift := uint(0); ; shift += 7 { 5213 if shift >= 64 { 5214 return ErrIntOverflowTypes 5215 } 5216 if iNdEx >= l { 5217 return io.ErrUnexpectedEOF 5218 } 5219 b := dAtA[iNdEx] 5220 iNdEx++ 5221 stringLen |= uint64(b&0x7F) << shift 5222 if b < 0x80 { 5223 break 5224 } 5225 } 5226 intStringLen := int(stringLen) 5227 if intStringLen < 0 { 5228 return ErrInvalidLengthTypes 5229 } 5230 postIndex := iNdEx + intStringLen 5231 if postIndex < 0 { 5232 return ErrInvalidLengthTypes 5233 } 5234 if postIndex > l { 5235 return io.ErrUnexpectedEOF 5236 } 5237 m.Log = string(dAtA[iNdEx:postIndex]) 5238 iNdEx = postIndex 5239 case 4: 5240 if wireType != 2 { 5241 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 5242 } 5243 var stringLen uint64 5244 for shift := uint(0); ; shift += 7 { 5245 if shift >= 64 { 5246 return ErrIntOverflowTypes 5247 } 5248 if iNdEx >= l { 5249 return io.ErrUnexpectedEOF 5250 } 5251 b := dAtA[iNdEx] 5252 iNdEx++ 5253 stringLen |= uint64(b&0x7F) << shift 5254 if b < 0x80 { 5255 break 5256 } 5257 } 5258 intStringLen := int(stringLen) 5259 if intStringLen < 0 { 5260 return ErrInvalidLengthTypes 5261 } 5262 postIndex := iNdEx + intStringLen 5263 if postIndex < 0 { 5264 return ErrInvalidLengthTypes 5265 } 5266 if postIndex > l { 5267 return io.ErrUnexpectedEOF 5268 } 5269 m.Info = string(dAtA[iNdEx:postIndex]) 5270 iNdEx = postIndex 5271 case 5: 5272 if wireType != 0 { 5273 return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) 5274 } 5275 m.GasWanted = 0 5276 for shift := uint(0); ; shift += 7 { 5277 if shift >= 64 { 5278 return ErrIntOverflowTypes 5279 } 5280 if iNdEx >= l { 5281 return io.ErrUnexpectedEOF 5282 } 5283 b := dAtA[iNdEx] 5284 iNdEx++ 5285 m.GasWanted |= int64(b&0x7F) << shift 5286 if b < 0x80 { 5287 break 5288 } 5289 } 5290 case 6: 5291 if wireType != 0 { 5292 return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) 5293 } 5294 m.GasUsed = 0 5295 for shift := uint(0); ; shift += 7 { 5296 if shift >= 64 { 5297 return ErrIntOverflowTypes 5298 } 5299 if iNdEx >= l { 5300 return io.ErrUnexpectedEOF 5301 } 5302 b := dAtA[iNdEx] 5303 iNdEx++ 5304 m.GasUsed |= int64(b&0x7F) << shift 5305 if b < 0x80 { 5306 break 5307 } 5308 } 5309 case 7: 5310 if wireType != 2 { 5311 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 5312 } 5313 var msglen int 5314 for shift := uint(0); ; shift += 7 { 5315 if shift >= 64 { 5316 return ErrIntOverflowTypes 5317 } 5318 if iNdEx >= l { 5319 return io.ErrUnexpectedEOF 5320 } 5321 b := dAtA[iNdEx] 5322 iNdEx++ 5323 msglen |= int(b&0x7F) << shift 5324 if b < 0x80 { 5325 break 5326 } 5327 } 5328 if msglen < 0 { 5329 return ErrInvalidLengthTypes 5330 } 5331 postIndex := iNdEx + msglen 5332 if postIndex < 0 { 5333 return ErrInvalidLengthTypes 5334 } 5335 if postIndex > l { 5336 return io.ErrUnexpectedEOF 5337 } 5338 m.Events = append(m.Events, types.Event{}) 5339 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5340 return err 5341 } 5342 iNdEx = postIndex 5343 case 8: 5344 if wireType != 2 { 5345 return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) 5346 } 5347 var stringLen uint64 5348 for shift := uint(0); ; shift += 7 { 5349 if shift >= 64 { 5350 return ErrIntOverflowTypes 5351 } 5352 if iNdEx >= l { 5353 return io.ErrUnexpectedEOF 5354 } 5355 b := dAtA[iNdEx] 5356 iNdEx++ 5357 stringLen |= uint64(b&0x7F) << shift 5358 if b < 0x80 { 5359 break 5360 } 5361 } 5362 intStringLen := int(stringLen) 5363 if intStringLen < 0 { 5364 return ErrInvalidLengthTypes 5365 } 5366 postIndex := iNdEx + intStringLen 5367 if postIndex < 0 { 5368 return ErrInvalidLengthTypes 5369 } 5370 if postIndex > l { 5371 return io.ErrUnexpectedEOF 5372 } 5373 m.Codespace = string(dAtA[iNdEx:postIndex]) 5374 iNdEx = postIndex 5375 case 9: 5376 if wireType != 2 { 5377 return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) 5378 } 5379 var stringLen uint64 5380 for shift := uint(0); ; shift += 7 { 5381 if shift >= 64 { 5382 return ErrIntOverflowTypes 5383 } 5384 if iNdEx >= l { 5385 return io.ErrUnexpectedEOF 5386 } 5387 b := dAtA[iNdEx] 5388 iNdEx++ 5389 stringLen |= uint64(b&0x7F) << shift 5390 if b < 0x80 { 5391 break 5392 } 5393 } 5394 intStringLen := int(stringLen) 5395 if intStringLen < 0 { 5396 return ErrInvalidLengthTypes 5397 } 5398 postIndex := iNdEx + intStringLen 5399 if postIndex < 0 { 5400 return ErrInvalidLengthTypes 5401 } 5402 if postIndex > l { 5403 return io.ErrUnexpectedEOF 5404 } 5405 m.Sender = string(dAtA[iNdEx:postIndex]) 5406 iNdEx = postIndex 5407 case 10: 5408 if wireType != 0 { 5409 return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) 5410 } 5411 m.Priority = 0 5412 for shift := uint(0); ; shift += 7 { 5413 if shift >= 64 { 5414 return ErrIntOverflowTypes 5415 } 5416 if iNdEx >= l { 5417 return io.ErrUnexpectedEOF 5418 } 5419 b := dAtA[iNdEx] 5420 iNdEx++ 5421 m.Priority |= int64(b&0x7F) << shift 5422 if b < 0x80 { 5423 break 5424 } 5425 } 5426 case 11: 5427 if wireType != 2 { 5428 return fmt.Errorf("proto: wrong wireType = %d for field MempoolError", wireType) 5429 } 5430 var stringLen uint64 5431 for shift := uint(0); ; shift += 7 { 5432 if shift >= 64 { 5433 return ErrIntOverflowTypes 5434 } 5435 if iNdEx >= l { 5436 return io.ErrUnexpectedEOF 5437 } 5438 b := dAtA[iNdEx] 5439 iNdEx++ 5440 stringLen |= uint64(b&0x7F) << shift 5441 if b < 0x80 { 5442 break 5443 } 5444 } 5445 intStringLen := int(stringLen) 5446 if intStringLen < 0 { 5447 return ErrInvalidLengthTypes 5448 } 5449 postIndex := iNdEx + intStringLen 5450 if postIndex < 0 { 5451 return ErrInvalidLengthTypes 5452 } 5453 if postIndex > l { 5454 return io.ErrUnexpectedEOF 5455 } 5456 m.MempoolError = string(dAtA[iNdEx:postIndex]) 5457 iNdEx = postIndex 5458 default: 5459 iNdEx = preIndex 5460 skippy, err := skipTypes(dAtA[iNdEx:]) 5461 if err != nil { 5462 return err 5463 } 5464 if (skippy < 0) || (iNdEx+skippy) < 0 { 5465 return ErrInvalidLengthTypes 5466 } 5467 if (iNdEx + skippy) > l { 5468 return io.ErrUnexpectedEOF 5469 } 5470 iNdEx += skippy 5471 } 5472 } 5473 5474 if iNdEx > l { 5475 return io.ErrUnexpectedEOF 5476 } 5477 return nil 5478 } 5479 func (m *ResponseBeginRecheckTx) Unmarshal(dAtA []byte) error { 5480 l := len(dAtA) 5481 iNdEx := 0 5482 for iNdEx < l { 5483 preIndex := iNdEx 5484 var wire uint64 5485 for shift := uint(0); ; shift += 7 { 5486 if shift >= 64 { 5487 return ErrIntOverflowTypes 5488 } 5489 if iNdEx >= l { 5490 return io.ErrUnexpectedEOF 5491 } 5492 b := dAtA[iNdEx] 5493 iNdEx++ 5494 wire |= uint64(b&0x7F) << shift 5495 if b < 0x80 { 5496 break 5497 } 5498 } 5499 fieldNum := int32(wire >> 3) 5500 wireType := int(wire & 0x7) 5501 if wireType == 4 { 5502 return fmt.Errorf("proto: ResponseBeginRecheckTx: wiretype end group for non-group") 5503 } 5504 if fieldNum <= 0 { 5505 return fmt.Errorf("proto: ResponseBeginRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 5506 } 5507 switch fieldNum { 5508 case 1: 5509 if wireType != 0 { 5510 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 5511 } 5512 m.Code = 0 5513 for shift := uint(0); ; shift += 7 { 5514 if shift >= 64 { 5515 return ErrIntOverflowTypes 5516 } 5517 if iNdEx >= l { 5518 return io.ErrUnexpectedEOF 5519 } 5520 b := dAtA[iNdEx] 5521 iNdEx++ 5522 m.Code |= uint32(b&0x7F) << shift 5523 if b < 0x80 { 5524 break 5525 } 5526 } 5527 default: 5528 iNdEx = preIndex 5529 skippy, err := skipTypes(dAtA[iNdEx:]) 5530 if err != nil { 5531 return err 5532 } 5533 if (skippy < 0) || (iNdEx+skippy) < 0 { 5534 return ErrInvalidLengthTypes 5535 } 5536 if (iNdEx + skippy) > l { 5537 return io.ErrUnexpectedEOF 5538 } 5539 iNdEx += skippy 5540 } 5541 } 5542 5543 if iNdEx > l { 5544 return io.ErrUnexpectedEOF 5545 } 5546 return nil 5547 } 5548 func (m *ResponseEndRecheckTx) Unmarshal(dAtA []byte) error { 5549 l := len(dAtA) 5550 iNdEx := 0 5551 for iNdEx < l { 5552 preIndex := iNdEx 5553 var wire uint64 5554 for shift := uint(0); ; shift += 7 { 5555 if shift >= 64 { 5556 return ErrIntOverflowTypes 5557 } 5558 if iNdEx >= l { 5559 return io.ErrUnexpectedEOF 5560 } 5561 b := dAtA[iNdEx] 5562 iNdEx++ 5563 wire |= uint64(b&0x7F) << shift 5564 if b < 0x80 { 5565 break 5566 } 5567 } 5568 fieldNum := int32(wire >> 3) 5569 wireType := int(wire & 0x7) 5570 if wireType == 4 { 5571 return fmt.Errorf("proto: ResponseEndRecheckTx: wiretype end group for non-group") 5572 } 5573 if fieldNum <= 0 { 5574 return fmt.Errorf("proto: ResponseEndRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) 5575 } 5576 switch fieldNum { 5577 case 1: 5578 if wireType != 0 { 5579 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 5580 } 5581 m.Code = 0 5582 for shift := uint(0); ; shift += 7 { 5583 if shift >= 64 { 5584 return ErrIntOverflowTypes 5585 } 5586 if iNdEx >= l { 5587 return io.ErrUnexpectedEOF 5588 } 5589 b := dAtA[iNdEx] 5590 iNdEx++ 5591 m.Code |= uint32(b&0x7F) << shift 5592 if b < 0x80 { 5593 break 5594 } 5595 } 5596 default: 5597 iNdEx = preIndex 5598 skippy, err := skipTypes(dAtA[iNdEx:]) 5599 if err != nil { 5600 return err 5601 } 5602 if (skippy < 0) || (iNdEx+skippy) < 0 { 5603 return ErrInvalidLengthTypes 5604 } 5605 if (iNdEx + skippy) > l { 5606 return io.ErrUnexpectedEOF 5607 } 5608 iNdEx += skippy 5609 } 5610 } 5611 5612 if iNdEx > l { 5613 return io.ErrUnexpectedEOF 5614 } 5615 return nil 5616 } 5617 func skipTypes(dAtA []byte) (n int, err error) { 5618 l := len(dAtA) 5619 iNdEx := 0 5620 depth := 0 5621 for iNdEx < l { 5622 var wire uint64 5623 for shift := uint(0); ; shift += 7 { 5624 if shift >= 64 { 5625 return 0, ErrIntOverflowTypes 5626 } 5627 if iNdEx >= l { 5628 return 0, io.ErrUnexpectedEOF 5629 } 5630 b := dAtA[iNdEx] 5631 iNdEx++ 5632 wire |= (uint64(b) & 0x7F) << shift 5633 if b < 0x80 { 5634 break 5635 } 5636 } 5637 wireType := int(wire & 0x7) 5638 switch wireType { 5639 case 0: 5640 for shift := uint(0); ; shift += 7 { 5641 if shift >= 64 { 5642 return 0, ErrIntOverflowTypes 5643 } 5644 if iNdEx >= l { 5645 return 0, io.ErrUnexpectedEOF 5646 } 5647 iNdEx++ 5648 if dAtA[iNdEx-1] < 0x80 { 5649 break 5650 } 5651 } 5652 case 1: 5653 iNdEx += 8 5654 case 2: 5655 var length int 5656 for shift := uint(0); ; shift += 7 { 5657 if shift >= 64 { 5658 return 0, ErrIntOverflowTypes 5659 } 5660 if iNdEx >= l { 5661 return 0, io.ErrUnexpectedEOF 5662 } 5663 b := dAtA[iNdEx] 5664 iNdEx++ 5665 length |= (int(b) & 0x7F) << shift 5666 if b < 0x80 { 5667 break 5668 } 5669 } 5670 if length < 0 { 5671 return 0, ErrInvalidLengthTypes 5672 } 5673 iNdEx += length 5674 case 3: 5675 depth++ 5676 case 4: 5677 if depth == 0 { 5678 return 0, ErrUnexpectedEndOfGroupTypes 5679 } 5680 depth-- 5681 case 5: 5682 iNdEx += 4 5683 default: 5684 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 5685 } 5686 if iNdEx < 0 { 5687 return 0, ErrInvalidLengthTypes 5688 } 5689 if depth == 0 { 5690 return iNdEx, nil 5691 } 5692 } 5693 return 0, io.ErrUnexpectedEOF 5694 } 5695 5696 var ( 5697 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 5698 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 5699 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 5700 )