github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/rpc/rpcquery/rpcquery.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: rpcquery.proto 3 4 package rpcquery 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/acm" 16 validator "github.com/hyperledger/burrow/acm/validator" 17 github_com_hyperledger_burrow_binary "github.com/hyperledger/burrow/binary" 18 github_com_hyperledger_burrow_crypto "github.com/hyperledger/burrow/crypto" 19 _ "github.com/hyperledger/burrow/execution/names" 20 registry "github.com/hyperledger/burrow/execution/registry" 21 _ "github.com/hyperledger/burrow/rpc" 22 payload "github.com/hyperledger/burrow/txs/payload" 23 _ "github.com/tendermint/tendermint/proto/tendermint/types" 24 ) 25 26 // Reference imports to suppress errors if they are not otherwise used. 27 var _ = proto.Marshal 28 var _ = golang_proto.Marshal 29 var _ = fmt.Errorf 30 var _ = math.Inf 31 32 // This is a compile-time assertion to ensure that this generated file 33 // is compatible with the proto package it is being compiled against. 34 // A compilation error at this line likely means your copy of the 35 // proto package needs to be updated. 36 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 37 38 type StatusParam struct { 39 BlockTimeWithin string `protobuf:"bytes,1,opt,name=BlockTimeWithin,proto3" json:"BlockTimeWithin,omitempty"` 40 BlockSeenTimeWithin string `protobuf:"bytes,2,opt,name=BlockSeenTimeWithin,proto3" json:"BlockSeenTimeWithin,omitempty"` 41 XXX_NoUnkeyedLiteral struct{} `json:"-"` 42 XXX_unrecognized []byte `json:"-"` 43 XXX_sizecache int32 `json:"-"` 44 } 45 46 func (m *StatusParam) Reset() { *m = StatusParam{} } 47 func (m *StatusParam) String() string { return proto.CompactTextString(m) } 48 func (*StatusParam) ProtoMessage() {} 49 func (*StatusParam) Descriptor() ([]byte, []int) { 50 return fileDescriptor_88e25d9b99e39f02, []int{0} 51 } 52 func (m *StatusParam) XXX_Unmarshal(b []byte) error { 53 return m.Unmarshal(b) 54 } 55 func (m *StatusParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 56 b = b[:cap(b)] 57 n, err := m.MarshalToSizedBuffer(b) 58 if err != nil { 59 return nil, err 60 } 61 return b[:n], nil 62 } 63 func (m *StatusParam) XXX_Merge(src proto.Message) { 64 xxx_messageInfo_StatusParam.Merge(m, src) 65 } 66 func (m *StatusParam) XXX_Size() int { 67 return m.Size() 68 } 69 func (m *StatusParam) XXX_DiscardUnknown() { 70 xxx_messageInfo_StatusParam.DiscardUnknown(m) 71 } 72 73 var xxx_messageInfo_StatusParam proto.InternalMessageInfo 74 75 func (m *StatusParam) GetBlockTimeWithin() string { 76 if m != nil { 77 return m.BlockTimeWithin 78 } 79 return "" 80 } 81 82 func (m *StatusParam) GetBlockSeenTimeWithin() string { 83 if m != nil { 84 return m.BlockSeenTimeWithin 85 } 86 return "" 87 } 88 89 func (*StatusParam) XXX_MessageName() string { 90 return "rpcquery.StatusParam" 91 } 92 93 type GetAccountParam struct { 94 Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"` 95 XXX_NoUnkeyedLiteral struct{} `json:"-"` 96 XXX_unrecognized []byte `json:"-"` 97 XXX_sizecache int32 `json:"-"` 98 } 99 100 func (m *GetAccountParam) Reset() { *m = GetAccountParam{} } 101 func (m *GetAccountParam) String() string { return proto.CompactTextString(m) } 102 func (*GetAccountParam) ProtoMessage() {} 103 func (*GetAccountParam) Descriptor() ([]byte, []int) { 104 return fileDescriptor_88e25d9b99e39f02, []int{1} 105 } 106 func (m *GetAccountParam) XXX_Unmarshal(b []byte) error { 107 return m.Unmarshal(b) 108 } 109 func (m *GetAccountParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 110 b = b[:cap(b)] 111 n, err := m.MarshalToSizedBuffer(b) 112 if err != nil { 113 return nil, err 114 } 115 return b[:n], nil 116 } 117 func (m *GetAccountParam) XXX_Merge(src proto.Message) { 118 xxx_messageInfo_GetAccountParam.Merge(m, src) 119 } 120 func (m *GetAccountParam) XXX_Size() int { 121 return m.Size() 122 } 123 func (m *GetAccountParam) XXX_DiscardUnknown() { 124 xxx_messageInfo_GetAccountParam.DiscardUnknown(m) 125 } 126 127 var xxx_messageInfo_GetAccountParam proto.InternalMessageInfo 128 129 func (*GetAccountParam) XXX_MessageName() string { 130 return "rpcquery.GetAccountParam" 131 } 132 133 type GetMetadataParam struct { 134 Address *github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address,omitempty"` 135 MetadataHash *github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,2,opt,name=MetadataHash,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"MetadataHash,omitempty"` 136 XXX_NoUnkeyedLiteral struct{} `json:"-"` 137 XXX_unrecognized []byte `json:"-"` 138 XXX_sizecache int32 `json:"-"` 139 } 140 141 func (m *GetMetadataParam) Reset() { *m = GetMetadataParam{} } 142 func (m *GetMetadataParam) String() string { return proto.CompactTextString(m) } 143 func (*GetMetadataParam) ProtoMessage() {} 144 func (*GetMetadataParam) Descriptor() ([]byte, []int) { 145 return fileDescriptor_88e25d9b99e39f02, []int{2} 146 } 147 func (m *GetMetadataParam) XXX_Unmarshal(b []byte) error { 148 return m.Unmarshal(b) 149 } 150 func (m *GetMetadataParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 151 b = b[:cap(b)] 152 n, err := m.MarshalToSizedBuffer(b) 153 if err != nil { 154 return nil, err 155 } 156 return b[:n], nil 157 } 158 func (m *GetMetadataParam) XXX_Merge(src proto.Message) { 159 xxx_messageInfo_GetMetadataParam.Merge(m, src) 160 } 161 func (m *GetMetadataParam) XXX_Size() int { 162 return m.Size() 163 } 164 func (m *GetMetadataParam) XXX_DiscardUnknown() { 165 xxx_messageInfo_GetMetadataParam.DiscardUnknown(m) 166 } 167 168 var xxx_messageInfo_GetMetadataParam proto.InternalMessageInfo 169 170 func (*GetMetadataParam) XXX_MessageName() string { 171 return "rpcquery.GetMetadataParam" 172 } 173 174 type MetadataResult struct { 175 Metadata string `protobuf:"bytes,1,opt,name=Metadata,proto3" json:"Metadata,omitempty"` 176 XXX_NoUnkeyedLiteral struct{} `json:"-"` 177 XXX_unrecognized []byte `json:"-"` 178 XXX_sizecache int32 `json:"-"` 179 } 180 181 func (m *MetadataResult) Reset() { *m = MetadataResult{} } 182 func (m *MetadataResult) String() string { return proto.CompactTextString(m) } 183 func (*MetadataResult) ProtoMessage() {} 184 func (*MetadataResult) Descriptor() ([]byte, []int) { 185 return fileDescriptor_88e25d9b99e39f02, []int{3} 186 } 187 func (m *MetadataResult) XXX_Unmarshal(b []byte) error { 188 return m.Unmarshal(b) 189 } 190 func (m *MetadataResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 191 b = b[:cap(b)] 192 n, err := m.MarshalToSizedBuffer(b) 193 if err != nil { 194 return nil, err 195 } 196 return b[:n], nil 197 } 198 func (m *MetadataResult) XXX_Merge(src proto.Message) { 199 xxx_messageInfo_MetadataResult.Merge(m, src) 200 } 201 func (m *MetadataResult) XXX_Size() int { 202 return m.Size() 203 } 204 func (m *MetadataResult) XXX_DiscardUnknown() { 205 xxx_messageInfo_MetadataResult.DiscardUnknown(m) 206 } 207 208 var xxx_messageInfo_MetadataResult proto.InternalMessageInfo 209 210 func (m *MetadataResult) GetMetadata() string { 211 if m != nil { 212 return m.Metadata 213 } 214 return "" 215 } 216 217 func (*MetadataResult) XXX_MessageName() string { 218 return "rpcquery.MetadataResult" 219 } 220 221 type GetStorageParam struct { 222 Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"` 223 Key github_com_hyperledger_burrow_binary.Word256 `protobuf:"bytes,2,opt,name=Key,proto3,customtype=github.com/hyperledger/burrow/binary.Word256" json:"Key"` 224 XXX_NoUnkeyedLiteral struct{} `json:"-"` 225 XXX_unrecognized []byte `json:"-"` 226 XXX_sizecache int32 `json:"-"` 227 } 228 229 func (m *GetStorageParam) Reset() { *m = GetStorageParam{} } 230 func (m *GetStorageParam) String() string { return proto.CompactTextString(m) } 231 func (*GetStorageParam) ProtoMessage() {} 232 func (*GetStorageParam) Descriptor() ([]byte, []int) { 233 return fileDescriptor_88e25d9b99e39f02, []int{4} 234 } 235 func (m *GetStorageParam) XXX_Unmarshal(b []byte) error { 236 return m.Unmarshal(b) 237 } 238 func (m *GetStorageParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 239 b = b[:cap(b)] 240 n, err := m.MarshalToSizedBuffer(b) 241 if err != nil { 242 return nil, err 243 } 244 return b[:n], nil 245 } 246 func (m *GetStorageParam) XXX_Merge(src proto.Message) { 247 xxx_messageInfo_GetStorageParam.Merge(m, src) 248 } 249 func (m *GetStorageParam) XXX_Size() int { 250 return m.Size() 251 } 252 func (m *GetStorageParam) XXX_DiscardUnknown() { 253 xxx_messageInfo_GetStorageParam.DiscardUnknown(m) 254 } 255 256 var xxx_messageInfo_GetStorageParam proto.InternalMessageInfo 257 258 func (*GetStorageParam) XXX_MessageName() string { 259 return "rpcquery.GetStorageParam" 260 } 261 262 type StorageValue struct { 263 Value github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,1,opt,name=Value,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"Value"` 264 XXX_NoUnkeyedLiteral struct{} `json:"-"` 265 XXX_unrecognized []byte `json:"-"` 266 XXX_sizecache int32 `json:"-"` 267 } 268 269 func (m *StorageValue) Reset() { *m = StorageValue{} } 270 func (m *StorageValue) String() string { return proto.CompactTextString(m) } 271 func (*StorageValue) ProtoMessage() {} 272 func (*StorageValue) Descriptor() ([]byte, []int) { 273 return fileDescriptor_88e25d9b99e39f02, []int{5} 274 } 275 func (m *StorageValue) XXX_Unmarshal(b []byte) error { 276 return m.Unmarshal(b) 277 } 278 func (m *StorageValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 279 b = b[:cap(b)] 280 n, err := m.MarshalToSizedBuffer(b) 281 if err != nil { 282 return nil, err 283 } 284 return b[:n], nil 285 } 286 func (m *StorageValue) XXX_Merge(src proto.Message) { 287 xxx_messageInfo_StorageValue.Merge(m, src) 288 } 289 func (m *StorageValue) XXX_Size() int { 290 return m.Size() 291 } 292 func (m *StorageValue) XXX_DiscardUnknown() { 293 xxx_messageInfo_StorageValue.DiscardUnknown(m) 294 } 295 296 var xxx_messageInfo_StorageValue proto.InternalMessageInfo 297 298 func (*StorageValue) XXX_MessageName() string { 299 return "rpcquery.StorageValue" 300 } 301 302 type ListAccountsParam struct { 303 Query string `protobuf:"bytes,1,opt,name=Query,proto3" json:"Query,omitempty"` 304 XXX_NoUnkeyedLiteral struct{} `json:"-"` 305 XXX_unrecognized []byte `json:"-"` 306 XXX_sizecache int32 `json:"-"` 307 } 308 309 func (m *ListAccountsParam) Reset() { *m = ListAccountsParam{} } 310 func (m *ListAccountsParam) String() string { return proto.CompactTextString(m) } 311 func (*ListAccountsParam) ProtoMessage() {} 312 func (*ListAccountsParam) Descriptor() ([]byte, []int) { 313 return fileDescriptor_88e25d9b99e39f02, []int{6} 314 } 315 func (m *ListAccountsParam) XXX_Unmarshal(b []byte) error { 316 return m.Unmarshal(b) 317 } 318 func (m *ListAccountsParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 319 b = b[:cap(b)] 320 n, err := m.MarshalToSizedBuffer(b) 321 if err != nil { 322 return nil, err 323 } 324 return b[:n], nil 325 } 326 func (m *ListAccountsParam) XXX_Merge(src proto.Message) { 327 xxx_messageInfo_ListAccountsParam.Merge(m, src) 328 } 329 func (m *ListAccountsParam) XXX_Size() int { 330 return m.Size() 331 } 332 func (m *ListAccountsParam) XXX_DiscardUnknown() { 333 xxx_messageInfo_ListAccountsParam.DiscardUnknown(m) 334 } 335 336 var xxx_messageInfo_ListAccountsParam proto.InternalMessageInfo 337 338 func (m *ListAccountsParam) GetQuery() string { 339 if m != nil { 340 return m.Query 341 } 342 return "" 343 } 344 345 func (*ListAccountsParam) XXX_MessageName() string { 346 return "rpcquery.ListAccountsParam" 347 } 348 349 type GetNameParam struct { 350 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` 351 XXX_NoUnkeyedLiteral struct{} `json:"-"` 352 XXX_unrecognized []byte `json:"-"` 353 XXX_sizecache int32 `json:"-"` 354 } 355 356 func (m *GetNameParam) Reset() { *m = GetNameParam{} } 357 func (m *GetNameParam) String() string { return proto.CompactTextString(m) } 358 func (*GetNameParam) ProtoMessage() {} 359 func (*GetNameParam) Descriptor() ([]byte, []int) { 360 return fileDescriptor_88e25d9b99e39f02, []int{7} 361 } 362 func (m *GetNameParam) XXX_Unmarshal(b []byte) error { 363 return m.Unmarshal(b) 364 } 365 func (m *GetNameParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 366 b = b[:cap(b)] 367 n, err := m.MarshalToSizedBuffer(b) 368 if err != nil { 369 return nil, err 370 } 371 return b[:n], nil 372 } 373 func (m *GetNameParam) XXX_Merge(src proto.Message) { 374 xxx_messageInfo_GetNameParam.Merge(m, src) 375 } 376 func (m *GetNameParam) XXX_Size() int { 377 return m.Size() 378 } 379 func (m *GetNameParam) XXX_DiscardUnknown() { 380 xxx_messageInfo_GetNameParam.DiscardUnknown(m) 381 } 382 383 var xxx_messageInfo_GetNameParam proto.InternalMessageInfo 384 385 func (m *GetNameParam) GetName() string { 386 if m != nil { 387 return m.Name 388 } 389 return "" 390 } 391 392 func (*GetNameParam) XXX_MessageName() string { 393 return "rpcquery.GetNameParam" 394 } 395 396 type ListNamesParam struct { 397 Query string `protobuf:"bytes,1,opt,name=Query,proto3" json:"Query,omitempty"` 398 XXX_NoUnkeyedLiteral struct{} `json:"-"` 399 XXX_unrecognized []byte `json:"-"` 400 XXX_sizecache int32 `json:"-"` 401 } 402 403 func (m *ListNamesParam) Reset() { *m = ListNamesParam{} } 404 func (m *ListNamesParam) String() string { return proto.CompactTextString(m) } 405 func (*ListNamesParam) ProtoMessage() {} 406 func (*ListNamesParam) Descriptor() ([]byte, []int) { 407 return fileDescriptor_88e25d9b99e39f02, []int{8} 408 } 409 func (m *ListNamesParam) XXX_Unmarshal(b []byte) error { 410 return m.Unmarshal(b) 411 } 412 func (m *ListNamesParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 413 b = b[:cap(b)] 414 n, err := m.MarshalToSizedBuffer(b) 415 if err != nil { 416 return nil, err 417 } 418 return b[:n], nil 419 } 420 func (m *ListNamesParam) XXX_Merge(src proto.Message) { 421 xxx_messageInfo_ListNamesParam.Merge(m, src) 422 } 423 func (m *ListNamesParam) XXX_Size() int { 424 return m.Size() 425 } 426 func (m *ListNamesParam) XXX_DiscardUnknown() { 427 xxx_messageInfo_ListNamesParam.DiscardUnknown(m) 428 } 429 430 var xxx_messageInfo_ListNamesParam proto.InternalMessageInfo 431 432 func (m *ListNamesParam) GetQuery() string { 433 if m != nil { 434 return m.Query 435 } 436 return "" 437 } 438 439 func (*ListNamesParam) XXX_MessageName() string { 440 return "rpcquery.ListNamesParam" 441 } 442 443 type GetNetworkRegistryParam struct { 444 XXX_NoUnkeyedLiteral struct{} `json:"-"` 445 XXX_unrecognized []byte `json:"-"` 446 XXX_sizecache int32 `json:"-"` 447 } 448 449 func (m *GetNetworkRegistryParam) Reset() { *m = GetNetworkRegistryParam{} } 450 func (m *GetNetworkRegistryParam) String() string { return proto.CompactTextString(m) } 451 func (*GetNetworkRegistryParam) ProtoMessage() {} 452 func (*GetNetworkRegistryParam) Descriptor() ([]byte, []int) { 453 return fileDescriptor_88e25d9b99e39f02, []int{9} 454 } 455 func (m *GetNetworkRegistryParam) XXX_Unmarshal(b []byte) error { 456 return m.Unmarshal(b) 457 } 458 func (m *GetNetworkRegistryParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 459 b = b[:cap(b)] 460 n, err := m.MarshalToSizedBuffer(b) 461 if err != nil { 462 return nil, err 463 } 464 return b[:n], nil 465 } 466 func (m *GetNetworkRegistryParam) XXX_Merge(src proto.Message) { 467 xxx_messageInfo_GetNetworkRegistryParam.Merge(m, src) 468 } 469 func (m *GetNetworkRegistryParam) XXX_Size() int { 470 return m.Size() 471 } 472 func (m *GetNetworkRegistryParam) XXX_DiscardUnknown() { 473 xxx_messageInfo_GetNetworkRegistryParam.DiscardUnknown(m) 474 } 475 476 var xxx_messageInfo_GetNetworkRegistryParam proto.InternalMessageInfo 477 478 func (*GetNetworkRegistryParam) XXX_MessageName() string { 479 return "rpcquery.GetNetworkRegistryParam" 480 } 481 482 type GetValidatorSetParam struct { 483 XXX_NoUnkeyedLiteral struct{} `json:"-"` 484 XXX_unrecognized []byte `json:"-"` 485 XXX_sizecache int32 `json:"-"` 486 } 487 488 func (m *GetValidatorSetParam) Reset() { *m = GetValidatorSetParam{} } 489 func (m *GetValidatorSetParam) String() string { return proto.CompactTextString(m) } 490 func (*GetValidatorSetParam) ProtoMessage() {} 491 func (*GetValidatorSetParam) Descriptor() ([]byte, []int) { 492 return fileDescriptor_88e25d9b99e39f02, []int{10} 493 } 494 func (m *GetValidatorSetParam) XXX_Unmarshal(b []byte) error { 495 return m.Unmarshal(b) 496 } 497 func (m *GetValidatorSetParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 498 b = b[:cap(b)] 499 n, err := m.MarshalToSizedBuffer(b) 500 if err != nil { 501 return nil, err 502 } 503 return b[:n], nil 504 } 505 func (m *GetValidatorSetParam) XXX_Merge(src proto.Message) { 506 xxx_messageInfo_GetValidatorSetParam.Merge(m, src) 507 } 508 func (m *GetValidatorSetParam) XXX_Size() int { 509 return m.Size() 510 } 511 func (m *GetValidatorSetParam) XXX_DiscardUnknown() { 512 xxx_messageInfo_GetValidatorSetParam.DiscardUnknown(m) 513 } 514 515 var xxx_messageInfo_GetValidatorSetParam proto.InternalMessageInfo 516 517 func (*GetValidatorSetParam) XXX_MessageName() string { 518 return "rpcquery.GetValidatorSetParam" 519 } 520 521 type GetValidatorSetHistoryParam struct { 522 // Use -1 for all available history 523 IncludePrevious int64 `protobuf:"varint,1,opt,name=IncludePrevious,proto3" json:"IncludePrevious,omitempty"` 524 XXX_NoUnkeyedLiteral struct{} `json:"-"` 525 XXX_unrecognized []byte `json:"-"` 526 XXX_sizecache int32 `json:"-"` 527 } 528 529 func (m *GetValidatorSetHistoryParam) Reset() { *m = GetValidatorSetHistoryParam{} } 530 func (m *GetValidatorSetHistoryParam) String() string { return proto.CompactTextString(m) } 531 func (*GetValidatorSetHistoryParam) ProtoMessage() {} 532 func (*GetValidatorSetHistoryParam) Descriptor() ([]byte, []int) { 533 return fileDescriptor_88e25d9b99e39f02, []int{11} 534 } 535 func (m *GetValidatorSetHistoryParam) XXX_Unmarshal(b []byte) error { 536 return m.Unmarshal(b) 537 } 538 func (m *GetValidatorSetHistoryParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 539 b = b[:cap(b)] 540 n, err := m.MarshalToSizedBuffer(b) 541 if err != nil { 542 return nil, err 543 } 544 return b[:n], nil 545 } 546 func (m *GetValidatorSetHistoryParam) XXX_Merge(src proto.Message) { 547 xxx_messageInfo_GetValidatorSetHistoryParam.Merge(m, src) 548 } 549 func (m *GetValidatorSetHistoryParam) XXX_Size() int { 550 return m.Size() 551 } 552 func (m *GetValidatorSetHistoryParam) XXX_DiscardUnknown() { 553 xxx_messageInfo_GetValidatorSetHistoryParam.DiscardUnknown(m) 554 } 555 556 var xxx_messageInfo_GetValidatorSetHistoryParam proto.InternalMessageInfo 557 558 func (m *GetValidatorSetHistoryParam) GetIncludePrevious() int64 { 559 if m != nil { 560 return m.IncludePrevious 561 } 562 return 0 563 } 564 565 func (*GetValidatorSetHistoryParam) XXX_MessageName() string { 566 return "rpcquery.GetValidatorSetHistoryParam" 567 } 568 569 type NetworkRegistry struct { 570 Set []*RegisteredValidator `protobuf:"bytes,1,rep,name=Set,proto3" json:"Set,omitempty"` 571 XXX_NoUnkeyedLiteral struct{} `json:"-"` 572 XXX_unrecognized []byte `json:"-"` 573 XXX_sizecache int32 `json:"-"` 574 } 575 576 func (m *NetworkRegistry) Reset() { *m = NetworkRegistry{} } 577 func (m *NetworkRegistry) String() string { return proto.CompactTextString(m) } 578 func (*NetworkRegistry) ProtoMessage() {} 579 func (*NetworkRegistry) Descriptor() ([]byte, []int) { 580 return fileDescriptor_88e25d9b99e39f02, []int{12} 581 } 582 func (m *NetworkRegistry) XXX_Unmarshal(b []byte) error { 583 return m.Unmarshal(b) 584 } 585 func (m *NetworkRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 586 b = b[:cap(b)] 587 n, err := m.MarshalToSizedBuffer(b) 588 if err != nil { 589 return nil, err 590 } 591 return b[:n], nil 592 } 593 func (m *NetworkRegistry) XXX_Merge(src proto.Message) { 594 xxx_messageInfo_NetworkRegistry.Merge(m, src) 595 } 596 func (m *NetworkRegistry) XXX_Size() int { 597 return m.Size() 598 } 599 func (m *NetworkRegistry) XXX_DiscardUnknown() { 600 xxx_messageInfo_NetworkRegistry.DiscardUnknown(m) 601 } 602 603 var xxx_messageInfo_NetworkRegistry proto.InternalMessageInfo 604 605 func (m *NetworkRegistry) GetSet() []*RegisteredValidator { 606 if m != nil { 607 return m.Set 608 } 609 return nil 610 } 611 612 func (*NetworkRegistry) XXX_MessageName() string { 613 return "rpcquery.NetworkRegistry" 614 } 615 616 type RegisteredValidator struct { 617 Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"` 618 Node *registry.NodeIdentity `protobuf:"bytes,2,opt,name=Node,proto3" json:"Node,omitempty"` 619 XXX_NoUnkeyedLiteral struct{} `json:"-"` 620 XXX_unrecognized []byte `json:"-"` 621 XXX_sizecache int32 `json:"-"` 622 } 623 624 func (m *RegisteredValidator) Reset() { *m = RegisteredValidator{} } 625 func (m *RegisteredValidator) String() string { return proto.CompactTextString(m) } 626 func (*RegisteredValidator) ProtoMessage() {} 627 func (*RegisteredValidator) Descriptor() ([]byte, []int) { 628 return fileDescriptor_88e25d9b99e39f02, []int{13} 629 } 630 func (m *RegisteredValidator) XXX_Unmarshal(b []byte) error { 631 return m.Unmarshal(b) 632 } 633 func (m *RegisteredValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 634 b = b[:cap(b)] 635 n, err := m.MarshalToSizedBuffer(b) 636 if err != nil { 637 return nil, err 638 } 639 return b[:n], nil 640 } 641 func (m *RegisteredValidator) XXX_Merge(src proto.Message) { 642 xxx_messageInfo_RegisteredValidator.Merge(m, src) 643 } 644 func (m *RegisteredValidator) XXX_Size() int { 645 return m.Size() 646 } 647 func (m *RegisteredValidator) XXX_DiscardUnknown() { 648 xxx_messageInfo_RegisteredValidator.DiscardUnknown(m) 649 } 650 651 var xxx_messageInfo_RegisteredValidator proto.InternalMessageInfo 652 653 func (m *RegisteredValidator) GetNode() *registry.NodeIdentity { 654 if m != nil { 655 return m.Node 656 } 657 return nil 658 } 659 660 func (*RegisteredValidator) XXX_MessageName() string { 661 return "rpcquery.RegisteredValidator" 662 } 663 664 type ValidatorSetHistory struct { 665 History []*ValidatorSet `protobuf:"bytes,1,rep,name=History,proto3" json:"History,omitempty"` 666 XXX_NoUnkeyedLiteral struct{} `json:"-"` 667 XXX_unrecognized []byte `json:"-"` 668 XXX_sizecache int32 `json:"-"` 669 } 670 671 func (m *ValidatorSetHistory) Reset() { *m = ValidatorSetHistory{} } 672 func (m *ValidatorSetHistory) String() string { return proto.CompactTextString(m) } 673 func (*ValidatorSetHistory) ProtoMessage() {} 674 func (*ValidatorSetHistory) Descriptor() ([]byte, []int) { 675 return fileDescriptor_88e25d9b99e39f02, []int{14} 676 } 677 func (m *ValidatorSetHistory) XXX_Unmarshal(b []byte) error { 678 return m.Unmarshal(b) 679 } 680 func (m *ValidatorSetHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 681 b = b[:cap(b)] 682 n, err := m.MarshalToSizedBuffer(b) 683 if err != nil { 684 return nil, err 685 } 686 return b[:n], nil 687 } 688 func (m *ValidatorSetHistory) XXX_Merge(src proto.Message) { 689 xxx_messageInfo_ValidatorSetHistory.Merge(m, src) 690 } 691 func (m *ValidatorSetHistory) XXX_Size() int { 692 return m.Size() 693 } 694 func (m *ValidatorSetHistory) XXX_DiscardUnknown() { 695 xxx_messageInfo_ValidatorSetHistory.DiscardUnknown(m) 696 } 697 698 var xxx_messageInfo_ValidatorSetHistory proto.InternalMessageInfo 699 700 func (m *ValidatorSetHistory) GetHistory() []*ValidatorSet { 701 if m != nil { 702 return m.History 703 } 704 return nil 705 } 706 707 func (*ValidatorSetHistory) XXX_MessageName() string { 708 return "rpcquery.ValidatorSetHistory" 709 } 710 711 type ValidatorSet struct { 712 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 713 Set []*validator.Validator `protobuf:"bytes,2,rep,name=Set,proto3" json:"Set,omitempty"` 714 XXX_NoUnkeyedLiteral struct{} `json:"-"` 715 XXX_unrecognized []byte `json:"-"` 716 XXX_sizecache int32 `json:"-"` 717 } 718 719 func (m *ValidatorSet) Reset() { *m = ValidatorSet{} } 720 func (m *ValidatorSet) String() string { return proto.CompactTextString(m) } 721 func (*ValidatorSet) ProtoMessage() {} 722 func (*ValidatorSet) Descriptor() ([]byte, []int) { 723 return fileDescriptor_88e25d9b99e39f02, []int{15} 724 } 725 func (m *ValidatorSet) XXX_Unmarshal(b []byte) error { 726 return m.Unmarshal(b) 727 } 728 func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 729 b = b[:cap(b)] 730 n, err := m.MarshalToSizedBuffer(b) 731 if err != nil { 732 return nil, err 733 } 734 return b[:n], nil 735 } 736 func (m *ValidatorSet) XXX_Merge(src proto.Message) { 737 xxx_messageInfo_ValidatorSet.Merge(m, src) 738 } 739 func (m *ValidatorSet) XXX_Size() int { 740 return m.Size() 741 } 742 func (m *ValidatorSet) XXX_DiscardUnknown() { 743 xxx_messageInfo_ValidatorSet.DiscardUnknown(m) 744 } 745 746 var xxx_messageInfo_ValidatorSet proto.InternalMessageInfo 747 748 func (m *ValidatorSet) GetHeight() uint64 { 749 if m != nil { 750 return m.Height 751 } 752 return 0 753 } 754 755 func (m *ValidatorSet) GetSet() []*validator.Validator { 756 if m != nil { 757 return m.Set 758 } 759 return nil 760 } 761 762 func (*ValidatorSet) XXX_MessageName() string { 763 return "rpcquery.ValidatorSet" 764 } 765 766 type GetProposalParam struct { 767 Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` 768 XXX_NoUnkeyedLiteral struct{} `json:"-"` 769 XXX_unrecognized []byte `json:"-"` 770 XXX_sizecache int32 `json:"-"` 771 } 772 773 func (m *GetProposalParam) Reset() { *m = GetProposalParam{} } 774 func (m *GetProposalParam) String() string { return proto.CompactTextString(m) } 775 func (*GetProposalParam) ProtoMessage() {} 776 func (*GetProposalParam) Descriptor() ([]byte, []int) { 777 return fileDescriptor_88e25d9b99e39f02, []int{16} 778 } 779 func (m *GetProposalParam) XXX_Unmarshal(b []byte) error { 780 return m.Unmarshal(b) 781 } 782 func (m *GetProposalParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 783 b = b[:cap(b)] 784 n, err := m.MarshalToSizedBuffer(b) 785 if err != nil { 786 return nil, err 787 } 788 return b[:n], nil 789 } 790 func (m *GetProposalParam) XXX_Merge(src proto.Message) { 791 xxx_messageInfo_GetProposalParam.Merge(m, src) 792 } 793 func (m *GetProposalParam) XXX_Size() int { 794 return m.Size() 795 } 796 func (m *GetProposalParam) XXX_DiscardUnknown() { 797 xxx_messageInfo_GetProposalParam.DiscardUnknown(m) 798 } 799 800 var xxx_messageInfo_GetProposalParam proto.InternalMessageInfo 801 802 func (m *GetProposalParam) GetHash() []byte { 803 if m != nil { 804 return m.Hash 805 } 806 return nil 807 } 808 809 func (*GetProposalParam) XXX_MessageName() string { 810 return "rpcquery.GetProposalParam" 811 } 812 813 type ListProposalsParam struct { 814 Proposed bool `protobuf:"varint,1,opt,name=Proposed,proto3" json:"Proposed,omitempty"` 815 XXX_NoUnkeyedLiteral struct{} `json:"-"` 816 XXX_unrecognized []byte `json:"-"` 817 XXX_sizecache int32 `json:"-"` 818 } 819 820 func (m *ListProposalsParam) Reset() { *m = ListProposalsParam{} } 821 func (m *ListProposalsParam) String() string { return proto.CompactTextString(m) } 822 func (*ListProposalsParam) ProtoMessage() {} 823 func (*ListProposalsParam) Descriptor() ([]byte, []int) { 824 return fileDescriptor_88e25d9b99e39f02, []int{17} 825 } 826 func (m *ListProposalsParam) XXX_Unmarshal(b []byte) error { 827 return m.Unmarshal(b) 828 } 829 func (m *ListProposalsParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 830 b = b[:cap(b)] 831 n, err := m.MarshalToSizedBuffer(b) 832 if err != nil { 833 return nil, err 834 } 835 return b[:n], nil 836 } 837 func (m *ListProposalsParam) XXX_Merge(src proto.Message) { 838 xxx_messageInfo_ListProposalsParam.Merge(m, src) 839 } 840 func (m *ListProposalsParam) XXX_Size() int { 841 return m.Size() 842 } 843 func (m *ListProposalsParam) XXX_DiscardUnknown() { 844 xxx_messageInfo_ListProposalsParam.DiscardUnknown(m) 845 } 846 847 var xxx_messageInfo_ListProposalsParam proto.InternalMessageInfo 848 849 func (m *ListProposalsParam) GetProposed() bool { 850 if m != nil { 851 return m.Proposed 852 } 853 return false 854 } 855 856 func (*ListProposalsParam) XXX_MessageName() string { 857 return "rpcquery.ListProposalsParam" 858 } 859 860 type ProposalResult struct { 861 Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` 862 Ballot *payload.Ballot `protobuf:"bytes,2,opt,name=Ballot,proto3" json:"Ballot,omitempty"` 863 XXX_NoUnkeyedLiteral struct{} `json:"-"` 864 XXX_unrecognized []byte `json:"-"` 865 XXX_sizecache int32 `json:"-"` 866 } 867 868 func (m *ProposalResult) Reset() { *m = ProposalResult{} } 869 func (m *ProposalResult) String() string { return proto.CompactTextString(m) } 870 func (*ProposalResult) ProtoMessage() {} 871 func (*ProposalResult) Descriptor() ([]byte, []int) { 872 return fileDescriptor_88e25d9b99e39f02, []int{18} 873 } 874 func (m *ProposalResult) XXX_Unmarshal(b []byte) error { 875 return m.Unmarshal(b) 876 } 877 func (m *ProposalResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 878 b = b[:cap(b)] 879 n, err := m.MarshalToSizedBuffer(b) 880 if err != nil { 881 return nil, err 882 } 883 return b[:n], nil 884 } 885 func (m *ProposalResult) XXX_Merge(src proto.Message) { 886 xxx_messageInfo_ProposalResult.Merge(m, src) 887 } 888 func (m *ProposalResult) XXX_Size() int { 889 return m.Size() 890 } 891 func (m *ProposalResult) XXX_DiscardUnknown() { 892 xxx_messageInfo_ProposalResult.DiscardUnknown(m) 893 } 894 895 var xxx_messageInfo_ProposalResult proto.InternalMessageInfo 896 897 func (m *ProposalResult) GetHash() []byte { 898 if m != nil { 899 return m.Hash 900 } 901 return nil 902 } 903 904 func (m *ProposalResult) GetBallot() *payload.Ballot { 905 if m != nil { 906 return m.Ballot 907 } 908 return nil 909 } 910 911 func (*ProposalResult) XXX_MessageName() string { 912 return "rpcquery.ProposalResult" 913 } 914 915 type GetStatsParam struct { 916 XXX_NoUnkeyedLiteral struct{} `json:"-"` 917 XXX_unrecognized []byte `json:"-"` 918 XXX_sizecache int32 `json:"-"` 919 } 920 921 func (m *GetStatsParam) Reset() { *m = GetStatsParam{} } 922 func (m *GetStatsParam) String() string { return proto.CompactTextString(m) } 923 func (*GetStatsParam) ProtoMessage() {} 924 func (*GetStatsParam) Descriptor() ([]byte, []int) { 925 return fileDescriptor_88e25d9b99e39f02, []int{19} 926 } 927 func (m *GetStatsParam) XXX_Unmarshal(b []byte) error { 928 return m.Unmarshal(b) 929 } 930 func (m *GetStatsParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 931 b = b[:cap(b)] 932 n, err := m.MarshalToSizedBuffer(b) 933 if err != nil { 934 return nil, err 935 } 936 return b[:n], nil 937 } 938 func (m *GetStatsParam) XXX_Merge(src proto.Message) { 939 xxx_messageInfo_GetStatsParam.Merge(m, src) 940 } 941 func (m *GetStatsParam) XXX_Size() int { 942 return m.Size() 943 } 944 func (m *GetStatsParam) XXX_DiscardUnknown() { 945 xxx_messageInfo_GetStatsParam.DiscardUnknown(m) 946 } 947 948 var xxx_messageInfo_GetStatsParam proto.InternalMessageInfo 949 950 func (*GetStatsParam) XXX_MessageName() string { 951 return "rpcquery.GetStatsParam" 952 } 953 954 type Stats struct { 955 AccountsWithCode uint64 `protobuf:"varint,1,opt,name=AccountsWithCode,proto3" json:"AccountsWithCode,omitempty"` 956 AccountsWithoutCode uint64 `protobuf:"varint,2,opt,name=AccountsWithoutCode,proto3" json:"AccountsWithoutCode,omitempty"` 957 XXX_NoUnkeyedLiteral struct{} `json:"-"` 958 XXX_unrecognized []byte `json:"-"` 959 XXX_sizecache int32 `json:"-"` 960 } 961 962 func (m *Stats) Reset() { *m = Stats{} } 963 func (m *Stats) String() string { return proto.CompactTextString(m) } 964 func (*Stats) ProtoMessage() {} 965 func (*Stats) Descriptor() ([]byte, []int) { 966 return fileDescriptor_88e25d9b99e39f02, []int{20} 967 } 968 func (m *Stats) XXX_Unmarshal(b []byte) error { 969 return m.Unmarshal(b) 970 } 971 func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 972 b = b[:cap(b)] 973 n, err := m.MarshalToSizedBuffer(b) 974 if err != nil { 975 return nil, err 976 } 977 return b[:n], nil 978 } 979 func (m *Stats) XXX_Merge(src proto.Message) { 980 xxx_messageInfo_Stats.Merge(m, src) 981 } 982 func (m *Stats) XXX_Size() int { 983 return m.Size() 984 } 985 func (m *Stats) XXX_DiscardUnknown() { 986 xxx_messageInfo_Stats.DiscardUnknown(m) 987 } 988 989 var xxx_messageInfo_Stats proto.InternalMessageInfo 990 991 func (m *Stats) GetAccountsWithCode() uint64 { 992 if m != nil { 993 return m.AccountsWithCode 994 } 995 return 0 996 } 997 998 func (m *Stats) GetAccountsWithoutCode() uint64 { 999 if m != nil { 1000 return m.AccountsWithoutCode 1001 } 1002 return 0 1003 } 1004 1005 func (*Stats) XXX_MessageName() string { 1006 return "rpcquery.Stats" 1007 } 1008 1009 type GetBlockParam struct { 1010 Height uint64 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` 1011 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1012 XXX_unrecognized []byte `json:"-"` 1013 XXX_sizecache int32 `json:"-"` 1014 } 1015 1016 func (m *GetBlockParam) Reset() { *m = GetBlockParam{} } 1017 func (m *GetBlockParam) String() string { return proto.CompactTextString(m) } 1018 func (*GetBlockParam) ProtoMessage() {} 1019 func (*GetBlockParam) Descriptor() ([]byte, []int) { 1020 return fileDescriptor_88e25d9b99e39f02, []int{21} 1021 } 1022 func (m *GetBlockParam) XXX_Unmarshal(b []byte) error { 1023 return m.Unmarshal(b) 1024 } 1025 func (m *GetBlockParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1026 b = b[:cap(b)] 1027 n, err := m.MarshalToSizedBuffer(b) 1028 if err != nil { 1029 return nil, err 1030 } 1031 return b[:n], nil 1032 } 1033 func (m *GetBlockParam) XXX_Merge(src proto.Message) { 1034 xxx_messageInfo_GetBlockParam.Merge(m, src) 1035 } 1036 func (m *GetBlockParam) XXX_Size() int { 1037 return m.Size() 1038 } 1039 func (m *GetBlockParam) XXX_DiscardUnknown() { 1040 xxx_messageInfo_GetBlockParam.DiscardUnknown(m) 1041 } 1042 1043 var xxx_messageInfo_GetBlockParam proto.InternalMessageInfo 1044 1045 func (m *GetBlockParam) GetHeight() uint64 { 1046 if m != nil { 1047 return m.Height 1048 } 1049 return 0 1050 } 1051 1052 func (*GetBlockParam) XXX_MessageName() string { 1053 return "rpcquery.GetBlockParam" 1054 } 1055 func init() { 1056 proto.RegisterType((*StatusParam)(nil), "rpcquery.StatusParam") 1057 golang_proto.RegisterType((*StatusParam)(nil), "rpcquery.StatusParam") 1058 proto.RegisterType((*GetAccountParam)(nil), "rpcquery.GetAccountParam") 1059 golang_proto.RegisterType((*GetAccountParam)(nil), "rpcquery.GetAccountParam") 1060 proto.RegisterType((*GetMetadataParam)(nil), "rpcquery.GetMetadataParam") 1061 golang_proto.RegisterType((*GetMetadataParam)(nil), "rpcquery.GetMetadataParam") 1062 proto.RegisterType((*MetadataResult)(nil), "rpcquery.MetadataResult") 1063 golang_proto.RegisterType((*MetadataResult)(nil), "rpcquery.MetadataResult") 1064 proto.RegisterType((*GetStorageParam)(nil), "rpcquery.GetStorageParam") 1065 golang_proto.RegisterType((*GetStorageParam)(nil), "rpcquery.GetStorageParam") 1066 proto.RegisterType((*StorageValue)(nil), "rpcquery.StorageValue") 1067 golang_proto.RegisterType((*StorageValue)(nil), "rpcquery.StorageValue") 1068 proto.RegisterType((*ListAccountsParam)(nil), "rpcquery.ListAccountsParam") 1069 golang_proto.RegisterType((*ListAccountsParam)(nil), "rpcquery.ListAccountsParam") 1070 proto.RegisterType((*GetNameParam)(nil), "rpcquery.GetNameParam") 1071 golang_proto.RegisterType((*GetNameParam)(nil), "rpcquery.GetNameParam") 1072 proto.RegisterType((*ListNamesParam)(nil), "rpcquery.ListNamesParam") 1073 golang_proto.RegisterType((*ListNamesParam)(nil), "rpcquery.ListNamesParam") 1074 proto.RegisterType((*GetNetworkRegistryParam)(nil), "rpcquery.GetNetworkRegistryParam") 1075 golang_proto.RegisterType((*GetNetworkRegistryParam)(nil), "rpcquery.GetNetworkRegistryParam") 1076 proto.RegisterType((*GetValidatorSetParam)(nil), "rpcquery.GetValidatorSetParam") 1077 golang_proto.RegisterType((*GetValidatorSetParam)(nil), "rpcquery.GetValidatorSetParam") 1078 proto.RegisterType((*GetValidatorSetHistoryParam)(nil), "rpcquery.GetValidatorSetHistoryParam") 1079 golang_proto.RegisterType((*GetValidatorSetHistoryParam)(nil), "rpcquery.GetValidatorSetHistoryParam") 1080 proto.RegisterType((*NetworkRegistry)(nil), "rpcquery.NetworkRegistry") 1081 golang_proto.RegisterType((*NetworkRegistry)(nil), "rpcquery.NetworkRegistry") 1082 proto.RegisterType((*RegisteredValidator)(nil), "rpcquery.RegisteredValidator") 1083 golang_proto.RegisterType((*RegisteredValidator)(nil), "rpcquery.RegisteredValidator") 1084 proto.RegisterType((*ValidatorSetHistory)(nil), "rpcquery.ValidatorSetHistory") 1085 golang_proto.RegisterType((*ValidatorSetHistory)(nil), "rpcquery.ValidatorSetHistory") 1086 proto.RegisterType((*ValidatorSet)(nil), "rpcquery.ValidatorSet") 1087 golang_proto.RegisterType((*ValidatorSet)(nil), "rpcquery.ValidatorSet") 1088 proto.RegisterType((*GetProposalParam)(nil), "rpcquery.GetProposalParam") 1089 golang_proto.RegisterType((*GetProposalParam)(nil), "rpcquery.GetProposalParam") 1090 proto.RegisterType((*ListProposalsParam)(nil), "rpcquery.ListProposalsParam") 1091 golang_proto.RegisterType((*ListProposalsParam)(nil), "rpcquery.ListProposalsParam") 1092 proto.RegisterType((*ProposalResult)(nil), "rpcquery.ProposalResult") 1093 golang_proto.RegisterType((*ProposalResult)(nil), "rpcquery.ProposalResult") 1094 proto.RegisterType((*GetStatsParam)(nil), "rpcquery.GetStatsParam") 1095 golang_proto.RegisterType((*GetStatsParam)(nil), "rpcquery.GetStatsParam") 1096 proto.RegisterType((*Stats)(nil), "rpcquery.Stats") 1097 golang_proto.RegisterType((*Stats)(nil), "rpcquery.Stats") 1098 proto.RegisterType((*GetBlockParam)(nil), "rpcquery.GetBlockParam") 1099 golang_proto.RegisterType((*GetBlockParam)(nil), "rpcquery.GetBlockParam") 1100 } 1101 1102 func init() { proto.RegisterFile("rpcquery.proto", fileDescriptor_88e25d9b99e39f02) } 1103 func init() { golang_proto.RegisterFile("rpcquery.proto", fileDescriptor_88e25d9b99e39f02) } 1104 1105 var fileDescriptor_88e25d9b99e39f02 = []byte{ 1106 // 1048 bytes of a gzipped FileDescriptorProto 1107 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0x1b, 0xc5, 1108 0x17, 0xff, 0x6f, 0xf3, 0x7d, 0xec, 0xd8, 0xed, 0x24, 0x7f, 0xd7, 0xdd, 0xb6, 0x4e, 0x19, 0x89, 1109 0x34, 0x44, 0x65, 0x6d, 0x4c, 0xc3, 0x05, 0x5c, 0xa0, 0x3a, 0x80, 0x1d, 0x4a, 0xa3, 0xb0, 0x86, 1110 0x56, 0x02, 0x09, 0x69, 0xb2, 0x3b, 0xb2, 0x57, 0x5d, 0xef, 0x98, 0xd9, 0xd9, 0x16, 0x3f, 0x06, 1111 0x2f, 0xc0, 0x3d, 0x0f, 0xc0, 0x3d, 0x97, 0xb9, 0xe4, 0x12, 0xf5, 0x22, 0x42, 0xe9, 0x8b, 0xa0, 1112 0x9d, 0x0f, 0xef, 0x47, 0xdc, 0x08, 0x10, 0xdc, 0x58, 0x73, 0xce, 0x9c, 0x0f, 0x9f, 0x33, 0xe7, 1113 0xf7, 0x3b, 0x0b, 0x35, 0x3e, 0xf5, 0xbe, 0x4f, 0x28, 0x9f, 0x39, 0x53, 0xce, 0x04, 0x43, 0xeb, 1114 0x46, 0xb6, 0xb7, 0x47, 0x6c, 0xc4, 0xa4, 0xb2, 0x9d, 0x9e, 0xd4, 0xbd, 0x7d, 0x47, 0xd0, 0xc8, 1115 0xa7, 0x7c, 0x12, 0x44, 0xa2, 0x2d, 0x66, 0x53, 0x1a, 0xab, 0x5f, 0x7d, 0x5b, 0x89, 0xc8, 0x64, 1116 0x2e, 0x6c, 0x10, 0x6f, 0xa2, 0x8f, 0xf5, 0x17, 0x24, 0x0c, 0x7c, 0x22, 0x18, 0xd7, 0x8a, 0x1a, 1117 0xa7, 0xa3, 0x20, 0x16, 0x26, 0xad, 0xbd, 0xc1, 0xa7, 0x9e, 0x3e, 0x6e, 0x4e, 0xc9, 0x2c, 0x64, 1118 0xc4, 0x57, 0x22, 0x0e, 0xa0, 0x32, 0x14, 0x44, 0x24, 0xf1, 0x09, 0xe1, 0x64, 0x82, 0xf6, 0xa0, 1119 0xde, 0x0b, 0x99, 0xf7, 0xfc, 0xab, 0x60, 0x42, 0x9f, 0x05, 0x62, 0x1c, 0x44, 0x4d, 0xeb, 0x9e, 1120 0xb5, 0xb7, 0xe1, 0x96, 0xd5, 0xa8, 0x03, 0x5b, 0x52, 0x35, 0xa4, 0x34, 0xca, 0x59, 0x5f, 0x93, 1121 0xd6, 0x8b, 0xae, 0x30, 0x81, 0x7a, 0x9f, 0x8a, 0x47, 0x9e, 0xc7, 0x92, 0x48, 0xa8, 0x74, 0xc7, 1122 0xb0, 0xf6, 0xc8, 0xf7, 0x39, 0x8d, 0x63, 0x99, 0xa6, 0xda, 0x7b, 0x78, 0x76, 0xbe, 0xf3, 0xbf, 1123 0x57, 0xe7, 0x3b, 0x0f, 0x46, 0x81, 0x18, 0x27, 0xa7, 0x8e, 0xc7, 0x26, 0xed, 0xf1, 0x6c, 0x4a, 1124 0x79, 0x48, 0xfd, 0x11, 0xe5, 0xed, 0xd3, 0x84, 0x73, 0xf6, 0xb2, 0xed, 0xf1, 0xd9, 0x54, 0x30, 1125 0x47, 0xfb, 0xba, 0x26, 0x08, 0xfe, 0xc5, 0x82, 0xeb, 0x7d, 0x2a, 0x9e, 0x50, 0x41, 0x7c, 0x22, 1126 0x88, 0x4a, 0xf2, 0x79, 0x39, 0x49, 0xe7, 0x1f, 0x27, 0x40, 0x5f, 0x43, 0xd5, 0x04, 0x1f, 0x90, 1127 0x78, 0x2c, 0xcb, 0xad, 0xf6, 0xde, 0x7b, 0x75, 0xbe, 0xf3, 0xee, 0xd5, 0x01, 0x4f, 0x83, 0x88, 1128 0xf0, 0x99, 0x33, 0xa0, 0x3f, 0xf4, 0x66, 0x82, 0xc6, 0x6e, 0x21, 0x0c, 0x7e, 0x00, 0x35, 0x23, 1129 0xbb, 0x34, 0x4e, 0x42, 0x81, 0x6c, 0x58, 0x37, 0x1a, 0xfd, 0x02, 0x73, 0x19, 0xff, 0x6c, 0xc9, 1130 0x4e, 0x0e, 0x05, 0xe3, 0x64, 0x44, 0xff, 0x93, 0x4e, 0xa2, 0xcf, 0x60, 0xe9, 0x31, 0x9d, 0xe9, 1131 0xfa, 0xfe, 0x62, 0x2c, 0x5d, 0xe3, 0x33, 0xc6, 0xfd, 0xee, 0xc1, 0x07, 0x6e, 0x1a, 0x00, 0x7f, 1132 0x0b, 0x55, 0xfd, 0x3f, 0x9f, 0x92, 0x30, 0xa1, 0xe8, 0x31, 0xac, 0xc8, 0x83, 0xfe, 0x97, 0x07, 1133 0x3a, 0xf2, 0xdf, 0xec, 0x9e, 0x8a, 0x81, 0xdf, 0x81, 0x1b, 0x5f, 0x04, 0xb1, 0x19, 0x29, 0x3d, 1134 0xc2, 0xdb, 0xb0, 0xf2, 0x65, 0x8a, 0x30, 0xdd, 0x36, 0x25, 0x60, 0x0c, 0xd5, 0x3e, 0x15, 0xc7, 1135 0x64, 0xa2, 0xfb, 0x85, 0x60, 0x39, 0x15, 0xb4, 0x91, 0x3c, 0xe3, 0x5d, 0xa8, 0xa5, 0xe1, 0xd2, 1136 0xf3, 0x95, 0xb1, 0x6e, 0xc1, 0xcd, 0x34, 0x16, 0x15, 0x2f, 0x19, 0x7f, 0xee, 0x6a, 0xa4, 0x49, 1137 0x07, 0xdc, 0x80, 0xed, 0x3e, 0x15, 0x4f, 0x0d, 0x1c, 0x87, 0x54, 0x0d, 0x3a, 0xee, 0xc3, 0xed, 1138 0x92, 0x7e, 0x10, 0xc4, 0x82, 0x69, 0xb7, 0x14, 0x76, 0x47, 0x91, 0x17, 0x26, 0x3e, 0x3d, 0xe1, 1139 0xf4, 0x45, 0xc0, 0x12, 0xf5, 0x8a, 0x4b, 0x6e, 0x59, 0x8d, 0x7b, 0x50, 0x2f, 0x25, 0x46, 0x6d, 1140 0x58, 0x1a, 0x52, 0xd1, 0xb4, 0xee, 0x2d, 0xed, 0x55, 0xba, 0x77, 0x9d, 0x39, 0xe3, 0x28, 0x03, 1141 0xca, 0xa9, 0x3f, 0xcf, 0xeb, 0xa6, 0x96, 0xf8, 0x47, 0x0b, 0xb6, 0x16, 0x5c, 0xfe, 0xeb, 0x33, 1142 0xb4, 0x0f, 0xcb, 0xc7, 0xcc, 0xa7, 0x72, 0x88, 0x2a, 0xdd, 0x86, 0x33, 0x27, 0xa5, 0x54, 0x7b, 1143 0xe4, 0xd3, 0x48, 0x04, 0x62, 0xe6, 0x4a, 0x1b, 0xdc, 0x87, 0xad, 0x05, 0xdd, 0x41, 0x1d, 0x58, 1144 0xd3, 0x47, 0x5d, 0x5f, 0x23, 0xab, 0x2f, 0x6f, 0xef, 0x1a, 0x33, 0x7c, 0x0c, 0xd5, 0xfc, 0x05, 1145 0x6a, 0xc0, 0xea, 0x98, 0x06, 0xa3, 0xb1, 0x90, 0x35, 0x2d, 0xbb, 0x5a, 0x42, 0xbb, 0xaa, 0x6b, 1146 0xd7, 0x64, 0xd4, 0x6d, 0x27, 0x63, 0xd0, 0x52, 0xb3, 0x76, 0x25, 0xa3, 0x9c, 0x70, 0x36, 0x65, 1147 0x31, 0x09, 0xe7, 0xc3, 0x23, 0xd1, 0x2f, 0xbb, 0xe4, 0xca, 0x33, 0xee, 0x00, 0x4a, 0x87, 0xc7, 1148 0x18, 0xea, 0x01, 0xb2, 0x61, 0x5d, 0x69, 0xa8, 0x2f, 0xad, 0xd7, 0xdd, 0xb9, 0x8c, 0x9f, 0x40, 1149 0xcd, 0x58, 0x6b, 0xd0, 0x2f, 0x88, 0x8b, 0xee, 0xc3, 0x6a, 0x8f, 0x84, 0x21, 0x13, 0xba, 0x8d, 1150 0x75, 0xc7, 0x10, 0xb8, 0x52, 0xbb, 0xfa, 0x1a, 0xd7, 0x61, 0x53, 0x92, 0x02, 0xd1, 0x40, 0xc0, 1151 0x14, 0x56, 0xa4, 0x84, 0xf6, 0xe1, 0xba, 0x81, 0x48, 0x4a, 0xc5, 0x87, 0xe9, 0x9b, 0xa8, 0x66, 1152 0x5c, 0xd2, 0xa7, 0xb4, 0x9e, 0xd7, 0xb1, 0x44, 0x1c, 0x9a, 0x27, 0x5c, 0x76, 0x17, 0x5d, 0xe1, 1153 0xfb, 0x32, 0xaf, 0x24, 0x7c, 0x55, 0x73, 0x03, 0x56, 0x07, 0x85, 0x8e, 0x2b, 0xa9, 0xfb, 0xd3, 1154 0x9a, 0x46, 0x13, 0xea, 0xc2, 0xaa, 0x5a, 0x3a, 0xe8, 0xff, 0xd9, 0x73, 0xe6, 0xd6, 0x90, 0x7d, 1155 0x23, 0x55, 0x3b, 0xaa, 0x2b, 0xda, 0xf2, 0x00, 0x20, 0xdb, 0x1e, 0xe8, 0x56, 0xe6, 0x57, 0xda, 1156 0x29, 0x76, 0xd5, 0x49, 0x17, 0xa3, 0x31, 0x3c, 0x84, 0x4a, 0x6e, 0x21, 0x20, 0xbb, 0xe0, 0x57, 1157 0xd8, 0x13, 0x76, 0x33, 0xbb, 0x2b, 0x91, 0xf1, 0xc7, 0x32, 0xb7, 0xe6, 0xb1, 0x52, 0xee, 0x3c, 1158 0x0b, 0xdb, 0x8d, 0x7c, 0x39, 0x39, 0xd6, 0xfb, 0x08, 0xaa, 0x79, 0xa2, 0x42, 0xb7, 0x33, 0xbb, 1159 0x4b, 0x04, 0x56, 0x2c, 0xa0, 0x63, 0xa1, 0x36, 0xac, 0x69, 0xea, 0x42, 0x8d, 0x42, 0xea, 0x39, 1160 0x9b, 0xd9, 0x55, 0x47, 0x7d, 0x19, 0x7c, 0x1a, 0xa5, 0x84, 0x70, 0x00, 0x1b, 0x73, 0x1e, 0x43, 1161 0xcd, 0x62, 0xaa, 0x8c, 0xdc, 0x8a, 0x4e, 0x1d, 0x0b, 0xb9, 0x80, 0x2e, 0xd3, 0x1a, 0x7a, 0xab, 1162 0x98, 0x72, 0x01, 0xe9, 0xd9, 0xb9, 0x86, 0x94, 0xbd, 0x8f, 0xe4, 0xa6, 0x2a, 0x00, 0xb2, 0x55, 1163 0x08, 0x78, 0x89, 0x2a, 0xed, 0x37, 0x20, 0x1c, 0x7d, 0x07, 0x8d, 0xc5, 0x14, 0x8a, 0xde, 0x7e, 1164 0x63, 0xc4, 0x3c, 0xc9, 0xda, 0x77, 0x17, 0x07, 0x36, 0x51, 0x3e, 0x94, 0x93, 0x62, 0x10, 0x59, 1165 0x9a, 0x94, 0x02, 0xfe, 0xed, 0x32, 0x06, 0xd1, 0x11, 0x6c, 0x16, 0xc0, 0x8f, 0xee, 0x14, 0xbb, 1166 0x5e, 0x64, 0x85, 0xfc, 0xa4, 0x15, 0x19, 0xa0, 0x63, 0xa1, 0x87, 0xb0, 0x6e, 0x60, 0x8c, 0x6e, 1167 0x96, 0x26, 0xcd, 0x40, 0xdb, 0xae, 0x17, 0x61, 0x13, 0xa3, 0x43, 0xa8, 0x19, 0x10, 0x0e, 0x28, 1168 0xf1, 0x29, 0x2f, 0xf9, 0x66, 0xf0, 0xb4, 0x9b, 0x4e, 0xf6, 0x8d, 0xe9, 0xa8, 0xaf, 0x4b, 0xe5, 1169 0xd2, 0xfb, 0xe4, 0xec, 0xa2, 0x65, 0xfd, 0x76, 0xd1, 0xb2, 0x7e, 0xbf, 0x68, 0x59, 0x7f, 0x5c, 1170 0xb4, 0xac, 0x5f, 0x5f, 0xb7, 0xac, 0xb3, 0xd7, 0x2d, 0xeb, 0x9b, 0xfd, 0xab, 0x17, 0x00, 0x9f, 1171 0x7a, 0x6d, 0x93, 0xed, 0x74, 0x55, 0x7e, 0x58, 0xbe, 0xff, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 1172 0xe6, 0xd8, 0xa5, 0xb6, 0xfb, 0x0a, 0x00, 0x00, 1173 } 1174 1175 func (m *StatusParam) Marshal() (dAtA []byte, err error) { 1176 size := m.Size() 1177 dAtA = make([]byte, size) 1178 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1179 if err != nil { 1180 return nil, err 1181 } 1182 return dAtA[:n], nil 1183 } 1184 1185 func (m *StatusParam) MarshalTo(dAtA []byte) (int, error) { 1186 size := m.Size() 1187 return m.MarshalToSizedBuffer(dAtA[:size]) 1188 } 1189 1190 func (m *StatusParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1191 i := len(dAtA) 1192 _ = i 1193 var l int 1194 _ = l 1195 if m.XXX_unrecognized != nil { 1196 i -= len(m.XXX_unrecognized) 1197 copy(dAtA[i:], m.XXX_unrecognized) 1198 } 1199 if len(m.BlockSeenTimeWithin) > 0 { 1200 i -= len(m.BlockSeenTimeWithin) 1201 copy(dAtA[i:], m.BlockSeenTimeWithin) 1202 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.BlockSeenTimeWithin))) 1203 i-- 1204 dAtA[i] = 0x12 1205 } 1206 if len(m.BlockTimeWithin) > 0 { 1207 i -= len(m.BlockTimeWithin) 1208 copy(dAtA[i:], m.BlockTimeWithin) 1209 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.BlockTimeWithin))) 1210 i-- 1211 dAtA[i] = 0xa 1212 } 1213 return len(dAtA) - i, nil 1214 } 1215 1216 func (m *GetAccountParam) Marshal() (dAtA []byte, err error) { 1217 size := m.Size() 1218 dAtA = make([]byte, size) 1219 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1220 if err != nil { 1221 return nil, err 1222 } 1223 return dAtA[:n], nil 1224 } 1225 1226 func (m *GetAccountParam) MarshalTo(dAtA []byte) (int, error) { 1227 size := m.Size() 1228 return m.MarshalToSizedBuffer(dAtA[:size]) 1229 } 1230 1231 func (m *GetAccountParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1232 i := len(dAtA) 1233 _ = i 1234 var l int 1235 _ = l 1236 if m.XXX_unrecognized != nil { 1237 i -= len(m.XXX_unrecognized) 1238 copy(dAtA[i:], m.XXX_unrecognized) 1239 } 1240 { 1241 size := m.Address.Size() 1242 i -= size 1243 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1244 return 0, err 1245 } 1246 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1247 } 1248 i-- 1249 dAtA[i] = 0xa 1250 return len(dAtA) - i, nil 1251 } 1252 1253 func (m *GetMetadataParam) Marshal() (dAtA []byte, err error) { 1254 size := m.Size() 1255 dAtA = make([]byte, size) 1256 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1257 if err != nil { 1258 return nil, err 1259 } 1260 return dAtA[:n], nil 1261 } 1262 1263 func (m *GetMetadataParam) MarshalTo(dAtA []byte) (int, error) { 1264 size := m.Size() 1265 return m.MarshalToSizedBuffer(dAtA[:size]) 1266 } 1267 1268 func (m *GetMetadataParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1269 i := len(dAtA) 1270 _ = i 1271 var l int 1272 _ = l 1273 if m.XXX_unrecognized != nil { 1274 i -= len(m.XXX_unrecognized) 1275 copy(dAtA[i:], m.XXX_unrecognized) 1276 } 1277 if m.MetadataHash != nil { 1278 { 1279 size := m.MetadataHash.Size() 1280 i -= size 1281 if _, err := m.MetadataHash.MarshalTo(dAtA[i:]); err != nil { 1282 return 0, err 1283 } 1284 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1285 } 1286 i-- 1287 dAtA[i] = 0x12 1288 } 1289 if m.Address != nil { 1290 { 1291 size := m.Address.Size() 1292 i -= size 1293 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1294 return 0, err 1295 } 1296 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1297 } 1298 i-- 1299 dAtA[i] = 0xa 1300 } 1301 return len(dAtA) - i, nil 1302 } 1303 1304 func (m *MetadataResult) Marshal() (dAtA []byte, err error) { 1305 size := m.Size() 1306 dAtA = make([]byte, size) 1307 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1308 if err != nil { 1309 return nil, err 1310 } 1311 return dAtA[:n], nil 1312 } 1313 1314 func (m *MetadataResult) MarshalTo(dAtA []byte) (int, error) { 1315 size := m.Size() 1316 return m.MarshalToSizedBuffer(dAtA[:size]) 1317 } 1318 1319 func (m *MetadataResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1320 i := len(dAtA) 1321 _ = i 1322 var l int 1323 _ = l 1324 if m.XXX_unrecognized != nil { 1325 i -= len(m.XXX_unrecognized) 1326 copy(dAtA[i:], m.XXX_unrecognized) 1327 } 1328 if len(m.Metadata) > 0 { 1329 i -= len(m.Metadata) 1330 copy(dAtA[i:], m.Metadata) 1331 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.Metadata))) 1332 i-- 1333 dAtA[i] = 0xa 1334 } 1335 return len(dAtA) - i, nil 1336 } 1337 1338 func (m *GetStorageParam) Marshal() (dAtA []byte, err error) { 1339 size := m.Size() 1340 dAtA = make([]byte, size) 1341 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1342 if err != nil { 1343 return nil, err 1344 } 1345 return dAtA[:n], nil 1346 } 1347 1348 func (m *GetStorageParam) MarshalTo(dAtA []byte) (int, error) { 1349 size := m.Size() 1350 return m.MarshalToSizedBuffer(dAtA[:size]) 1351 } 1352 1353 func (m *GetStorageParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1354 i := len(dAtA) 1355 _ = i 1356 var l int 1357 _ = l 1358 if m.XXX_unrecognized != nil { 1359 i -= len(m.XXX_unrecognized) 1360 copy(dAtA[i:], m.XXX_unrecognized) 1361 } 1362 { 1363 size := m.Key.Size() 1364 i -= size 1365 if _, err := m.Key.MarshalTo(dAtA[i:]); err != nil { 1366 return 0, err 1367 } 1368 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1369 } 1370 i-- 1371 dAtA[i] = 0x12 1372 { 1373 size := m.Address.Size() 1374 i -= size 1375 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1376 return 0, err 1377 } 1378 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1379 } 1380 i-- 1381 dAtA[i] = 0xa 1382 return len(dAtA) - i, nil 1383 } 1384 1385 func (m *StorageValue) Marshal() (dAtA []byte, err error) { 1386 size := m.Size() 1387 dAtA = make([]byte, size) 1388 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1389 if err != nil { 1390 return nil, err 1391 } 1392 return dAtA[:n], nil 1393 } 1394 1395 func (m *StorageValue) MarshalTo(dAtA []byte) (int, error) { 1396 size := m.Size() 1397 return m.MarshalToSizedBuffer(dAtA[:size]) 1398 } 1399 1400 func (m *StorageValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1401 i := len(dAtA) 1402 _ = i 1403 var l int 1404 _ = l 1405 if m.XXX_unrecognized != nil { 1406 i -= len(m.XXX_unrecognized) 1407 copy(dAtA[i:], m.XXX_unrecognized) 1408 } 1409 { 1410 size := m.Value.Size() 1411 i -= size 1412 if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { 1413 return 0, err 1414 } 1415 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1416 } 1417 i-- 1418 dAtA[i] = 0xa 1419 return len(dAtA) - i, nil 1420 } 1421 1422 func (m *ListAccountsParam) Marshal() (dAtA []byte, err error) { 1423 size := m.Size() 1424 dAtA = make([]byte, size) 1425 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1426 if err != nil { 1427 return nil, err 1428 } 1429 return dAtA[:n], nil 1430 } 1431 1432 func (m *ListAccountsParam) MarshalTo(dAtA []byte) (int, error) { 1433 size := m.Size() 1434 return m.MarshalToSizedBuffer(dAtA[:size]) 1435 } 1436 1437 func (m *ListAccountsParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1438 i := len(dAtA) 1439 _ = i 1440 var l int 1441 _ = l 1442 if m.XXX_unrecognized != nil { 1443 i -= len(m.XXX_unrecognized) 1444 copy(dAtA[i:], m.XXX_unrecognized) 1445 } 1446 if len(m.Query) > 0 { 1447 i -= len(m.Query) 1448 copy(dAtA[i:], m.Query) 1449 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.Query))) 1450 i-- 1451 dAtA[i] = 0xa 1452 } 1453 return len(dAtA) - i, nil 1454 } 1455 1456 func (m *GetNameParam) Marshal() (dAtA []byte, err error) { 1457 size := m.Size() 1458 dAtA = make([]byte, size) 1459 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1460 if err != nil { 1461 return nil, err 1462 } 1463 return dAtA[:n], nil 1464 } 1465 1466 func (m *GetNameParam) MarshalTo(dAtA []byte) (int, error) { 1467 size := m.Size() 1468 return m.MarshalToSizedBuffer(dAtA[:size]) 1469 } 1470 1471 func (m *GetNameParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1472 i := len(dAtA) 1473 _ = i 1474 var l int 1475 _ = l 1476 if m.XXX_unrecognized != nil { 1477 i -= len(m.XXX_unrecognized) 1478 copy(dAtA[i:], m.XXX_unrecognized) 1479 } 1480 if len(m.Name) > 0 { 1481 i -= len(m.Name) 1482 copy(dAtA[i:], m.Name) 1483 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.Name))) 1484 i-- 1485 dAtA[i] = 0xa 1486 } 1487 return len(dAtA) - i, nil 1488 } 1489 1490 func (m *ListNamesParam) Marshal() (dAtA []byte, err error) { 1491 size := m.Size() 1492 dAtA = make([]byte, size) 1493 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1494 if err != nil { 1495 return nil, err 1496 } 1497 return dAtA[:n], nil 1498 } 1499 1500 func (m *ListNamesParam) MarshalTo(dAtA []byte) (int, error) { 1501 size := m.Size() 1502 return m.MarshalToSizedBuffer(dAtA[:size]) 1503 } 1504 1505 func (m *ListNamesParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1506 i := len(dAtA) 1507 _ = i 1508 var l int 1509 _ = l 1510 if m.XXX_unrecognized != nil { 1511 i -= len(m.XXX_unrecognized) 1512 copy(dAtA[i:], m.XXX_unrecognized) 1513 } 1514 if len(m.Query) > 0 { 1515 i -= len(m.Query) 1516 copy(dAtA[i:], m.Query) 1517 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.Query))) 1518 i-- 1519 dAtA[i] = 0xa 1520 } 1521 return len(dAtA) - i, nil 1522 } 1523 1524 func (m *GetNetworkRegistryParam) Marshal() (dAtA []byte, err error) { 1525 size := m.Size() 1526 dAtA = make([]byte, size) 1527 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1528 if err != nil { 1529 return nil, err 1530 } 1531 return dAtA[:n], nil 1532 } 1533 1534 func (m *GetNetworkRegistryParam) MarshalTo(dAtA []byte) (int, error) { 1535 size := m.Size() 1536 return m.MarshalToSizedBuffer(dAtA[:size]) 1537 } 1538 1539 func (m *GetNetworkRegistryParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1540 i := len(dAtA) 1541 _ = i 1542 var l int 1543 _ = l 1544 if m.XXX_unrecognized != nil { 1545 i -= len(m.XXX_unrecognized) 1546 copy(dAtA[i:], m.XXX_unrecognized) 1547 } 1548 return len(dAtA) - i, nil 1549 } 1550 1551 func (m *GetValidatorSetParam) Marshal() (dAtA []byte, err error) { 1552 size := m.Size() 1553 dAtA = make([]byte, size) 1554 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1555 if err != nil { 1556 return nil, err 1557 } 1558 return dAtA[:n], nil 1559 } 1560 1561 func (m *GetValidatorSetParam) MarshalTo(dAtA []byte) (int, error) { 1562 size := m.Size() 1563 return m.MarshalToSizedBuffer(dAtA[:size]) 1564 } 1565 1566 func (m *GetValidatorSetParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1567 i := len(dAtA) 1568 _ = i 1569 var l int 1570 _ = l 1571 if m.XXX_unrecognized != nil { 1572 i -= len(m.XXX_unrecognized) 1573 copy(dAtA[i:], m.XXX_unrecognized) 1574 } 1575 return len(dAtA) - i, nil 1576 } 1577 1578 func (m *GetValidatorSetHistoryParam) Marshal() (dAtA []byte, err error) { 1579 size := m.Size() 1580 dAtA = make([]byte, size) 1581 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1582 if err != nil { 1583 return nil, err 1584 } 1585 return dAtA[:n], nil 1586 } 1587 1588 func (m *GetValidatorSetHistoryParam) MarshalTo(dAtA []byte) (int, error) { 1589 size := m.Size() 1590 return m.MarshalToSizedBuffer(dAtA[:size]) 1591 } 1592 1593 func (m *GetValidatorSetHistoryParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1594 i := len(dAtA) 1595 _ = i 1596 var l int 1597 _ = l 1598 if m.XXX_unrecognized != nil { 1599 i -= len(m.XXX_unrecognized) 1600 copy(dAtA[i:], m.XXX_unrecognized) 1601 } 1602 if m.IncludePrevious != 0 { 1603 i = encodeVarintRpcquery(dAtA, i, uint64(m.IncludePrevious)) 1604 i-- 1605 dAtA[i] = 0x8 1606 } 1607 return len(dAtA) - i, nil 1608 } 1609 1610 func (m *NetworkRegistry) Marshal() (dAtA []byte, err error) { 1611 size := m.Size() 1612 dAtA = make([]byte, size) 1613 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1614 if err != nil { 1615 return nil, err 1616 } 1617 return dAtA[:n], nil 1618 } 1619 1620 func (m *NetworkRegistry) MarshalTo(dAtA []byte) (int, error) { 1621 size := m.Size() 1622 return m.MarshalToSizedBuffer(dAtA[:size]) 1623 } 1624 1625 func (m *NetworkRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1626 i := len(dAtA) 1627 _ = i 1628 var l int 1629 _ = l 1630 if m.XXX_unrecognized != nil { 1631 i -= len(m.XXX_unrecognized) 1632 copy(dAtA[i:], m.XXX_unrecognized) 1633 } 1634 if len(m.Set) > 0 { 1635 for iNdEx := len(m.Set) - 1; iNdEx >= 0; iNdEx-- { 1636 { 1637 size, err := m.Set[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1638 if err != nil { 1639 return 0, err 1640 } 1641 i -= size 1642 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1643 } 1644 i-- 1645 dAtA[i] = 0xa 1646 } 1647 } 1648 return len(dAtA) - i, nil 1649 } 1650 1651 func (m *RegisteredValidator) Marshal() (dAtA []byte, err error) { 1652 size := m.Size() 1653 dAtA = make([]byte, size) 1654 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1655 if err != nil { 1656 return nil, err 1657 } 1658 return dAtA[:n], nil 1659 } 1660 1661 func (m *RegisteredValidator) MarshalTo(dAtA []byte) (int, error) { 1662 size := m.Size() 1663 return m.MarshalToSizedBuffer(dAtA[:size]) 1664 } 1665 1666 func (m *RegisteredValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1667 i := len(dAtA) 1668 _ = i 1669 var l int 1670 _ = l 1671 if m.XXX_unrecognized != nil { 1672 i -= len(m.XXX_unrecognized) 1673 copy(dAtA[i:], m.XXX_unrecognized) 1674 } 1675 if m.Node != nil { 1676 { 1677 size, err := m.Node.MarshalToSizedBuffer(dAtA[:i]) 1678 if err != nil { 1679 return 0, err 1680 } 1681 i -= size 1682 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1683 } 1684 i-- 1685 dAtA[i] = 0x12 1686 } 1687 { 1688 size := m.Address.Size() 1689 i -= size 1690 if _, err := m.Address.MarshalTo(dAtA[i:]); err != nil { 1691 return 0, err 1692 } 1693 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1694 } 1695 i-- 1696 dAtA[i] = 0xa 1697 return len(dAtA) - i, nil 1698 } 1699 1700 func (m *ValidatorSetHistory) Marshal() (dAtA []byte, err error) { 1701 size := m.Size() 1702 dAtA = make([]byte, size) 1703 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1704 if err != nil { 1705 return nil, err 1706 } 1707 return dAtA[:n], nil 1708 } 1709 1710 func (m *ValidatorSetHistory) MarshalTo(dAtA []byte) (int, error) { 1711 size := m.Size() 1712 return m.MarshalToSizedBuffer(dAtA[:size]) 1713 } 1714 1715 func (m *ValidatorSetHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1716 i := len(dAtA) 1717 _ = i 1718 var l int 1719 _ = l 1720 if m.XXX_unrecognized != nil { 1721 i -= len(m.XXX_unrecognized) 1722 copy(dAtA[i:], m.XXX_unrecognized) 1723 } 1724 if len(m.History) > 0 { 1725 for iNdEx := len(m.History) - 1; iNdEx >= 0; iNdEx-- { 1726 { 1727 size, err := m.History[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1728 if err != nil { 1729 return 0, err 1730 } 1731 i -= size 1732 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1733 } 1734 i-- 1735 dAtA[i] = 0xa 1736 } 1737 } 1738 return len(dAtA) - i, nil 1739 } 1740 1741 func (m *ValidatorSet) Marshal() (dAtA []byte, err error) { 1742 size := m.Size() 1743 dAtA = make([]byte, size) 1744 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1745 if err != nil { 1746 return nil, err 1747 } 1748 return dAtA[:n], nil 1749 } 1750 1751 func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error) { 1752 size := m.Size() 1753 return m.MarshalToSizedBuffer(dAtA[:size]) 1754 } 1755 1756 func (m *ValidatorSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1757 i := len(dAtA) 1758 _ = i 1759 var l int 1760 _ = l 1761 if m.XXX_unrecognized != nil { 1762 i -= len(m.XXX_unrecognized) 1763 copy(dAtA[i:], m.XXX_unrecognized) 1764 } 1765 if len(m.Set) > 0 { 1766 for iNdEx := len(m.Set) - 1; iNdEx >= 0; iNdEx-- { 1767 { 1768 size, err := m.Set[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1769 if err != nil { 1770 return 0, err 1771 } 1772 i -= size 1773 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1774 } 1775 i-- 1776 dAtA[i] = 0x12 1777 } 1778 } 1779 if m.Height != 0 { 1780 i = encodeVarintRpcquery(dAtA, i, uint64(m.Height)) 1781 i-- 1782 dAtA[i] = 0x8 1783 } 1784 return len(dAtA) - i, nil 1785 } 1786 1787 func (m *GetProposalParam) Marshal() (dAtA []byte, err error) { 1788 size := m.Size() 1789 dAtA = make([]byte, size) 1790 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1791 if err != nil { 1792 return nil, err 1793 } 1794 return dAtA[:n], nil 1795 } 1796 1797 func (m *GetProposalParam) MarshalTo(dAtA []byte) (int, error) { 1798 size := m.Size() 1799 return m.MarshalToSizedBuffer(dAtA[:size]) 1800 } 1801 1802 func (m *GetProposalParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1803 i := len(dAtA) 1804 _ = i 1805 var l int 1806 _ = l 1807 if m.XXX_unrecognized != nil { 1808 i -= len(m.XXX_unrecognized) 1809 copy(dAtA[i:], m.XXX_unrecognized) 1810 } 1811 if len(m.Hash) > 0 { 1812 i -= len(m.Hash) 1813 copy(dAtA[i:], m.Hash) 1814 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.Hash))) 1815 i-- 1816 dAtA[i] = 0xa 1817 } 1818 return len(dAtA) - i, nil 1819 } 1820 1821 func (m *ListProposalsParam) Marshal() (dAtA []byte, err error) { 1822 size := m.Size() 1823 dAtA = make([]byte, size) 1824 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1825 if err != nil { 1826 return nil, err 1827 } 1828 return dAtA[:n], nil 1829 } 1830 1831 func (m *ListProposalsParam) MarshalTo(dAtA []byte) (int, error) { 1832 size := m.Size() 1833 return m.MarshalToSizedBuffer(dAtA[:size]) 1834 } 1835 1836 func (m *ListProposalsParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1837 i := len(dAtA) 1838 _ = i 1839 var l int 1840 _ = l 1841 if m.XXX_unrecognized != nil { 1842 i -= len(m.XXX_unrecognized) 1843 copy(dAtA[i:], m.XXX_unrecognized) 1844 } 1845 if m.Proposed { 1846 i-- 1847 if m.Proposed { 1848 dAtA[i] = 1 1849 } else { 1850 dAtA[i] = 0 1851 } 1852 i-- 1853 dAtA[i] = 0x8 1854 } 1855 return len(dAtA) - i, nil 1856 } 1857 1858 func (m *ProposalResult) Marshal() (dAtA []byte, err error) { 1859 size := m.Size() 1860 dAtA = make([]byte, size) 1861 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1862 if err != nil { 1863 return nil, err 1864 } 1865 return dAtA[:n], nil 1866 } 1867 1868 func (m *ProposalResult) MarshalTo(dAtA []byte) (int, error) { 1869 size := m.Size() 1870 return m.MarshalToSizedBuffer(dAtA[:size]) 1871 } 1872 1873 func (m *ProposalResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1874 i := len(dAtA) 1875 _ = i 1876 var l int 1877 _ = l 1878 if m.XXX_unrecognized != nil { 1879 i -= len(m.XXX_unrecognized) 1880 copy(dAtA[i:], m.XXX_unrecognized) 1881 } 1882 if m.Ballot != nil { 1883 { 1884 size, err := m.Ballot.MarshalToSizedBuffer(dAtA[:i]) 1885 if err != nil { 1886 return 0, err 1887 } 1888 i -= size 1889 i = encodeVarintRpcquery(dAtA, i, uint64(size)) 1890 } 1891 i-- 1892 dAtA[i] = 0x12 1893 } 1894 if len(m.Hash) > 0 { 1895 i -= len(m.Hash) 1896 copy(dAtA[i:], m.Hash) 1897 i = encodeVarintRpcquery(dAtA, i, uint64(len(m.Hash))) 1898 i-- 1899 dAtA[i] = 0xa 1900 } 1901 return len(dAtA) - i, nil 1902 } 1903 1904 func (m *GetStatsParam) Marshal() (dAtA []byte, err error) { 1905 size := m.Size() 1906 dAtA = make([]byte, size) 1907 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1908 if err != nil { 1909 return nil, err 1910 } 1911 return dAtA[:n], nil 1912 } 1913 1914 func (m *GetStatsParam) MarshalTo(dAtA []byte) (int, error) { 1915 size := m.Size() 1916 return m.MarshalToSizedBuffer(dAtA[:size]) 1917 } 1918 1919 func (m *GetStatsParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1920 i := len(dAtA) 1921 _ = i 1922 var l int 1923 _ = l 1924 if m.XXX_unrecognized != nil { 1925 i -= len(m.XXX_unrecognized) 1926 copy(dAtA[i:], m.XXX_unrecognized) 1927 } 1928 return len(dAtA) - i, nil 1929 } 1930 1931 func (m *Stats) Marshal() (dAtA []byte, err error) { 1932 size := m.Size() 1933 dAtA = make([]byte, size) 1934 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1935 if err != nil { 1936 return nil, err 1937 } 1938 return dAtA[:n], nil 1939 } 1940 1941 func (m *Stats) MarshalTo(dAtA []byte) (int, error) { 1942 size := m.Size() 1943 return m.MarshalToSizedBuffer(dAtA[:size]) 1944 } 1945 1946 func (m *Stats) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1947 i := len(dAtA) 1948 _ = i 1949 var l int 1950 _ = l 1951 if m.XXX_unrecognized != nil { 1952 i -= len(m.XXX_unrecognized) 1953 copy(dAtA[i:], m.XXX_unrecognized) 1954 } 1955 if m.AccountsWithoutCode != 0 { 1956 i = encodeVarintRpcquery(dAtA, i, uint64(m.AccountsWithoutCode)) 1957 i-- 1958 dAtA[i] = 0x10 1959 } 1960 if m.AccountsWithCode != 0 { 1961 i = encodeVarintRpcquery(dAtA, i, uint64(m.AccountsWithCode)) 1962 i-- 1963 dAtA[i] = 0x8 1964 } 1965 return len(dAtA) - i, nil 1966 } 1967 1968 func (m *GetBlockParam) Marshal() (dAtA []byte, err error) { 1969 size := m.Size() 1970 dAtA = make([]byte, size) 1971 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1972 if err != nil { 1973 return nil, err 1974 } 1975 return dAtA[:n], nil 1976 } 1977 1978 func (m *GetBlockParam) MarshalTo(dAtA []byte) (int, error) { 1979 size := m.Size() 1980 return m.MarshalToSizedBuffer(dAtA[:size]) 1981 } 1982 1983 func (m *GetBlockParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1984 i := len(dAtA) 1985 _ = i 1986 var l int 1987 _ = l 1988 if m.XXX_unrecognized != nil { 1989 i -= len(m.XXX_unrecognized) 1990 copy(dAtA[i:], m.XXX_unrecognized) 1991 } 1992 if m.Height != 0 { 1993 i = encodeVarintRpcquery(dAtA, i, uint64(m.Height)) 1994 i-- 1995 dAtA[i] = 0x8 1996 } 1997 return len(dAtA) - i, nil 1998 } 1999 2000 func encodeVarintRpcquery(dAtA []byte, offset int, v uint64) int { 2001 offset -= sovRpcquery(v) 2002 base := offset 2003 for v >= 1<<7 { 2004 dAtA[offset] = uint8(v&0x7f | 0x80) 2005 v >>= 7 2006 offset++ 2007 } 2008 dAtA[offset] = uint8(v) 2009 return base 2010 } 2011 func (m *StatusParam) Size() (n int) { 2012 if m == nil { 2013 return 0 2014 } 2015 var l int 2016 _ = l 2017 l = len(m.BlockTimeWithin) 2018 if l > 0 { 2019 n += 1 + l + sovRpcquery(uint64(l)) 2020 } 2021 l = len(m.BlockSeenTimeWithin) 2022 if l > 0 { 2023 n += 1 + l + sovRpcquery(uint64(l)) 2024 } 2025 if m.XXX_unrecognized != nil { 2026 n += len(m.XXX_unrecognized) 2027 } 2028 return n 2029 } 2030 2031 func (m *GetAccountParam) Size() (n int) { 2032 if m == nil { 2033 return 0 2034 } 2035 var l int 2036 _ = l 2037 l = m.Address.Size() 2038 n += 1 + l + sovRpcquery(uint64(l)) 2039 if m.XXX_unrecognized != nil { 2040 n += len(m.XXX_unrecognized) 2041 } 2042 return n 2043 } 2044 2045 func (m *GetMetadataParam) Size() (n int) { 2046 if m == nil { 2047 return 0 2048 } 2049 var l int 2050 _ = l 2051 if m.Address != nil { 2052 l = m.Address.Size() 2053 n += 1 + l + sovRpcquery(uint64(l)) 2054 } 2055 if m.MetadataHash != nil { 2056 l = m.MetadataHash.Size() 2057 n += 1 + l + sovRpcquery(uint64(l)) 2058 } 2059 if m.XXX_unrecognized != nil { 2060 n += len(m.XXX_unrecognized) 2061 } 2062 return n 2063 } 2064 2065 func (m *MetadataResult) Size() (n int) { 2066 if m == nil { 2067 return 0 2068 } 2069 var l int 2070 _ = l 2071 l = len(m.Metadata) 2072 if l > 0 { 2073 n += 1 + l + sovRpcquery(uint64(l)) 2074 } 2075 if m.XXX_unrecognized != nil { 2076 n += len(m.XXX_unrecognized) 2077 } 2078 return n 2079 } 2080 2081 func (m *GetStorageParam) Size() (n int) { 2082 if m == nil { 2083 return 0 2084 } 2085 var l int 2086 _ = l 2087 l = m.Address.Size() 2088 n += 1 + l + sovRpcquery(uint64(l)) 2089 l = m.Key.Size() 2090 n += 1 + l + sovRpcquery(uint64(l)) 2091 if m.XXX_unrecognized != nil { 2092 n += len(m.XXX_unrecognized) 2093 } 2094 return n 2095 } 2096 2097 func (m *StorageValue) Size() (n int) { 2098 if m == nil { 2099 return 0 2100 } 2101 var l int 2102 _ = l 2103 l = m.Value.Size() 2104 n += 1 + l + sovRpcquery(uint64(l)) 2105 if m.XXX_unrecognized != nil { 2106 n += len(m.XXX_unrecognized) 2107 } 2108 return n 2109 } 2110 2111 func (m *ListAccountsParam) Size() (n int) { 2112 if m == nil { 2113 return 0 2114 } 2115 var l int 2116 _ = l 2117 l = len(m.Query) 2118 if l > 0 { 2119 n += 1 + l + sovRpcquery(uint64(l)) 2120 } 2121 if m.XXX_unrecognized != nil { 2122 n += len(m.XXX_unrecognized) 2123 } 2124 return n 2125 } 2126 2127 func (m *GetNameParam) Size() (n int) { 2128 if m == nil { 2129 return 0 2130 } 2131 var l int 2132 _ = l 2133 l = len(m.Name) 2134 if l > 0 { 2135 n += 1 + l + sovRpcquery(uint64(l)) 2136 } 2137 if m.XXX_unrecognized != nil { 2138 n += len(m.XXX_unrecognized) 2139 } 2140 return n 2141 } 2142 2143 func (m *ListNamesParam) Size() (n int) { 2144 if m == nil { 2145 return 0 2146 } 2147 var l int 2148 _ = l 2149 l = len(m.Query) 2150 if l > 0 { 2151 n += 1 + l + sovRpcquery(uint64(l)) 2152 } 2153 if m.XXX_unrecognized != nil { 2154 n += len(m.XXX_unrecognized) 2155 } 2156 return n 2157 } 2158 2159 func (m *GetNetworkRegistryParam) Size() (n int) { 2160 if m == nil { 2161 return 0 2162 } 2163 var l int 2164 _ = l 2165 if m.XXX_unrecognized != nil { 2166 n += len(m.XXX_unrecognized) 2167 } 2168 return n 2169 } 2170 2171 func (m *GetValidatorSetParam) Size() (n int) { 2172 if m == nil { 2173 return 0 2174 } 2175 var l int 2176 _ = l 2177 if m.XXX_unrecognized != nil { 2178 n += len(m.XXX_unrecognized) 2179 } 2180 return n 2181 } 2182 2183 func (m *GetValidatorSetHistoryParam) Size() (n int) { 2184 if m == nil { 2185 return 0 2186 } 2187 var l int 2188 _ = l 2189 if m.IncludePrevious != 0 { 2190 n += 1 + sovRpcquery(uint64(m.IncludePrevious)) 2191 } 2192 if m.XXX_unrecognized != nil { 2193 n += len(m.XXX_unrecognized) 2194 } 2195 return n 2196 } 2197 2198 func (m *NetworkRegistry) Size() (n int) { 2199 if m == nil { 2200 return 0 2201 } 2202 var l int 2203 _ = l 2204 if len(m.Set) > 0 { 2205 for _, e := range m.Set { 2206 l = e.Size() 2207 n += 1 + l + sovRpcquery(uint64(l)) 2208 } 2209 } 2210 if m.XXX_unrecognized != nil { 2211 n += len(m.XXX_unrecognized) 2212 } 2213 return n 2214 } 2215 2216 func (m *RegisteredValidator) Size() (n int) { 2217 if m == nil { 2218 return 0 2219 } 2220 var l int 2221 _ = l 2222 l = m.Address.Size() 2223 n += 1 + l + sovRpcquery(uint64(l)) 2224 if m.Node != nil { 2225 l = m.Node.Size() 2226 n += 1 + l + sovRpcquery(uint64(l)) 2227 } 2228 if m.XXX_unrecognized != nil { 2229 n += len(m.XXX_unrecognized) 2230 } 2231 return n 2232 } 2233 2234 func (m *ValidatorSetHistory) Size() (n int) { 2235 if m == nil { 2236 return 0 2237 } 2238 var l int 2239 _ = l 2240 if len(m.History) > 0 { 2241 for _, e := range m.History { 2242 l = e.Size() 2243 n += 1 + l + sovRpcquery(uint64(l)) 2244 } 2245 } 2246 if m.XXX_unrecognized != nil { 2247 n += len(m.XXX_unrecognized) 2248 } 2249 return n 2250 } 2251 2252 func (m *ValidatorSet) Size() (n int) { 2253 if m == nil { 2254 return 0 2255 } 2256 var l int 2257 _ = l 2258 if m.Height != 0 { 2259 n += 1 + sovRpcquery(uint64(m.Height)) 2260 } 2261 if len(m.Set) > 0 { 2262 for _, e := range m.Set { 2263 l = e.Size() 2264 n += 1 + l + sovRpcquery(uint64(l)) 2265 } 2266 } 2267 if m.XXX_unrecognized != nil { 2268 n += len(m.XXX_unrecognized) 2269 } 2270 return n 2271 } 2272 2273 func (m *GetProposalParam) Size() (n int) { 2274 if m == nil { 2275 return 0 2276 } 2277 var l int 2278 _ = l 2279 l = len(m.Hash) 2280 if l > 0 { 2281 n += 1 + l + sovRpcquery(uint64(l)) 2282 } 2283 if m.XXX_unrecognized != nil { 2284 n += len(m.XXX_unrecognized) 2285 } 2286 return n 2287 } 2288 2289 func (m *ListProposalsParam) Size() (n int) { 2290 if m == nil { 2291 return 0 2292 } 2293 var l int 2294 _ = l 2295 if m.Proposed { 2296 n += 2 2297 } 2298 if m.XXX_unrecognized != nil { 2299 n += len(m.XXX_unrecognized) 2300 } 2301 return n 2302 } 2303 2304 func (m *ProposalResult) Size() (n int) { 2305 if m == nil { 2306 return 0 2307 } 2308 var l int 2309 _ = l 2310 l = len(m.Hash) 2311 if l > 0 { 2312 n += 1 + l + sovRpcquery(uint64(l)) 2313 } 2314 if m.Ballot != nil { 2315 l = m.Ballot.Size() 2316 n += 1 + l + sovRpcquery(uint64(l)) 2317 } 2318 if m.XXX_unrecognized != nil { 2319 n += len(m.XXX_unrecognized) 2320 } 2321 return n 2322 } 2323 2324 func (m *GetStatsParam) Size() (n int) { 2325 if m == nil { 2326 return 0 2327 } 2328 var l int 2329 _ = l 2330 if m.XXX_unrecognized != nil { 2331 n += len(m.XXX_unrecognized) 2332 } 2333 return n 2334 } 2335 2336 func (m *Stats) Size() (n int) { 2337 if m == nil { 2338 return 0 2339 } 2340 var l int 2341 _ = l 2342 if m.AccountsWithCode != 0 { 2343 n += 1 + sovRpcquery(uint64(m.AccountsWithCode)) 2344 } 2345 if m.AccountsWithoutCode != 0 { 2346 n += 1 + sovRpcquery(uint64(m.AccountsWithoutCode)) 2347 } 2348 if m.XXX_unrecognized != nil { 2349 n += len(m.XXX_unrecognized) 2350 } 2351 return n 2352 } 2353 2354 func (m *GetBlockParam) Size() (n int) { 2355 if m == nil { 2356 return 0 2357 } 2358 var l int 2359 _ = l 2360 if m.Height != 0 { 2361 n += 1 + sovRpcquery(uint64(m.Height)) 2362 } 2363 if m.XXX_unrecognized != nil { 2364 n += len(m.XXX_unrecognized) 2365 } 2366 return n 2367 } 2368 2369 func sovRpcquery(x uint64) (n int) { 2370 return (math_bits.Len64(x|1) + 6) / 7 2371 } 2372 func sozRpcquery(x uint64) (n int) { 2373 return sovRpcquery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 2374 } 2375 func (m *StatusParam) Unmarshal(dAtA []byte) error { 2376 l := len(dAtA) 2377 iNdEx := 0 2378 for iNdEx < l { 2379 preIndex := iNdEx 2380 var wire uint64 2381 for shift := uint(0); ; shift += 7 { 2382 if shift >= 64 { 2383 return ErrIntOverflowRpcquery 2384 } 2385 if iNdEx >= l { 2386 return io.ErrUnexpectedEOF 2387 } 2388 b := dAtA[iNdEx] 2389 iNdEx++ 2390 wire |= uint64(b&0x7F) << shift 2391 if b < 0x80 { 2392 break 2393 } 2394 } 2395 fieldNum := int32(wire >> 3) 2396 wireType := int(wire & 0x7) 2397 if wireType == 4 { 2398 return fmt.Errorf("proto: StatusParam: wiretype end group for non-group") 2399 } 2400 if fieldNum <= 0 { 2401 return fmt.Errorf("proto: StatusParam: illegal tag %d (wire type %d)", fieldNum, wire) 2402 } 2403 switch fieldNum { 2404 case 1: 2405 if wireType != 2 { 2406 return fmt.Errorf("proto: wrong wireType = %d for field BlockTimeWithin", wireType) 2407 } 2408 var stringLen uint64 2409 for shift := uint(0); ; shift += 7 { 2410 if shift >= 64 { 2411 return ErrIntOverflowRpcquery 2412 } 2413 if iNdEx >= l { 2414 return io.ErrUnexpectedEOF 2415 } 2416 b := dAtA[iNdEx] 2417 iNdEx++ 2418 stringLen |= uint64(b&0x7F) << shift 2419 if b < 0x80 { 2420 break 2421 } 2422 } 2423 intStringLen := int(stringLen) 2424 if intStringLen < 0 { 2425 return ErrInvalidLengthRpcquery 2426 } 2427 postIndex := iNdEx + intStringLen 2428 if postIndex < 0 { 2429 return ErrInvalidLengthRpcquery 2430 } 2431 if postIndex > l { 2432 return io.ErrUnexpectedEOF 2433 } 2434 m.BlockTimeWithin = string(dAtA[iNdEx:postIndex]) 2435 iNdEx = postIndex 2436 case 2: 2437 if wireType != 2 { 2438 return fmt.Errorf("proto: wrong wireType = %d for field BlockSeenTimeWithin", wireType) 2439 } 2440 var stringLen uint64 2441 for shift := uint(0); ; shift += 7 { 2442 if shift >= 64 { 2443 return ErrIntOverflowRpcquery 2444 } 2445 if iNdEx >= l { 2446 return io.ErrUnexpectedEOF 2447 } 2448 b := dAtA[iNdEx] 2449 iNdEx++ 2450 stringLen |= uint64(b&0x7F) << shift 2451 if b < 0x80 { 2452 break 2453 } 2454 } 2455 intStringLen := int(stringLen) 2456 if intStringLen < 0 { 2457 return ErrInvalidLengthRpcquery 2458 } 2459 postIndex := iNdEx + intStringLen 2460 if postIndex < 0 { 2461 return ErrInvalidLengthRpcquery 2462 } 2463 if postIndex > l { 2464 return io.ErrUnexpectedEOF 2465 } 2466 m.BlockSeenTimeWithin = string(dAtA[iNdEx:postIndex]) 2467 iNdEx = postIndex 2468 default: 2469 iNdEx = preIndex 2470 skippy, err := skipRpcquery(dAtA[iNdEx:]) 2471 if err != nil { 2472 return err 2473 } 2474 if (skippy < 0) || (iNdEx+skippy) < 0 { 2475 return ErrInvalidLengthRpcquery 2476 } 2477 if (iNdEx + skippy) > l { 2478 return io.ErrUnexpectedEOF 2479 } 2480 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2481 iNdEx += skippy 2482 } 2483 } 2484 2485 if iNdEx > l { 2486 return io.ErrUnexpectedEOF 2487 } 2488 return nil 2489 } 2490 func (m *GetAccountParam) Unmarshal(dAtA []byte) error { 2491 l := len(dAtA) 2492 iNdEx := 0 2493 for iNdEx < l { 2494 preIndex := iNdEx 2495 var wire uint64 2496 for shift := uint(0); ; shift += 7 { 2497 if shift >= 64 { 2498 return ErrIntOverflowRpcquery 2499 } 2500 if iNdEx >= l { 2501 return io.ErrUnexpectedEOF 2502 } 2503 b := dAtA[iNdEx] 2504 iNdEx++ 2505 wire |= uint64(b&0x7F) << shift 2506 if b < 0x80 { 2507 break 2508 } 2509 } 2510 fieldNum := int32(wire >> 3) 2511 wireType := int(wire & 0x7) 2512 if wireType == 4 { 2513 return fmt.Errorf("proto: GetAccountParam: wiretype end group for non-group") 2514 } 2515 if fieldNum <= 0 { 2516 return fmt.Errorf("proto: GetAccountParam: illegal tag %d (wire type %d)", fieldNum, wire) 2517 } 2518 switch fieldNum { 2519 case 1: 2520 if wireType != 2 { 2521 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 2522 } 2523 var byteLen int 2524 for shift := uint(0); ; shift += 7 { 2525 if shift >= 64 { 2526 return ErrIntOverflowRpcquery 2527 } 2528 if iNdEx >= l { 2529 return io.ErrUnexpectedEOF 2530 } 2531 b := dAtA[iNdEx] 2532 iNdEx++ 2533 byteLen |= int(b&0x7F) << shift 2534 if b < 0x80 { 2535 break 2536 } 2537 } 2538 if byteLen < 0 { 2539 return ErrInvalidLengthRpcquery 2540 } 2541 postIndex := iNdEx + byteLen 2542 if postIndex < 0 { 2543 return ErrInvalidLengthRpcquery 2544 } 2545 if postIndex > l { 2546 return io.ErrUnexpectedEOF 2547 } 2548 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2549 return err 2550 } 2551 iNdEx = postIndex 2552 default: 2553 iNdEx = preIndex 2554 skippy, err := skipRpcquery(dAtA[iNdEx:]) 2555 if err != nil { 2556 return err 2557 } 2558 if (skippy < 0) || (iNdEx+skippy) < 0 { 2559 return ErrInvalidLengthRpcquery 2560 } 2561 if (iNdEx + skippy) > l { 2562 return io.ErrUnexpectedEOF 2563 } 2564 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2565 iNdEx += skippy 2566 } 2567 } 2568 2569 if iNdEx > l { 2570 return io.ErrUnexpectedEOF 2571 } 2572 return nil 2573 } 2574 func (m *GetMetadataParam) Unmarshal(dAtA []byte) error { 2575 l := len(dAtA) 2576 iNdEx := 0 2577 for iNdEx < l { 2578 preIndex := iNdEx 2579 var wire uint64 2580 for shift := uint(0); ; shift += 7 { 2581 if shift >= 64 { 2582 return ErrIntOverflowRpcquery 2583 } 2584 if iNdEx >= l { 2585 return io.ErrUnexpectedEOF 2586 } 2587 b := dAtA[iNdEx] 2588 iNdEx++ 2589 wire |= uint64(b&0x7F) << shift 2590 if b < 0x80 { 2591 break 2592 } 2593 } 2594 fieldNum := int32(wire >> 3) 2595 wireType := int(wire & 0x7) 2596 if wireType == 4 { 2597 return fmt.Errorf("proto: GetMetadataParam: wiretype end group for non-group") 2598 } 2599 if fieldNum <= 0 { 2600 return fmt.Errorf("proto: GetMetadataParam: illegal tag %d (wire type %d)", fieldNum, wire) 2601 } 2602 switch fieldNum { 2603 case 1: 2604 if wireType != 2 { 2605 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 2606 } 2607 var byteLen int 2608 for shift := uint(0); ; shift += 7 { 2609 if shift >= 64 { 2610 return ErrIntOverflowRpcquery 2611 } 2612 if iNdEx >= l { 2613 return io.ErrUnexpectedEOF 2614 } 2615 b := dAtA[iNdEx] 2616 iNdEx++ 2617 byteLen |= int(b&0x7F) << shift 2618 if b < 0x80 { 2619 break 2620 } 2621 } 2622 if byteLen < 0 { 2623 return ErrInvalidLengthRpcquery 2624 } 2625 postIndex := iNdEx + byteLen 2626 if postIndex < 0 { 2627 return ErrInvalidLengthRpcquery 2628 } 2629 if postIndex > l { 2630 return io.ErrUnexpectedEOF 2631 } 2632 var v github_com_hyperledger_burrow_crypto.Address 2633 m.Address = &v 2634 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2635 return err 2636 } 2637 iNdEx = postIndex 2638 case 2: 2639 if wireType != 2 { 2640 return fmt.Errorf("proto: wrong wireType = %d for field MetadataHash", wireType) 2641 } 2642 var byteLen int 2643 for shift := uint(0); ; shift += 7 { 2644 if shift >= 64 { 2645 return ErrIntOverflowRpcquery 2646 } 2647 if iNdEx >= l { 2648 return io.ErrUnexpectedEOF 2649 } 2650 b := dAtA[iNdEx] 2651 iNdEx++ 2652 byteLen |= int(b&0x7F) << shift 2653 if b < 0x80 { 2654 break 2655 } 2656 } 2657 if byteLen < 0 { 2658 return ErrInvalidLengthRpcquery 2659 } 2660 postIndex := iNdEx + byteLen 2661 if postIndex < 0 { 2662 return ErrInvalidLengthRpcquery 2663 } 2664 if postIndex > l { 2665 return io.ErrUnexpectedEOF 2666 } 2667 var v github_com_hyperledger_burrow_binary.HexBytes 2668 m.MetadataHash = &v 2669 if err := m.MetadataHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2670 return err 2671 } 2672 iNdEx = postIndex 2673 default: 2674 iNdEx = preIndex 2675 skippy, err := skipRpcquery(dAtA[iNdEx:]) 2676 if err != nil { 2677 return err 2678 } 2679 if (skippy < 0) || (iNdEx+skippy) < 0 { 2680 return ErrInvalidLengthRpcquery 2681 } 2682 if (iNdEx + skippy) > l { 2683 return io.ErrUnexpectedEOF 2684 } 2685 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2686 iNdEx += skippy 2687 } 2688 } 2689 2690 if iNdEx > l { 2691 return io.ErrUnexpectedEOF 2692 } 2693 return nil 2694 } 2695 func (m *MetadataResult) Unmarshal(dAtA []byte) error { 2696 l := len(dAtA) 2697 iNdEx := 0 2698 for iNdEx < l { 2699 preIndex := iNdEx 2700 var wire uint64 2701 for shift := uint(0); ; shift += 7 { 2702 if shift >= 64 { 2703 return ErrIntOverflowRpcquery 2704 } 2705 if iNdEx >= l { 2706 return io.ErrUnexpectedEOF 2707 } 2708 b := dAtA[iNdEx] 2709 iNdEx++ 2710 wire |= uint64(b&0x7F) << shift 2711 if b < 0x80 { 2712 break 2713 } 2714 } 2715 fieldNum := int32(wire >> 3) 2716 wireType := int(wire & 0x7) 2717 if wireType == 4 { 2718 return fmt.Errorf("proto: MetadataResult: wiretype end group for non-group") 2719 } 2720 if fieldNum <= 0 { 2721 return fmt.Errorf("proto: MetadataResult: illegal tag %d (wire type %d)", fieldNum, wire) 2722 } 2723 switch fieldNum { 2724 case 1: 2725 if wireType != 2 { 2726 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 2727 } 2728 var stringLen uint64 2729 for shift := uint(0); ; shift += 7 { 2730 if shift >= 64 { 2731 return ErrIntOverflowRpcquery 2732 } 2733 if iNdEx >= l { 2734 return io.ErrUnexpectedEOF 2735 } 2736 b := dAtA[iNdEx] 2737 iNdEx++ 2738 stringLen |= uint64(b&0x7F) << shift 2739 if b < 0x80 { 2740 break 2741 } 2742 } 2743 intStringLen := int(stringLen) 2744 if intStringLen < 0 { 2745 return ErrInvalidLengthRpcquery 2746 } 2747 postIndex := iNdEx + intStringLen 2748 if postIndex < 0 { 2749 return ErrInvalidLengthRpcquery 2750 } 2751 if postIndex > l { 2752 return io.ErrUnexpectedEOF 2753 } 2754 m.Metadata = string(dAtA[iNdEx:postIndex]) 2755 iNdEx = postIndex 2756 default: 2757 iNdEx = preIndex 2758 skippy, err := skipRpcquery(dAtA[iNdEx:]) 2759 if err != nil { 2760 return err 2761 } 2762 if (skippy < 0) || (iNdEx+skippy) < 0 { 2763 return ErrInvalidLengthRpcquery 2764 } 2765 if (iNdEx + skippy) > l { 2766 return io.ErrUnexpectedEOF 2767 } 2768 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2769 iNdEx += skippy 2770 } 2771 } 2772 2773 if iNdEx > l { 2774 return io.ErrUnexpectedEOF 2775 } 2776 return nil 2777 } 2778 func (m *GetStorageParam) Unmarshal(dAtA []byte) error { 2779 l := len(dAtA) 2780 iNdEx := 0 2781 for iNdEx < l { 2782 preIndex := iNdEx 2783 var wire uint64 2784 for shift := uint(0); ; shift += 7 { 2785 if shift >= 64 { 2786 return ErrIntOverflowRpcquery 2787 } 2788 if iNdEx >= l { 2789 return io.ErrUnexpectedEOF 2790 } 2791 b := dAtA[iNdEx] 2792 iNdEx++ 2793 wire |= uint64(b&0x7F) << shift 2794 if b < 0x80 { 2795 break 2796 } 2797 } 2798 fieldNum := int32(wire >> 3) 2799 wireType := int(wire & 0x7) 2800 if wireType == 4 { 2801 return fmt.Errorf("proto: GetStorageParam: wiretype end group for non-group") 2802 } 2803 if fieldNum <= 0 { 2804 return fmt.Errorf("proto: GetStorageParam: illegal tag %d (wire type %d)", fieldNum, wire) 2805 } 2806 switch fieldNum { 2807 case 1: 2808 if wireType != 2 { 2809 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 2810 } 2811 var byteLen int 2812 for shift := uint(0); ; shift += 7 { 2813 if shift >= 64 { 2814 return ErrIntOverflowRpcquery 2815 } 2816 if iNdEx >= l { 2817 return io.ErrUnexpectedEOF 2818 } 2819 b := dAtA[iNdEx] 2820 iNdEx++ 2821 byteLen |= int(b&0x7F) << shift 2822 if b < 0x80 { 2823 break 2824 } 2825 } 2826 if byteLen < 0 { 2827 return ErrInvalidLengthRpcquery 2828 } 2829 postIndex := iNdEx + byteLen 2830 if postIndex < 0 { 2831 return ErrInvalidLengthRpcquery 2832 } 2833 if postIndex > l { 2834 return io.ErrUnexpectedEOF 2835 } 2836 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2837 return err 2838 } 2839 iNdEx = postIndex 2840 case 2: 2841 if wireType != 2 { 2842 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 2843 } 2844 var byteLen int 2845 for shift := uint(0); ; shift += 7 { 2846 if shift >= 64 { 2847 return ErrIntOverflowRpcquery 2848 } 2849 if iNdEx >= l { 2850 return io.ErrUnexpectedEOF 2851 } 2852 b := dAtA[iNdEx] 2853 iNdEx++ 2854 byteLen |= int(b&0x7F) << shift 2855 if b < 0x80 { 2856 break 2857 } 2858 } 2859 if byteLen < 0 { 2860 return ErrInvalidLengthRpcquery 2861 } 2862 postIndex := iNdEx + byteLen 2863 if postIndex < 0 { 2864 return ErrInvalidLengthRpcquery 2865 } 2866 if postIndex > l { 2867 return io.ErrUnexpectedEOF 2868 } 2869 if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2870 return err 2871 } 2872 iNdEx = postIndex 2873 default: 2874 iNdEx = preIndex 2875 skippy, err := skipRpcquery(dAtA[iNdEx:]) 2876 if err != nil { 2877 return err 2878 } 2879 if (skippy < 0) || (iNdEx+skippy) < 0 { 2880 return ErrInvalidLengthRpcquery 2881 } 2882 if (iNdEx + skippy) > l { 2883 return io.ErrUnexpectedEOF 2884 } 2885 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2886 iNdEx += skippy 2887 } 2888 } 2889 2890 if iNdEx > l { 2891 return io.ErrUnexpectedEOF 2892 } 2893 return nil 2894 } 2895 func (m *StorageValue) Unmarshal(dAtA []byte) error { 2896 l := len(dAtA) 2897 iNdEx := 0 2898 for iNdEx < l { 2899 preIndex := iNdEx 2900 var wire uint64 2901 for shift := uint(0); ; shift += 7 { 2902 if shift >= 64 { 2903 return ErrIntOverflowRpcquery 2904 } 2905 if iNdEx >= l { 2906 return io.ErrUnexpectedEOF 2907 } 2908 b := dAtA[iNdEx] 2909 iNdEx++ 2910 wire |= uint64(b&0x7F) << shift 2911 if b < 0x80 { 2912 break 2913 } 2914 } 2915 fieldNum := int32(wire >> 3) 2916 wireType := int(wire & 0x7) 2917 if wireType == 4 { 2918 return fmt.Errorf("proto: StorageValue: wiretype end group for non-group") 2919 } 2920 if fieldNum <= 0 { 2921 return fmt.Errorf("proto: StorageValue: illegal tag %d (wire type %d)", fieldNum, wire) 2922 } 2923 switch fieldNum { 2924 case 1: 2925 if wireType != 2 { 2926 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 2927 } 2928 var byteLen int 2929 for shift := uint(0); ; shift += 7 { 2930 if shift >= 64 { 2931 return ErrIntOverflowRpcquery 2932 } 2933 if iNdEx >= l { 2934 return io.ErrUnexpectedEOF 2935 } 2936 b := dAtA[iNdEx] 2937 iNdEx++ 2938 byteLen |= int(b&0x7F) << shift 2939 if b < 0x80 { 2940 break 2941 } 2942 } 2943 if byteLen < 0 { 2944 return ErrInvalidLengthRpcquery 2945 } 2946 postIndex := iNdEx + byteLen 2947 if postIndex < 0 { 2948 return ErrInvalidLengthRpcquery 2949 } 2950 if postIndex > l { 2951 return io.ErrUnexpectedEOF 2952 } 2953 if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2954 return err 2955 } 2956 iNdEx = postIndex 2957 default: 2958 iNdEx = preIndex 2959 skippy, err := skipRpcquery(dAtA[iNdEx:]) 2960 if err != nil { 2961 return err 2962 } 2963 if (skippy < 0) || (iNdEx+skippy) < 0 { 2964 return ErrInvalidLengthRpcquery 2965 } 2966 if (iNdEx + skippy) > l { 2967 return io.ErrUnexpectedEOF 2968 } 2969 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2970 iNdEx += skippy 2971 } 2972 } 2973 2974 if iNdEx > l { 2975 return io.ErrUnexpectedEOF 2976 } 2977 return nil 2978 } 2979 func (m *ListAccountsParam) Unmarshal(dAtA []byte) error { 2980 l := len(dAtA) 2981 iNdEx := 0 2982 for iNdEx < l { 2983 preIndex := iNdEx 2984 var wire uint64 2985 for shift := uint(0); ; shift += 7 { 2986 if shift >= 64 { 2987 return ErrIntOverflowRpcquery 2988 } 2989 if iNdEx >= l { 2990 return io.ErrUnexpectedEOF 2991 } 2992 b := dAtA[iNdEx] 2993 iNdEx++ 2994 wire |= uint64(b&0x7F) << shift 2995 if b < 0x80 { 2996 break 2997 } 2998 } 2999 fieldNum := int32(wire >> 3) 3000 wireType := int(wire & 0x7) 3001 if wireType == 4 { 3002 return fmt.Errorf("proto: ListAccountsParam: wiretype end group for non-group") 3003 } 3004 if fieldNum <= 0 { 3005 return fmt.Errorf("proto: ListAccountsParam: illegal tag %d (wire type %d)", fieldNum, wire) 3006 } 3007 switch fieldNum { 3008 case 1: 3009 if wireType != 2 { 3010 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 3011 } 3012 var stringLen uint64 3013 for shift := uint(0); ; shift += 7 { 3014 if shift >= 64 { 3015 return ErrIntOverflowRpcquery 3016 } 3017 if iNdEx >= l { 3018 return io.ErrUnexpectedEOF 3019 } 3020 b := dAtA[iNdEx] 3021 iNdEx++ 3022 stringLen |= uint64(b&0x7F) << shift 3023 if b < 0x80 { 3024 break 3025 } 3026 } 3027 intStringLen := int(stringLen) 3028 if intStringLen < 0 { 3029 return ErrInvalidLengthRpcquery 3030 } 3031 postIndex := iNdEx + intStringLen 3032 if postIndex < 0 { 3033 return ErrInvalidLengthRpcquery 3034 } 3035 if postIndex > l { 3036 return io.ErrUnexpectedEOF 3037 } 3038 m.Query = string(dAtA[iNdEx:postIndex]) 3039 iNdEx = postIndex 3040 default: 3041 iNdEx = preIndex 3042 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3043 if err != nil { 3044 return err 3045 } 3046 if (skippy < 0) || (iNdEx+skippy) < 0 { 3047 return ErrInvalidLengthRpcquery 3048 } 3049 if (iNdEx + skippy) > l { 3050 return io.ErrUnexpectedEOF 3051 } 3052 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3053 iNdEx += skippy 3054 } 3055 } 3056 3057 if iNdEx > l { 3058 return io.ErrUnexpectedEOF 3059 } 3060 return nil 3061 } 3062 func (m *GetNameParam) Unmarshal(dAtA []byte) error { 3063 l := len(dAtA) 3064 iNdEx := 0 3065 for iNdEx < l { 3066 preIndex := iNdEx 3067 var wire uint64 3068 for shift := uint(0); ; shift += 7 { 3069 if shift >= 64 { 3070 return ErrIntOverflowRpcquery 3071 } 3072 if iNdEx >= l { 3073 return io.ErrUnexpectedEOF 3074 } 3075 b := dAtA[iNdEx] 3076 iNdEx++ 3077 wire |= uint64(b&0x7F) << shift 3078 if b < 0x80 { 3079 break 3080 } 3081 } 3082 fieldNum := int32(wire >> 3) 3083 wireType := int(wire & 0x7) 3084 if wireType == 4 { 3085 return fmt.Errorf("proto: GetNameParam: wiretype end group for non-group") 3086 } 3087 if fieldNum <= 0 { 3088 return fmt.Errorf("proto: GetNameParam: illegal tag %d (wire type %d)", fieldNum, wire) 3089 } 3090 switch fieldNum { 3091 case 1: 3092 if wireType != 2 { 3093 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 3094 } 3095 var stringLen uint64 3096 for shift := uint(0); ; shift += 7 { 3097 if shift >= 64 { 3098 return ErrIntOverflowRpcquery 3099 } 3100 if iNdEx >= l { 3101 return io.ErrUnexpectedEOF 3102 } 3103 b := dAtA[iNdEx] 3104 iNdEx++ 3105 stringLen |= uint64(b&0x7F) << shift 3106 if b < 0x80 { 3107 break 3108 } 3109 } 3110 intStringLen := int(stringLen) 3111 if intStringLen < 0 { 3112 return ErrInvalidLengthRpcquery 3113 } 3114 postIndex := iNdEx + intStringLen 3115 if postIndex < 0 { 3116 return ErrInvalidLengthRpcquery 3117 } 3118 if postIndex > l { 3119 return io.ErrUnexpectedEOF 3120 } 3121 m.Name = string(dAtA[iNdEx:postIndex]) 3122 iNdEx = postIndex 3123 default: 3124 iNdEx = preIndex 3125 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3126 if err != nil { 3127 return err 3128 } 3129 if (skippy < 0) || (iNdEx+skippy) < 0 { 3130 return ErrInvalidLengthRpcquery 3131 } 3132 if (iNdEx + skippy) > l { 3133 return io.ErrUnexpectedEOF 3134 } 3135 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3136 iNdEx += skippy 3137 } 3138 } 3139 3140 if iNdEx > l { 3141 return io.ErrUnexpectedEOF 3142 } 3143 return nil 3144 } 3145 func (m *ListNamesParam) Unmarshal(dAtA []byte) error { 3146 l := len(dAtA) 3147 iNdEx := 0 3148 for iNdEx < l { 3149 preIndex := iNdEx 3150 var wire uint64 3151 for shift := uint(0); ; shift += 7 { 3152 if shift >= 64 { 3153 return ErrIntOverflowRpcquery 3154 } 3155 if iNdEx >= l { 3156 return io.ErrUnexpectedEOF 3157 } 3158 b := dAtA[iNdEx] 3159 iNdEx++ 3160 wire |= uint64(b&0x7F) << shift 3161 if b < 0x80 { 3162 break 3163 } 3164 } 3165 fieldNum := int32(wire >> 3) 3166 wireType := int(wire & 0x7) 3167 if wireType == 4 { 3168 return fmt.Errorf("proto: ListNamesParam: wiretype end group for non-group") 3169 } 3170 if fieldNum <= 0 { 3171 return fmt.Errorf("proto: ListNamesParam: illegal tag %d (wire type %d)", fieldNum, wire) 3172 } 3173 switch fieldNum { 3174 case 1: 3175 if wireType != 2 { 3176 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 3177 } 3178 var stringLen uint64 3179 for shift := uint(0); ; shift += 7 { 3180 if shift >= 64 { 3181 return ErrIntOverflowRpcquery 3182 } 3183 if iNdEx >= l { 3184 return io.ErrUnexpectedEOF 3185 } 3186 b := dAtA[iNdEx] 3187 iNdEx++ 3188 stringLen |= uint64(b&0x7F) << shift 3189 if b < 0x80 { 3190 break 3191 } 3192 } 3193 intStringLen := int(stringLen) 3194 if intStringLen < 0 { 3195 return ErrInvalidLengthRpcquery 3196 } 3197 postIndex := iNdEx + intStringLen 3198 if postIndex < 0 { 3199 return ErrInvalidLengthRpcquery 3200 } 3201 if postIndex > l { 3202 return io.ErrUnexpectedEOF 3203 } 3204 m.Query = string(dAtA[iNdEx:postIndex]) 3205 iNdEx = postIndex 3206 default: 3207 iNdEx = preIndex 3208 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3209 if err != nil { 3210 return err 3211 } 3212 if (skippy < 0) || (iNdEx+skippy) < 0 { 3213 return ErrInvalidLengthRpcquery 3214 } 3215 if (iNdEx + skippy) > l { 3216 return io.ErrUnexpectedEOF 3217 } 3218 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3219 iNdEx += skippy 3220 } 3221 } 3222 3223 if iNdEx > l { 3224 return io.ErrUnexpectedEOF 3225 } 3226 return nil 3227 } 3228 func (m *GetNetworkRegistryParam) Unmarshal(dAtA []byte) error { 3229 l := len(dAtA) 3230 iNdEx := 0 3231 for iNdEx < l { 3232 preIndex := iNdEx 3233 var wire uint64 3234 for shift := uint(0); ; shift += 7 { 3235 if shift >= 64 { 3236 return ErrIntOverflowRpcquery 3237 } 3238 if iNdEx >= l { 3239 return io.ErrUnexpectedEOF 3240 } 3241 b := dAtA[iNdEx] 3242 iNdEx++ 3243 wire |= uint64(b&0x7F) << shift 3244 if b < 0x80 { 3245 break 3246 } 3247 } 3248 fieldNum := int32(wire >> 3) 3249 wireType := int(wire & 0x7) 3250 if wireType == 4 { 3251 return fmt.Errorf("proto: GetNetworkRegistryParam: wiretype end group for non-group") 3252 } 3253 if fieldNum <= 0 { 3254 return fmt.Errorf("proto: GetNetworkRegistryParam: illegal tag %d (wire type %d)", fieldNum, wire) 3255 } 3256 switch fieldNum { 3257 default: 3258 iNdEx = preIndex 3259 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3260 if err != nil { 3261 return err 3262 } 3263 if (skippy < 0) || (iNdEx+skippy) < 0 { 3264 return ErrInvalidLengthRpcquery 3265 } 3266 if (iNdEx + skippy) > l { 3267 return io.ErrUnexpectedEOF 3268 } 3269 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3270 iNdEx += skippy 3271 } 3272 } 3273 3274 if iNdEx > l { 3275 return io.ErrUnexpectedEOF 3276 } 3277 return nil 3278 } 3279 func (m *GetValidatorSetParam) Unmarshal(dAtA []byte) error { 3280 l := len(dAtA) 3281 iNdEx := 0 3282 for iNdEx < l { 3283 preIndex := iNdEx 3284 var wire uint64 3285 for shift := uint(0); ; shift += 7 { 3286 if shift >= 64 { 3287 return ErrIntOverflowRpcquery 3288 } 3289 if iNdEx >= l { 3290 return io.ErrUnexpectedEOF 3291 } 3292 b := dAtA[iNdEx] 3293 iNdEx++ 3294 wire |= uint64(b&0x7F) << shift 3295 if b < 0x80 { 3296 break 3297 } 3298 } 3299 fieldNum := int32(wire >> 3) 3300 wireType := int(wire & 0x7) 3301 if wireType == 4 { 3302 return fmt.Errorf("proto: GetValidatorSetParam: wiretype end group for non-group") 3303 } 3304 if fieldNum <= 0 { 3305 return fmt.Errorf("proto: GetValidatorSetParam: illegal tag %d (wire type %d)", fieldNum, wire) 3306 } 3307 switch fieldNum { 3308 default: 3309 iNdEx = preIndex 3310 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3311 if err != nil { 3312 return err 3313 } 3314 if (skippy < 0) || (iNdEx+skippy) < 0 { 3315 return ErrInvalidLengthRpcquery 3316 } 3317 if (iNdEx + skippy) > l { 3318 return io.ErrUnexpectedEOF 3319 } 3320 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3321 iNdEx += skippy 3322 } 3323 } 3324 3325 if iNdEx > l { 3326 return io.ErrUnexpectedEOF 3327 } 3328 return nil 3329 } 3330 func (m *GetValidatorSetHistoryParam) Unmarshal(dAtA []byte) error { 3331 l := len(dAtA) 3332 iNdEx := 0 3333 for iNdEx < l { 3334 preIndex := iNdEx 3335 var wire uint64 3336 for shift := uint(0); ; shift += 7 { 3337 if shift >= 64 { 3338 return ErrIntOverflowRpcquery 3339 } 3340 if iNdEx >= l { 3341 return io.ErrUnexpectedEOF 3342 } 3343 b := dAtA[iNdEx] 3344 iNdEx++ 3345 wire |= uint64(b&0x7F) << shift 3346 if b < 0x80 { 3347 break 3348 } 3349 } 3350 fieldNum := int32(wire >> 3) 3351 wireType := int(wire & 0x7) 3352 if wireType == 4 { 3353 return fmt.Errorf("proto: GetValidatorSetHistoryParam: wiretype end group for non-group") 3354 } 3355 if fieldNum <= 0 { 3356 return fmt.Errorf("proto: GetValidatorSetHistoryParam: illegal tag %d (wire type %d)", fieldNum, wire) 3357 } 3358 switch fieldNum { 3359 case 1: 3360 if wireType != 0 { 3361 return fmt.Errorf("proto: wrong wireType = %d for field IncludePrevious", wireType) 3362 } 3363 m.IncludePrevious = 0 3364 for shift := uint(0); ; shift += 7 { 3365 if shift >= 64 { 3366 return ErrIntOverflowRpcquery 3367 } 3368 if iNdEx >= l { 3369 return io.ErrUnexpectedEOF 3370 } 3371 b := dAtA[iNdEx] 3372 iNdEx++ 3373 m.IncludePrevious |= int64(b&0x7F) << shift 3374 if b < 0x80 { 3375 break 3376 } 3377 } 3378 default: 3379 iNdEx = preIndex 3380 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3381 if err != nil { 3382 return err 3383 } 3384 if (skippy < 0) || (iNdEx+skippy) < 0 { 3385 return ErrInvalidLengthRpcquery 3386 } 3387 if (iNdEx + skippy) > l { 3388 return io.ErrUnexpectedEOF 3389 } 3390 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3391 iNdEx += skippy 3392 } 3393 } 3394 3395 if iNdEx > l { 3396 return io.ErrUnexpectedEOF 3397 } 3398 return nil 3399 } 3400 func (m *NetworkRegistry) Unmarshal(dAtA []byte) error { 3401 l := len(dAtA) 3402 iNdEx := 0 3403 for iNdEx < l { 3404 preIndex := iNdEx 3405 var wire uint64 3406 for shift := uint(0); ; shift += 7 { 3407 if shift >= 64 { 3408 return ErrIntOverflowRpcquery 3409 } 3410 if iNdEx >= l { 3411 return io.ErrUnexpectedEOF 3412 } 3413 b := dAtA[iNdEx] 3414 iNdEx++ 3415 wire |= uint64(b&0x7F) << shift 3416 if b < 0x80 { 3417 break 3418 } 3419 } 3420 fieldNum := int32(wire >> 3) 3421 wireType := int(wire & 0x7) 3422 if wireType == 4 { 3423 return fmt.Errorf("proto: NetworkRegistry: wiretype end group for non-group") 3424 } 3425 if fieldNum <= 0 { 3426 return fmt.Errorf("proto: NetworkRegistry: illegal tag %d (wire type %d)", fieldNum, wire) 3427 } 3428 switch fieldNum { 3429 case 1: 3430 if wireType != 2 { 3431 return fmt.Errorf("proto: wrong wireType = %d for field Set", wireType) 3432 } 3433 var msglen int 3434 for shift := uint(0); ; shift += 7 { 3435 if shift >= 64 { 3436 return ErrIntOverflowRpcquery 3437 } 3438 if iNdEx >= l { 3439 return io.ErrUnexpectedEOF 3440 } 3441 b := dAtA[iNdEx] 3442 iNdEx++ 3443 msglen |= int(b&0x7F) << shift 3444 if b < 0x80 { 3445 break 3446 } 3447 } 3448 if msglen < 0 { 3449 return ErrInvalidLengthRpcquery 3450 } 3451 postIndex := iNdEx + msglen 3452 if postIndex < 0 { 3453 return ErrInvalidLengthRpcquery 3454 } 3455 if postIndex > l { 3456 return io.ErrUnexpectedEOF 3457 } 3458 m.Set = append(m.Set, &RegisteredValidator{}) 3459 if err := m.Set[len(m.Set)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3460 return err 3461 } 3462 iNdEx = postIndex 3463 default: 3464 iNdEx = preIndex 3465 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3466 if err != nil { 3467 return err 3468 } 3469 if (skippy < 0) || (iNdEx+skippy) < 0 { 3470 return ErrInvalidLengthRpcquery 3471 } 3472 if (iNdEx + skippy) > l { 3473 return io.ErrUnexpectedEOF 3474 } 3475 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3476 iNdEx += skippy 3477 } 3478 } 3479 3480 if iNdEx > l { 3481 return io.ErrUnexpectedEOF 3482 } 3483 return nil 3484 } 3485 func (m *RegisteredValidator) Unmarshal(dAtA []byte) error { 3486 l := len(dAtA) 3487 iNdEx := 0 3488 for iNdEx < l { 3489 preIndex := iNdEx 3490 var wire uint64 3491 for shift := uint(0); ; shift += 7 { 3492 if shift >= 64 { 3493 return ErrIntOverflowRpcquery 3494 } 3495 if iNdEx >= l { 3496 return io.ErrUnexpectedEOF 3497 } 3498 b := dAtA[iNdEx] 3499 iNdEx++ 3500 wire |= uint64(b&0x7F) << shift 3501 if b < 0x80 { 3502 break 3503 } 3504 } 3505 fieldNum := int32(wire >> 3) 3506 wireType := int(wire & 0x7) 3507 if wireType == 4 { 3508 return fmt.Errorf("proto: RegisteredValidator: wiretype end group for non-group") 3509 } 3510 if fieldNum <= 0 { 3511 return fmt.Errorf("proto: RegisteredValidator: illegal tag %d (wire type %d)", fieldNum, wire) 3512 } 3513 switch fieldNum { 3514 case 1: 3515 if wireType != 2 { 3516 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 3517 } 3518 var byteLen int 3519 for shift := uint(0); ; shift += 7 { 3520 if shift >= 64 { 3521 return ErrIntOverflowRpcquery 3522 } 3523 if iNdEx >= l { 3524 return io.ErrUnexpectedEOF 3525 } 3526 b := dAtA[iNdEx] 3527 iNdEx++ 3528 byteLen |= int(b&0x7F) << shift 3529 if b < 0x80 { 3530 break 3531 } 3532 } 3533 if byteLen < 0 { 3534 return ErrInvalidLengthRpcquery 3535 } 3536 postIndex := iNdEx + byteLen 3537 if postIndex < 0 { 3538 return ErrInvalidLengthRpcquery 3539 } 3540 if postIndex > l { 3541 return io.ErrUnexpectedEOF 3542 } 3543 if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3544 return err 3545 } 3546 iNdEx = postIndex 3547 case 2: 3548 if wireType != 2 { 3549 return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) 3550 } 3551 var msglen int 3552 for shift := uint(0); ; shift += 7 { 3553 if shift >= 64 { 3554 return ErrIntOverflowRpcquery 3555 } 3556 if iNdEx >= l { 3557 return io.ErrUnexpectedEOF 3558 } 3559 b := dAtA[iNdEx] 3560 iNdEx++ 3561 msglen |= int(b&0x7F) << shift 3562 if b < 0x80 { 3563 break 3564 } 3565 } 3566 if msglen < 0 { 3567 return ErrInvalidLengthRpcquery 3568 } 3569 postIndex := iNdEx + msglen 3570 if postIndex < 0 { 3571 return ErrInvalidLengthRpcquery 3572 } 3573 if postIndex > l { 3574 return io.ErrUnexpectedEOF 3575 } 3576 if m.Node == nil { 3577 m.Node = ®istry.NodeIdentity{} 3578 } 3579 if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3580 return err 3581 } 3582 iNdEx = postIndex 3583 default: 3584 iNdEx = preIndex 3585 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3586 if err != nil { 3587 return err 3588 } 3589 if (skippy < 0) || (iNdEx+skippy) < 0 { 3590 return ErrInvalidLengthRpcquery 3591 } 3592 if (iNdEx + skippy) > l { 3593 return io.ErrUnexpectedEOF 3594 } 3595 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3596 iNdEx += skippy 3597 } 3598 } 3599 3600 if iNdEx > l { 3601 return io.ErrUnexpectedEOF 3602 } 3603 return nil 3604 } 3605 func (m *ValidatorSetHistory) Unmarshal(dAtA []byte) error { 3606 l := len(dAtA) 3607 iNdEx := 0 3608 for iNdEx < l { 3609 preIndex := iNdEx 3610 var wire uint64 3611 for shift := uint(0); ; shift += 7 { 3612 if shift >= 64 { 3613 return ErrIntOverflowRpcquery 3614 } 3615 if iNdEx >= l { 3616 return io.ErrUnexpectedEOF 3617 } 3618 b := dAtA[iNdEx] 3619 iNdEx++ 3620 wire |= uint64(b&0x7F) << shift 3621 if b < 0x80 { 3622 break 3623 } 3624 } 3625 fieldNum := int32(wire >> 3) 3626 wireType := int(wire & 0x7) 3627 if wireType == 4 { 3628 return fmt.Errorf("proto: ValidatorSetHistory: wiretype end group for non-group") 3629 } 3630 if fieldNum <= 0 { 3631 return fmt.Errorf("proto: ValidatorSetHistory: illegal tag %d (wire type %d)", fieldNum, wire) 3632 } 3633 switch fieldNum { 3634 case 1: 3635 if wireType != 2 { 3636 return fmt.Errorf("proto: wrong wireType = %d for field History", wireType) 3637 } 3638 var msglen int 3639 for shift := uint(0); ; shift += 7 { 3640 if shift >= 64 { 3641 return ErrIntOverflowRpcquery 3642 } 3643 if iNdEx >= l { 3644 return io.ErrUnexpectedEOF 3645 } 3646 b := dAtA[iNdEx] 3647 iNdEx++ 3648 msglen |= int(b&0x7F) << shift 3649 if b < 0x80 { 3650 break 3651 } 3652 } 3653 if msglen < 0 { 3654 return ErrInvalidLengthRpcquery 3655 } 3656 postIndex := iNdEx + msglen 3657 if postIndex < 0 { 3658 return ErrInvalidLengthRpcquery 3659 } 3660 if postIndex > l { 3661 return io.ErrUnexpectedEOF 3662 } 3663 m.History = append(m.History, &ValidatorSet{}) 3664 if err := m.History[len(m.History)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3665 return err 3666 } 3667 iNdEx = postIndex 3668 default: 3669 iNdEx = preIndex 3670 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3671 if err != nil { 3672 return err 3673 } 3674 if (skippy < 0) || (iNdEx+skippy) < 0 { 3675 return ErrInvalidLengthRpcquery 3676 } 3677 if (iNdEx + skippy) > l { 3678 return io.ErrUnexpectedEOF 3679 } 3680 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3681 iNdEx += skippy 3682 } 3683 } 3684 3685 if iNdEx > l { 3686 return io.ErrUnexpectedEOF 3687 } 3688 return nil 3689 } 3690 func (m *ValidatorSet) Unmarshal(dAtA []byte) error { 3691 l := len(dAtA) 3692 iNdEx := 0 3693 for iNdEx < l { 3694 preIndex := iNdEx 3695 var wire uint64 3696 for shift := uint(0); ; shift += 7 { 3697 if shift >= 64 { 3698 return ErrIntOverflowRpcquery 3699 } 3700 if iNdEx >= l { 3701 return io.ErrUnexpectedEOF 3702 } 3703 b := dAtA[iNdEx] 3704 iNdEx++ 3705 wire |= uint64(b&0x7F) << shift 3706 if b < 0x80 { 3707 break 3708 } 3709 } 3710 fieldNum := int32(wire >> 3) 3711 wireType := int(wire & 0x7) 3712 if wireType == 4 { 3713 return fmt.Errorf("proto: ValidatorSet: wiretype end group for non-group") 3714 } 3715 if fieldNum <= 0 { 3716 return fmt.Errorf("proto: ValidatorSet: illegal tag %d (wire type %d)", fieldNum, wire) 3717 } 3718 switch fieldNum { 3719 case 1: 3720 if wireType != 0 { 3721 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 3722 } 3723 m.Height = 0 3724 for shift := uint(0); ; shift += 7 { 3725 if shift >= 64 { 3726 return ErrIntOverflowRpcquery 3727 } 3728 if iNdEx >= l { 3729 return io.ErrUnexpectedEOF 3730 } 3731 b := dAtA[iNdEx] 3732 iNdEx++ 3733 m.Height |= uint64(b&0x7F) << shift 3734 if b < 0x80 { 3735 break 3736 } 3737 } 3738 case 2: 3739 if wireType != 2 { 3740 return fmt.Errorf("proto: wrong wireType = %d for field Set", wireType) 3741 } 3742 var msglen int 3743 for shift := uint(0); ; shift += 7 { 3744 if shift >= 64 { 3745 return ErrIntOverflowRpcquery 3746 } 3747 if iNdEx >= l { 3748 return io.ErrUnexpectedEOF 3749 } 3750 b := dAtA[iNdEx] 3751 iNdEx++ 3752 msglen |= int(b&0x7F) << shift 3753 if b < 0x80 { 3754 break 3755 } 3756 } 3757 if msglen < 0 { 3758 return ErrInvalidLengthRpcquery 3759 } 3760 postIndex := iNdEx + msglen 3761 if postIndex < 0 { 3762 return ErrInvalidLengthRpcquery 3763 } 3764 if postIndex > l { 3765 return io.ErrUnexpectedEOF 3766 } 3767 m.Set = append(m.Set, &validator.Validator{}) 3768 if err := m.Set[len(m.Set)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3769 return err 3770 } 3771 iNdEx = postIndex 3772 default: 3773 iNdEx = preIndex 3774 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3775 if err != nil { 3776 return err 3777 } 3778 if (skippy < 0) || (iNdEx+skippy) < 0 { 3779 return ErrInvalidLengthRpcquery 3780 } 3781 if (iNdEx + skippy) > l { 3782 return io.ErrUnexpectedEOF 3783 } 3784 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3785 iNdEx += skippy 3786 } 3787 } 3788 3789 if iNdEx > l { 3790 return io.ErrUnexpectedEOF 3791 } 3792 return nil 3793 } 3794 func (m *GetProposalParam) Unmarshal(dAtA []byte) error { 3795 l := len(dAtA) 3796 iNdEx := 0 3797 for iNdEx < l { 3798 preIndex := iNdEx 3799 var wire uint64 3800 for shift := uint(0); ; shift += 7 { 3801 if shift >= 64 { 3802 return ErrIntOverflowRpcquery 3803 } 3804 if iNdEx >= l { 3805 return io.ErrUnexpectedEOF 3806 } 3807 b := dAtA[iNdEx] 3808 iNdEx++ 3809 wire |= uint64(b&0x7F) << shift 3810 if b < 0x80 { 3811 break 3812 } 3813 } 3814 fieldNum := int32(wire >> 3) 3815 wireType := int(wire & 0x7) 3816 if wireType == 4 { 3817 return fmt.Errorf("proto: GetProposalParam: wiretype end group for non-group") 3818 } 3819 if fieldNum <= 0 { 3820 return fmt.Errorf("proto: GetProposalParam: illegal tag %d (wire type %d)", fieldNum, wire) 3821 } 3822 switch fieldNum { 3823 case 1: 3824 if wireType != 2 { 3825 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 3826 } 3827 var byteLen int 3828 for shift := uint(0); ; shift += 7 { 3829 if shift >= 64 { 3830 return ErrIntOverflowRpcquery 3831 } 3832 if iNdEx >= l { 3833 return io.ErrUnexpectedEOF 3834 } 3835 b := dAtA[iNdEx] 3836 iNdEx++ 3837 byteLen |= int(b&0x7F) << shift 3838 if b < 0x80 { 3839 break 3840 } 3841 } 3842 if byteLen < 0 { 3843 return ErrInvalidLengthRpcquery 3844 } 3845 postIndex := iNdEx + byteLen 3846 if postIndex < 0 { 3847 return ErrInvalidLengthRpcquery 3848 } 3849 if postIndex > l { 3850 return io.ErrUnexpectedEOF 3851 } 3852 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 3853 if m.Hash == nil { 3854 m.Hash = []byte{} 3855 } 3856 iNdEx = postIndex 3857 default: 3858 iNdEx = preIndex 3859 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3860 if err != nil { 3861 return err 3862 } 3863 if (skippy < 0) || (iNdEx+skippy) < 0 { 3864 return ErrInvalidLengthRpcquery 3865 } 3866 if (iNdEx + skippy) > l { 3867 return io.ErrUnexpectedEOF 3868 } 3869 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3870 iNdEx += skippy 3871 } 3872 } 3873 3874 if iNdEx > l { 3875 return io.ErrUnexpectedEOF 3876 } 3877 return nil 3878 } 3879 func (m *ListProposalsParam) Unmarshal(dAtA []byte) error { 3880 l := len(dAtA) 3881 iNdEx := 0 3882 for iNdEx < l { 3883 preIndex := iNdEx 3884 var wire uint64 3885 for shift := uint(0); ; shift += 7 { 3886 if shift >= 64 { 3887 return ErrIntOverflowRpcquery 3888 } 3889 if iNdEx >= l { 3890 return io.ErrUnexpectedEOF 3891 } 3892 b := dAtA[iNdEx] 3893 iNdEx++ 3894 wire |= uint64(b&0x7F) << shift 3895 if b < 0x80 { 3896 break 3897 } 3898 } 3899 fieldNum := int32(wire >> 3) 3900 wireType := int(wire & 0x7) 3901 if wireType == 4 { 3902 return fmt.Errorf("proto: ListProposalsParam: wiretype end group for non-group") 3903 } 3904 if fieldNum <= 0 { 3905 return fmt.Errorf("proto: ListProposalsParam: illegal tag %d (wire type %d)", fieldNum, wire) 3906 } 3907 switch fieldNum { 3908 case 1: 3909 if wireType != 0 { 3910 return fmt.Errorf("proto: wrong wireType = %d for field Proposed", wireType) 3911 } 3912 var v int 3913 for shift := uint(0); ; shift += 7 { 3914 if shift >= 64 { 3915 return ErrIntOverflowRpcquery 3916 } 3917 if iNdEx >= l { 3918 return io.ErrUnexpectedEOF 3919 } 3920 b := dAtA[iNdEx] 3921 iNdEx++ 3922 v |= int(b&0x7F) << shift 3923 if b < 0x80 { 3924 break 3925 } 3926 } 3927 m.Proposed = bool(v != 0) 3928 default: 3929 iNdEx = preIndex 3930 skippy, err := skipRpcquery(dAtA[iNdEx:]) 3931 if err != nil { 3932 return err 3933 } 3934 if (skippy < 0) || (iNdEx+skippy) < 0 { 3935 return ErrInvalidLengthRpcquery 3936 } 3937 if (iNdEx + skippy) > l { 3938 return io.ErrUnexpectedEOF 3939 } 3940 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3941 iNdEx += skippy 3942 } 3943 } 3944 3945 if iNdEx > l { 3946 return io.ErrUnexpectedEOF 3947 } 3948 return nil 3949 } 3950 func (m *ProposalResult) Unmarshal(dAtA []byte) error { 3951 l := len(dAtA) 3952 iNdEx := 0 3953 for iNdEx < l { 3954 preIndex := iNdEx 3955 var wire uint64 3956 for shift := uint(0); ; shift += 7 { 3957 if shift >= 64 { 3958 return ErrIntOverflowRpcquery 3959 } 3960 if iNdEx >= l { 3961 return io.ErrUnexpectedEOF 3962 } 3963 b := dAtA[iNdEx] 3964 iNdEx++ 3965 wire |= uint64(b&0x7F) << shift 3966 if b < 0x80 { 3967 break 3968 } 3969 } 3970 fieldNum := int32(wire >> 3) 3971 wireType := int(wire & 0x7) 3972 if wireType == 4 { 3973 return fmt.Errorf("proto: ProposalResult: wiretype end group for non-group") 3974 } 3975 if fieldNum <= 0 { 3976 return fmt.Errorf("proto: ProposalResult: illegal tag %d (wire type %d)", fieldNum, wire) 3977 } 3978 switch fieldNum { 3979 case 1: 3980 if wireType != 2 { 3981 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 3982 } 3983 var byteLen int 3984 for shift := uint(0); ; shift += 7 { 3985 if shift >= 64 { 3986 return ErrIntOverflowRpcquery 3987 } 3988 if iNdEx >= l { 3989 return io.ErrUnexpectedEOF 3990 } 3991 b := dAtA[iNdEx] 3992 iNdEx++ 3993 byteLen |= int(b&0x7F) << shift 3994 if b < 0x80 { 3995 break 3996 } 3997 } 3998 if byteLen < 0 { 3999 return ErrInvalidLengthRpcquery 4000 } 4001 postIndex := iNdEx + byteLen 4002 if postIndex < 0 { 4003 return ErrInvalidLengthRpcquery 4004 } 4005 if postIndex > l { 4006 return io.ErrUnexpectedEOF 4007 } 4008 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 4009 if m.Hash == nil { 4010 m.Hash = []byte{} 4011 } 4012 iNdEx = postIndex 4013 case 2: 4014 if wireType != 2 { 4015 return fmt.Errorf("proto: wrong wireType = %d for field Ballot", wireType) 4016 } 4017 var msglen int 4018 for shift := uint(0); ; shift += 7 { 4019 if shift >= 64 { 4020 return ErrIntOverflowRpcquery 4021 } 4022 if iNdEx >= l { 4023 return io.ErrUnexpectedEOF 4024 } 4025 b := dAtA[iNdEx] 4026 iNdEx++ 4027 msglen |= int(b&0x7F) << shift 4028 if b < 0x80 { 4029 break 4030 } 4031 } 4032 if msglen < 0 { 4033 return ErrInvalidLengthRpcquery 4034 } 4035 postIndex := iNdEx + msglen 4036 if postIndex < 0 { 4037 return ErrInvalidLengthRpcquery 4038 } 4039 if postIndex > l { 4040 return io.ErrUnexpectedEOF 4041 } 4042 if m.Ballot == nil { 4043 m.Ballot = &payload.Ballot{} 4044 } 4045 if err := m.Ballot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4046 return err 4047 } 4048 iNdEx = postIndex 4049 default: 4050 iNdEx = preIndex 4051 skippy, err := skipRpcquery(dAtA[iNdEx:]) 4052 if err != nil { 4053 return err 4054 } 4055 if (skippy < 0) || (iNdEx+skippy) < 0 { 4056 return ErrInvalidLengthRpcquery 4057 } 4058 if (iNdEx + skippy) > l { 4059 return io.ErrUnexpectedEOF 4060 } 4061 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4062 iNdEx += skippy 4063 } 4064 } 4065 4066 if iNdEx > l { 4067 return io.ErrUnexpectedEOF 4068 } 4069 return nil 4070 } 4071 func (m *GetStatsParam) Unmarshal(dAtA []byte) error { 4072 l := len(dAtA) 4073 iNdEx := 0 4074 for iNdEx < l { 4075 preIndex := iNdEx 4076 var wire uint64 4077 for shift := uint(0); ; shift += 7 { 4078 if shift >= 64 { 4079 return ErrIntOverflowRpcquery 4080 } 4081 if iNdEx >= l { 4082 return io.ErrUnexpectedEOF 4083 } 4084 b := dAtA[iNdEx] 4085 iNdEx++ 4086 wire |= uint64(b&0x7F) << shift 4087 if b < 0x80 { 4088 break 4089 } 4090 } 4091 fieldNum := int32(wire >> 3) 4092 wireType := int(wire & 0x7) 4093 if wireType == 4 { 4094 return fmt.Errorf("proto: GetStatsParam: wiretype end group for non-group") 4095 } 4096 if fieldNum <= 0 { 4097 return fmt.Errorf("proto: GetStatsParam: illegal tag %d (wire type %d)", fieldNum, wire) 4098 } 4099 switch fieldNum { 4100 default: 4101 iNdEx = preIndex 4102 skippy, err := skipRpcquery(dAtA[iNdEx:]) 4103 if err != nil { 4104 return err 4105 } 4106 if (skippy < 0) || (iNdEx+skippy) < 0 { 4107 return ErrInvalidLengthRpcquery 4108 } 4109 if (iNdEx + skippy) > l { 4110 return io.ErrUnexpectedEOF 4111 } 4112 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4113 iNdEx += skippy 4114 } 4115 } 4116 4117 if iNdEx > l { 4118 return io.ErrUnexpectedEOF 4119 } 4120 return nil 4121 } 4122 func (m *Stats) Unmarshal(dAtA []byte) error { 4123 l := len(dAtA) 4124 iNdEx := 0 4125 for iNdEx < l { 4126 preIndex := iNdEx 4127 var wire uint64 4128 for shift := uint(0); ; shift += 7 { 4129 if shift >= 64 { 4130 return ErrIntOverflowRpcquery 4131 } 4132 if iNdEx >= l { 4133 return io.ErrUnexpectedEOF 4134 } 4135 b := dAtA[iNdEx] 4136 iNdEx++ 4137 wire |= uint64(b&0x7F) << shift 4138 if b < 0x80 { 4139 break 4140 } 4141 } 4142 fieldNum := int32(wire >> 3) 4143 wireType := int(wire & 0x7) 4144 if wireType == 4 { 4145 return fmt.Errorf("proto: Stats: wiretype end group for non-group") 4146 } 4147 if fieldNum <= 0 { 4148 return fmt.Errorf("proto: Stats: illegal tag %d (wire type %d)", fieldNum, wire) 4149 } 4150 switch fieldNum { 4151 case 1: 4152 if wireType != 0 { 4153 return fmt.Errorf("proto: wrong wireType = %d for field AccountsWithCode", wireType) 4154 } 4155 m.AccountsWithCode = 0 4156 for shift := uint(0); ; shift += 7 { 4157 if shift >= 64 { 4158 return ErrIntOverflowRpcquery 4159 } 4160 if iNdEx >= l { 4161 return io.ErrUnexpectedEOF 4162 } 4163 b := dAtA[iNdEx] 4164 iNdEx++ 4165 m.AccountsWithCode |= uint64(b&0x7F) << shift 4166 if b < 0x80 { 4167 break 4168 } 4169 } 4170 case 2: 4171 if wireType != 0 { 4172 return fmt.Errorf("proto: wrong wireType = %d for field AccountsWithoutCode", wireType) 4173 } 4174 m.AccountsWithoutCode = 0 4175 for shift := uint(0); ; shift += 7 { 4176 if shift >= 64 { 4177 return ErrIntOverflowRpcquery 4178 } 4179 if iNdEx >= l { 4180 return io.ErrUnexpectedEOF 4181 } 4182 b := dAtA[iNdEx] 4183 iNdEx++ 4184 m.AccountsWithoutCode |= uint64(b&0x7F) << shift 4185 if b < 0x80 { 4186 break 4187 } 4188 } 4189 default: 4190 iNdEx = preIndex 4191 skippy, err := skipRpcquery(dAtA[iNdEx:]) 4192 if err != nil { 4193 return err 4194 } 4195 if (skippy < 0) || (iNdEx+skippy) < 0 { 4196 return ErrInvalidLengthRpcquery 4197 } 4198 if (iNdEx + skippy) > l { 4199 return io.ErrUnexpectedEOF 4200 } 4201 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4202 iNdEx += skippy 4203 } 4204 } 4205 4206 if iNdEx > l { 4207 return io.ErrUnexpectedEOF 4208 } 4209 return nil 4210 } 4211 func (m *GetBlockParam) Unmarshal(dAtA []byte) error { 4212 l := len(dAtA) 4213 iNdEx := 0 4214 for iNdEx < l { 4215 preIndex := iNdEx 4216 var wire uint64 4217 for shift := uint(0); ; shift += 7 { 4218 if shift >= 64 { 4219 return ErrIntOverflowRpcquery 4220 } 4221 if iNdEx >= l { 4222 return io.ErrUnexpectedEOF 4223 } 4224 b := dAtA[iNdEx] 4225 iNdEx++ 4226 wire |= uint64(b&0x7F) << shift 4227 if b < 0x80 { 4228 break 4229 } 4230 } 4231 fieldNum := int32(wire >> 3) 4232 wireType := int(wire & 0x7) 4233 if wireType == 4 { 4234 return fmt.Errorf("proto: GetBlockParam: wiretype end group for non-group") 4235 } 4236 if fieldNum <= 0 { 4237 return fmt.Errorf("proto: GetBlockParam: illegal tag %d (wire type %d)", fieldNum, wire) 4238 } 4239 switch fieldNum { 4240 case 1: 4241 if wireType != 0 { 4242 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 4243 } 4244 m.Height = 0 4245 for shift := uint(0); ; shift += 7 { 4246 if shift >= 64 { 4247 return ErrIntOverflowRpcquery 4248 } 4249 if iNdEx >= l { 4250 return io.ErrUnexpectedEOF 4251 } 4252 b := dAtA[iNdEx] 4253 iNdEx++ 4254 m.Height |= uint64(b&0x7F) << shift 4255 if b < 0x80 { 4256 break 4257 } 4258 } 4259 default: 4260 iNdEx = preIndex 4261 skippy, err := skipRpcquery(dAtA[iNdEx:]) 4262 if err != nil { 4263 return err 4264 } 4265 if (skippy < 0) || (iNdEx+skippy) < 0 { 4266 return ErrInvalidLengthRpcquery 4267 } 4268 if (iNdEx + skippy) > l { 4269 return io.ErrUnexpectedEOF 4270 } 4271 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4272 iNdEx += skippy 4273 } 4274 } 4275 4276 if iNdEx > l { 4277 return io.ErrUnexpectedEOF 4278 } 4279 return nil 4280 } 4281 func skipRpcquery(dAtA []byte) (n int, err error) { 4282 l := len(dAtA) 4283 iNdEx := 0 4284 depth := 0 4285 for iNdEx < l { 4286 var wire uint64 4287 for shift := uint(0); ; shift += 7 { 4288 if shift >= 64 { 4289 return 0, ErrIntOverflowRpcquery 4290 } 4291 if iNdEx >= l { 4292 return 0, io.ErrUnexpectedEOF 4293 } 4294 b := dAtA[iNdEx] 4295 iNdEx++ 4296 wire |= (uint64(b) & 0x7F) << shift 4297 if b < 0x80 { 4298 break 4299 } 4300 } 4301 wireType := int(wire & 0x7) 4302 switch wireType { 4303 case 0: 4304 for shift := uint(0); ; shift += 7 { 4305 if shift >= 64 { 4306 return 0, ErrIntOverflowRpcquery 4307 } 4308 if iNdEx >= l { 4309 return 0, io.ErrUnexpectedEOF 4310 } 4311 iNdEx++ 4312 if dAtA[iNdEx-1] < 0x80 { 4313 break 4314 } 4315 } 4316 case 1: 4317 iNdEx += 8 4318 case 2: 4319 var length int 4320 for shift := uint(0); ; shift += 7 { 4321 if shift >= 64 { 4322 return 0, ErrIntOverflowRpcquery 4323 } 4324 if iNdEx >= l { 4325 return 0, io.ErrUnexpectedEOF 4326 } 4327 b := dAtA[iNdEx] 4328 iNdEx++ 4329 length |= (int(b) & 0x7F) << shift 4330 if b < 0x80 { 4331 break 4332 } 4333 } 4334 if length < 0 { 4335 return 0, ErrInvalidLengthRpcquery 4336 } 4337 iNdEx += length 4338 case 3: 4339 depth++ 4340 case 4: 4341 if depth == 0 { 4342 return 0, ErrUnexpectedEndOfGroupRpcquery 4343 } 4344 depth-- 4345 case 5: 4346 iNdEx += 4 4347 default: 4348 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 4349 } 4350 if iNdEx < 0 { 4351 return 0, ErrInvalidLengthRpcquery 4352 } 4353 if depth == 0 { 4354 return iNdEx, nil 4355 } 4356 } 4357 return 0, io.ErrUnexpectedEOF 4358 } 4359 4360 var ( 4361 ErrInvalidLengthRpcquery = fmt.Errorf("proto: negative length found during unmarshaling") 4362 ErrIntOverflowRpcquery = fmt.Errorf("proto: integer overflow") 4363 ErrUnexpectedEndOfGroupRpcquery = fmt.Errorf("proto: unexpected end of group") 4364 )