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