github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/rpc/rpcevents/rpcevents.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: rpcevents.proto 3 4 package rpcevents 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 golang_proto "github.com/golang/protobuf/proto" 15 github_com_hyperledger_burrow_binary "github.com/hyperledger/burrow/binary" 16 exec "github.com/hyperledger/burrow/execution/exec" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = golang_proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 type Bound_BoundType int32 32 33 const ( 34 // Index is absolute index of an item 35 Bound_ABSOLUTE Bound_BoundType = 0 36 // Index is an offset relative to last item 37 Bound_RELATIVE Bound_BoundType = 1 38 // The first block 39 Bound_FIRST Bound_BoundType = 2 40 // Ignore provided index and evaluate to latest index 41 Bound_LATEST Bound_BoundType = 3 42 // Ignore provided index and stream new objects as they are generated 43 Bound_STREAM Bound_BoundType = 4 44 ) 45 46 var Bound_BoundType_name = map[int32]string{ 47 0: "ABSOLUTE", 48 1: "RELATIVE", 49 2: "FIRST", 50 3: "LATEST", 51 4: "STREAM", 52 } 53 54 var Bound_BoundType_value = map[string]int32{ 55 "ABSOLUTE": 0, 56 "RELATIVE": 1, 57 "FIRST": 2, 58 "LATEST": 3, 59 "STREAM": 4, 60 } 61 62 func (x Bound_BoundType) String() string { 63 return proto.EnumName(Bound_BoundType_name, int32(x)) 64 } 65 66 func (Bound_BoundType) EnumDescriptor() ([]byte, []int) { 67 return fileDescriptor_580b21d8d2fd68e4, []int{6, 0} 68 } 69 70 type GetBlockRequest struct { 71 // Height of block required 72 Height uint64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` 73 // Whether to wait for the block to become available 74 Wait bool `protobuf:"varint,2,opt,name=Wait,proto3" json:"Wait,omitempty"` 75 XXX_NoUnkeyedLiteral struct{} `json:"-"` 76 XXX_unrecognized []byte `json:"-"` 77 XXX_sizecache int32 `json:"-"` 78 } 79 80 func (m *GetBlockRequest) Reset() { *m = GetBlockRequest{} } 81 func (m *GetBlockRequest) String() string { return proto.CompactTextString(m) } 82 func (*GetBlockRequest) ProtoMessage() {} 83 func (*GetBlockRequest) Descriptor() ([]byte, []int) { 84 return fileDescriptor_580b21d8d2fd68e4, []int{0} 85 } 86 func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error { 87 return m.Unmarshal(b) 88 } 89 func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 90 b = b[:cap(b)] 91 n, err := m.MarshalToSizedBuffer(b) 92 if err != nil { 93 return nil, err 94 } 95 return b[:n], nil 96 } 97 func (m *GetBlockRequest) XXX_Merge(src proto.Message) { 98 xxx_messageInfo_GetBlockRequest.Merge(m, src) 99 } 100 func (m *GetBlockRequest) XXX_Size() int { 101 return m.Size() 102 } 103 func (m *GetBlockRequest) XXX_DiscardUnknown() { 104 xxx_messageInfo_GetBlockRequest.DiscardUnknown(m) 105 } 106 107 var xxx_messageInfo_GetBlockRequest proto.InternalMessageInfo 108 109 func (m *GetBlockRequest) GetHeight() uint64 { 110 if m != nil { 111 return m.Height 112 } 113 return 0 114 } 115 116 func (m *GetBlockRequest) GetWait() bool { 117 if m != nil { 118 return m.Wait 119 } 120 return false 121 } 122 123 func (*GetBlockRequest) XXX_MessageName() string { 124 return "rpcevents.GetBlockRequest" 125 } 126 127 type TxRequest struct { 128 // Height of block required 129 TxHash github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,1,opt,name=TxHash,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"TxHash"` 130 // Whether to wait for the block to become available 131 Wait bool `protobuf:"varint,2,opt,name=Wait,proto3" json:"Wait,omitempty"` 132 XXX_NoUnkeyedLiteral struct{} `json:"-"` 133 XXX_unrecognized []byte `json:"-"` 134 XXX_sizecache int32 `json:"-"` 135 } 136 137 func (m *TxRequest) Reset() { *m = TxRequest{} } 138 func (m *TxRequest) String() string { return proto.CompactTextString(m) } 139 func (*TxRequest) ProtoMessage() {} 140 func (*TxRequest) Descriptor() ([]byte, []int) { 141 return fileDescriptor_580b21d8d2fd68e4, []int{1} 142 } 143 func (m *TxRequest) XXX_Unmarshal(b []byte) error { 144 return m.Unmarshal(b) 145 } 146 func (m *TxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 147 b = b[:cap(b)] 148 n, err := m.MarshalToSizedBuffer(b) 149 if err != nil { 150 return nil, err 151 } 152 return b[:n], nil 153 } 154 func (m *TxRequest) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_TxRequest.Merge(m, src) 156 } 157 func (m *TxRequest) XXX_Size() int { 158 return m.Size() 159 } 160 func (m *TxRequest) XXX_DiscardUnknown() { 161 xxx_messageInfo_TxRequest.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_TxRequest proto.InternalMessageInfo 165 166 func (m *TxRequest) GetWait() bool { 167 if m != nil { 168 return m.Wait 169 } 170 return false 171 } 172 173 func (*TxRequest) XXX_MessageName() string { 174 return "rpcevents.TxRequest" 175 } 176 177 type BlocksRequest struct { 178 BlockRange *BlockRange `protobuf:"bytes,1,opt,name=BlockRange,proto3" json:"BlockRange,omitempty"` 179 // Specify a query on which to match the tags of events. 180 // Tag | Match type | Values 181 // ----------------------------------------- 182 // All events 183 // ----------------------------------------- 184 // TxType | String | "UnknownTx", "SendTx", "CallTx", "NameTx", "BondTx", "UnbondTx", "PermissionsTx", "GovernanceTx" 185 // TxHash | String | bytes 186 // EventType | String | "CallEvent", "LogEvent", "AccountInputEvent", "AccountOutputEvent" 187 // EventID | String | string 188 // Height | Integer | uint64 189 // Index | Integer | uint64 190 // MessageType | String | Go type name 191 // ----------------------------------------- 192 // Log event 193 // ----------------------------------------- 194 // Address | String | Address (hex) 195 // Log<0-4> | String | Word256 (hex) 196 // Log<0-4>Text | String | string (trimmed) 197 // ----------------------------------------- 198 // Call event 199 // ----------------------------------------- 200 // Origin | String | Address (hex) 201 // Callee | String | Address (hex) 202 // Caller | String | Address (hex) 203 // Value | Integer | uint64 204 // Gas | Integer | uint64 205 // StackDepth | Integer | uint64 206 // Exception | String | string 207 // ----------------------------------------- 208 // Tx event (input/output) 209 // ----------------------------------------- 210 // Exception | String | string 211 // 212 // For example: 213 // EventType = 'LogEvent' AND EventID CONTAINS 'bar' AND TxHash = '020304' AND Height >= 34 AND Index < 3 AND Address = 'DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF' 214 Query string `protobuf:"bytes,2,opt,name=Query,proto3" json:"Query,omitempty"` 215 XXX_NoUnkeyedLiteral struct{} `json:"-"` 216 XXX_unrecognized []byte `json:"-"` 217 XXX_sizecache int32 `json:"-"` 218 } 219 220 func (m *BlocksRequest) Reset() { *m = BlocksRequest{} } 221 func (m *BlocksRequest) String() string { return proto.CompactTextString(m) } 222 func (*BlocksRequest) ProtoMessage() {} 223 func (*BlocksRequest) Descriptor() ([]byte, []int) { 224 return fileDescriptor_580b21d8d2fd68e4, []int{2} 225 } 226 func (m *BlocksRequest) XXX_Unmarshal(b []byte) error { 227 return m.Unmarshal(b) 228 } 229 func (m *BlocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 230 b = b[:cap(b)] 231 n, err := m.MarshalToSizedBuffer(b) 232 if err != nil { 233 return nil, err 234 } 235 return b[:n], nil 236 } 237 func (m *BlocksRequest) XXX_Merge(src proto.Message) { 238 xxx_messageInfo_BlocksRequest.Merge(m, src) 239 } 240 func (m *BlocksRequest) XXX_Size() int { 241 return m.Size() 242 } 243 func (m *BlocksRequest) XXX_DiscardUnknown() { 244 xxx_messageInfo_BlocksRequest.DiscardUnknown(m) 245 } 246 247 var xxx_messageInfo_BlocksRequest proto.InternalMessageInfo 248 249 func (m *BlocksRequest) GetBlockRange() *BlockRange { 250 if m != nil { 251 return m.BlockRange 252 } 253 return nil 254 } 255 256 func (m *BlocksRequest) GetQuery() string { 257 if m != nil { 258 return m.Query 259 } 260 return "" 261 } 262 263 func (*BlocksRequest) XXX_MessageName() string { 264 return "rpcevents.BlocksRequest" 265 } 266 267 type EventsResponse struct { 268 Height uint64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` 269 Events []*exec.Event `protobuf:"bytes,2,rep,name=Events,proto3" json:"Events,omitempty"` 270 XXX_NoUnkeyedLiteral struct{} `json:"-"` 271 XXX_unrecognized []byte `json:"-"` 272 XXX_sizecache int32 `json:"-"` 273 } 274 275 func (m *EventsResponse) Reset() { *m = EventsResponse{} } 276 func (m *EventsResponse) String() string { return proto.CompactTextString(m) } 277 func (*EventsResponse) ProtoMessage() {} 278 func (*EventsResponse) Descriptor() ([]byte, []int) { 279 return fileDescriptor_580b21d8d2fd68e4, []int{3} 280 } 281 func (m *EventsResponse) XXX_Unmarshal(b []byte) error { 282 return m.Unmarshal(b) 283 } 284 func (m *EventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 285 b = b[:cap(b)] 286 n, err := m.MarshalToSizedBuffer(b) 287 if err != nil { 288 return nil, err 289 } 290 return b[:n], nil 291 } 292 func (m *EventsResponse) XXX_Merge(src proto.Message) { 293 xxx_messageInfo_EventsResponse.Merge(m, src) 294 } 295 func (m *EventsResponse) XXX_Size() int { 296 return m.Size() 297 } 298 func (m *EventsResponse) XXX_DiscardUnknown() { 299 xxx_messageInfo_EventsResponse.DiscardUnknown(m) 300 } 301 302 var xxx_messageInfo_EventsResponse proto.InternalMessageInfo 303 304 func (m *EventsResponse) GetHeight() uint64 { 305 if m != nil { 306 return m.Height 307 } 308 return 0 309 } 310 311 func (m *EventsResponse) GetEvents() []*exec.Event { 312 if m != nil { 313 return m.Events 314 } 315 return nil 316 } 317 318 func (*EventsResponse) XXX_MessageName() string { 319 return "rpcevents.EventsResponse" 320 } 321 322 type GetTxsRequest struct { 323 StartHeight uint64 `protobuf:"varint,1,opt,name=StartHeight,proto3" json:"StartHeight,omitempty"` 324 EndHeight uint64 `protobuf:"varint,2,opt,name=EndHeight,proto3" json:"EndHeight,omitempty"` 325 Query string `protobuf:"bytes,3,opt,name=Query,proto3" json:"Query,omitempty"` 326 XXX_NoUnkeyedLiteral struct{} `json:"-"` 327 XXX_unrecognized []byte `json:"-"` 328 XXX_sizecache int32 `json:"-"` 329 } 330 331 func (m *GetTxsRequest) Reset() { *m = GetTxsRequest{} } 332 func (m *GetTxsRequest) String() string { return proto.CompactTextString(m) } 333 func (*GetTxsRequest) ProtoMessage() {} 334 func (*GetTxsRequest) Descriptor() ([]byte, []int) { 335 return fileDescriptor_580b21d8d2fd68e4, []int{4} 336 } 337 func (m *GetTxsRequest) XXX_Unmarshal(b []byte) error { 338 return m.Unmarshal(b) 339 } 340 func (m *GetTxsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 341 b = b[:cap(b)] 342 n, err := m.MarshalToSizedBuffer(b) 343 if err != nil { 344 return nil, err 345 } 346 return b[:n], nil 347 } 348 func (m *GetTxsRequest) XXX_Merge(src proto.Message) { 349 xxx_messageInfo_GetTxsRequest.Merge(m, src) 350 } 351 func (m *GetTxsRequest) XXX_Size() int { 352 return m.Size() 353 } 354 func (m *GetTxsRequest) XXX_DiscardUnknown() { 355 xxx_messageInfo_GetTxsRequest.DiscardUnknown(m) 356 } 357 358 var xxx_messageInfo_GetTxsRequest proto.InternalMessageInfo 359 360 func (m *GetTxsRequest) GetStartHeight() uint64 { 361 if m != nil { 362 return m.StartHeight 363 } 364 return 0 365 } 366 367 func (m *GetTxsRequest) GetEndHeight() uint64 { 368 if m != nil { 369 return m.EndHeight 370 } 371 return 0 372 } 373 374 func (m *GetTxsRequest) GetQuery() string { 375 if m != nil { 376 return m.Query 377 } 378 return "" 379 } 380 381 func (*GetTxsRequest) XXX_MessageName() string { 382 return "rpcevents.GetTxsRequest" 383 } 384 385 type GetTxsResponse struct { 386 Height uint64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` 387 TxExecutions []*exec.TxExecution `protobuf:"bytes,2,rep,name=TxExecutions,proto3" json:"TxExecutions,omitempty"` 388 XXX_NoUnkeyedLiteral struct{} `json:"-"` 389 XXX_unrecognized []byte `json:"-"` 390 XXX_sizecache int32 `json:"-"` 391 } 392 393 func (m *GetTxsResponse) Reset() { *m = GetTxsResponse{} } 394 func (m *GetTxsResponse) String() string { return proto.CompactTextString(m) } 395 func (*GetTxsResponse) ProtoMessage() {} 396 func (*GetTxsResponse) Descriptor() ([]byte, []int) { 397 return fileDescriptor_580b21d8d2fd68e4, []int{5} 398 } 399 func (m *GetTxsResponse) XXX_Unmarshal(b []byte) error { 400 return m.Unmarshal(b) 401 } 402 func (m *GetTxsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 403 b = b[:cap(b)] 404 n, err := m.MarshalToSizedBuffer(b) 405 if err != nil { 406 return nil, err 407 } 408 return b[:n], nil 409 } 410 func (m *GetTxsResponse) XXX_Merge(src proto.Message) { 411 xxx_messageInfo_GetTxsResponse.Merge(m, src) 412 } 413 func (m *GetTxsResponse) XXX_Size() int { 414 return m.Size() 415 } 416 func (m *GetTxsResponse) XXX_DiscardUnknown() { 417 xxx_messageInfo_GetTxsResponse.DiscardUnknown(m) 418 } 419 420 var xxx_messageInfo_GetTxsResponse proto.InternalMessageInfo 421 422 func (m *GetTxsResponse) GetHeight() uint64 { 423 if m != nil { 424 return m.Height 425 } 426 return 0 427 } 428 429 func (m *GetTxsResponse) GetTxExecutions() []*exec.TxExecution { 430 if m != nil { 431 return m.TxExecutions 432 } 433 return nil 434 } 435 436 func (*GetTxsResponse) XXX_MessageName() string { 437 return "rpcevents.GetTxsResponse" 438 } 439 440 type Bound struct { 441 Type Bound_BoundType `protobuf:"varint,1,opt,name=Type,proto3,enum=rpcevents.Bound_BoundType" json:"Type,omitempty"` 442 Index uint64 `protobuf:"varint,2,opt,name=Index,proto3" json:"Index,omitempty"` 443 XXX_NoUnkeyedLiteral struct{} `json:"-"` 444 XXX_unrecognized []byte `json:"-"` 445 XXX_sizecache int32 `json:"-"` 446 } 447 448 func (m *Bound) Reset() { *m = Bound{} } 449 func (m *Bound) String() string { return proto.CompactTextString(m) } 450 func (*Bound) ProtoMessage() {} 451 func (*Bound) Descriptor() ([]byte, []int) { 452 return fileDescriptor_580b21d8d2fd68e4, []int{6} 453 } 454 func (m *Bound) XXX_Unmarshal(b []byte) error { 455 return m.Unmarshal(b) 456 } 457 func (m *Bound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 458 b = b[:cap(b)] 459 n, err := m.MarshalToSizedBuffer(b) 460 if err != nil { 461 return nil, err 462 } 463 return b[:n], nil 464 } 465 func (m *Bound) XXX_Merge(src proto.Message) { 466 xxx_messageInfo_Bound.Merge(m, src) 467 } 468 func (m *Bound) XXX_Size() int { 469 return m.Size() 470 } 471 func (m *Bound) XXX_DiscardUnknown() { 472 xxx_messageInfo_Bound.DiscardUnknown(m) 473 } 474 475 var xxx_messageInfo_Bound proto.InternalMessageInfo 476 477 func (m *Bound) GetType() Bound_BoundType { 478 if m != nil { 479 return m.Type 480 } 481 return Bound_ABSOLUTE 482 } 483 484 func (m *Bound) GetIndex() uint64 { 485 if m != nil { 486 return m.Index 487 } 488 return 0 489 } 490 491 func (*Bound) XXX_MessageName() string { 492 return "rpcevents.Bound" 493 } 494 495 // An inclusive range of blocks to include in output 496 type BlockRange struct { 497 // Bounds can be set to: 498 // absolute: block height 499 // relative: block height counting back from latest 500 // latest: latest block when call is processed 501 // stream: for End keep sending new blocks, for start same as latest 502 Start *Bound `protobuf:"bytes,1,opt,name=Start,proto3" json:"Start,omitempty"` 503 End *Bound `protobuf:"bytes,2,opt,name=End,proto3" json:"End,omitempty"` 504 XXX_NoUnkeyedLiteral struct{} `json:"-"` 505 XXX_unrecognized []byte `json:"-"` 506 XXX_sizecache int32 `json:"-"` 507 } 508 509 func (m *BlockRange) Reset() { *m = BlockRange{} } 510 func (m *BlockRange) String() string { return proto.CompactTextString(m) } 511 func (*BlockRange) ProtoMessage() {} 512 func (*BlockRange) Descriptor() ([]byte, []int) { 513 return fileDescriptor_580b21d8d2fd68e4, []int{7} 514 } 515 func (m *BlockRange) XXX_Unmarshal(b []byte) error { 516 return m.Unmarshal(b) 517 } 518 func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 519 b = b[:cap(b)] 520 n, err := m.MarshalToSizedBuffer(b) 521 if err != nil { 522 return nil, err 523 } 524 return b[:n], nil 525 } 526 func (m *BlockRange) XXX_Merge(src proto.Message) { 527 xxx_messageInfo_BlockRange.Merge(m, src) 528 } 529 func (m *BlockRange) XXX_Size() int { 530 return m.Size() 531 } 532 func (m *BlockRange) XXX_DiscardUnknown() { 533 xxx_messageInfo_BlockRange.DiscardUnknown(m) 534 } 535 536 var xxx_messageInfo_BlockRange proto.InternalMessageInfo 537 538 func (m *BlockRange) GetStart() *Bound { 539 if m != nil { 540 return m.Start 541 } 542 return nil 543 } 544 545 func (m *BlockRange) GetEnd() *Bound { 546 if m != nil { 547 return m.End 548 } 549 return nil 550 } 551 552 func (*BlockRange) XXX_MessageName() string { 553 return "rpcevents.BlockRange" 554 } 555 func init() { 556 proto.RegisterEnum("rpcevents.Bound_BoundType", Bound_BoundType_name, Bound_BoundType_value) 557 golang_proto.RegisterEnum("rpcevents.Bound_BoundType", Bound_BoundType_name, Bound_BoundType_value) 558 proto.RegisterType((*GetBlockRequest)(nil), "rpcevents.GetBlockRequest") 559 golang_proto.RegisterType((*GetBlockRequest)(nil), "rpcevents.GetBlockRequest") 560 proto.RegisterType((*TxRequest)(nil), "rpcevents.TxRequest") 561 golang_proto.RegisterType((*TxRequest)(nil), "rpcevents.TxRequest") 562 proto.RegisterType((*BlocksRequest)(nil), "rpcevents.BlocksRequest") 563 golang_proto.RegisterType((*BlocksRequest)(nil), "rpcevents.BlocksRequest") 564 proto.RegisterType((*EventsResponse)(nil), "rpcevents.EventsResponse") 565 golang_proto.RegisterType((*EventsResponse)(nil), "rpcevents.EventsResponse") 566 proto.RegisterType((*GetTxsRequest)(nil), "rpcevents.GetTxsRequest") 567 golang_proto.RegisterType((*GetTxsRequest)(nil), "rpcevents.GetTxsRequest") 568 proto.RegisterType((*GetTxsResponse)(nil), "rpcevents.GetTxsResponse") 569 golang_proto.RegisterType((*GetTxsResponse)(nil), "rpcevents.GetTxsResponse") 570 proto.RegisterType((*Bound)(nil), "rpcevents.Bound") 571 golang_proto.RegisterType((*Bound)(nil), "rpcevents.Bound") 572 proto.RegisterType((*BlockRange)(nil), "rpcevents.BlockRange") 573 golang_proto.RegisterType((*BlockRange)(nil), "rpcevents.BlockRange") 574 } 575 576 func init() { proto.RegisterFile("rpcevents.proto", fileDescriptor_580b21d8d2fd68e4) } 577 func init() { golang_proto.RegisterFile("rpcevents.proto", fileDescriptor_580b21d8d2fd68e4) } 578 579 var fileDescriptor_580b21d8d2fd68e4 = []byte{ 580 // 580 bytes of a gzipped FileDescriptorProto 581 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x5d, 0x6b, 0xd4, 0x40, 582 0x14, 0xed, 0xec, 0x17, 0xcd, 0xdd, 0x7e, 0xc4, 0xa1, 0xca, 0xba, 0x48, 0xba, 0x44, 0x90, 0x82, 583 0x34, 0x5b, 0x56, 0x8a, 0x4f, 0x22, 0x1b, 0x88, 0x6d, 0xa5, 0x45, 0x9c, 0x8c, 0x1f, 0x88, 0x20, 584 0xd9, 0xec, 0x90, 0x5d, 0x6c, 0x93, 0x98, 0x4c, 0x34, 0xfb, 0x53, 0xfc, 0x2b, 0x3e, 0xf9, 0xd8, 585 0x47, 0x1f, 0xc5, 0x87, 0x22, 0xdb, 0x3f, 0x22, 0x99, 0x49, 0xb2, 0xd9, 0x5a, 0xeb, 0xcb, 0x32, 586 0xf7, 0x9e, 0x73, 0xef, 0x3d, 0x7b, 0xe6, 0x4e, 0x60, 0x33, 0x0a, 0x5d, 0xf6, 0x99, 0xf9, 0x3c, 587 0x36, 0xc2, 0x28, 0xe0, 0x01, 0x56, 0xca, 0x44, 0x77, 0xcb, 0x0b, 0xbc, 0x40, 0x64, 0xfb, 0xd9, 588 0x49, 0x12, 0xba, 0xc0, 0x52, 0xe6, 0xca, 0xb3, 0xfe, 0x04, 0x36, 0x0f, 0x18, 0x37, 0x4f, 0x03, 589 0xf7, 0x23, 0x61, 0x9f, 0x12, 0x16, 0x73, 0x7c, 0x07, 0x5a, 0x87, 0x6c, 0xea, 0x4d, 0x78, 0x07, 590 0xf5, 0xd0, 0x4e, 0x83, 0xe4, 0x11, 0xc6, 0xd0, 0x78, 0xe3, 0x4c, 0x79, 0xa7, 0xd6, 0x43, 0x3b, 591 0xab, 0x44, 0x9c, 0x75, 0x1f, 0x14, 0x9a, 0x16, 0x85, 0x27, 0xd0, 0xa2, 0xe9, 0xa1, 0x13, 0x4f, 592 0x44, 0xe1, 0x9a, 0xb9, 0x7f, 0x7e, 0xb1, 0xbd, 0xf2, 0xeb, 0x62, 0x7b, 0xd7, 0x9b, 0xf2, 0x49, 593 0x32, 0x32, 0xdc, 0xe0, 0xac, 0x3f, 0x99, 0x85, 0x2c, 0x3a, 0x65, 0x63, 0x8f, 0x45, 0xfd, 0x51, 594 0x12, 0x45, 0xc1, 0x97, 0xfe, 0x68, 0xea, 0x3b, 0xd1, 0xcc, 0x38, 0x64, 0xa9, 0x39, 0xe3, 0x2c, 595 0x26, 0x79, 0x93, 0x6b, 0xe7, 0xbd, 0x87, 0x75, 0xa1, 0x35, 0x2e, 0x66, 0xee, 0x03, 0x48, 0xf1, 596 0x8e, 0xef, 0x31, 0x31, 0xb7, 0x3d, 0xb8, 0x6d, 0x2c, 0x2c, 0x59, 0x80, 0xa4, 0x42, 0xc4, 0x5b, 597 0xd0, 0x7c, 0x99, 0xb0, 0x68, 0x26, 0x9a, 0x2b, 0x44, 0x06, 0xfa, 0x09, 0x6c, 0x58, 0xa2, 0x8c, 598 0xb0, 0x38, 0x0c, 0xfc, 0x98, 0xfd, 0xd3, 0x8b, 0xfb, 0xd0, 0x92, 0xcc, 0x4e, 0xad, 0x57, 0xdf, 599 0x69, 0x0f, 0xda, 0x86, 0xf0, 0x54, 0xe4, 0x48, 0x0e, 0xe9, 0x0c, 0xd6, 0x0f, 0x18, 0xa7, 0x69, 600 0x29, 0xb6, 0x07, 0x6d, 0x9b, 0x3b, 0x11, 0x5f, 0x6a, 0x59, 0x4d, 0xe1, 0x7b, 0xa0, 0x58, 0xfe, 601 0x38, 0xc7, 0x6b, 0x02, 0x5f, 0x24, 0x16, 0xaa, 0xeb, 0x55, 0xd5, 0x1f, 0x60, 0xa3, 0x18, 0xf3, 602 0x1f, 0xd5, 0xfb, 0xb0, 0x46, 0x53, 0x2b, 0x65, 0x6e, 0xc2, 0xa7, 0x81, 0x5f, 0x68, 0xbf, 0x25, 603 0xb5, 0x57, 0x10, 0xb2, 0x44, 0xd3, 0xbf, 0x22, 0x68, 0x9a, 0x41, 0xe2, 0x8f, 0xb1, 0x01, 0x0d, 604 0x3a, 0x0b, 0xa5, 0xcf, 0x1b, 0x83, 0x6e, 0xd5, 0xe7, 0x0c, 0x97, 0xbf, 0x19, 0x83, 0x08, 0x5e, 605 0x26, 0xf8, 0xc8, 0x1f, 0xb3, 0x34, 0xff, 0x2b, 0x32, 0xd0, 0x9f, 0x83, 0x52, 0x12, 0xf1, 0x1a, 606 0xac, 0x0e, 0x4d, 0xfb, 0xc5, 0xf1, 0x2b, 0x6a, 0xa9, 0x2b, 0x59, 0x44, 0xac, 0xe3, 0x21, 0x3d, 607 0x7a, 0x6d, 0xa9, 0x08, 0x2b, 0xd0, 0x7c, 0x76, 0x44, 0x6c, 0xaa, 0xd6, 0x30, 0x40, 0xeb, 0x78, 608 0x48, 0x2d, 0x9b, 0xaa, 0xf5, 0xec, 0x6c, 0x53, 0x62, 0x0d, 0x4f, 0xd4, 0x86, 0xfe, 0xb6, 0x7a, 609 0xff, 0xf8, 0x01, 0x34, 0x85, 0x9b, 0xf9, 0x22, 0xa8, 0x57, 0x05, 0x12, 0x09, 0x63, 0x1d, 0xea, 610 0x96, 0x3f, 0x16, 0xaa, 0xae, 0x63, 0x65, 0xe0, 0xe0, 0x1b, 0x82, 0xcd, 0xd2, 0x04, 0x79, 0xa3, 611 0xf8, 0x31, 0xb4, 0x6c, 0x1e, 0x31, 0xe7, 0x0c, 0x77, 0xae, 0xee, 0x58, 0x71, 0xc9, 0xdd, 0xdc, 612 0x4e, 0xc9, 0x13, 0x75, 0x7b, 0x08, 0xef, 0x42, 0x8d, 0xa6, 0x78, 0xab, 0x52, 0x54, 0x3e, 0x9b, 613 0xee, 0xdf, 0xfe, 0xe3, 0xa7, 0xc5, 0x7a, 0xdd, 0x30, 0xe7, 0x6e, 0x05, 0x59, 0xde, 0xda, 0x3d, 614 0x64, 0x5a, 0xe7, 0x73, 0x0d, 0xfd, 0x98, 0x6b, 0xe8, 0xe7, 0x5c, 0x43, 0xbf, 0xe7, 0x1a, 0xfa, 615 0x7e, 0xa9, 0xa1, 0xf3, 0x4b, 0x0d, 0xbd, 0x7b, 0x78, 0xf3, 0x63, 0x8c, 0x42, 0xb7, 0x5f, 0xf6, 616 0x1d, 0xb5, 0xc4, 0x47, 0xe2, 0xd1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x17, 0xe1, 0x08, 0x02, 617 0x64, 0x04, 0x00, 0x00, 618 } 619 620 func (m *GetBlockRequest) Marshal() (dAtA []byte, err error) { 621 size := m.Size() 622 dAtA = make([]byte, size) 623 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 624 if err != nil { 625 return nil, err 626 } 627 return dAtA[:n], nil 628 } 629 630 func (m *GetBlockRequest) MarshalTo(dAtA []byte) (int, error) { 631 size := m.Size() 632 return m.MarshalToSizedBuffer(dAtA[:size]) 633 } 634 635 func (m *GetBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 636 i := len(dAtA) 637 _ = i 638 var l int 639 _ = l 640 if m.XXX_unrecognized != nil { 641 i -= len(m.XXX_unrecognized) 642 copy(dAtA[i:], m.XXX_unrecognized) 643 } 644 if m.Wait { 645 i-- 646 if m.Wait { 647 dAtA[i] = 1 648 } else { 649 dAtA[i] = 0 650 } 651 i-- 652 dAtA[i] = 0x10 653 } 654 if m.Height != 0 { 655 i = encodeVarintRpcevents(dAtA, i, uint64(m.Height)) 656 i-- 657 dAtA[i] = 0x8 658 } 659 return len(dAtA) - i, nil 660 } 661 662 func (m *TxRequest) Marshal() (dAtA []byte, err error) { 663 size := m.Size() 664 dAtA = make([]byte, size) 665 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 666 if err != nil { 667 return nil, err 668 } 669 return dAtA[:n], nil 670 } 671 672 func (m *TxRequest) MarshalTo(dAtA []byte) (int, error) { 673 size := m.Size() 674 return m.MarshalToSizedBuffer(dAtA[:size]) 675 } 676 677 func (m *TxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 678 i := len(dAtA) 679 _ = i 680 var l int 681 _ = l 682 if m.XXX_unrecognized != nil { 683 i -= len(m.XXX_unrecognized) 684 copy(dAtA[i:], m.XXX_unrecognized) 685 } 686 if m.Wait { 687 i-- 688 if m.Wait { 689 dAtA[i] = 1 690 } else { 691 dAtA[i] = 0 692 } 693 i-- 694 dAtA[i] = 0x10 695 } 696 { 697 size := m.TxHash.Size() 698 i -= size 699 if _, err := m.TxHash.MarshalTo(dAtA[i:]); err != nil { 700 return 0, err 701 } 702 i = encodeVarintRpcevents(dAtA, i, uint64(size)) 703 } 704 i-- 705 dAtA[i] = 0xa 706 return len(dAtA) - i, nil 707 } 708 709 func (m *BlocksRequest) Marshal() (dAtA []byte, err error) { 710 size := m.Size() 711 dAtA = make([]byte, size) 712 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 713 if err != nil { 714 return nil, err 715 } 716 return dAtA[:n], nil 717 } 718 719 func (m *BlocksRequest) MarshalTo(dAtA []byte) (int, error) { 720 size := m.Size() 721 return m.MarshalToSizedBuffer(dAtA[:size]) 722 } 723 724 func (m *BlocksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 725 i := len(dAtA) 726 _ = i 727 var l int 728 _ = l 729 if m.XXX_unrecognized != nil { 730 i -= len(m.XXX_unrecognized) 731 copy(dAtA[i:], m.XXX_unrecognized) 732 } 733 if len(m.Query) > 0 { 734 i -= len(m.Query) 735 copy(dAtA[i:], m.Query) 736 i = encodeVarintRpcevents(dAtA, i, uint64(len(m.Query))) 737 i-- 738 dAtA[i] = 0x12 739 } 740 if m.BlockRange != nil { 741 { 742 size, err := m.BlockRange.MarshalToSizedBuffer(dAtA[:i]) 743 if err != nil { 744 return 0, err 745 } 746 i -= size 747 i = encodeVarintRpcevents(dAtA, i, uint64(size)) 748 } 749 i-- 750 dAtA[i] = 0xa 751 } 752 return len(dAtA) - i, nil 753 } 754 755 func (m *EventsResponse) Marshal() (dAtA []byte, err error) { 756 size := m.Size() 757 dAtA = make([]byte, size) 758 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 759 if err != nil { 760 return nil, err 761 } 762 return dAtA[:n], nil 763 } 764 765 func (m *EventsResponse) MarshalTo(dAtA []byte) (int, error) { 766 size := m.Size() 767 return m.MarshalToSizedBuffer(dAtA[:size]) 768 } 769 770 func (m *EventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 771 i := len(dAtA) 772 _ = i 773 var l int 774 _ = l 775 if m.XXX_unrecognized != nil { 776 i -= len(m.XXX_unrecognized) 777 copy(dAtA[i:], m.XXX_unrecognized) 778 } 779 if len(m.Events) > 0 { 780 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 781 { 782 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 783 if err != nil { 784 return 0, err 785 } 786 i -= size 787 i = encodeVarintRpcevents(dAtA, i, uint64(size)) 788 } 789 i-- 790 dAtA[i] = 0x12 791 } 792 } 793 if m.Height != 0 { 794 i = encodeVarintRpcevents(dAtA, i, uint64(m.Height)) 795 i-- 796 dAtA[i] = 0x8 797 } 798 return len(dAtA) - i, nil 799 } 800 801 func (m *GetTxsRequest) Marshal() (dAtA []byte, err error) { 802 size := m.Size() 803 dAtA = make([]byte, size) 804 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 805 if err != nil { 806 return nil, err 807 } 808 return dAtA[:n], nil 809 } 810 811 func (m *GetTxsRequest) MarshalTo(dAtA []byte) (int, error) { 812 size := m.Size() 813 return m.MarshalToSizedBuffer(dAtA[:size]) 814 } 815 816 func (m *GetTxsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 817 i := len(dAtA) 818 _ = i 819 var l int 820 _ = l 821 if m.XXX_unrecognized != nil { 822 i -= len(m.XXX_unrecognized) 823 copy(dAtA[i:], m.XXX_unrecognized) 824 } 825 if len(m.Query) > 0 { 826 i -= len(m.Query) 827 copy(dAtA[i:], m.Query) 828 i = encodeVarintRpcevents(dAtA, i, uint64(len(m.Query))) 829 i-- 830 dAtA[i] = 0x1a 831 } 832 if m.EndHeight != 0 { 833 i = encodeVarintRpcevents(dAtA, i, uint64(m.EndHeight)) 834 i-- 835 dAtA[i] = 0x10 836 } 837 if m.StartHeight != 0 { 838 i = encodeVarintRpcevents(dAtA, i, uint64(m.StartHeight)) 839 i-- 840 dAtA[i] = 0x8 841 } 842 return len(dAtA) - i, nil 843 } 844 845 func (m *GetTxsResponse) Marshal() (dAtA []byte, err error) { 846 size := m.Size() 847 dAtA = make([]byte, size) 848 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 849 if err != nil { 850 return nil, err 851 } 852 return dAtA[:n], nil 853 } 854 855 func (m *GetTxsResponse) MarshalTo(dAtA []byte) (int, error) { 856 size := m.Size() 857 return m.MarshalToSizedBuffer(dAtA[:size]) 858 } 859 860 func (m *GetTxsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 861 i := len(dAtA) 862 _ = i 863 var l int 864 _ = l 865 if m.XXX_unrecognized != nil { 866 i -= len(m.XXX_unrecognized) 867 copy(dAtA[i:], m.XXX_unrecognized) 868 } 869 if len(m.TxExecutions) > 0 { 870 for iNdEx := len(m.TxExecutions) - 1; iNdEx >= 0; iNdEx-- { 871 { 872 size, err := m.TxExecutions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 873 if err != nil { 874 return 0, err 875 } 876 i -= size 877 i = encodeVarintRpcevents(dAtA, i, uint64(size)) 878 } 879 i-- 880 dAtA[i] = 0x12 881 } 882 } 883 if m.Height != 0 { 884 i = encodeVarintRpcevents(dAtA, i, uint64(m.Height)) 885 i-- 886 dAtA[i] = 0x8 887 } 888 return len(dAtA) - i, nil 889 } 890 891 func (m *Bound) Marshal() (dAtA []byte, err error) { 892 size := m.Size() 893 dAtA = make([]byte, size) 894 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 895 if err != nil { 896 return nil, err 897 } 898 return dAtA[:n], nil 899 } 900 901 func (m *Bound) MarshalTo(dAtA []byte) (int, error) { 902 size := m.Size() 903 return m.MarshalToSizedBuffer(dAtA[:size]) 904 } 905 906 func (m *Bound) MarshalToSizedBuffer(dAtA []byte) (int, error) { 907 i := len(dAtA) 908 _ = i 909 var l int 910 _ = l 911 if m.XXX_unrecognized != nil { 912 i -= len(m.XXX_unrecognized) 913 copy(dAtA[i:], m.XXX_unrecognized) 914 } 915 if m.Index != 0 { 916 i = encodeVarintRpcevents(dAtA, i, uint64(m.Index)) 917 i-- 918 dAtA[i] = 0x10 919 } 920 if m.Type != 0 { 921 i = encodeVarintRpcevents(dAtA, i, uint64(m.Type)) 922 i-- 923 dAtA[i] = 0x8 924 } 925 return len(dAtA) - i, nil 926 } 927 928 func (m *BlockRange) Marshal() (dAtA []byte, err error) { 929 size := m.Size() 930 dAtA = make([]byte, size) 931 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 932 if err != nil { 933 return nil, err 934 } 935 return dAtA[:n], nil 936 } 937 938 func (m *BlockRange) MarshalTo(dAtA []byte) (int, error) { 939 size := m.Size() 940 return m.MarshalToSizedBuffer(dAtA[:size]) 941 } 942 943 func (m *BlockRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { 944 i := len(dAtA) 945 _ = i 946 var l int 947 _ = l 948 if m.XXX_unrecognized != nil { 949 i -= len(m.XXX_unrecognized) 950 copy(dAtA[i:], m.XXX_unrecognized) 951 } 952 if m.End != nil { 953 { 954 size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) 955 if err != nil { 956 return 0, err 957 } 958 i -= size 959 i = encodeVarintRpcevents(dAtA, i, uint64(size)) 960 } 961 i-- 962 dAtA[i] = 0x12 963 } 964 if m.Start != nil { 965 { 966 size, err := m.Start.MarshalToSizedBuffer(dAtA[:i]) 967 if err != nil { 968 return 0, err 969 } 970 i -= size 971 i = encodeVarintRpcevents(dAtA, i, uint64(size)) 972 } 973 i-- 974 dAtA[i] = 0xa 975 } 976 return len(dAtA) - i, nil 977 } 978 979 func encodeVarintRpcevents(dAtA []byte, offset int, v uint64) int { 980 offset -= sovRpcevents(v) 981 base := offset 982 for v >= 1<<7 { 983 dAtA[offset] = uint8(v&0x7f | 0x80) 984 v >>= 7 985 offset++ 986 } 987 dAtA[offset] = uint8(v) 988 return base 989 } 990 func (m *GetBlockRequest) Size() (n int) { 991 if m == nil { 992 return 0 993 } 994 var l int 995 _ = l 996 if m.Height != 0 { 997 n += 1 + sovRpcevents(uint64(m.Height)) 998 } 999 if m.Wait { 1000 n += 2 1001 } 1002 if m.XXX_unrecognized != nil { 1003 n += len(m.XXX_unrecognized) 1004 } 1005 return n 1006 } 1007 1008 func (m *TxRequest) Size() (n int) { 1009 if m == nil { 1010 return 0 1011 } 1012 var l int 1013 _ = l 1014 l = m.TxHash.Size() 1015 n += 1 + l + sovRpcevents(uint64(l)) 1016 if m.Wait { 1017 n += 2 1018 } 1019 if m.XXX_unrecognized != nil { 1020 n += len(m.XXX_unrecognized) 1021 } 1022 return n 1023 } 1024 1025 func (m *BlocksRequest) Size() (n int) { 1026 if m == nil { 1027 return 0 1028 } 1029 var l int 1030 _ = l 1031 if m.BlockRange != nil { 1032 l = m.BlockRange.Size() 1033 n += 1 + l + sovRpcevents(uint64(l)) 1034 } 1035 l = len(m.Query) 1036 if l > 0 { 1037 n += 1 + l + sovRpcevents(uint64(l)) 1038 } 1039 if m.XXX_unrecognized != nil { 1040 n += len(m.XXX_unrecognized) 1041 } 1042 return n 1043 } 1044 1045 func (m *EventsResponse) Size() (n int) { 1046 if m == nil { 1047 return 0 1048 } 1049 var l int 1050 _ = l 1051 if m.Height != 0 { 1052 n += 1 + sovRpcevents(uint64(m.Height)) 1053 } 1054 if len(m.Events) > 0 { 1055 for _, e := range m.Events { 1056 l = e.Size() 1057 n += 1 + l + sovRpcevents(uint64(l)) 1058 } 1059 } 1060 if m.XXX_unrecognized != nil { 1061 n += len(m.XXX_unrecognized) 1062 } 1063 return n 1064 } 1065 1066 func (m *GetTxsRequest) Size() (n int) { 1067 if m == nil { 1068 return 0 1069 } 1070 var l int 1071 _ = l 1072 if m.StartHeight != 0 { 1073 n += 1 + sovRpcevents(uint64(m.StartHeight)) 1074 } 1075 if m.EndHeight != 0 { 1076 n += 1 + sovRpcevents(uint64(m.EndHeight)) 1077 } 1078 l = len(m.Query) 1079 if l > 0 { 1080 n += 1 + l + sovRpcevents(uint64(l)) 1081 } 1082 if m.XXX_unrecognized != nil { 1083 n += len(m.XXX_unrecognized) 1084 } 1085 return n 1086 } 1087 1088 func (m *GetTxsResponse) Size() (n int) { 1089 if m == nil { 1090 return 0 1091 } 1092 var l int 1093 _ = l 1094 if m.Height != 0 { 1095 n += 1 + sovRpcevents(uint64(m.Height)) 1096 } 1097 if len(m.TxExecutions) > 0 { 1098 for _, e := range m.TxExecutions { 1099 l = e.Size() 1100 n += 1 + l + sovRpcevents(uint64(l)) 1101 } 1102 } 1103 if m.XXX_unrecognized != nil { 1104 n += len(m.XXX_unrecognized) 1105 } 1106 return n 1107 } 1108 1109 func (m *Bound) Size() (n int) { 1110 if m == nil { 1111 return 0 1112 } 1113 var l int 1114 _ = l 1115 if m.Type != 0 { 1116 n += 1 + sovRpcevents(uint64(m.Type)) 1117 } 1118 if m.Index != 0 { 1119 n += 1 + sovRpcevents(uint64(m.Index)) 1120 } 1121 if m.XXX_unrecognized != nil { 1122 n += len(m.XXX_unrecognized) 1123 } 1124 return n 1125 } 1126 1127 func (m *BlockRange) Size() (n int) { 1128 if m == nil { 1129 return 0 1130 } 1131 var l int 1132 _ = l 1133 if m.Start != nil { 1134 l = m.Start.Size() 1135 n += 1 + l + sovRpcevents(uint64(l)) 1136 } 1137 if m.End != nil { 1138 l = m.End.Size() 1139 n += 1 + l + sovRpcevents(uint64(l)) 1140 } 1141 if m.XXX_unrecognized != nil { 1142 n += len(m.XXX_unrecognized) 1143 } 1144 return n 1145 } 1146 1147 func sovRpcevents(x uint64) (n int) { 1148 return (math_bits.Len64(x|1) + 6) / 7 1149 } 1150 func sozRpcevents(x uint64) (n int) { 1151 return sovRpcevents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1152 } 1153 func (m *GetBlockRequest) Unmarshal(dAtA []byte) error { 1154 l := len(dAtA) 1155 iNdEx := 0 1156 for iNdEx < l { 1157 preIndex := iNdEx 1158 var wire uint64 1159 for shift := uint(0); ; shift += 7 { 1160 if shift >= 64 { 1161 return ErrIntOverflowRpcevents 1162 } 1163 if iNdEx >= l { 1164 return io.ErrUnexpectedEOF 1165 } 1166 b := dAtA[iNdEx] 1167 iNdEx++ 1168 wire |= uint64(b&0x7F) << shift 1169 if b < 0x80 { 1170 break 1171 } 1172 } 1173 fieldNum := int32(wire >> 3) 1174 wireType := int(wire & 0x7) 1175 if wireType == 4 { 1176 return fmt.Errorf("proto: GetBlockRequest: wiretype end group for non-group") 1177 } 1178 if fieldNum <= 0 { 1179 return fmt.Errorf("proto: GetBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1180 } 1181 switch fieldNum { 1182 case 1: 1183 if wireType != 0 { 1184 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 1185 } 1186 m.Height = 0 1187 for shift := uint(0); ; shift += 7 { 1188 if shift >= 64 { 1189 return ErrIntOverflowRpcevents 1190 } 1191 if iNdEx >= l { 1192 return io.ErrUnexpectedEOF 1193 } 1194 b := dAtA[iNdEx] 1195 iNdEx++ 1196 m.Height |= uint64(b&0x7F) << shift 1197 if b < 0x80 { 1198 break 1199 } 1200 } 1201 case 2: 1202 if wireType != 0 { 1203 return fmt.Errorf("proto: wrong wireType = %d for field Wait", wireType) 1204 } 1205 var v int 1206 for shift := uint(0); ; shift += 7 { 1207 if shift >= 64 { 1208 return ErrIntOverflowRpcevents 1209 } 1210 if iNdEx >= l { 1211 return io.ErrUnexpectedEOF 1212 } 1213 b := dAtA[iNdEx] 1214 iNdEx++ 1215 v |= int(b&0x7F) << shift 1216 if b < 0x80 { 1217 break 1218 } 1219 } 1220 m.Wait = bool(v != 0) 1221 default: 1222 iNdEx = preIndex 1223 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1224 if err != nil { 1225 return err 1226 } 1227 if (skippy < 0) || (iNdEx+skippy) < 0 { 1228 return ErrInvalidLengthRpcevents 1229 } 1230 if (iNdEx + skippy) > l { 1231 return io.ErrUnexpectedEOF 1232 } 1233 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1234 iNdEx += skippy 1235 } 1236 } 1237 1238 if iNdEx > l { 1239 return io.ErrUnexpectedEOF 1240 } 1241 return nil 1242 } 1243 func (m *TxRequest) Unmarshal(dAtA []byte) error { 1244 l := len(dAtA) 1245 iNdEx := 0 1246 for iNdEx < l { 1247 preIndex := iNdEx 1248 var wire uint64 1249 for shift := uint(0); ; shift += 7 { 1250 if shift >= 64 { 1251 return ErrIntOverflowRpcevents 1252 } 1253 if iNdEx >= l { 1254 return io.ErrUnexpectedEOF 1255 } 1256 b := dAtA[iNdEx] 1257 iNdEx++ 1258 wire |= uint64(b&0x7F) << shift 1259 if b < 0x80 { 1260 break 1261 } 1262 } 1263 fieldNum := int32(wire >> 3) 1264 wireType := int(wire & 0x7) 1265 if wireType == 4 { 1266 return fmt.Errorf("proto: TxRequest: wiretype end group for non-group") 1267 } 1268 if fieldNum <= 0 { 1269 return fmt.Errorf("proto: TxRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1270 } 1271 switch fieldNum { 1272 case 1: 1273 if wireType != 2 { 1274 return fmt.Errorf("proto: wrong wireType = %d for field TxHash", wireType) 1275 } 1276 var byteLen int 1277 for shift := uint(0); ; shift += 7 { 1278 if shift >= 64 { 1279 return ErrIntOverflowRpcevents 1280 } 1281 if iNdEx >= l { 1282 return io.ErrUnexpectedEOF 1283 } 1284 b := dAtA[iNdEx] 1285 iNdEx++ 1286 byteLen |= int(b&0x7F) << shift 1287 if b < 0x80 { 1288 break 1289 } 1290 } 1291 if byteLen < 0 { 1292 return ErrInvalidLengthRpcevents 1293 } 1294 postIndex := iNdEx + byteLen 1295 if postIndex < 0 { 1296 return ErrInvalidLengthRpcevents 1297 } 1298 if postIndex > l { 1299 return io.ErrUnexpectedEOF 1300 } 1301 if err := m.TxHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1302 return err 1303 } 1304 iNdEx = postIndex 1305 case 2: 1306 if wireType != 0 { 1307 return fmt.Errorf("proto: wrong wireType = %d for field Wait", wireType) 1308 } 1309 var v int 1310 for shift := uint(0); ; shift += 7 { 1311 if shift >= 64 { 1312 return ErrIntOverflowRpcevents 1313 } 1314 if iNdEx >= l { 1315 return io.ErrUnexpectedEOF 1316 } 1317 b := dAtA[iNdEx] 1318 iNdEx++ 1319 v |= int(b&0x7F) << shift 1320 if b < 0x80 { 1321 break 1322 } 1323 } 1324 m.Wait = bool(v != 0) 1325 default: 1326 iNdEx = preIndex 1327 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1328 if err != nil { 1329 return err 1330 } 1331 if (skippy < 0) || (iNdEx+skippy) < 0 { 1332 return ErrInvalidLengthRpcevents 1333 } 1334 if (iNdEx + skippy) > l { 1335 return io.ErrUnexpectedEOF 1336 } 1337 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1338 iNdEx += skippy 1339 } 1340 } 1341 1342 if iNdEx > l { 1343 return io.ErrUnexpectedEOF 1344 } 1345 return nil 1346 } 1347 func (m *BlocksRequest) Unmarshal(dAtA []byte) error { 1348 l := len(dAtA) 1349 iNdEx := 0 1350 for iNdEx < l { 1351 preIndex := iNdEx 1352 var wire uint64 1353 for shift := uint(0); ; shift += 7 { 1354 if shift >= 64 { 1355 return ErrIntOverflowRpcevents 1356 } 1357 if iNdEx >= l { 1358 return io.ErrUnexpectedEOF 1359 } 1360 b := dAtA[iNdEx] 1361 iNdEx++ 1362 wire |= uint64(b&0x7F) << shift 1363 if b < 0x80 { 1364 break 1365 } 1366 } 1367 fieldNum := int32(wire >> 3) 1368 wireType := int(wire & 0x7) 1369 if wireType == 4 { 1370 return fmt.Errorf("proto: BlocksRequest: wiretype end group for non-group") 1371 } 1372 if fieldNum <= 0 { 1373 return fmt.Errorf("proto: BlocksRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1374 } 1375 switch fieldNum { 1376 case 1: 1377 if wireType != 2 { 1378 return fmt.Errorf("proto: wrong wireType = %d for field BlockRange", wireType) 1379 } 1380 var msglen int 1381 for shift := uint(0); ; shift += 7 { 1382 if shift >= 64 { 1383 return ErrIntOverflowRpcevents 1384 } 1385 if iNdEx >= l { 1386 return io.ErrUnexpectedEOF 1387 } 1388 b := dAtA[iNdEx] 1389 iNdEx++ 1390 msglen |= int(b&0x7F) << shift 1391 if b < 0x80 { 1392 break 1393 } 1394 } 1395 if msglen < 0 { 1396 return ErrInvalidLengthRpcevents 1397 } 1398 postIndex := iNdEx + msglen 1399 if postIndex < 0 { 1400 return ErrInvalidLengthRpcevents 1401 } 1402 if postIndex > l { 1403 return io.ErrUnexpectedEOF 1404 } 1405 if m.BlockRange == nil { 1406 m.BlockRange = &BlockRange{} 1407 } 1408 if err := m.BlockRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1409 return err 1410 } 1411 iNdEx = postIndex 1412 case 2: 1413 if wireType != 2 { 1414 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 1415 } 1416 var stringLen uint64 1417 for shift := uint(0); ; shift += 7 { 1418 if shift >= 64 { 1419 return ErrIntOverflowRpcevents 1420 } 1421 if iNdEx >= l { 1422 return io.ErrUnexpectedEOF 1423 } 1424 b := dAtA[iNdEx] 1425 iNdEx++ 1426 stringLen |= uint64(b&0x7F) << shift 1427 if b < 0x80 { 1428 break 1429 } 1430 } 1431 intStringLen := int(stringLen) 1432 if intStringLen < 0 { 1433 return ErrInvalidLengthRpcevents 1434 } 1435 postIndex := iNdEx + intStringLen 1436 if postIndex < 0 { 1437 return ErrInvalidLengthRpcevents 1438 } 1439 if postIndex > l { 1440 return io.ErrUnexpectedEOF 1441 } 1442 m.Query = string(dAtA[iNdEx:postIndex]) 1443 iNdEx = postIndex 1444 default: 1445 iNdEx = preIndex 1446 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1447 if err != nil { 1448 return err 1449 } 1450 if (skippy < 0) || (iNdEx+skippy) < 0 { 1451 return ErrInvalidLengthRpcevents 1452 } 1453 if (iNdEx + skippy) > l { 1454 return io.ErrUnexpectedEOF 1455 } 1456 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1457 iNdEx += skippy 1458 } 1459 } 1460 1461 if iNdEx > l { 1462 return io.ErrUnexpectedEOF 1463 } 1464 return nil 1465 } 1466 func (m *EventsResponse) Unmarshal(dAtA []byte) error { 1467 l := len(dAtA) 1468 iNdEx := 0 1469 for iNdEx < l { 1470 preIndex := iNdEx 1471 var wire uint64 1472 for shift := uint(0); ; shift += 7 { 1473 if shift >= 64 { 1474 return ErrIntOverflowRpcevents 1475 } 1476 if iNdEx >= l { 1477 return io.ErrUnexpectedEOF 1478 } 1479 b := dAtA[iNdEx] 1480 iNdEx++ 1481 wire |= uint64(b&0x7F) << shift 1482 if b < 0x80 { 1483 break 1484 } 1485 } 1486 fieldNum := int32(wire >> 3) 1487 wireType := int(wire & 0x7) 1488 if wireType == 4 { 1489 return fmt.Errorf("proto: EventsResponse: wiretype end group for non-group") 1490 } 1491 if fieldNum <= 0 { 1492 return fmt.Errorf("proto: EventsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1493 } 1494 switch fieldNum { 1495 case 1: 1496 if wireType != 0 { 1497 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 1498 } 1499 m.Height = 0 1500 for shift := uint(0); ; shift += 7 { 1501 if shift >= 64 { 1502 return ErrIntOverflowRpcevents 1503 } 1504 if iNdEx >= l { 1505 return io.ErrUnexpectedEOF 1506 } 1507 b := dAtA[iNdEx] 1508 iNdEx++ 1509 m.Height |= uint64(b&0x7F) << shift 1510 if b < 0x80 { 1511 break 1512 } 1513 } 1514 case 2: 1515 if wireType != 2 { 1516 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 1517 } 1518 var msglen int 1519 for shift := uint(0); ; shift += 7 { 1520 if shift >= 64 { 1521 return ErrIntOverflowRpcevents 1522 } 1523 if iNdEx >= l { 1524 return io.ErrUnexpectedEOF 1525 } 1526 b := dAtA[iNdEx] 1527 iNdEx++ 1528 msglen |= int(b&0x7F) << shift 1529 if b < 0x80 { 1530 break 1531 } 1532 } 1533 if msglen < 0 { 1534 return ErrInvalidLengthRpcevents 1535 } 1536 postIndex := iNdEx + msglen 1537 if postIndex < 0 { 1538 return ErrInvalidLengthRpcevents 1539 } 1540 if postIndex > l { 1541 return io.ErrUnexpectedEOF 1542 } 1543 m.Events = append(m.Events, &exec.Event{}) 1544 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1545 return err 1546 } 1547 iNdEx = postIndex 1548 default: 1549 iNdEx = preIndex 1550 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1551 if err != nil { 1552 return err 1553 } 1554 if (skippy < 0) || (iNdEx+skippy) < 0 { 1555 return ErrInvalidLengthRpcevents 1556 } 1557 if (iNdEx + skippy) > l { 1558 return io.ErrUnexpectedEOF 1559 } 1560 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1561 iNdEx += skippy 1562 } 1563 } 1564 1565 if iNdEx > l { 1566 return io.ErrUnexpectedEOF 1567 } 1568 return nil 1569 } 1570 func (m *GetTxsRequest) Unmarshal(dAtA []byte) error { 1571 l := len(dAtA) 1572 iNdEx := 0 1573 for iNdEx < l { 1574 preIndex := iNdEx 1575 var wire uint64 1576 for shift := uint(0); ; shift += 7 { 1577 if shift >= 64 { 1578 return ErrIntOverflowRpcevents 1579 } 1580 if iNdEx >= l { 1581 return io.ErrUnexpectedEOF 1582 } 1583 b := dAtA[iNdEx] 1584 iNdEx++ 1585 wire |= uint64(b&0x7F) << shift 1586 if b < 0x80 { 1587 break 1588 } 1589 } 1590 fieldNum := int32(wire >> 3) 1591 wireType := int(wire & 0x7) 1592 if wireType == 4 { 1593 return fmt.Errorf("proto: GetTxsRequest: wiretype end group for non-group") 1594 } 1595 if fieldNum <= 0 { 1596 return fmt.Errorf("proto: GetTxsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1597 } 1598 switch fieldNum { 1599 case 1: 1600 if wireType != 0 { 1601 return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) 1602 } 1603 m.StartHeight = 0 1604 for shift := uint(0); ; shift += 7 { 1605 if shift >= 64 { 1606 return ErrIntOverflowRpcevents 1607 } 1608 if iNdEx >= l { 1609 return io.ErrUnexpectedEOF 1610 } 1611 b := dAtA[iNdEx] 1612 iNdEx++ 1613 m.StartHeight |= uint64(b&0x7F) << shift 1614 if b < 0x80 { 1615 break 1616 } 1617 } 1618 case 2: 1619 if wireType != 0 { 1620 return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) 1621 } 1622 m.EndHeight = 0 1623 for shift := uint(0); ; shift += 7 { 1624 if shift >= 64 { 1625 return ErrIntOverflowRpcevents 1626 } 1627 if iNdEx >= l { 1628 return io.ErrUnexpectedEOF 1629 } 1630 b := dAtA[iNdEx] 1631 iNdEx++ 1632 m.EndHeight |= uint64(b&0x7F) << shift 1633 if b < 0x80 { 1634 break 1635 } 1636 } 1637 case 3: 1638 if wireType != 2 { 1639 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 1640 } 1641 var stringLen uint64 1642 for shift := uint(0); ; shift += 7 { 1643 if shift >= 64 { 1644 return ErrIntOverflowRpcevents 1645 } 1646 if iNdEx >= l { 1647 return io.ErrUnexpectedEOF 1648 } 1649 b := dAtA[iNdEx] 1650 iNdEx++ 1651 stringLen |= uint64(b&0x7F) << shift 1652 if b < 0x80 { 1653 break 1654 } 1655 } 1656 intStringLen := int(stringLen) 1657 if intStringLen < 0 { 1658 return ErrInvalidLengthRpcevents 1659 } 1660 postIndex := iNdEx + intStringLen 1661 if postIndex < 0 { 1662 return ErrInvalidLengthRpcevents 1663 } 1664 if postIndex > l { 1665 return io.ErrUnexpectedEOF 1666 } 1667 m.Query = string(dAtA[iNdEx:postIndex]) 1668 iNdEx = postIndex 1669 default: 1670 iNdEx = preIndex 1671 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1672 if err != nil { 1673 return err 1674 } 1675 if (skippy < 0) || (iNdEx+skippy) < 0 { 1676 return ErrInvalidLengthRpcevents 1677 } 1678 if (iNdEx + skippy) > l { 1679 return io.ErrUnexpectedEOF 1680 } 1681 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1682 iNdEx += skippy 1683 } 1684 } 1685 1686 if iNdEx > l { 1687 return io.ErrUnexpectedEOF 1688 } 1689 return nil 1690 } 1691 func (m *GetTxsResponse) Unmarshal(dAtA []byte) error { 1692 l := len(dAtA) 1693 iNdEx := 0 1694 for iNdEx < l { 1695 preIndex := iNdEx 1696 var wire uint64 1697 for shift := uint(0); ; shift += 7 { 1698 if shift >= 64 { 1699 return ErrIntOverflowRpcevents 1700 } 1701 if iNdEx >= l { 1702 return io.ErrUnexpectedEOF 1703 } 1704 b := dAtA[iNdEx] 1705 iNdEx++ 1706 wire |= uint64(b&0x7F) << shift 1707 if b < 0x80 { 1708 break 1709 } 1710 } 1711 fieldNum := int32(wire >> 3) 1712 wireType := int(wire & 0x7) 1713 if wireType == 4 { 1714 return fmt.Errorf("proto: GetTxsResponse: wiretype end group for non-group") 1715 } 1716 if fieldNum <= 0 { 1717 return fmt.Errorf("proto: GetTxsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1718 } 1719 switch fieldNum { 1720 case 1: 1721 if wireType != 0 { 1722 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 1723 } 1724 m.Height = 0 1725 for shift := uint(0); ; shift += 7 { 1726 if shift >= 64 { 1727 return ErrIntOverflowRpcevents 1728 } 1729 if iNdEx >= l { 1730 return io.ErrUnexpectedEOF 1731 } 1732 b := dAtA[iNdEx] 1733 iNdEx++ 1734 m.Height |= uint64(b&0x7F) << shift 1735 if b < 0x80 { 1736 break 1737 } 1738 } 1739 case 2: 1740 if wireType != 2 { 1741 return fmt.Errorf("proto: wrong wireType = %d for field TxExecutions", wireType) 1742 } 1743 var msglen int 1744 for shift := uint(0); ; shift += 7 { 1745 if shift >= 64 { 1746 return ErrIntOverflowRpcevents 1747 } 1748 if iNdEx >= l { 1749 return io.ErrUnexpectedEOF 1750 } 1751 b := dAtA[iNdEx] 1752 iNdEx++ 1753 msglen |= int(b&0x7F) << shift 1754 if b < 0x80 { 1755 break 1756 } 1757 } 1758 if msglen < 0 { 1759 return ErrInvalidLengthRpcevents 1760 } 1761 postIndex := iNdEx + msglen 1762 if postIndex < 0 { 1763 return ErrInvalidLengthRpcevents 1764 } 1765 if postIndex > l { 1766 return io.ErrUnexpectedEOF 1767 } 1768 m.TxExecutions = append(m.TxExecutions, &exec.TxExecution{}) 1769 if err := m.TxExecutions[len(m.TxExecutions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1770 return err 1771 } 1772 iNdEx = postIndex 1773 default: 1774 iNdEx = preIndex 1775 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1776 if err != nil { 1777 return err 1778 } 1779 if (skippy < 0) || (iNdEx+skippy) < 0 { 1780 return ErrInvalidLengthRpcevents 1781 } 1782 if (iNdEx + skippy) > l { 1783 return io.ErrUnexpectedEOF 1784 } 1785 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1786 iNdEx += skippy 1787 } 1788 } 1789 1790 if iNdEx > l { 1791 return io.ErrUnexpectedEOF 1792 } 1793 return nil 1794 } 1795 func (m *Bound) Unmarshal(dAtA []byte) error { 1796 l := len(dAtA) 1797 iNdEx := 0 1798 for iNdEx < l { 1799 preIndex := iNdEx 1800 var wire uint64 1801 for shift := uint(0); ; shift += 7 { 1802 if shift >= 64 { 1803 return ErrIntOverflowRpcevents 1804 } 1805 if iNdEx >= l { 1806 return io.ErrUnexpectedEOF 1807 } 1808 b := dAtA[iNdEx] 1809 iNdEx++ 1810 wire |= uint64(b&0x7F) << shift 1811 if b < 0x80 { 1812 break 1813 } 1814 } 1815 fieldNum := int32(wire >> 3) 1816 wireType := int(wire & 0x7) 1817 if wireType == 4 { 1818 return fmt.Errorf("proto: Bound: wiretype end group for non-group") 1819 } 1820 if fieldNum <= 0 { 1821 return fmt.Errorf("proto: Bound: illegal tag %d (wire type %d)", fieldNum, wire) 1822 } 1823 switch fieldNum { 1824 case 1: 1825 if wireType != 0 { 1826 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 1827 } 1828 m.Type = 0 1829 for shift := uint(0); ; shift += 7 { 1830 if shift >= 64 { 1831 return ErrIntOverflowRpcevents 1832 } 1833 if iNdEx >= l { 1834 return io.ErrUnexpectedEOF 1835 } 1836 b := dAtA[iNdEx] 1837 iNdEx++ 1838 m.Type |= Bound_BoundType(b&0x7F) << shift 1839 if b < 0x80 { 1840 break 1841 } 1842 } 1843 case 2: 1844 if wireType != 0 { 1845 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 1846 } 1847 m.Index = 0 1848 for shift := uint(0); ; shift += 7 { 1849 if shift >= 64 { 1850 return ErrIntOverflowRpcevents 1851 } 1852 if iNdEx >= l { 1853 return io.ErrUnexpectedEOF 1854 } 1855 b := dAtA[iNdEx] 1856 iNdEx++ 1857 m.Index |= uint64(b&0x7F) << shift 1858 if b < 0x80 { 1859 break 1860 } 1861 } 1862 default: 1863 iNdEx = preIndex 1864 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1865 if err != nil { 1866 return err 1867 } 1868 if (skippy < 0) || (iNdEx+skippy) < 0 { 1869 return ErrInvalidLengthRpcevents 1870 } 1871 if (iNdEx + skippy) > l { 1872 return io.ErrUnexpectedEOF 1873 } 1874 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1875 iNdEx += skippy 1876 } 1877 } 1878 1879 if iNdEx > l { 1880 return io.ErrUnexpectedEOF 1881 } 1882 return nil 1883 } 1884 func (m *BlockRange) Unmarshal(dAtA []byte) error { 1885 l := len(dAtA) 1886 iNdEx := 0 1887 for iNdEx < l { 1888 preIndex := iNdEx 1889 var wire uint64 1890 for shift := uint(0); ; shift += 7 { 1891 if shift >= 64 { 1892 return ErrIntOverflowRpcevents 1893 } 1894 if iNdEx >= l { 1895 return io.ErrUnexpectedEOF 1896 } 1897 b := dAtA[iNdEx] 1898 iNdEx++ 1899 wire |= uint64(b&0x7F) << shift 1900 if b < 0x80 { 1901 break 1902 } 1903 } 1904 fieldNum := int32(wire >> 3) 1905 wireType := int(wire & 0x7) 1906 if wireType == 4 { 1907 return fmt.Errorf("proto: BlockRange: wiretype end group for non-group") 1908 } 1909 if fieldNum <= 0 { 1910 return fmt.Errorf("proto: BlockRange: illegal tag %d (wire type %d)", fieldNum, wire) 1911 } 1912 switch fieldNum { 1913 case 1: 1914 if wireType != 2 { 1915 return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) 1916 } 1917 var msglen int 1918 for shift := uint(0); ; shift += 7 { 1919 if shift >= 64 { 1920 return ErrIntOverflowRpcevents 1921 } 1922 if iNdEx >= l { 1923 return io.ErrUnexpectedEOF 1924 } 1925 b := dAtA[iNdEx] 1926 iNdEx++ 1927 msglen |= int(b&0x7F) << shift 1928 if b < 0x80 { 1929 break 1930 } 1931 } 1932 if msglen < 0 { 1933 return ErrInvalidLengthRpcevents 1934 } 1935 postIndex := iNdEx + msglen 1936 if postIndex < 0 { 1937 return ErrInvalidLengthRpcevents 1938 } 1939 if postIndex > l { 1940 return io.ErrUnexpectedEOF 1941 } 1942 if m.Start == nil { 1943 m.Start = &Bound{} 1944 } 1945 if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1946 return err 1947 } 1948 iNdEx = postIndex 1949 case 2: 1950 if wireType != 2 { 1951 return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) 1952 } 1953 var msglen int 1954 for shift := uint(0); ; shift += 7 { 1955 if shift >= 64 { 1956 return ErrIntOverflowRpcevents 1957 } 1958 if iNdEx >= l { 1959 return io.ErrUnexpectedEOF 1960 } 1961 b := dAtA[iNdEx] 1962 iNdEx++ 1963 msglen |= int(b&0x7F) << shift 1964 if b < 0x80 { 1965 break 1966 } 1967 } 1968 if msglen < 0 { 1969 return ErrInvalidLengthRpcevents 1970 } 1971 postIndex := iNdEx + msglen 1972 if postIndex < 0 { 1973 return ErrInvalidLengthRpcevents 1974 } 1975 if postIndex > l { 1976 return io.ErrUnexpectedEOF 1977 } 1978 if m.End == nil { 1979 m.End = &Bound{} 1980 } 1981 if err := m.End.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1982 return err 1983 } 1984 iNdEx = postIndex 1985 default: 1986 iNdEx = preIndex 1987 skippy, err := skipRpcevents(dAtA[iNdEx:]) 1988 if err != nil { 1989 return err 1990 } 1991 if (skippy < 0) || (iNdEx+skippy) < 0 { 1992 return ErrInvalidLengthRpcevents 1993 } 1994 if (iNdEx + skippy) > l { 1995 return io.ErrUnexpectedEOF 1996 } 1997 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1998 iNdEx += skippy 1999 } 2000 } 2001 2002 if iNdEx > l { 2003 return io.ErrUnexpectedEOF 2004 } 2005 return nil 2006 } 2007 func skipRpcevents(dAtA []byte) (n int, err error) { 2008 l := len(dAtA) 2009 iNdEx := 0 2010 depth := 0 2011 for iNdEx < l { 2012 var wire uint64 2013 for shift := uint(0); ; shift += 7 { 2014 if shift >= 64 { 2015 return 0, ErrIntOverflowRpcevents 2016 } 2017 if iNdEx >= l { 2018 return 0, io.ErrUnexpectedEOF 2019 } 2020 b := dAtA[iNdEx] 2021 iNdEx++ 2022 wire |= (uint64(b) & 0x7F) << shift 2023 if b < 0x80 { 2024 break 2025 } 2026 } 2027 wireType := int(wire & 0x7) 2028 switch wireType { 2029 case 0: 2030 for shift := uint(0); ; shift += 7 { 2031 if shift >= 64 { 2032 return 0, ErrIntOverflowRpcevents 2033 } 2034 if iNdEx >= l { 2035 return 0, io.ErrUnexpectedEOF 2036 } 2037 iNdEx++ 2038 if dAtA[iNdEx-1] < 0x80 { 2039 break 2040 } 2041 } 2042 case 1: 2043 iNdEx += 8 2044 case 2: 2045 var length int 2046 for shift := uint(0); ; shift += 7 { 2047 if shift >= 64 { 2048 return 0, ErrIntOverflowRpcevents 2049 } 2050 if iNdEx >= l { 2051 return 0, io.ErrUnexpectedEOF 2052 } 2053 b := dAtA[iNdEx] 2054 iNdEx++ 2055 length |= (int(b) & 0x7F) << shift 2056 if b < 0x80 { 2057 break 2058 } 2059 } 2060 if length < 0 { 2061 return 0, ErrInvalidLengthRpcevents 2062 } 2063 iNdEx += length 2064 case 3: 2065 depth++ 2066 case 4: 2067 if depth == 0 { 2068 return 0, ErrUnexpectedEndOfGroupRpcevents 2069 } 2070 depth-- 2071 case 5: 2072 iNdEx += 4 2073 default: 2074 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2075 } 2076 if iNdEx < 0 { 2077 return 0, ErrInvalidLengthRpcevents 2078 } 2079 if depth == 0 { 2080 return iNdEx, nil 2081 } 2082 } 2083 return 0, io.ErrUnexpectedEOF 2084 } 2085 2086 var ( 2087 ErrInvalidLengthRpcevents = fmt.Errorf("proto: negative length found during unmarshaling") 2088 ErrIntOverflowRpcevents = fmt.Errorf("proto: integer overflow") 2089 ErrUnexpectedEndOfGroupRpcevents = fmt.Errorf("proto: unexpected end of group") 2090 )