github.com/InjectiveLabs/sdk-go@v1.53.0/chain/ocr/types/ocr.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: injective/ocr/v1beta1/ocr.proto 3 4 package types 5 6 import ( 7 cosmossdk_io_math "cosmossdk.io/math" 8 fmt "fmt" 9 _ "github.com/cosmos/cosmos-proto" 10 types "github.com/cosmos/cosmos-sdk/types" 11 _ "github.com/cosmos/cosmos-sdk/types/tx/amino" 12 _ "github.com/cosmos/gogoproto/gogoproto" 13 proto "github.com/cosmos/gogoproto/proto" 14 github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" 15 _ "google.golang.org/protobuf/types/known/timestamppb" 16 io "io" 17 math "math" 18 math_bits "math/bits" 19 time "time" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 var _ = time.Kitchen 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 33 34 type Params struct { 35 // Native denom for LINK coin in the bank keeper 36 LinkDenom string `protobuf:"bytes,1,opt,name=link_denom,json=linkDenom,proto3" json:"link_denom,omitempty"` 37 // The block number interval at which payouts are made 38 PayoutBlockInterval uint64 `protobuf:"varint,2,opt,name=payout_block_interval,json=payoutBlockInterval,proto3" json:"payout_block_interval,omitempty"` 39 // The admin for the OCR module 40 ModuleAdmin string `protobuf:"bytes,3,opt,name=module_admin,json=moduleAdmin,proto3" json:"module_admin,omitempty"` 41 } 42 43 func (m *Params) Reset() { *m = Params{} } 44 func (m *Params) String() string { return proto.CompactTextString(m) } 45 func (*Params) ProtoMessage() {} 46 func (*Params) Descriptor() ([]byte, []int) { 47 return fileDescriptor_0acb79560f1720fa, []int{0} 48 } 49 func (m *Params) XXX_Unmarshal(b []byte) error { 50 return m.Unmarshal(b) 51 } 52 func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 53 if deterministic { 54 return xxx_messageInfo_Params.Marshal(b, m, deterministic) 55 } else { 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 } 64 func (m *Params) XXX_Merge(src proto.Message) { 65 xxx_messageInfo_Params.Merge(m, src) 66 } 67 func (m *Params) XXX_Size() int { 68 return m.Size() 69 } 70 func (m *Params) XXX_DiscardUnknown() { 71 xxx_messageInfo_Params.DiscardUnknown(m) 72 } 73 74 var xxx_messageInfo_Params proto.InternalMessageInfo 75 76 func (m *Params) GetLinkDenom() string { 77 if m != nil { 78 return m.LinkDenom 79 } 80 return "" 81 } 82 83 func (m *Params) GetPayoutBlockInterval() uint64 { 84 if m != nil { 85 return m.PayoutBlockInterval 86 } 87 return 0 88 } 89 90 func (m *Params) GetModuleAdmin() string { 91 if m != nil { 92 return m.ModuleAdmin 93 } 94 return "" 95 } 96 97 type FeedConfig struct { 98 // signers ith element is address ith oracle uses to sign a report 99 Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` 100 // transmitters ith element is address ith oracle uses to transmit a report 101 // via the transmit method 102 Transmitters []string `protobuf:"bytes,2,rep,name=transmitters,proto3" json:"transmitters,omitempty"` 103 // f maximum number of faulty/dishonest oracles the protocol can tolerate 104 // while still working correctly 105 F uint32 `protobuf:"varint,3,opt,name=f,proto3" json:"f,omitempty"` 106 // onchain_config serialized data with reporting plugin params on chain. 107 OnchainConfig []byte `protobuf:"bytes,4,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` 108 // offchain_config_version version of the serialization format used for 109 // "offchain_config" parameter 110 OffchainConfigVersion uint64 `protobuf:"varint,5,opt,name=offchain_config_version,json=offchainConfigVersion,proto3" json:"offchain_config_version,omitempty"` 111 // offchain_config serialized data used by oracles to configure their offchain 112 // operation 113 OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` 114 // feed-specific params for the Cosmos module. 115 ModuleParams *ModuleParams `protobuf:"bytes,7,opt,name=module_params,json=moduleParams,proto3" json:"module_params,omitempty"` 116 } 117 118 func (m *FeedConfig) Reset() { *m = FeedConfig{} } 119 func (m *FeedConfig) String() string { return proto.CompactTextString(m) } 120 func (*FeedConfig) ProtoMessage() {} 121 func (*FeedConfig) Descriptor() ([]byte, []int) { 122 return fileDescriptor_0acb79560f1720fa, []int{1} 123 } 124 func (m *FeedConfig) XXX_Unmarshal(b []byte) error { 125 return m.Unmarshal(b) 126 } 127 func (m *FeedConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 128 if deterministic { 129 return xxx_messageInfo_FeedConfig.Marshal(b, m, deterministic) 130 } else { 131 b = b[:cap(b)] 132 n, err := m.MarshalToSizedBuffer(b) 133 if err != nil { 134 return nil, err 135 } 136 return b[:n], nil 137 } 138 } 139 func (m *FeedConfig) XXX_Merge(src proto.Message) { 140 xxx_messageInfo_FeedConfig.Merge(m, src) 141 } 142 func (m *FeedConfig) XXX_Size() int { 143 return m.Size() 144 } 145 func (m *FeedConfig) XXX_DiscardUnknown() { 146 xxx_messageInfo_FeedConfig.DiscardUnknown(m) 147 } 148 149 var xxx_messageInfo_FeedConfig proto.InternalMessageInfo 150 151 func (m *FeedConfig) GetSigners() []string { 152 if m != nil { 153 return m.Signers 154 } 155 return nil 156 } 157 158 func (m *FeedConfig) GetTransmitters() []string { 159 if m != nil { 160 return m.Transmitters 161 } 162 return nil 163 } 164 165 func (m *FeedConfig) GetF() uint32 { 166 if m != nil { 167 return m.F 168 } 169 return 0 170 } 171 172 func (m *FeedConfig) GetOnchainConfig() []byte { 173 if m != nil { 174 return m.OnchainConfig 175 } 176 return nil 177 } 178 179 func (m *FeedConfig) GetOffchainConfigVersion() uint64 { 180 if m != nil { 181 return m.OffchainConfigVersion 182 } 183 return 0 184 } 185 186 func (m *FeedConfig) GetOffchainConfig() []byte { 187 if m != nil { 188 return m.OffchainConfig 189 } 190 return nil 191 } 192 193 func (m *FeedConfig) GetModuleParams() *ModuleParams { 194 if m != nil { 195 return m.ModuleParams 196 } 197 return nil 198 } 199 200 type FeedConfigInfo struct { 201 LatestConfigDigest []byte `protobuf:"bytes,1,opt,name=latest_config_digest,json=latestConfigDigest,proto3" json:"latest_config_digest,omitempty"` 202 F uint32 `protobuf:"varint,2,opt,name=f,proto3" json:"f,omitempty"` 203 N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` 204 // config_count ordinal number of this config setting among all config 205 // settings 206 ConfigCount uint64 `protobuf:"varint,4,opt,name=config_count,json=configCount,proto3" json:"config_count,omitempty"` 207 LatestConfigBlockNumber int64 `protobuf:"varint,5,opt,name=latest_config_block_number,json=latestConfigBlockNumber,proto3" json:"latest_config_block_number,omitempty"` 208 } 209 210 func (m *FeedConfigInfo) Reset() { *m = FeedConfigInfo{} } 211 func (m *FeedConfigInfo) String() string { return proto.CompactTextString(m) } 212 func (*FeedConfigInfo) ProtoMessage() {} 213 func (*FeedConfigInfo) Descriptor() ([]byte, []int) { 214 return fileDescriptor_0acb79560f1720fa, []int{2} 215 } 216 func (m *FeedConfigInfo) XXX_Unmarshal(b []byte) error { 217 return m.Unmarshal(b) 218 } 219 func (m *FeedConfigInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 220 if deterministic { 221 return xxx_messageInfo_FeedConfigInfo.Marshal(b, m, deterministic) 222 } else { 223 b = b[:cap(b)] 224 n, err := m.MarshalToSizedBuffer(b) 225 if err != nil { 226 return nil, err 227 } 228 return b[:n], nil 229 } 230 } 231 func (m *FeedConfigInfo) XXX_Merge(src proto.Message) { 232 xxx_messageInfo_FeedConfigInfo.Merge(m, src) 233 } 234 func (m *FeedConfigInfo) XXX_Size() int { 235 return m.Size() 236 } 237 func (m *FeedConfigInfo) XXX_DiscardUnknown() { 238 xxx_messageInfo_FeedConfigInfo.DiscardUnknown(m) 239 } 240 241 var xxx_messageInfo_FeedConfigInfo proto.InternalMessageInfo 242 243 func (m *FeedConfigInfo) GetLatestConfigDigest() []byte { 244 if m != nil { 245 return m.LatestConfigDigest 246 } 247 return nil 248 } 249 250 func (m *FeedConfigInfo) GetF() uint32 { 251 if m != nil { 252 return m.F 253 } 254 return 0 255 } 256 257 func (m *FeedConfigInfo) GetN() uint32 { 258 if m != nil { 259 return m.N 260 } 261 return 0 262 } 263 264 func (m *FeedConfigInfo) GetConfigCount() uint64 { 265 if m != nil { 266 return m.ConfigCount 267 } 268 return 0 269 } 270 271 func (m *FeedConfigInfo) GetLatestConfigBlockNumber() int64 { 272 if m != nil { 273 return m.LatestConfigBlockNumber 274 } 275 return 0 276 } 277 278 type ModuleParams struct { 279 // feed_id is an unique ID for the target of this config 280 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 281 // lowest answer the median of a report is allowed to be 282 MinAnswer cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=min_answer,json=minAnswer,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_answer"` 283 // highest answer the median of a report is allowed to be 284 MaxAnswer cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=max_answer,json=maxAnswer,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_answer"` 285 // Fixed LINK reward for each observer 286 LinkPerObservation cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=link_per_observation,json=linkPerObservation,proto3,customtype=cosmossdk.io/math.Int" json:"link_per_observation"` 287 // Fixed LINK reward for transmitter 288 LinkPerTransmission cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=link_per_transmission,json=linkPerTransmission,proto3,customtype=cosmossdk.io/math.Int" json:"link_per_transmission"` 289 // Native denom for LINK coin in the bank keeper 290 LinkDenom string `protobuf:"bytes,6,opt,name=link_denom,json=linkDenom,proto3" json:"link_denom,omitempty"` 291 // Enables unique reports 292 UniqueReports bool `protobuf:"varint,7,opt,name=unique_reports,json=uniqueReports,proto3" json:"unique_reports,omitempty"` 293 // short human-readable description of observable this feed's answers pertain 294 // to 295 Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` 296 // feed administrator 297 FeedAdmin string `protobuf:"bytes,9,opt,name=feed_admin,json=feedAdmin,proto3" json:"feed_admin,omitempty"` 298 // feed billing administrator 299 BillingAdmin string `protobuf:"bytes,10,opt,name=billing_admin,json=billingAdmin,proto3" json:"billing_admin,omitempty"` 300 } 301 302 func (m *ModuleParams) Reset() { *m = ModuleParams{} } 303 func (m *ModuleParams) String() string { return proto.CompactTextString(m) } 304 func (*ModuleParams) ProtoMessage() {} 305 func (*ModuleParams) Descriptor() ([]byte, []int) { 306 return fileDescriptor_0acb79560f1720fa, []int{3} 307 } 308 func (m *ModuleParams) XXX_Unmarshal(b []byte) error { 309 return m.Unmarshal(b) 310 } 311 func (m *ModuleParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 312 if deterministic { 313 return xxx_messageInfo_ModuleParams.Marshal(b, m, deterministic) 314 } else { 315 b = b[:cap(b)] 316 n, err := m.MarshalToSizedBuffer(b) 317 if err != nil { 318 return nil, err 319 } 320 return b[:n], nil 321 } 322 } 323 func (m *ModuleParams) XXX_Merge(src proto.Message) { 324 xxx_messageInfo_ModuleParams.Merge(m, src) 325 } 326 func (m *ModuleParams) XXX_Size() int { 327 return m.Size() 328 } 329 func (m *ModuleParams) XXX_DiscardUnknown() { 330 xxx_messageInfo_ModuleParams.DiscardUnknown(m) 331 } 332 333 var xxx_messageInfo_ModuleParams proto.InternalMessageInfo 334 335 func (m *ModuleParams) GetFeedId() string { 336 if m != nil { 337 return m.FeedId 338 } 339 return "" 340 } 341 342 func (m *ModuleParams) GetLinkDenom() string { 343 if m != nil { 344 return m.LinkDenom 345 } 346 return "" 347 } 348 349 func (m *ModuleParams) GetUniqueReports() bool { 350 if m != nil { 351 return m.UniqueReports 352 } 353 return false 354 } 355 356 func (m *ModuleParams) GetDescription() string { 357 if m != nil { 358 return m.Description 359 } 360 return "" 361 } 362 363 func (m *ModuleParams) GetFeedAdmin() string { 364 if m != nil { 365 return m.FeedAdmin 366 } 367 return "" 368 } 369 370 func (m *ModuleParams) GetBillingAdmin() string { 371 if m != nil { 372 return m.BillingAdmin 373 } 374 return "" 375 } 376 377 type ContractConfig struct { 378 // config_count ordinal number of this config setting among all config 379 // settings 380 ConfigCount uint64 `protobuf:"varint,1,opt,name=config_count,json=configCount,proto3" json:"config_count,omitempty"` 381 // signers ith element is address ith oracle uses to sign a report 382 Signers []string `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"` 383 // transmitters ith element is address ith oracle uses to transmit a report 384 // via the transmit method 385 Transmitters []string `protobuf:"bytes,3,rep,name=transmitters,proto3" json:"transmitters,omitempty"` 386 // f maximum number of faulty/dishonest oracles the protocol can tolerate 387 // while still working correctly 388 F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` 389 // onchain_config serialized data with reporting plugin params on chain. 390 OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` 391 // offchain_config_version version of the serialization format used for 392 // "offchain_config" parameter 393 OffchainConfigVersion uint64 `protobuf:"varint,6,opt,name=offchain_config_version,json=offchainConfigVersion,proto3" json:"offchain_config_version,omitempty"` 394 // offchain_config serialized data used by oracles to configure their offchain 395 // operation 396 OffchainConfig []byte `protobuf:"bytes,7,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` 397 } 398 399 func (m *ContractConfig) Reset() { *m = ContractConfig{} } 400 func (m *ContractConfig) String() string { return proto.CompactTextString(m) } 401 func (*ContractConfig) ProtoMessage() {} 402 func (*ContractConfig) Descriptor() ([]byte, []int) { 403 return fileDescriptor_0acb79560f1720fa, []int{4} 404 } 405 func (m *ContractConfig) XXX_Unmarshal(b []byte) error { 406 return m.Unmarshal(b) 407 } 408 func (m *ContractConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 409 if deterministic { 410 return xxx_messageInfo_ContractConfig.Marshal(b, m, deterministic) 411 } else { 412 b = b[:cap(b)] 413 n, err := m.MarshalToSizedBuffer(b) 414 if err != nil { 415 return nil, err 416 } 417 return b[:n], nil 418 } 419 } 420 func (m *ContractConfig) XXX_Merge(src proto.Message) { 421 xxx_messageInfo_ContractConfig.Merge(m, src) 422 } 423 func (m *ContractConfig) XXX_Size() int { 424 return m.Size() 425 } 426 func (m *ContractConfig) XXX_DiscardUnknown() { 427 xxx_messageInfo_ContractConfig.DiscardUnknown(m) 428 } 429 430 var xxx_messageInfo_ContractConfig proto.InternalMessageInfo 431 432 func (m *ContractConfig) GetConfigCount() uint64 { 433 if m != nil { 434 return m.ConfigCount 435 } 436 return 0 437 } 438 439 func (m *ContractConfig) GetSigners() []string { 440 if m != nil { 441 return m.Signers 442 } 443 return nil 444 } 445 446 func (m *ContractConfig) GetTransmitters() []string { 447 if m != nil { 448 return m.Transmitters 449 } 450 return nil 451 } 452 453 func (m *ContractConfig) GetF() uint32 { 454 if m != nil { 455 return m.F 456 } 457 return 0 458 } 459 460 func (m *ContractConfig) GetOnchainConfig() []byte { 461 if m != nil { 462 return m.OnchainConfig 463 } 464 return nil 465 } 466 467 func (m *ContractConfig) GetOffchainConfigVersion() uint64 { 468 if m != nil { 469 return m.OffchainConfigVersion 470 } 471 return 0 472 } 473 474 func (m *ContractConfig) GetOffchainConfig() []byte { 475 if m != nil { 476 return m.OffchainConfig 477 } 478 return nil 479 } 480 481 type SetConfigProposal struct { 482 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 483 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 484 Config *FeedConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` 485 } 486 487 func (m *SetConfigProposal) Reset() { *m = SetConfigProposal{} } 488 func (m *SetConfigProposal) String() string { return proto.CompactTextString(m) } 489 func (*SetConfigProposal) ProtoMessage() {} 490 func (*SetConfigProposal) Descriptor() ([]byte, []int) { 491 return fileDescriptor_0acb79560f1720fa, []int{5} 492 } 493 func (m *SetConfigProposal) XXX_Unmarshal(b []byte) error { 494 return m.Unmarshal(b) 495 } 496 func (m *SetConfigProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 497 if deterministic { 498 return xxx_messageInfo_SetConfigProposal.Marshal(b, m, deterministic) 499 } else { 500 b = b[:cap(b)] 501 n, err := m.MarshalToSizedBuffer(b) 502 if err != nil { 503 return nil, err 504 } 505 return b[:n], nil 506 } 507 } 508 func (m *SetConfigProposal) XXX_Merge(src proto.Message) { 509 xxx_messageInfo_SetConfigProposal.Merge(m, src) 510 } 511 func (m *SetConfigProposal) XXX_Size() int { 512 return m.Size() 513 } 514 func (m *SetConfigProposal) XXX_DiscardUnknown() { 515 xxx_messageInfo_SetConfigProposal.DiscardUnknown(m) 516 } 517 518 var xxx_messageInfo_SetConfigProposal proto.InternalMessageInfo 519 520 type FeedProperties struct { 521 // feed_id is an unique ID for the target of this config 522 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 523 // f maximum number of faulty/dishonest oracles the protocol can tolerate 524 // while still working correctly 525 F uint32 `protobuf:"varint,2,opt,name=f,proto3" json:"f,omitempty"` 526 // onchain_config serialized data with reporting plugin params on chain. 527 OnchainConfig []byte `protobuf:"bytes,3,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` 528 // offchain_config_version version of the serialization format used for 529 // "offchain_config" parameter 530 OffchainConfigVersion uint64 `protobuf:"varint,4,opt,name=offchain_config_version,json=offchainConfigVersion,proto3" json:"offchain_config_version,omitempty"` 531 // offchain_config serialized data used by oracles to configure their offchain 532 // operation 533 OffchainConfig []byte `protobuf:"bytes,5,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` 534 // lowest answer the median of a report is allowed to be 535 MinAnswer cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=min_answer,json=minAnswer,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_answer"` 536 // highest answer the median of a report is allowed to be 537 MaxAnswer cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=max_answer,json=maxAnswer,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_answer"` 538 // Fixed LINK reward for each observer 539 LinkPerObservation cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=link_per_observation,json=linkPerObservation,proto3,customtype=cosmossdk.io/math.Int" json:"link_per_observation"` 540 // Fixed LINK reward for transmitter 541 LinkPerTransmission cosmossdk_io_math.Int `protobuf:"bytes,9,opt,name=link_per_transmission,json=linkPerTransmission,proto3,customtype=cosmossdk.io/math.Int" json:"link_per_transmission"` 542 // Enables unique reports 543 UniqueReports bool `protobuf:"varint,10,opt,name=unique_reports,json=uniqueReports,proto3" json:"unique_reports,omitempty"` 544 // short human-readable description of observable this feed's answers pertain 545 // to 546 Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"` 547 } 548 549 func (m *FeedProperties) Reset() { *m = FeedProperties{} } 550 func (m *FeedProperties) String() string { return proto.CompactTextString(m) } 551 func (*FeedProperties) ProtoMessage() {} 552 func (*FeedProperties) Descriptor() ([]byte, []int) { 553 return fileDescriptor_0acb79560f1720fa, []int{6} 554 } 555 func (m *FeedProperties) XXX_Unmarshal(b []byte) error { 556 return m.Unmarshal(b) 557 } 558 func (m *FeedProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 559 if deterministic { 560 return xxx_messageInfo_FeedProperties.Marshal(b, m, deterministic) 561 } else { 562 b = b[:cap(b)] 563 n, err := m.MarshalToSizedBuffer(b) 564 if err != nil { 565 return nil, err 566 } 567 return b[:n], nil 568 } 569 } 570 func (m *FeedProperties) XXX_Merge(src proto.Message) { 571 xxx_messageInfo_FeedProperties.Merge(m, src) 572 } 573 func (m *FeedProperties) XXX_Size() int { 574 return m.Size() 575 } 576 func (m *FeedProperties) XXX_DiscardUnknown() { 577 xxx_messageInfo_FeedProperties.DiscardUnknown(m) 578 } 579 580 var xxx_messageInfo_FeedProperties proto.InternalMessageInfo 581 582 func (m *FeedProperties) GetFeedId() string { 583 if m != nil { 584 return m.FeedId 585 } 586 return "" 587 } 588 589 func (m *FeedProperties) GetF() uint32 { 590 if m != nil { 591 return m.F 592 } 593 return 0 594 } 595 596 func (m *FeedProperties) GetOnchainConfig() []byte { 597 if m != nil { 598 return m.OnchainConfig 599 } 600 return nil 601 } 602 603 func (m *FeedProperties) GetOffchainConfigVersion() uint64 { 604 if m != nil { 605 return m.OffchainConfigVersion 606 } 607 return 0 608 } 609 610 func (m *FeedProperties) GetOffchainConfig() []byte { 611 if m != nil { 612 return m.OffchainConfig 613 } 614 return nil 615 } 616 617 func (m *FeedProperties) GetUniqueReports() bool { 618 if m != nil { 619 return m.UniqueReports 620 } 621 return false 622 } 623 624 func (m *FeedProperties) GetDescription() string { 625 if m != nil { 626 return m.Description 627 } 628 return "" 629 } 630 631 type SetBatchConfigProposal struct { 632 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 633 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 634 // signers ith element is address ith oracle uses to sign a report 635 Signers []string `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"` 636 // transmitters ith element is address ith oracle uses to transmit a report 637 // via the transmit method 638 Transmitters []string `protobuf:"bytes,4,rep,name=transmitters,proto3" json:"transmitters,omitempty"` 639 // Native denom for LINK coin in the bank keeper 640 LinkDenom string `protobuf:"bytes,5,opt,name=link_denom,json=linkDenom,proto3" json:"link_denom,omitempty"` 641 // feed properties 642 FeedProperties []*FeedProperties `protobuf:"bytes,6,rep,name=feed_properties,json=feedProperties,proto3" json:"feed_properties,omitempty"` 643 } 644 645 func (m *SetBatchConfigProposal) Reset() { *m = SetBatchConfigProposal{} } 646 func (m *SetBatchConfigProposal) String() string { return proto.CompactTextString(m) } 647 func (*SetBatchConfigProposal) ProtoMessage() {} 648 func (*SetBatchConfigProposal) Descriptor() ([]byte, []int) { 649 return fileDescriptor_0acb79560f1720fa, []int{7} 650 } 651 func (m *SetBatchConfigProposal) XXX_Unmarshal(b []byte) error { 652 return m.Unmarshal(b) 653 } 654 func (m *SetBatchConfigProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 655 if deterministic { 656 return xxx_messageInfo_SetBatchConfigProposal.Marshal(b, m, deterministic) 657 } else { 658 b = b[:cap(b)] 659 n, err := m.MarshalToSizedBuffer(b) 660 if err != nil { 661 return nil, err 662 } 663 return b[:n], nil 664 } 665 } 666 func (m *SetBatchConfigProposal) XXX_Merge(src proto.Message) { 667 xxx_messageInfo_SetBatchConfigProposal.Merge(m, src) 668 } 669 func (m *SetBatchConfigProposal) XXX_Size() int { 670 return m.Size() 671 } 672 func (m *SetBatchConfigProposal) XXX_DiscardUnknown() { 673 xxx_messageInfo_SetBatchConfigProposal.DiscardUnknown(m) 674 } 675 676 var xxx_messageInfo_SetBatchConfigProposal proto.InternalMessageInfo 677 678 type OracleObservationsCounts struct { 679 Counts []uint32 `protobuf:"varint,1,rep,packed,name=counts,proto3" json:"counts,omitempty"` 680 } 681 682 func (m *OracleObservationsCounts) Reset() { *m = OracleObservationsCounts{} } 683 func (m *OracleObservationsCounts) String() string { return proto.CompactTextString(m) } 684 func (*OracleObservationsCounts) ProtoMessage() {} 685 func (*OracleObservationsCounts) Descriptor() ([]byte, []int) { 686 return fileDescriptor_0acb79560f1720fa, []int{8} 687 } 688 func (m *OracleObservationsCounts) XXX_Unmarshal(b []byte) error { 689 return m.Unmarshal(b) 690 } 691 func (m *OracleObservationsCounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 692 if deterministic { 693 return xxx_messageInfo_OracleObservationsCounts.Marshal(b, m, deterministic) 694 } else { 695 b = b[:cap(b)] 696 n, err := m.MarshalToSizedBuffer(b) 697 if err != nil { 698 return nil, err 699 } 700 return b[:n], nil 701 } 702 } 703 func (m *OracleObservationsCounts) XXX_Merge(src proto.Message) { 704 xxx_messageInfo_OracleObservationsCounts.Merge(m, src) 705 } 706 func (m *OracleObservationsCounts) XXX_Size() int { 707 return m.Size() 708 } 709 func (m *OracleObservationsCounts) XXX_DiscardUnknown() { 710 xxx_messageInfo_OracleObservationsCounts.DiscardUnknown(m) 711 } 712 713 var xxx_messageInfo_OracleObservationsCounts proto.InternalMessageInfo 714 715 func (m *OracleObservationsCounts) GetCounts() []uint32 { 716 if m != nil { 717 return m.Counts 718 } 719 return nil 720 } 721 722 // LINK-INJ-denominated reimbursements for gas used by transmitters. 723 type GasReimbursements struct { 724 Reimbursements []*types.Coin `protobuf:"bytes,1,rep,name=reimbursements,proto3" json:"reimbursements,omitempty"` 725 } 726 727 func (m *GasReimbursements) Reset() { *m = GasReimbursements{} } 728 func (m *GasReimbursements) String() string { return proto.CompactTextString(m) } 729 func (*GasReimbursements) ProtoMessage() {} 730 func (*GasReimbursements) Descriptor() ([]byte, []int) { 731 return fileDescriptor_0acb79560f1720fa, []int{9} 732 } 733 func (m *GasReimbursements) XXX_Unmarshal(b []byte) error { 734 return m.Unmarshal(b) 735 } 736 func (m *GasReimbursements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 737 if deterministic { 738 return xxx_messageInfo_GasReimbursements.Marshal(b, m, deterministic) 739 } else { 740 b = b[:cap(b)] 741 n, err := m.MarshalToSizedBuffer(b) 742 if err != nil { 743 return nil, err 744 } 745 return b[:n], nil 746 } 747 } 748 func (m *GasReimbursements) XXX_Merge(src proto.Message) { 749 xxx_messageInfo_GasReimbursements.Merge(m, src) 750 } 751 func (m *GasReimbursements) XXX_Size() int { 752 return m.Size() 753 } 754 func (m *GasReimbursements) XXX_DiscardUnknown() { 755 xxx_messageInfo_GasReimbursements.DiscardUnknown(m) 756 } 757 758 var xxx_messageInfo_GasReimbursements proto.InternalMessageInfo 759 760 func (m *GasReimbursements) GetReimbursements() []*types.Coin { 761 if m != nil { 762 return m.Reimbursements 763 } 764 return nil 765 } 766 767 type Payee struct { 768 TransmitterAddr string `protobuf:"bytes,1,opt,name=transmitter_addr,json=transmitterAddr,proto3" json:"transmitter_addr,omitempty"` 769 PaymentAddr string `protobuf:"bytes,2,opt,name=payment_addr,json=paymentAddr,proto3" json:"payment_addr,omitempty"` 770 } 771 772 func (m *Payee) Reset() { *m = Payee{} } 773 func (m *Payee) String() string { return proto.CompactTextString(m) } 774 func (*Payee) ProtoMessage() {} 775 func (*Payee) Descriptor() ([]byte, []int) { 776 return fileDescriptor_0acb79560f1720fa, []int{10} 777 } 778 func (m *Payee) XXX_Unmarshal(b []byte) error { 779 return m.Unmarshal(b) 780 } 781 func (m *Payee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 782 if deterministic { 783 return xxx_messageInfo_Payee.Marshal(b, m, deterministic) 784 } else { 785 b = b[:cap(b)] 786 n, err := m.MarshalToSizedBuffer(b) 787 if err != nil { 788 return nil, err 789 } 790 return b[:n], nil 791 } 792 } 793 func (m *Payee) XXX_Merge(src proto.Message) { 794 xxx_messageInfo_Payee.Merge(m, src) 795 } 796 func (m *Payee) XXX_Size() int { 797 return m.Size() 798 } 799 func (m *Payee) XXX_DiscardUnknown() { 800 xxx_messageInfo_Payee.DiscardUnknown(m) 801 } 802 803 var xxx_messageInfo_Payee proto.InternalMessageInfo 804 805 func (m *Payee) GetTransmitterAddr() string { 806 if m != nil { 807 return m.TransmitterAddr 808 } 809 return "" 810 } 811 812 func (m *Payee) GetPaymentAddr() string { 813 if m != nil { 814 return m.PaymentAddr 815 } 816 return "" 817 } 818 819 // Transmission records the median answer from the transmit transaction at 820 // time timestamp 821 type Transmission struct { 822 Answer cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=answer,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"answer"` 823 ObservationsTimestamp int64 `protobuf:"varint,2,opt,name=observations_timestamp,json=observationsTimestamp,proto3" json:"observations_timestamp,omitempty"` 824 TransmissionTimestamp int64 `protobuf:"varint,3,opt,name=transmission_timestamp,json=transmissionTimestamp,proto3" json:"transmission_timestamp,omitempty"` 825 } 826 827 func (m *Transmission) Reset() { *m = Transmission{} } 828 func (m *Transmission) String() string { return proto.CompactTextString(m) } 829 func (*Transmission) ProtoMessage() {} 830 func (*Transmission) Descriptor() ([]byte, []int) { 831 return fileDescriptor_0acb79560f1720fa, []int{11} 832 } 833 func (m *Transmission) XXX_Unmarshal(b []byte) error { 834 return m.Unmarshal(b) 835 } 836 func (m *Transmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 837 if deterministic { 838 return xxx_messageInfo_Transmission.Marshal(b, m, deterministic) 839 } else { 840 b = b[:cap(b)] 841 n, err := m.MarshalToSizedBuffer(b) 842 if err != nil { 843 return nil, err 844 } 845 return b[:n], nil 846 } 847 } 848 func (m *Transmission) XXX_Merge(src proto.Message) { 849 xxx_messageInfo_Transmission.Merge(m, src) 850 } 851 func (m *Transmission) XXX_Size() int { 852 return m.Size() 853 } 854 func (m *Transmission) XXX_DiscardUnknown() { 855 xxx_messageInfo_Transmission.DiscardUnknown(m) 856 } 857 858 var xxx_messageInfo_Transmission proto.InternalMessageInfo 859 860 func (m *Transmission) GetObservationsTimestamp() int64 { 861 if m != nil { 862 return m.ObservationsTimestamp 863 } 864 return 0 865 } 866 867 func (m *Transmission) GetTransmissionTimestamp() int64 { 868 if m != nil { 869 return m.TransmissionTimestamp 870 } 871 return 0 872 } 873 874 type EpochAndRound struct { 875 Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` 876 Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` 877 } 878 879 func (m *EpochAndRound) Reset() { *m = EpochAndRound{} } 880 func (m *EpochAndRound) String() string { return proto.CompactTextString(m) } 881 func (*EpochAndRound) ProtoMessage() {} 882 func (*EpochAndRound) Descriptor() ([]byte, []int) { 883 return fileDescriptor_0acb79560f1720fa, []int{12} 884 } 885 func (m *EpochAndRound) XXX_Unmarshal(b []byte) error { 886 return m.Unmarshal(b) 887 } 888 func (m *EpochAndRound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 889 if deterministic { 890 return xxx_messageInfo_EpochAndRound.Marshal(b, m, deterministic) 891 } else { 892 b = b[:cap(b)] 893 n, err := m.MarshalToSizedBuffer(b) 894 if err != nil { 895 return nil, err 896 } 897 return b[:n], nil 898 } 899 } 900 func (m *EpochAndRound) XXX_Merge(src proto.Message) { 901 xxx_messageInfo_EpochAndRound.Merge(m, src) 902 } 903 func (m *EpochAndRound) XXX_Size() int { 904 return m.Size() 905 } 906 func (m *EpochAndRound) XXX_DiscardUnknown() { 907 xxx_messageInfo_EpochAndRound.DiscardUnknown(m) 908 } 909 910 var xxx_messageInfo_EpochAndRound proto.InternalMessageInfo 911 912 func (m *EpochAndRound) GetEpoch() uint64 { 913 if m != nil { 914 return m.Epoch 915 } 916 return 0 917 } 918 919 func (m *EpochAndRound) GetRound() uint64 { 920 if m != nil { 921 return m.Round 922 } 923 return 0 924 } 925 926 type Report struct { 927 ObservationsTimestamp int64 `protobuf:"varint,1,opt,name=observations_timestamp,json=observationsTimestamp,proto3" json:"observations_timestamp,omitempty"` 928 Observers []byte `protobuf:"bytes,2,opt,name=observers,proto3" json:"observers,omitempty"` 929 Observations []cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,rep,name=observations,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"observations"` 930 } 931 932 func (m *Report) Reset() { *m = Report{} } 933 func (m *Report) String() string { return proto.CompactTextString(m) } 934 func (*Report) ProtoMessage() {} 935 func (*Report) Descriptor() ([]byte, []int) { 936 return fileDescriptor_0acb79560f1720fa, []int{13} 937 } 938 func (m *Report) XXX_Unmarshal(b []byte) error { 939 return m.Unmarshal(b) 940 } 941 func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 942 if deterministic { 943 return xxx_messageInfo_Report.Marshal(b, m, deterministic) 944 } else { 945 b = b[:cap(b)] 946 n, err := m.MarshalToSizedBuffer(b) 947 if err != nil { 948 return nil, err 949 } 950 return b[:n], nil 951 } 952 } 953 func (m *Report) XXX_Merge(src proto.Message) { 954 xxx_messageInfo_Report.Merge(m, src) 955 } 956 func (m *Report) XXX_Size() int { 957 return m.Size() 958 } 959 func (m *Report) XXX_DiscardUnknown() { 960 xxx_messageInfo_Report.DiscardUnknown(m) 961 } 962 963 var xxx_messageInfo_Report proto.InternalMessageInfo 964 965 func (m *Report) GetObservationsTimestamp() int64 { 966 if m != nil { 967 return m.ObservationsTimestamp 968 } 969 return 0 970 } 971 972 func (m *Report) GetObservers() []byte { 973 if m != nil { 974 return m.Observers 975 } 976 return nil 977 } 978 979 type ReportToSign struct { 980 ConfigDigest []byte `protobuf:"bytes,1,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"` 981 Epoch uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` 982 Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` 983 ExtraHash []byte `protobuf:"bytes,4,opt,name=extra_hash,json=extraHash,proto3" json:"extra_hash,omitempty"` 984 // Opaque report 985 Report []byte `protobuf:"bytes,5,opt,name=report,proto3" json:"report,omitempty"` 986 } 987 988 func (m *ReportToSign) Reset() { *m = ReportToSign{} } 989 func (m *ReportToSign) String() string { return proto.CompactTextString(m) } 990 func (*ReportToSign) ProtoMessage() {} 991 func (*ReportToSign) Descriptor() ([]byte, []int) { 992 return fileDescriptor_0acb79560f1720fa, []int{14} 993 } 994 func (m *ReportToSign) XXX_Unmarshal(b []byte) error { 995 return m.Unmarshal(b) 996 } 997 func (m *ReportToSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 998 if deterministic { 999 return xxx_messageInfo_ReportToSign.Marshal(b, m, deterministic) 1000 } else { 1001 b = b[:cap(b)] 1002 n, err := m.MarshalToSizedBuffer(b) 1003 if err != nil { 1004 return nil, err 1005 } 1006 return b[:n], nil 1007 } 1008 } 1009 func (m *ReportToSign) XXX_Merge(src proto.Message) { 1010 xxx_messageInfo_ReportToSign.Merge(m, src) 1011 } 1012 func (m *ReportToSign) XXX_Size() int { 1013 return m.Size() 1014 } 1015 func (m *ReportToSign) XXX_DiscardUnknown() { 1016 xxx_messageInfo_ReportToSign.DiscardUnknown(m) 1017 } 1018 1019 var xxx_messageInfo_ReportToSign proto.InternalMessageInfo 1020 1021 func (m *ReportToSign) GetConfigDigest() []byte { 1022 if m != nil { 1023 return m.ConfigDigest 1024 } 1025 return nil 1026 } 1027 1028 func (m *ReportToSign) GetEpoch() uint64 { 1029 if m != nil { 1030 return m.Epoch 1031 } 1032 return 0 1033 } 1034 1035 func (m *ReportToSign) GetRound() uint64 { 1036 if m != nil { 1037 return m.Round 1038 } 1039 return 0 1040 } 1041 1042 func (m *ReportToSign) GetExtraHash() []byte { 1043 if m != nil { 1044 return m.ExtraHash 1045 } 1046 return nil 1047 } 1048 1049 func (m *ReportToSign) GetReport() []byte { 1050 if m != nil { 1051 return m.Report 1052 } 1053 return nil 1054 } 1055 1056 type EventOraclePaid struct { 1057 TransmitterAddr string `protobuf:"bytes,1,opt,name=transmitter_addr,json=transmitterAddr,proto3" json:"transmitter_addr,omitempty"` 1058 PayeeAddr string `protobuf:"bytes,2,opt,name=payee_addr,json=payeeAddr,proto3" json:"payee_addr,omitempty"` 1059 Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` 1060 } 1061 1062 func (m *EventOraclePaid) Reset() { *m = EventOraclePaid{} } 1063 func (m *EventOraclePaid) String() string { return proto.CompactTextString(m) } 1064 func (*EventOraclePaid) ProtoMessage() {} 1065 func (*EventOraclePaid) Descriptor() ([]byte, []int) { 1066 return fileDescriptor_0acb79560f1720fa, []int{15} 1067 } 1068 func (m *EventOraclePaid) XXX_Unmarshal(b []byte) error { 1069 return m.Unmarshal(b) 1070 } 1071 func (m *EventOraclePaid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1072 if deterministic { 1073 return xxx_messageInfo_EventOraclePaid.Marshal(b, m, deterministic) 1074 } else { 1075 b = b[:cap(b)] 1076 n, err := m.MarshalToSizedBuffer(b) 1077 if err != nil { 1078 return nil, err 1079 } 1080 return b[:n], nil 1081 } 1082 } 1083 func (m *EventOraclePaid) XXX_Merge(src proto.Message) { 1084 xxx_messageInfo_EventOraclePaid.Merge(m, src) 1085 } 1086 func (m *EventOraclePaid) XXX_Size() int { 1087 return m.Size() 1088 } 1089 func (m *EventOraclePaid) XXX_DiscardUnknown() { 1090 xxx_messageInfo_EventOraclePaid.DiscardUnknown(m) 1091 } 1092 1093 var xxx_messageInfo_EventOraclePaid proto.InternalMessageInfo 1094 1095 func (m *EventOraclePaid) GetTransmitterAddr() string { 1096 if m != nil { 1097 return m.TransmitterAddr 1098 } 1099 return "" 1100 } 1101 1102 func (m *EventOraclePaid) GetPayeeAddr() string { 1103 if m != nil { 1104 return m.PayeeAddr 1105 } 1106 return "" 1107 } 1108 1109 func (m *EventOraclePaid) GetAmount() types.Coin { 1110 if m != nil { 1111 return m.Amount 1112 } 1113 return types.Coin{} 1114 } 1115 1116 type EventAnswerUpdated struct { 1117 Current cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=current,proto3,customtype=cosmossdk.io/math.Int" json:"current"` 1118 RoundId cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=round_id,json=roundId,proto3,customtype=cosmossdk.io/math.Int" json:"round_id"` 1119 UpdatedAt time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` 1120 } 1121 1122 func (m *EventAnswerUpdated) Reset() { *m = EventAnswerUpdated{} } 1123 func (m *EventAnswerUpdated) String() string { return proto.CompactTextString(m) } 1124 func (*EventAnswerUpdated) ProtoMessage() {} 1125 func (*EventAnswerUpdated) Descriptor() ([]byte, []int) { 1126 return fileDescriptor_0acb79560f1720fa, []int{16} 1127 } 1128 func (m *EventAnswerUpdated) XXX_Unmarshal(b []byte) error { 1129 return m.Unmarshal(b) 1130 } 1131 func (m *EventAnswerUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1132 if deterministic { 1133 return xxx_messageInfo_EventAnswerUpdated.Marshal(b, m, deterministic) 1134 } else { 1135 b = b[:cap(b)] 1136 n, err := m.MarshalToSizedBuffer(b) 1137 if err != nil { 1138 return nil, err 1139 } 1140 return b[:n], nil 1141 } 1142 } 1143 func (m *EventAnswerUpdated) XXX_Merge(src proto.Message) { 1144 xxx_messageInfo_EventAnswerUpdated.Merge(m, src) 1145 } 1146 func (m *EventAnswerUpdated) XXX_Size() int { 1147 return m.Size() 1148 } 1149 func (m *EventAnswerUpdated) XXX_DiscardUnknown() { 1150 xxx_messageInfo_EventAnswerUpdated.DiscardUnknown(m) 1151 } 1152 1153 var xxx_messageInfo_EventAnswerUpdated proto.InternalMessageInfo 1154 1155 func (m *EventAnswerUpdated) GetUpdatedAt() time.Time { 1156 if m != nil { 1157 return m.UpdatedAt 1158 } 1159 return time.Time{} 1160 } 1161 1162 type EventNewRound struct { 1163 RoundId cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=round_id,json=roundId,proto3,customtype=cosmossdk.io/math.Int" json:"round_id"` 1164 // address of starter 1165 StartedBy string `protobuf:"bytes,2,opt,name=started_by,json=startedBy,proto3" json:"started_by,omitempty"` 1166 StartedAt time.Time `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3,stdtime" json:"started_at"` 1167 } 1168 1169 func (m *EventNewRound) Reset() { *m = EventNewRound{} } 1170 func (m *EventNewRound) String() string { return proto.CompactTextString(m) } 1171 func (*EventNewRound) ProtoMessage() {} 1172 func (*EventNewRound) Descriptor() ([]byte, []int) { 1173 return fileDescriptor_0acb79560f1720fa, []int{17} 1174 } 1175 func (m *EventNewRound) XXX_Unmarshal(b []byte) error { 1176 return m.Unmarshal(b) 1177 } 1178 func (m *EventNewRound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1179 if deterministic { 1180 return xxx_messageInfo_EventNewRound.Marshal(b, m, deterministic) 1181 } else { 1182 b = b[:cap(b)] 1183 n, err := m.MarshalToSizedBuffer(b) 1184 if err != nil { 1185 return nil, err 1186 } 1187 return b[:n], nil 1188 } 1189 } 1190 func (m *EventNewRound) XXX_Merge(src proto.Message) { 1191 xxx_messageInfo_EventNewRound.Merge(m, src) 1192 } 1193 func (m *EventNewRound) XXX_Size() int { 1194 return m.Size() 1195 } 1196 func (m *EventNewRound) XXX_DiscardUnknown() { 1197 xxx_messageInfo_EventNewRound.DiscardUnknown(m) 1198 } 1199 1200 var xxx_messageInfo_EventNewRound proto.InternalMessageInfo 1201 1202 func (m *EventNewRound) GetStartedBy() string { 1203 if m != nil { 1204 return m.StartedBy 1205 } 1206 return "" 1207 } 1208 1209 func (m *EventNewRound) GetStartedAt() time.Time { 1210 if m != nil { 1211 return m.StartedAt 1212 } 1213 return time.Time{} 1214 } 1215 1216 type EventTransmitted struct { 1217 ConfigDigest []byte `protobuf:"bytes,1,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"` 1218 Epoch uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` 1219 } 1220 1221 func (m *EventTransmitted) Reset() { *m = EventTransmitted{} } 1222 func (m *EventTransmitted) String() string { return proto.CompactTextString(m) } 1223 func (*EventTransmitted) ProtoMessage() {} 1224 func (*EventTransmitted) Descriptor() ([]byte, []int) { 1225 return fileDescriptor_0acb79560f1720fa, []int{18} 1226 } 1227 func (m *EventTransmitted) XXX_Unmarshal(b []byte) error { 1228 return m.Unmarshal(b) 1229 } 1230 func (m *EventTransmitted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1231 if deterministic { 1232 return xxx_messageInfo_EventTransmitted.Marshal(b, m, deterministic) 1233 } else { 1234 b = b[:cap(b)] 1235 n, err := m.MarshalToSizedBuffer(b) 1236 if err != nil { 1237 return nil, err 1238 } 1239 return b[:n], nil 1240 } 1241 } 1242 func (m *EventTransmitted) XXX_Merge(src proto.Message) { 1243 xxx_messageInfo_EventTransmitted.Merge(m, src) 1244 } 1245 func (m *EventTransmitted) XXX_Size() int { 1246 return m.Size() 1247 } 1248 func (m *EventTransmitted) XXX_DiscardUnknown() { 1249 xxx_messageInfo_EventTransmitted.DiscardUnknown(m) 1250 } 1251 1252 var xxx_messageInfo_EventTransmitted proto.InternalMessageInfo 1253 1254 func (m *EventTransmitted) GetConfigDigest() []byte { 1255 if m != nil { 1256 return m.ConfigDigest 1257 } 1258 return nil 1259 } 1260 1261 func (m *EventTransmitted) GetEpoch() uint64 { 1262 if m != nil { 1263 return m.Epoch 1264 } 1265 return 0 1266 } 1267 1268 type EventNewTransmission struct { 1269 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 1270 AggregatorRoundId uint32 `protobuf:"varint,2,opt,name=aggregator_round_id,json=aggregatorRoundId,proto3" json:"aggregator_round_id,omitempty"` 1271 Answer cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=answer,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"answer"` 1272 Transmitter string `protobuf:"bytes,4,opt,name=transmitter,proto3" json:"transmitter,omitempty"` 1273 ObservationsTimestamp int64 `protobuf:"varint,5,opt,name=observations_timestamp,json=observationsTimestamp,proto3" json:"observations_timestamp,omitempty"` 1274 Observations []cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,rep,name=observations,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"observations"` 1275 Observers []byte `protobuf:"bytes,7,opt,name=observers,proto3" json:"observers,omitempty"` 1276 ConfigDigest []byte `protobuf:"bytes,8,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"` 1277 EpochAndRound *EpochAndRound `protobuf:"bytes,9,opt,name=epoch_and_round,json=epochAndRound,proto3" json:"epoch_and_round,omitempty"` 1278 } 1279 1280 func (m *EventNewTransmission) Reset() { *m = EventNewTransmission{} } 1281 func (m *EventNewTransmission) String() string { return proto.CompactTextString(m) } 1282 func (*EventNewTransmission) ProtoMessage() {} 1283 func (*EventNewTransmission) Descriptor() ([]byte, []int) { 1284 return fileDescriptor_0acb79560f1720fa, []int{19} 1285 } 1286 func (m *EventNewTransmission) XXX_Unmarshal(b []byte) error { 1287 return m.Unmarshal(b) 1288 } 1289 func (m *EventNewTransmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1290 if deterministic { 1291 return xxx_messageInfo_EventNewTransmission.Marshal(b, m, deterministic) 1292 } else { 1293 b = b[:cap(b)] 1294 n, err := m.MarshalToSizedBuffer(b) 1295 if err != nil { 1296 return nil, err 1297 } 1298 return b[:n], nil 1299 } 1300 } 1301 func (m *EventNewTransmission) XXX_Merge(src proto.Message) { 1302 xxx_messageInfo_EventNewTransmission.Merge(m, src) 1303 } 1304 func (m *EventNewTransmission) XXX_Size() int { 1305 return m.Size() 1306 } 1307 func (m *EventNewTransmission) XXX_DiscardUnknown() { 1308 xxx_messageInfo_EventNewTransmission.DiscardUnknown(m) 1309 } 1310 1311 var xxx_messageInfo_EventNewTransmission proto.InternalMessageInfo 1312 1313 func (m *EventNewTransmission) GetFeedId() string { 1314 if m != nil { 1315 return m.FeedId 1316 } 1317 return "" 1318 } 1319 1320 func (m *EventNewTransmission) GetAggregatorRoundId() uint32 { 1321 if m != nil { 1322 return m.AggregatorRoundId 1323 } 1324 return 0 1325 } 1326 1327 func (m *EventNewTransmission) GetTransmitter() string { 1328 if m != nil { 1329 return m.Transmitter 1330 } 1331 return "" 1332 } 1333 1334 func (m *EventNewTransmission) GetObservationsTimestamp() int64 { 1335 if m != nil { 1336 return m.ObservationsTimestamp 1337 } 1338 return 0 1339 } 1340 1341 func (m *EventNewTransmission) GetObservers() []byte { 1342 if m != nil { 1343 return m.Observers 1344 } 1345 return nil 1346 } 1347 1348 func (m *EventNewTransmission) GetConfigDigest() []byte { 1349 if m != nil { 1350 return m.ConfigDigest 1351 } 1352 return nil 1353 } 1354 1355 func (m *EventNewTransmission) GetEpochAndRound() *EpochAndRound { 1356 if m != nil { 1357 return m.EpochAndRound 1358 } 1359 return nil 1360 } 1361 1362 type EventConfigSet struct { 1363 // hash of the config 1364 ConfigDigest []byte `protobuf:"bytes,1,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"` 1365 // previous_config_block_number block in which the previous config was set, to 1366 // simplify historic analysis 1367 PreviousConfigBlockNumber int64 `protobuf:"varint,2,opt,name=previous_config_block_number,json=previousConfigBlockNumber,proto3" json:"previous_config_block_number,omitempty"` 1368 Config *FeedConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` 1369 ConfigInfo *FeedConfigInfo `protobuf:"bytes,4,opt,name=config_info,json=configInfo,proto3" json:"config_info,omitempty"` 1370 } 1371 1372 func (m *EventConfigSet) Reset() { *m = EventConfigSet{} } 1373 func (m *EventConfigSet) String() string { return proto.CompactTextString(m) } 1374 func (*EventConfigSet) ProtoMessage() {} 1375 func (*EventConfigSet) Descriptor() ([]byte, []int) { 1376 return fileDescriptor_0acb79560f1720fa, []int{20} 1377 } 1378 func (m *EventConfigSet) XXX_Unmarshal(b []byte) error { 1379 return m.Unmarshal(b) 1380 } 1381 func (m *EventConfigSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1382 if deterministic { 1383 return xxx_messageInfo_EventConfigSet.Marshal(b, m, deterministic) 1384 } else { 1385 b = b[:cap(b)] 1386 n, err := m.MarshalToSizedBuffer(b) 1387 if err != nil { 1388 return nil, err 1389 } 1390 return b[:n], nil 1391 } 1392 } 1393 func (m *EventConfigSet) XXX_Merge(src proto.Message) { 1394 xxx_messageInfo_EventConfigSet.Merge(m, src) 1395 } 1396 func (m *EventConfigSet) XXX_Size() int { 1397 return m.Size() 1398 } 1399 func (m *EventConfigSet) XXX_DiscardUnknown() { 1400 xxx_messageInfo_EventConfigSet.DiscardUnknown(m) 1401 } 1402 1403 var xxx_messageInfo_EventConfigSet proto.InternalMessageInfo 1404 1405 func (m *EventConfigSet) GetConfigDigest() []byte { 1406 if m != nil { 1407 return m.ConfigDigest 1408 } 1409 return nil 1410 } 1411 1412 func (m *EventConfigSet) GetPreviousConfigBlockNumber() int64 { 1413 if m != nil { 1414 return m.PreviousConfigBlockNumber 1415 } 1416 return 0 1417 } 1418 1419 func (m *EventConfigSet) GetConfig() *FeedConfig { 1420 if m != nil { 1421 return m.Config 1422 } 1423 return nil 1424 } 1425 1426 func (m *EventConfigSet) GetConfigInfo() *FeedConfigInfo { 1427 if m != nil { 1428 return m.ConfigInfo 1429 } 1430 return nil 1431 } 1432 1433 func init() { 1434 proto.RegisterType((*Params)(nil), "injective.ocr.v1beta1.Params") 1435 proto.RegisterType((*FeedConfig)(nil), "injective.ocr.v1beta1.FeedConfig") 1436 proto.RegisterType((*FeedConfigInfo)(nil), "injective.ocr.v1beta1.FeedConfigInfo") 1437 proto.RegisterType((*ModuleParams)(nil), "injective.ocr.v1beta1.ModuleParams") 1438 proto.RegisterType((*ContractConfig)(nil), "injective.ocr.v1beta1.ContractConfig") 1439 proto.RegisterType((*SetConfigProposal)(nil), "injective.ocr.v1beta1.SetConfigProposal") 1440 proto.RegisterType((*FeedProperties)(nil), "injective.ocr.v1beta1.FeedProperties") 1441 proto.RegisterType((*SetBatchConfigProposal)(nil), "injective.ocr.v1beta1.SetBatchConfigProposal") 1442 proto.RegisterType((*OracleObservationsCounts)(nil), "injective.ocr.v1beta1.OracleObservationsCounts") 1443 proto.RegisterType((*GasReimbursements)(nil), "injective.ocr.v1beta1.GasReimbursements") 1444 proto.RegisterType((*Payee)(nil), "injective.ocr.v1beta1.Payee") 1445 proto.RegisterType((*Transmission)(nil), "injective.ocr.v1beta1.Transmission") 1446 proto.RegisterType((*EpochAndRound)(nil), "injective.ocr.v1beta1.EpochAndRound") 1447 proto.RegisterType((*Report)(nil), "injective.ocr.v1beta1.Report") 1448 proto.RegisterType((*ReportToSign)(nil), "injective.ocr.v1beta1.ReportToSign") 1449 proto.RegisterType((*EventOraclePaid)(nil), "injective.ocr.v1beta1.EventOraclePaid") 1450 proto.RegisterType((*EventAnswerUpdated)(nil), "injective.ocr.v1beta1.EventAnswerUpdated") 1451 proto.RegisterType((*EventNewRound)(nil), "injective.ocr.v1beta1.EventNewRound") 1452 proto.RegisterType((*EventTransmitted)(nil), "injective.ocr.v1beta1.EventTransmitted") 1453 proto.RegisterType((*EventNewTransmission)(nil), "injective.ocr.v1beta1.EventNewTransmission") 1454 proto.RegisterType((*EventConfigSet)(nil), "injective.ocr.v1beta1.EventConfigSet") 1455 } 1456 1457 func init() { proto.RegisterFile("injective/ocr/v1beta1/ocr.proto", fileDescriptor_0acb79560f1720fa) } 1458 1459 var fileDescriptor_0acb79560f1720fa = []byte{ 1460 // 1648 bytes of a gzipped FileDescriptorProto 1461 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x3b, 0x6f, 0x1b, 0xc7, 1462 0x16, 0xd6, 0x92, 0x14, 0x25, 0x1e, 0x3e, 0x64, 0xad, 0x24, 0x9b, 0xd6, 0xb5, 0x44, 0x7a, 0x7d, 1463 0x8d, 0xab, 0x7b, 0x01, 0x93, 0xd7, 0x0a, 0x12, 0x27, 0x76, 0x91, 0x88, 0xf2, 0x4b, 0x80, 0x1f, 1464 0xca, 0x4a, 0x76, 0x91, 0x66, 0x31, 0xdc, 0x1d, 0x92, 0x1b, 0x73, 0x67, 0x98, 0xd9, 0xa1, 0x6c, 1465 0xfd, 0x82, 0x04, 0xa9, 0x0c, 0x24, 0x48, 0xed, 0x2a, 0x45, 0x80, 0x00, 0x29, 0xdc, 0xa4, 0x49, 1466 0x95, 0xc2, 0x08, 0x02, 0xc4, 0x65, 0x90, 0xc2, 0x09, 0xec, 0x22, 0xfe, 0x0b, 0xa9, 0x12, 0xcc, 1467 0x83, 0xe4, 0xf2, 0x21, 0x5a, 0xb4, 0xd5, 0x10, 0x3b, 0xdf, 0x79, 0xcc, 0xd9, 0xf3, 0xf8, 0x66, 1468 0x96, 0x50, 0xf0, 0xc9, 0xc7, 0xd8, 0xe5, 0xfe, 0x1e, 0x2e, 0x53, 0x97, 0x95, 0xf7, 0xce, 0x57, 1469 0x31, 0x47, 0xe7, 0xc5, 0x73, 0xa9, 0xc5, 0x28, 0xa7, 0xe6, 0x52, 0x57, 0xa1, 0x24, 0x40, 0xad, 1470 0xb0, 0xbc, 0xea, 0xd2, 0x30, 0xa0, 0x61, 0xb9, 0x8a, 0x42, 0xdc, 0xb5, 0x72, 0xa9, 0x4f, 0x94, 1471 0xd9, 0xf2, 0x49, 0x25, 0x77, 0xe4, 0xaa, 0xac, 0x16, 0x5a, 0xb4, 0x58, 0xa7, 0x75, 0xaa, 0x70, 1472 0xf1, 0xa4, 0xd1, 0x42, 0x9d, 0xd2, 0x7a, 0x13, 0x97, 0xe5, 0xaa, 0xda, 0xae, 0x95, 0xb9, 0x1f, 1473 0xe0, 0x90, 0xa3, 0xa0, 0xa5, 0x15, 0xe6, 0x51, 0xe0, 0x13, 0x5a, 0x96, 0xbf, 0x0a, 0xb2, 0xbe, 1474 0x30, 0x20, 0xb9, 0x8d, 0x18, 0x0a, 0x42, 0x73, 0x05, 0xa0, 0xe9, 0x93, 0x7b, 0x8e, 0x87, 0x09, 1475 0x0d, 0xf2, 0x46, 0xd1, 0x58, 0x4b, 0xd9, 0x29, 0x81, 0x5c, 0x16, 0x80, 0xb9, 0x0e, 0x4b, 0x2d, 1476 0xb4, 0x4f, 0xdb, 0xdc, 0xa9, 0x36, 0xa9, 0x7b, 0xcf, 0xf1, 0x09, 0xc7, 0x6c, 0x0f, 0x35, 0xf3, 1477 0xb1, 0xa2, 0xb1, 0x96, 0xb0, 0x17, 0x94, 0xb0, 0x22, 0x64, 0x5b, 0x5a, 0x64, 0x9e, 0x86, 0x4c, 1478 0x40, 0xbd, 0x76, 0x13, 0x3b, 0xc8, 0x0b, 0x7c, 0x92, 0x8f, 0x4b, 0xa7, 0x69, 0x85, 0x6d, 0x08, 1479 0xe8, 0xe2, 0xc2, 0xcb, 0x47, 0x05, 0xe3, 0xf3, 0x3f, 0xbf, 0xfb, 0x1f, 0x88, 0xe4, 0xa9, 0x50, 1480 0xac, 0x6f, 0x62, 0x00, 0x57, 0x31, 0xf6, 0x36, 0x29, 0xa9, 0xf9, 0x75, 0x33, 0x0f, 0x33, 0xa1, 1481 0x5f, 0x27, 0x98, 0x85, 0x79, 0xa3, 0x18, 0x5f, 0x4b, 0xd9, 0x9d, 0xa5, 0x69, 0x41, 0x86, 0x33, 1482 0x44, 0xc2, 0xc0, 0xe7, 0x5c, 0x88, 0x63, 0x52, 0xdc, 0x87, 0x99, 0x19, 0x30, 0x6a, 0x72, 0xe7, 1483 0xac, 0x6d, 0xd4, 0xcc, 0xb3, 0x90, 0xa3, 0xc4, 0x6d, 0x20, 0x9f, 0x38, 0xae, 0xf4, 0x9e, 0x4f, 1484 0x14, 0x8d, 0xb5, 0x8c, 0x9d, 0xd5, 0xa8, 0xde, 0xf2, 0x1d, 0x38, 0x41, 0x6b, 0xb5, 0xa8, 0x9e, 1485 0xb3, 0x87, 0x59, 0xe8, 0x53, 0x92, 0x9f, 0x96, 0xef, 0xbb, 0xd4, 0x11, 0x2b, 0x83, 0xbb, 0x4a, 1486 0x68, 0xfe, 0x07, 0xe6, 0x06, 0xec, 0xf2, 0x49, 0xe9, 0x3f, 0xd7, 0xaf, 0x6f, 0x5e, 0x87, 0xac, 1487 0x4e, 0x4d, 0x4b, 0xbe, 0x73, 0x7e, 0xa6, 0x68, 0xac, 0xa5, 0xd7, 0xcf, 0x94, 0x46, 0x36, 0x4b, 1488 0xe9, 0xa6, 0xd4, 0x55, 0xe9, 0xb1, 0x75, 0x52, 0x75, 0xb2, 0x7e, 0x30, 0x20, 0xd7, 0x4b, 0xd6, 1489 0x16, 0xa9, 0x51, 0xf3, 0xff, 0xb0, 0xd8, 0x44, 0x1c, 0x87, 0xbc, 0x13, 0xbb, 0xe7, 0xd7, 0x71, 1490 0xc8, 0x65, 0x51, 0x33, 0xb6, 0xa9, 0x64, 0x4a, 0xff, 0xb2, 0x94, 0xa8, 0x24, 0xc5, 0x3a, 0x49, 1491 0xca, 0x80, 0x41, 0x3a, 0x29, 0x23, 0xa2, 0x8a, 0xda, 0x8d, 0x4b, 0xdb, 0x84, 0xcb, 0x84, 0x25, 1492 0xec, 0xb4, 0xc2, 0x36, 0x05, 0x64, 0x5e, 0x82, 0xe5, 0xfe, 0x0d, 0x55, 0x8f, 0x90, 0x76, 0x50, 1493 0xc5, 0x4c, 0x66, 0x2c, 0x6e, 0x9f, 0x88, 0x6e, 0x2b, 0xfb, 0xe4, 0x96, 0x14, 0x5b, 0x7f, 0xc7, 1494 0x21, 0x13, 0x7d, 0x3f, 0xf3, 0x04, 0xcc, 0xd4, 0x30, 0xf6, 0x1c, 0xdf, 0xd3, 0x6d, 0x98, 0x14, 1495 0xcb, 0x2d, 0xcf, 0xac, 0x00, 0x04, 0x3e, 0x71, 0x10, 0x09, 0xef, 0x63, 0x26, 0xc3, 0x4d, 0x55, 1496 0xce, 0x3c, 0x79, 0x56, 0x98, 0xfa, 0xed, 0x59, 0xe1, 0x5f, 0x6a, 0x42, 0x42, 0xef, 0x5e, 0xc9, 1497 0xa7, 0xe5, 0x00, 0xf1, 0x46, 0xe9, 0x06, 0xae, 0x23, 0x77, 0xff, 0x32, 0x76, 0xed, 0x54, 0xe0, 1498 0x93, 0x0d, 0x69, 0x25, 0x7d, 0xa0, 0x07, 0x1d, 0x1f, 0xf1, 0x49, 0x7c, 0xa0, 0x07, 0xda, 0xc7, 1499 0x6d, 0x58, 0x94, 0xa3, 0xd2, 0xc2, 0xcc, 0xa1, 0xd5, 0x50, 0x34, 0x3b, 0x17, 0xad, 0x91, 0x90, 1500 0xde, 0x56, 0xb4, 0xb7, 0xa5, 0x61, 0x6f, 0x5b, 0x84, 0xdb, 0xa6, 0x30, 0xdd, 0xc6, 0xec, 0x76, 1501 0xcf, 0xd0, 0xfc, 0x10, 0x96, 0xba, 0x0e, 0x75, 0xf3, 0x86, 0xdd, 0x66, 0x7b, 0xa5, 0xc7, 0x05, 1502 0xed, 0x71, 0x37, 0x62, 0x39, 0x30, 0xce, 0xc9, 0xc1, 0x71, 0x3e, 0x0b, 0xb9, 0x36, 0xf1, 0x3f, 1503 0x69, 0x63, 0x87, 0xe1, 0x16, 0x65, 0x5c, 0x35, 0xe0, 0xac, 0x9d, 0x55, 0xa8, 0xad, 0x40, 0xb3, 1504 0x08, 0x69, 0x0f, 0x87, 0x2e, 0xf3, 0x5b, 0xf2, 0x05, 0x67, 0xd5, 0x00, 0x47, 0x20, 0xb1, 0x8f, 1505 0x2c, 0x96, 0x9a, 0xf0, 0x94, 0xda, 0x47, 0x20, 0x72, 0xbe, 0xcd, 0x33, 0x90, 0xad, 0xfa, 0xcd, 1506 0xa6, 0x4f, 0xea, 0x5a, 0x03, 0xa4, 0x46, 0x46, 0x83, 0x52, 0xc9, 0xfa, 0x34, 0x06, 0xb9, 0x4d, 1507 0x4a, 0x38, 0x43, 0xae, 0xee, 0x8f, 0xa1, 0xa6, 0x33, 0x86, 0x9b, 0x2e, 0x42, 0x0b, 0xb1, 0xf1, 1508 0xb4, 0x10, 0x3f, 0x88, 0x16, 0x12, 0x07, 0xd3, 0xc2, 0xf4, 0x84, 0xb4, 0x90, 0x9c, 0x90, 0x16, 1509 0x66, 0x46, 0xd1, 0x82, 0xf5, 0xc4, 0x80, 0xf9, 0x1d, 0xac, 0x93, 0xb0, 0xcd, 0x68, 0x8b, 0x86, 1510 0xa8, 0x69, 0x2e, 0xc2, 0x34, 0xf7, 0x79, 0x13, 0xeb, 0x71, 0x50, 0x8b, 0xc1, 0xda, 0xc4, 0x86, 1511 0x6b, 0xf3, 0x1e, 0x24, 0xf5, 0x6e, 0x71, 0xc9, 0x2e, 0xa7, 0x0f, 0x60, 0x97, 0x1e, 0x7d, 0xd8, 1512 0xda, 0xe0, 0xe2, 0x07, 0x9f, 0x3d, 0x2a, 0x4c, 0xbd, 0x7c, 0x54, 0x98, 0xfa, 0xe9, 0xf1, 0xb9, 1513 0x65, 0x7d, 0xf8, 0xd4, 0xe9, 0x5e, 0xd7, 0x44, 0x94, 0x0b, 0x13, 0x2e, 0x98, 0x7b, 0x49, 0x30, 1514 0xf7, 0x50, 0xd0, 0xd6, 0xe3, 0x84, 0xe2, 0x25, 0x01, 0x60, 0xc6, 0x7d, 0x3c, 0x66, 0xb0, 0xfb, 1515 0xe9, 0x67, 0xb8, 0x18, 0xf1, 0x09, 0x8b, 0x91, 0x98, 0xb0, 0x18, 0xd3, 0x23, 0x39, 0xba, 0x9f, 1516 0x6e, 0x92, 0x47, 0x40, 0x37, 0x33, 0x47, 0x4a, 0x37, 0xb3, 0x47, 0x4e, 0x37, 0xa9, 0xd7, 0xa6, 1517 0x9b, 0x61, 0x3e, 0x81, 0x43, 0xf0, 0x49, 0x7a, 0xa8, 0x67, 0xad, 0x1f, 0x63, 0x70, 0x7c, 0x07, 1518 0xf3, 0x0a, 0xe2, 0x6e, 0xe3, 0x88, 0xc6, 0x20, 0x42, 0x14, 0xf1, 0xf1, 0x44, 0x91, 0x18, 0x41, 1519 0x14, 0xfd, 0x44, 0x3a, 0x3d, 0x48, 0xa4, 0xb7, 0x60, 0x4e, 0xf6, 0x74, 0xab, 0xdb, 0xe6, 0xf9, 1520 0x64, 0x31, 0xbe, 0x96, 0x5e, 0x3f, 0x3b, 0x66, 0xd8, 0x7a, 0x33, 0x61, 0xe7, 0x6a, 0x7d, 0xeb, 1521 0x8b, 0x57, 0x0e, 0x3f, 0x78, 0xcb, 0x7a, 0xf0, 0x46, 0xe4, 0xca, 0x5a, 0x87, 0xfc, 0x6d, 0x86, 1522 0xdc, 0x26, 0x8e, 0xd4, 0x3d, 0x94, 0xbc, 0x19, 0x9a, 0xc7, 0x05, 0x2d, 0x88, 0x27, 0x79, 0x9d, 1523 0xca, 0xda, 0x7a, 0x65, 0xdd, 0x85, 0xf9, 0x6b, 0x28, 0xb4, 0xb1, 0x1f, 0x54, 0xdb, 0x2c, 0xc4, 1524 0x01, 0x16, 0xca, 0x1b, 0x90, 0x63, 0x7d, 0x88, 0x34, 0x4a, 0xaf, 0x9f, 0x2c, 0xe9, 0xe0, 0xc4, 1525 0xfd, 0x35, 0x12, 0x9d, 0x4f, 0xec, 0x01, 0x03, 0xeb, 0x0e, 0x4c, 0x6f, 0xa3, 0x7d, 0x8c, 0xcd, 1526 0xff, 0xc2, 0xb1, 0x48, 0x6a, 0x1d, 0xe4, 0x79, 0x4c, 0xd7, 0x72, 0x2e, 0x82, 0x6f, 0x78, 0x1e, 1527 0x13, 0xfc, 0xdf, 0x42, 0xfb, 0xc2, 0x5e, 0xa9, 0xe9, 0xb2, 0x6a, 0x4c, 0xa8, 0x58, 0xdf, 0x1b, 1528 0x90, 0xe9, 0xeb, 0xc1, 0x4b, 0x90, 0xd4, 0x73, 0x66, 0x1c, 0x7e, 0xce, 0xb4, 0x89, 0xf9, 0x36, 1529 0x1c, 0x8f, 0xcc, 0x56, 0xe8, 0x74, 0x2f, 0xcf, 0x72, 0xeb, 0xb8, 0xbd, 0x14, 0x95, 0xee, 0x76, 1530 0x84, 0xc2, 0x2c, 0x3a, 0x41, 0x11, 0xb3, 0xb8, 0x32, 0x8b, 0x4a, 0xbb, 0x66, 0xd6, 0x25, 0xc8, 1531 0x5e, 0x69, 0x51, 0xb7, 0xb1, 0x41, 0x3c, 0x9b, 0xb6, 0x89, 0x27, 0x7a, 0x1b, 0x0b, 0x40, 0x1f, 1532 0x74, 0x6a, 0x21, 0x50, 0x26, 0xc4, 0xfa, 0x92, 0xad, 0x16, 0xd6, 0xd7, 0x06, 0x24, 0xd5, 0x40, 1533 0x8d, 0x89, 0xda, 0x18, 0x17, 0xf5, 0x29, 0x48, 0x29, 0x81, 0x3a, 0x3c, 0x05, 0xf9, 0xf5, 0x00, 1534 0xf3, 0x1a, 0x64, 0xa2, 0x66, 0x6a, 0x68, 0x0e, 0x97, 0xcd, 0x3e, 0x43, 0xeb, 0x2b, 0x03, 0x32, 1535 0x2a, 0xd0, 0x5d, 0xba, 0xe3, 0xd7, 0xe5, 0x6d, 0x60, 0xd4, 0x8d, 0x54, 0x1f, 0xf5, 0xfa, 0x2e, 1536 0xda, 0x4d, 0x45, 0x6c, 0x64, 0x2a, 0xe2, 0x91, 0x54, 0x88, 0xe1, 0xc4, 0x0f, 0x38, 0x43, 0x4e, 1537 0x03, 0x85, 0x0d, 0x7d, 0x95, 0x4f, 0x49, 0xe4, 0x3a, 0x0a, 0x1b, 0xa2, 0xd3, 0x15, 0x1d, 0x69, 1538 0x86, 0xd7, 0x2b, 0xeb, 0x4b, 0x03, 0xe6, 0xae, 0xec, 0x61, 0xc2, 0xd5, 0x8c, 0x6c, 0x23, 0xdf, 1539 0x9b, 0xa4, 0x39, 0x57, 0x00, 0x5a, 0xa2, 0xa1, 0xa3, 0xad, 0x99, 0x92, 0x88, 0x14, 0x5f, 0x80, 1540 0x24, 0x0a, 0xe4, 0xad, 0x45, 0x1d, 0xbb, 0x07, 0x8f, 0x4a, 0x25, 0x21, 0x92, 0x6a, 0x6b, 0x75, 1541 0xeb, 0x67, 0x03, 0x4c, 0x19, 0x96, 0x22, 0xfe, 0x3b, 0x2d, 0x0f, 0x71, 0xec, 0x99, 0x17, 0x60, 1542 0xc6, 0x6d, 0x33, 0x86, 0xf5, 0x35, 0xe8, 0x95, 0x04, 0xdd, 0xd1, 0x36, 0xdf, 0x85, 0x59, 0x99, 1543 0x26, 0x71, 0xe0, 0xc6, 0x0e, 0x65, 0x29, 0xd5, 0xb7, 0x3c, 0x73, 0x13, 0xa0, 0xad, 0x76, 0x77, 1544 0x50, 0xe7, 0x35, 0x96, 0x4b, 0xea, 0x03, 0xb3, 0xd4, 0xf9, 0xc0, 0x2c, 0x75, 0x1b, 0xaa, 0x32, 1545 0x2b, 0xfc, 0x3e, 0xfc, 0xbd, 0x60, 0xd8, 0x29, 0x6d, 0xb7, 0xc1, 0xad, 0x6f, 0x0d, 0xc8, 0xca, 1546 0xd7, 0xb9, 0x85, 0xef, 0xab, 0x2e, 0x8f, 0x06, 0x64, 0x4c, 0x14, 0xd0, 0x0a, 0x40, 0xc8, 0x11, 1547 0x13, 0x01, 0x55, 0xf7, 0x3b, 0x29, 0xd7, 0x48, 0x65, 0x5f, 0xc4, 0xdb, 0x11, 0x4f, 0x1a, 0xaf, 1548 0xb6, 0xdb, 0xe0, 0xd6, 0x4d, 0x38, 0x26, 0xc3, 0xdd, 0xed, 0x96, 0xdb, 0x7b, 0x83, 0x8e, 0xb5, 1549 0x7e, 0x89, 0xc3, 0x62, 0xe7, 0xf5, 0xfb, 0x78, 0xea, 0xc0, 0x6b, 0x50, 0x09, 0x16, 0x50, 0xbd, 1550 0xce, 0x70, 0x1d, 0x71, 0xca, 0x9c, 0xbe, 0xd2, 0x65, 0xed, 0xf9, 0x9e, 0xc8, 0xd6, 0x49, 0xe9, 1551 0x11, 0x5e, 0x7c, 0x72, 0xc2, 0x2b, 0x42, 0x3a, 0xd2, 0xd7, 0xea, 0xdb, 0xc5, 0x8e, 0x42, 0x63, 1552 0xc8, 0x65, 0x7a, 0x1c, 0xb9, 0x0c, 0xd2, 0x47, 0xf2, 0x35, 0xe9, 0xa3, 0x9f, 0xa5, 0x66, 0x06, 1553 0x59, 0x6a, 0xa8, 0x32, 0xb3, 0x23, 0x2a, 0x73, 0x03, 0xe6, 0x64, 0x31, 0x1c, 0x44, 0x3c, 0x95, 1554 0x50, 0x79, 0xc7, 0x49, 0xaf, 0xff, 0xfb, 0x80, 0xd3, 0xb9, 0x8f, 0x95, 0xed, 0x2c, 0x8e, 0x2e, 1555 0xad, 0xbf, 0x0c, 0xc8, 0xc9, 0x8a, 0xaa, 0xc3, 0x76, 0x07, 0xf3, 0xc3, 0xf5, 0xc7, 0xfb, 0x70, 1556 0xaa, 0xc5, 0xf0, 0x9e, 0x4f, 0xdb, 0xe1, 0xc8, 0x0f, 0x64, 0x75, 0xc2, 0x9c, 0xec, 0xe8, 0x0c, 1557 0x7d, 0x22, 0xbf, 0xc1, 0x45, 0xde, 0xbc, 0x0a, 0xfa, 0xa3, 0xc9, 0xf1, 0x49, 0x8d, 0xca, 0x32, 1558 0x8f, 0xbf, 0x9b, 0xf4, 0xfe, 0x47, 0xb0, 0xc1, 0xed, 0x3e, 0x57, 0xdc, 0x27, 0xcf, 0x57, 0x8d, 1559 0xa7, 0xcf, 0x57, 0x8d, 0x3f, 0x9e, 0xaf, 0x1a, 0x0f, 0x5f, 0xac, 0x4e, 0x3d, 0x7d, 0xb1, 0x3a, 1560 0xf5, 0xeb, 0x8b, 0xd5, 0xa9, 0x8f, 0xb6, 0xea, 0x3e, 0x6f, 0xb4, 0xab, 0x25, 0x97, 0x06, 0xe5, 1561 0xad, 0x8e, 0xdb, 0x1b, 0xa8, 0x1a, 0x96, 0xbb, 0x9b, 0x9c, 0x73, 0x29, 0xc3, 0xd1, 0xa5, 0xb8, 1562 0x65, 0x97, 0xd5, 0xdf, 0x18, 0xa1, 0xfc, 0xdb, 0x8c, 0xef, 0xb7, 0x70, 0x58, 0x4d, 0xca, 0x51, 1563 0x7d, 0xeb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x77, 0x1a, 0x63, 0x54, 0x13, 0x00, 0x00, 1564 } 1565 1566 func (this *Params) Equal(that interface{}) bool { 1567 if that == nil { 1568 return this == nil 1569 } 1570 1571 that1, ok := that.(*Params) 1572 if !ok { 1573 that2, ok := that.(Params) 1574 if ok { 1575 that1 = &that2 1576 } else { 1577 return false 1578 } 1579 } 1580 if that1 == nil { 1581 return this == nil 1582 } else if this == nil { 1583 return false 1584 } 1585 if this.LinkDenom != that1.LinkDenom { 1586 return false 1587 } 1588 if this.PayoutBlockInterval != that1.PayoutBlockInterval { 1589 return false 1590 } 1591 if this.ModuleAdmin != that1.ModuleAdmin { 1592 return false 1593 } 1594 return true 1595 } 1596 func (m *Params) Marshal() (dAtA []byte, err error) { 1597 size := m.Size() 1598 dAtA = make([]byte, size) 1599 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1600 if err != nil { 1601 return nil, err 1602 } 1603 return dAtA[:n], nil 1604 } 1605 1606 func (m *Params) MarshalTo(dAtA []byte) (int, error) { 1607 size := m.Size() 1608 return m.MarshalToSizedBuffer(dAtA[:size]) 1609 } 1610 1611 func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1612 i := len(dAtA) 1613 _ = i 1614 var l int 1615 _ = l 1616 if len(m.ModuleAdmin) > 0 { 1617 i -= len(m.ModuleAdmin) 1618 copy(dAtA[i:], m.ModuleAdmin) 1619 i = encodeVarintOcr(dAtA, i, uint64(len(m.ModuleAdmin))) 1620 i-- 1621 dAtA[i] = 0x1a 1622 } 1623 if m.PayoutBlockInterval != 0 { 1624 i = encodeVarintOcr(dAtA, i, uint64(m.PayoutBlockInterval)) 1625 i-- 1626 dAtA[i] = 0x10 1627 } 1628 if len(m.LinkDenom) > 0 { 1629 i -= len(m.LinkDenom) 1630 copy(dAtA[i:], m.LinkDenom) 1631 i = encodeVarintOcr(dAtA, i, uint64(len(m.LinkDenom))) 1632 i-- 1633 dAtA[i] = 0xa 1634 } 1635 return len(dAtA) - i, nil 1636 } 1637 1638 func (m *FeedConfig) Marshal() (dAtA []byte, err error) { 1639 size := m.Size() 1640 dAtA = make([]byte, size) 1641 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1642 if err != nil { 1643 return nil, err 1644 } 1645 return dAtA[:n], nil 1646 } 1647 1648 func (m *FeedConfig) MarshalTo(dAtA []byte) (int, error) { 1649 size := m.Size() 1650 return m.MarshalToSizedBuffer(dAtA[:size]) 1651 } 1652 1653 func (m *FeedConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1654 i := len(dAtA) 1655 _ = i 1656 var l int 1657 _ = l 1658 if m.ModuleParams != nil { 1659 { 1660 size, err := m.ModuleParams.MarshalToSizedBuffer(dAtA[:i]) 1661 if err != nil { 1662 return 0, err 1663 } 1664 i -= size 1665 i = encodeVarintOcr(dAtA, i, uint64(size)) 1666 } 1667 i-- 1668 dAtA[i] = 0x3a 1669 } 1670 if len(m.OffchainConfig) > 0 { 1671 i -= len(m.OffchainConfig) 1672 copy(dAtA[i:], m.OffchainConfig) 1673 i = encodeVarintOcr(dAtA, i, uint64(len(m.OffchainConfig))) 1674 i-- 1675 dAtA[i] = 0x32 1676 } 1677 if m.OffchainConfigVersion != 0 { 1678 i = encodeVarintOcr(dAtA, i, uint64(m.OffchainConfigVersion)) 1679 i-- 1680 dAtA[i] = 0x28 1681 } 1682 if len(m.OnchainConfig) > 0 { 1683 i -= len(m.OnchainConfig) 1684 copy(dAtA[i:], m.OnchainConfig) 1685 i = encodeVarintOcr(dAtA, i, uint64(len(m.OnchainConfig))) 1686 i-- 1687 dAtA[i] = 0x22 1688 } 1689 if m.F != 0 { 1690 i = encodeVarintOcr(dAtA, i, uint64(m.F)) 1691 i-- 1692 dAtA[i] = 0x18 1693 } 1694 if len(m.Transmitters) > 0 { 1695 for iNdEx := len(m.Transmitters) - 1; iNdEx >= 0; iNdEx-- { 1696 i -= len(m.Transmitters[iNdEx]) 1697 copy(dAtA[i:], m.Transmitters[iNdEx]) 1698 i = encodeVarintOcr(dAtA, i, uint64(len(m.Transmitters[iNdEx]))) 1699 i-- 1700 dAtA[i] = 0x12 1701 } 1702 } 1703 if len(m.Signers) > 0 { 1704 for iNdEx := len(m.Signers) - 1; iNdEx >= 0; iNdEx-- { 1705 i -= len(m.Signers[iNdEx]) 1706 copy(dAtA[i:], m.Signers[iNdEx]) 1707 i = encodeVarintOcr(dAtA, i, uint64(len(m.Signers[iNdEx]))) 1708 i-- 1709 dAtA[i] = 0xa 1710 } 1711 } 1712 return len(dAtA) - i, nil 1713 } 1714 1715 func (m *FeedConfigInfo) Marshal() (dAtA []byte, err error) { 1716 size := m.Size() 1717 dAtA = make([]byte, size) 1718 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1719 if err != nil { 1720 return nil, err 1721 } 1722 return dAtA[:n], nil 1723 } 1724 1725 func (m *FeedConfigInfo) MarshalTo(dAtA []byte) (int, error) { 1726 size := m.Size() 1727 return m.MarshalToSizedBuffer(dAtA[:size]) 1728 } 1729 1730 func (m *FeedConfigInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1731 i := len(dAtA) 1732 _ = i 1733 var l int 1734 _ = l 1735 if m.LatestConfigBlockNumber != 0 { 1736 i = encodeVarintOcr(dAtA, i, uint64(m.LatestConfigBlockNumber)) 1737 i-- 1738 dAtA[i] = 0x28 1739 } 1740 if m.ConfigCount != 0 { 1741 i = encodeVarintOcr(dAtA, i, uint64(m.ConfigCount)) 1742 i-- 1743 dAtA[i] = 0x20 1744 } 1745 if m.N != 0 { 1746 i = encodeVarintOcr(dAtA, i, uint64(m.N)) 1747 i-- 1748 dAtA[i] = 0x18 1749 } 1750 if m.F != 0 { 1751 i = encodeVarintOcr(dAtA, i, uint64(m.F)) 1752 i-- 1753 dAtA[i] = 0x10 1754 } 1755 if len(m.LatestConfigDigest) > 0 { 1756 i -= len(m.LatestConfigDigest) 1757 copy(dAtA[i:], m.LatestConfigDigest) 1758 i = encodeVarintOcr(dAtA, i, uint64(len(m.LatestConfigDigest))) 1759 i-- 1760 dAtA[i] = 0xa 1761 } 1762 return len(dAtA) - i, nil 1763 } 1764 1765 func (m *ModuleParams) Marshal() (dAtA []byte, err error) { 1766 size := m.Size() 1767 dAtA = make([]byte, size) 1768 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1769 if err != nil { 1770 return nil, err 1771 } 1772 return dAtA[:n], nil 1773 } 1774 1775 func (m *ModuleParams) MarshalTo(dAtA []byte) (int, error) { 1776 size := m.Size() 1777 return m.MarshalToSizedBuffer(dAtA[:size]) 1778 } 1779 1780 func (m *ModuleParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1781 i := len(dAtA) 1782 _ = i 1783 var l int 1784 _ = l 1785 if len(m.BillingAdmin) > 0 { 1786 i -= len(m.BillingAdmin) 1787 copy(dAtA[i:], m.BillingAdmin) 1788 i = encodeVarintOcr(dAtA, i, uint64(len(m.BillingAdmin))) 1789 i-- 1790 dAtA[i] = 0x52 1791 } 1792 if len(m.FeedAdmin) > 0 { 1793 i -= len(m.FeedAdmin) 1794 copy(dAtA[i:], m.FeedAdmin) 1795 i = encodeVarintOcr(dAtA, i, uint64(len(m.FeedAdmin))) 1796 i-- 1797 dAtA[i] = 0x4a 1798 } 1799 if len(m.Description) > 0 { 1800 i -= len(m.Description) 1801 copy(dAtA[i:], m.Description) 1802 i = encodeVarintOcr(dAtA, i, uint64(len(m.Description))) 1803 i-- 1804 dAtA[i] = 0x42 1805 } 1806 if m.UniqueReports { 1807 i-- 1808 if m.UniqueReports { 1809 dAtA[i] = 1 1810 } else { 1811 dAtA[i] = 0 1812 } 1813 i-- 1814 dAtA[i] = 0x38 1815 } 1816 if len(m.LinkDenom) > 0 { 1817 i -= len(m.LinkDenom) 1818 copy(dAtA[i:], m.LinkDenom) 1819 i = encodeVarintOcr(dAtA, i, uint64(len(m.LinkDenom))) 1820 i-- 1821 dAtA[i] = 0x32 1822 } 1823 { 1824 size := m.LinkPerTransmission.Size() 1825 i -= size 1826 if _, err := m.LinkPerTransmission.MarshalTo(dAtA[i:]); err != nil { 1827 return 0, err 1828 } 1829 i = encodeVarintOcr(dAtA, i, uint64(size)) 1830 } 1831 i-- 1832 dAtA[i] = 0x2a 1833 { 1834 size := m.LinkPerObservation.Size() 1835 i -= size 1836 if _, err := m.LinkPerObservation.MarshalTo(dAtA[i:]); err != nil { 1837 return 0, err 1838 } 1839 i = encodeVarintOcr(dAtA, i, uint64(size)) 1840 } 1841 i-- 1842 dAtA[i] = 0x22 1843 { 1844 size := m.MaxAnswer.Size() 1845 i -= size 1846 if _, err := m.MaxAnswer.MarshalTo(dAtA[i:]); err != nil { 1847 return 0, err 1848 } 1849 i = encodeVarintOcr(dAtA, i, uint64(size)) 1850 } 1851 i-- 1852 dAtA[i] = 0x1a 1853 { 1854 size := m.MinAnswer.Size() 1855 i -= size 1856 if _, err := m.MinAnswer.MarshalTo(dAtA[i:]); err != nil { 1857 return 0, err 1858 } 1859 i = encodeVarintOcr(dAtA, i, uint64(size)) 1860 } 1861 i-- 1862 dAtA[i] = 0x12 1863 if len(m.FeedId) > 0 { 1864 i -= len(m.FeedId) 1865 copy(dAtA[i:], m.FeedId) 1866 i = encodeVarintOcr(dAtA, i, uint64(len(m.FeedId))) 1867 i-- 1868 dAtA[i] = 0xa 1869 } 1870 return len(dAtA) - i, nil 1871 } 1872 1873 func (m *ContractConfig) Marshal() (dAtA []byte, err error) { 1874 size := m.Size() 1875 dAtA = make([]byte, size) 1876 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1877 if err != nil { 1878 return nil, err 1879 } 1880 return dAtA[:n], nil 1881 } 1882 1883 func (m *ContractConfig) MarshalTo(dAtA []byte) (int, error) { 1884 size := m.Size() 1885 return m.MarshalToSizedBuffer(dAtA[:size]) 1886 } 1887 1888 func (m *ContractConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1889 i := len(dAtA) 1890 _ = i 1891 var l int 1892 _ = l 1893 if len(m.OffchainConfig) > 0 { 1894 i -= len(m.OffchainConfig) 1895 copy(dAtA[i:], m.OffchainConfig) 1896 i = encodeVarintOcr(dAtA, i, uint64(len(m.OffchainConfig))) 1897 i-- 1898 dAtA[i] = 0x3a 1899 } 1900 if m.OffchainConfigVersion != 0 { 1901 i = encodeVarintOcr(dAtA, i, uint64(m.OffchainConfigVersion)) 1902 i-- 1903 dAtA[i] = 0x30 1904 } 1905 if len(m.OnchainConfig) > 0 { 1906 i -= len(m.OnchainConfig) 1907 copy(dAtA[i:], m.OnchainConfig) 1908 i = encodeVarintOcr(dAtA, i, uint64(len(m.OnchainConfig))) 1909 i-- 1910 dAtA[i] = 0x2a 1911 } 1912 if m.F != 0 { 1913 i = encodeVarintOcr(dAtA, i, uint64(m.F)) 1914 i-- 1915 dAtA[i] = 0x20 1916 } 1917 if len(m.Transmitters) > 0 { 1918 for iNdEx := len(m.Transmitters) - 1; iNdEx >= 0; iNdEx-- { 1919 i -= len(m.Transmitters[iNdEx]) 1920 copy(dAtA[i:], m.Transmitters[iNdEx]) 1921 i = encodeVarintOcr(dAtA, i, uint64(len(m.Transmitters[iNdEx]))) 1922 i-- 1923 dAtA[i] = 0x1a 1924 } 1925 } 1926 if len(m.Signers) > 0 { 1927 for iNdEx := len(m.Signers) - 1; iNdEx >= 0; iNdEx-- { 1928 i -= len(m.Signers[iNdEx]) 1929 copy(dAtA[i:], m.Signers[iNdEx]) 1930 i = encodeVarintOcr(dAtA, i, uint64(len(m.Signers[iNdEx]))) 1931 i-- 1932 dAtA[i] = 0x12 1933 } 1934 } 1935 if m.ConfigCount != 0 { 1936 i = encodeVarintOcr(dAtA, i, uint64(m.ConfigCount)) 1937 i-- 1938 dAtA[i] = 0x8 1939 } 1940 return len(dAtA) - i, nil 1941 } 1942 1943 func (m *SetConfigProposal) Marshal() (dAtA []byte, err error) { 1944 size := m.Size() 1945 dAtA = make([]byte, size) 1946 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1947 if err != nil { 1948 return nil, err 1949 } 1950 return dAtA[:n], nil 1951 } 1952 1953 func (m *SetConfigProposal) MarshalTo(dAtA []byte) (int, error) { 1954 size := m.Size() 1955 return m.MarshalToSizedBuffer(dAtA[:size]) 1956 } 1957 1958 func (m *SetConfigProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1959 i := len(dAtA) 1960 _ = i 1961 var l int 1962 _ = l 1963 if m.Config != nil { 1964 { 1965 size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) 1966 if err != nil { 1967 return 0, err 1968 } 1969 i -= size 1970 i = encodeVarintOcr(dAtA, i, uint64(size)) 1971 } 1972 i-- 1973 dAtA[i] = 0x1a 1974 } 1975 if len(m.Description) > 0 { 1976 i -= len(m.Description) 1977 copy(dAtA[i:], m.Description) 1978 i = encodeVarintOcr(dAtA, i, uint64(len(m.Description))) 1979 i-- 1980 dAtA[i] = 0x12 1981 } 1982 if len(m.Title) > 0 { 1983 i -= len(m.Title) 1984 copy(dAtA[i:], m.Title) 1985 i = encodeVarintOcr(dAtA, i, uint64(len(m.Title))) 1986 i-- 1987 dAtA[i] = 0xa 1988 } 1989 return len(dAtA) - i, nil 1990 } 1991 1992 func (m *FeedProperties) Marshal() (dAtA []byte, err error) { 1993 size := m.Size() 1994 dAtA = make([]byte, size) 1995 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1996 if err != nil { 1997 return nil, err 1998 } 1999 return dAtA[:n], nil 2000 } 2001 2002 func (m *FeedProperties) MarshalTo(dAtA []byte) (int, error) { 2003 size := m.Size() 2004 return m.MarshalToSizedBuffer(dAtA[:size]) 2005 } 2006 2007 func (m *FeedProperties) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2008 i := len(dAtA) 2009 _ = i 2010 var l int 2011 _ = l 2012 if len(m.Description) > 0 { 2013 i -= len(m.Description) 2014 copy(dAtA[i:], m.Description) 2015 i = encodeVarintOcr(dAtA, i, uint64(len(m.Description))) 2016 i-- 2017 dAtA[i] = 0x5a 2018 } 2019 if m.UniqueReports { 2020 i-- 2021 if m.UniqueReports { 2022 dAtA[i] = 1 2023 } else { 2024 dAtA[i] = 0 2025 } 2026 i-- 2027 dAtA[i] = 0x50 2028 } 2029 { 2030 size := m.LinkPerTransmission.Size() 2031 i -= size 2032 if _, err := m.LinkPerTransmission.MarshalTo(dAtA[i:]); err != nil { 2033 return 0, err 2034 } 2035 i = encodeVarintOcr(dAtA, i, uint64(size)) 2036 } 2037 i-- 2038 dAtA[i] = 0x4a 2039 { 2040 size := m.LinkPerObservation.Size() 2041 i -= size 2042 if _, err := m.LinkPerObservation.MarshalTo(dAtA[i:]); err != nil { 2043 return 0, err 2044 } 2045 i = encodeVarintOcr(dAtA, i, uint64(size)) 2046 } 2047 i-- 2048 dAtA[i] = 0x42 2049 { 2050 size := m.MaxAnswer.Size() 2051 i -= size 2052 if _, err := m.MaxAnswer.MarshalTo(dAtA[i:]); err != nil { 2053 return 0, err 2054 } 2055 i = encodeVarintOcr(dAtA, i, uint64(size)) 2056 } 2057 i-- 2058 dAtA[i] = 0x3a 2059 { 2060 size := m.MinAnswer.Size() 2061 i -= size 2062 if _, err := m.MinAnswer.MarshalTo(dAtA[i:]); err != nil { 2063 return 0, err 2064 } 2065 i = encodeVarintOcr(dAtA, i, uint64(size)) 2066 } 2067 i-- 2068 dAtA[i] = 0x32 2069 if len(m.OffchainConfig) > 0 { 2070 i -= len(m.OffchainConfig) 2071 copy(dAtA[i:], m.OffchainConfig) 2072 i = encodeVarintOcr(dAtA, i, uint64(len(m.OffchainConfig))) 2073 i-- 2074 dAtA[i] = 0x2a 2075 } 2076 if m.OffchainConfigVersion != 0 { 2077 i = encodeVarintOcr(dAtA, i, uint64(m.OffchainConfigVersion)) 2078 i-- 2079 dAtA[i] = 0x20 2080 } 2081 if len(m.OnchainConfig) > 0 { 2082 i -= len(m.OnchainConfig) 2083 copy(dAtA[i:], m.OnchainConfig) 2084 i = encodeVarintOcr(dAtA, i, uint64(len(m.OnchainConfig))) 2085 i-- 2086 dAtA[i] = 0x1a 2087 } 2088 if m.F != 0 { 2089 i = encodeVarintOcr(dAtA, i, uint64(m.F)) 2090 i-- 2091 dAtA[i] = 0x10 2092 } 2093 if len(m.FeedId) > 0 { 2094 i -= len(m.FeedId) 2095 copy(dAtA[i:], m.FeedId) 2096 i = encodeVarintOcr(dAtA, i, uint64(len(m.FeedId))) 2097 i-- 2098 dAtA[i] = 0xa 2099 } 2100 return len(dAtA) - i, nil 2101 } 2102 2103 func (m *SetBatchConfigProposal) Marshal() (dAtA []byte, err error) { 2104 size := m.Size() 2105 dAtA = make([]byte, size) 2106 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2107 if err != nil { 2108 return nil, err 2109 } 2110 return dAtA[:n], nil 2111 } 2112 2113 func (m *SetBatchConfigProposal) MarshalTo(dAtA []byte) (int, error) { 2114 size := m.Size() 2115 return m.MarshalToSizedBuffer(dAtA[:size]) 2116 } 2117 2118 func (m *SetBatchConfigProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2119 i := len(dAtA) 2120 _ = i 2121 var l int 2122 _ = l 2123 if len(m.FeedProperties) > 0 { 2124 for iNdEx := len(m.FeedProperties) - 1; iNdEx >= 0; iNdEx-- { 2125 { 2126 size, err := m.FeedProperties[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2127 if err != nil { 2128 return 0, err 2129 } 2130 i -= size 2131 i = encodeVarintOcr(dAtA, i, uint64(size)) 2132 } 2133 i-- 2134 dAtA[i] = 0x32 2135 } 2136 } 2137 if len(m.LinkDenom) > 0 { 2138 i -= len(m.LinkDenom) 2139 copy(dAtA[i:], m.LinkDenom) 2140 i = encodeVarintOcr(dAtA, i, uint64(len(m.LinkDenom))) 2141 i-- 2142 dAtA[i] = 0x2a 2143 } 2144 if len(m.Transmitters) > 0 { 2145 for iNdEx := len(m.Transmitters) - 1; iNdEx >= 0; iNdEx-- { 2146 i -= len(m.Transmitters[iNdEx]) 2147 copy(dAtA[i:], m.Transmitters[iNdEx]) 2148 i = encodeVarintOcr(dAtA, i, uint64(len(m.Transmitters[iNdEx]))) 2149 i-- 2150 dAtA[i] = 0x22 2151 } 2152 } 2153 if len(m.Signers) > 0 { 2154 for iNdEx := len(m.Signers) - 1; iNdEx >= 0; iNdEx-- { 2155 i -= len(m.Signers[iNdEx]) 2156 copy(dAtA[i:], m.Signers[iNdEx]) 2157 i = encodeVarintOcr(dAtA, i, uint64(len(m.Signers[iNdEx]))) 2158 i-- 2159 dAtA[i] = 0x1a 2160 } 2161 } 2162 if len(m.Description) > 0 { 2163 i -= len(m.Description) 2164 copy(dAtA[i:], m.Description) 2165 i = encodeVarintOcr(dAtA, i, uint64(len(m.Description))) 2166 i-- 2167 dAtA[i] = 0x12 2168 } 2169 if len(m.Title) > 0 { 2170 i -= len(m.Title) 2171 copy(dAtA[i:], m.Title) 2172 i = encodeVarintOcr(dAtA, i, uint64(len(m.Title))) 2173 i-- 2174 dAtA[i] = 0xa 2175 } 2176 return len(dAtA) - i, nil 2177 } 2178 2179 func (m *OracleObservationsCounts) Marshal() (dAtA []byte, err error) { 2180 size := m.Size() 2181 dAtA = make([]byte, size) 2182 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2183 if err != nil { 2184 return nil, err 2185 } 2186 return dAtA[:n], nil 2187 } 2188 2189 func (m *OracleObservationsCounts) MarshalTo(dAtA []byte) (int, error) { 2190 size := m.Size() 2191 return m.MarshalToSizedBuffer(dAtA[:size]) 2192 } 2193 2194 func (m *OracleObservationsCounts) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2195 i := len(dAtA) 2196 _ = i 2197 var l int 2198 _ = l 2199 if len(m.Counts) > 0 { 2200 dAtA4 := make([]byte, len(m.Counts)*10) 2201 var j3 int 2202 for _, num := range m.Counts { 2203 for num >= 1<<7 { 2204 dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) 2205 num >>= 7 2206 j3++ 2207 } 2208 dAtA4[j3] = uint8(num) 2209 j3++ 2210 } 2211 i -= j3 2212 copy(dAtA[i:], dAtA4[:j3]) 2213 i = encodeVarintOcr(dAtA, i, uint64(j3)) 2214 i-- 2215 dAtA[i] = 0xa 2216 } 2217 return len(dAtA) - i, nil 2218 } 2219 2220 func (m *GasReimbursements) Marshal() (dAtA []byte, err error) { 2221 size := m.Size() 2222 dAtA = make([]byte, size) 2223 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2224 if err != nil { 2225 return nil, err 2226 } 2227 return dAtA[:n], nil 2228 } 2229 2230 func (m *GasReimbursements) MarshalTo(dAtA []byte) (int, error) { 2231 size := m.Size() 2232 return m.MarshalToSizedBuffer(dAtA[:size]) 2233 } 2234 2235 func (m *GasReimbursements) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2236 i := len(dAtA) 2237 _ = i 2238 var l int 2239 _ = l 2240 if len(m.Reimbursements) > 0 { 2241 for iNdEx := len(m.Reimbursements) - 1; iNdEx >= 0; iNdEx-- { 2242 { 2243 size, err := m.Reimbursements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2244 if err != nil { 2245 return 0, err 2246 } 2247 i -= size 2248 i = encodeVarintOcr(dAtA, i, uint64(size)) 2249 } 2250 i-- 2251 dAtA[i] = 0xa 2252 } 2253 } 2254 return len(dAtA) - i, nil 2255 } 2256 2257 func (m *Payee) Marshal() (dAtA []byte, err error) { 2258 size := m.Size() 2259 dAtA = make([]byte, size) 2260 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2261 if err != nil { 2262 return nil, err 2263 } 2264 return dAtA[:n], nil 2265 } 2266 2267 func (m *Payee) MarshalTo(dAtA []byte) (int, error) { 2268 size := m.Size() 2269 return m.MarshalToSizedBuffer(dAtA[:size]) 2270 } 2271 2272 func (m *Payee) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2273 i := len(dAtA) 2274 _ = i 2275 var l int 2276 _ = l 2277 if len(m.PaymentAddr) > 0 { 2278 i -= len(m.PaymentAddr) 2279 copy(dAtA[i:], m.PaymentAddr) 2280 i = encodeVarintOcr(dAtA, i, uint64(len(m.PaymentAddr))) 2281 i-- 2282 dAtA[i] = 0x12 2283 } 2284 if len(m.TransmitterAddr) > 0 { 2285 i -= len(m.TransmitterAddr) 2286 copy(dAtA[i:], m.TransmitterAddr) 2287 i = encodeVarintOcr(dAtA, i, uint64(len(m.TransmitterAddr))) 2288 i-- 2289 dAtA[i] = 0xa 2290 } 2291 return len(dAtA) - i, nil 2292 } 2293 2294 func (m *Transmission) Marshal() (dAtA []byte, err error) { 2295 size := m.Size() 2296 dAtA = make([]byte, size) 2297 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2298 if err != nil { 2299 return nil, err 2300 } 2301 return dAtA[:n], nil 2302 } 2303 2304 func (m *Transmission) MarshalTo(dAtA []byte) (int, error) { 2305 size := m.Size() 2306 return m.MarshalToSizedBuffer(dAtA[:size]) 2307 } 2308 2309 func (m *Transmission) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2310 i := len(dAtA) 2311 _ = i 2312 var l int 2313 _ = l 2314 if m.TransmissionTimestamp != 0 { 2315 i = encodeVarintOcr(dAtA, i, uint64(m.TransmissionTimestamp)) 2316 i-- 2317 dAtA[i] = 0x18 2318 } 2319 if m.ObservationsTimestamp != 0 { 2320 i = encodeVarintOcr(dAtA, i, uint64(m.ObservationsTimestamp)) 2321 i-- 2322 dAtA[i] = 0x10 2323 } 2324 { 2325 size := m.Answer.Size() 2326 i -= size 2327 if _, err := m.Answer.MarshalTo(dAtA[i:]); err != nil { 2328 return 0, err 2329 } 2330 i = encodeVarintOcr(dAtA, i, uint64(size)) 2331 } 2332 i-- 2333 dAtA[i] = 0xa 2334 return len(dAtA) - i, nil 2335 } 2336 2337 func (m *EpochAndRound) Marshal() (dAtA []byte, err error) { 2338 size := m.Size() 2339 dAtA = make([]byte, size) 2340 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2341 if err != nil { 2342 return nil, err 2343 } 2344 return dAtA[:n], nil 2345 } 2346 2347 func (m *EpochAndRound) MarshalTo(dAtA []byte) (int, error) { 2348 size := m.Size() 2349 return m.MarshalToSizedBuffer(dAtA[:size]) 2350 } 2351 2352 func (m *EpochAndRound) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2353 i := len(dAtA) 2354 _ = i 2355 var l int 2356 _ = l 2357 if m.Round != 0 { 2358 i = encodeVarintOcr(dAtA, i, uint64(m.Round)) 2359 i-- 2360 dAtA[i] = 0x10 2361 } 2362 if m.Epoch != 0 { 2363 i = encodeVarintOcr(dAtA, i, uint64(m.Epoch)) 2364 i-- 2365 dAtA[i] = 0x8 2366 } 2367 return len(dAtA) - i, nil 2368 } 2369 2370 func (m *Report) Marshal() (dAtA []byte, err error) { 2371 size := m.Size() 2372 dAtA = make([]byte, size) 2373 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2374 if err != nil { 2375 return nil, err 2376 } 2377 return dAtA[:n], nil 2378 } 2379 2380 func (m *Report) MarshalTo(dAtA []byte) (int, error) { 2381 size := m.Size() 2382 return m.MarshalToSizedBuffer(dAtA[:size]) 2383 } 2384 2385 func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2386 i := len(dAtA) 2387 _ = i 2388 var l int 2389 _ = l 2390 if len(m.Observations) > 0 { 2391 for iNdEx := len(m.Observations) - 1; iNdEx >= 0; iNdEx-- { 2392 { 2393 size := m.Observations[iNdEx].Size() 2394 i -= size 2395 if _, err := m.Observations[iNdEx].MarshalTo(dAtA[i:]); err != nil { 2396 return 0, err 2397 } 2398 i = encodeVarintOcr(dAtA, i, uint64(size)) 2399 } 2400 i-- 2401 dAtA[i] = 0x1a 2402 } 2403 } 2404 if len(m.Observers) > 0 { 2405 i -= len(m.Observers) 2406 copy(dAtA[i:], m.Observers) 2407 i = encodeVarintOcr(dAtA, i, uint64(len(m.Observers))) 2408 i-- 2409 dAtA[i] = 0x12 2410 } 2411 if m.ObservationsTimestamp != 0 { 2412 i = encodeVarintOcr(dAtA, i, uint64(m.ObservationsTimestamp)) 2413 i-- 2414 dAtA[i] = 0x8 2415 } 2416 return len(dAtA) - i, nil 2417 } 2418 2419 func (m *ReportToSign) Marshal() (dAtA []byte, err error) { 2420 size := m.Size() 2421 dAtA = make([]byte, size) 2422 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2423 if err != nil { 2424 return nil, err 2425 } 2426 return dAtA[:n], nil 2427 } 2428 2429 func (m *ReportToSign) MarshalTo(dAtA []byte) (int, error) { 2430 size := m.Size() 2431 return m.MarshalToSizedBuffer(dAtA[:size]) 2432 } 2433 2434 func (m *ReportToSign) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2435 i := len(dAtA) 2436 _ = i 2437 var l int 2438 _ = l 2439 if len(m.Report) > 0 { 2440 i -= len(m.Report) 2441 copy(dAtA[i:], m.Report) 2442 i = encodeVarintOcr(dAtA, i, uint64(len(m.Report))) 2443 i-- 2444 dAtA[i] = 0x2a 2445 } 2446 if len(m.ExtraHash) > 0 { 2447 i -= len(m.ExtraHash) 2448 copy(dAtA[i:], m.ExtraHash) 2449 i = encodeVarintOcr(dAtA, i, uint64(len(m.ExtraHash))) 2450 i-- 2451 dAtA[i] = 0x22 2452 } 2453 if m.Round != 0 { 2454 i = encodeVarintOcr(dAtA, i, uint64(m.Round)) 2455 i-- 2456 dAtA[i] = 0x18 2457 } 2458 if m.Epoch != 0 { 2459 i = encodeVarintOcr(dAtA, i, uint64(m.Epoch)) 2460 i-- 2461 dAtA[i] = 0x10 2462 } 2463 if len(m.ConfigDigest) > 0 { 2464 i -= len(m.ConfigDigest) 2465 copy(dAtA[i:], m.ConfigDigest) 2466 i = encodeVarintOcr(dAtA, i, uint64(len(m.ConfigDigest))) 2467 i-- 2468 dAtA[i] = 0xa 2469 } 2470 return len(dAtA) - i, nil 2471 } 2472 2473 func (m *EventOraclePaid) Marshal() (dAtA []byte, err error) { 2474 size := m.Size() 2475 dAtA = make([]byte, size) 2476 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2477 if err != nil { 2478 return nil, err 2479 } 2480 return dAtA[:n], nil 2481 } 2482 2483 func (m *EventOraclePaid) MarshalTo(dAtA []byte) (int, error) { 2484 size := m.Size() 2485 return m.MarshalToSizedBuffer(dAtA[:size]) 2486 } 2487 2488 func (m *EventOraclePaid) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2489 i := len(dAtA) 2490 _ = i 2491 var l int 2492 _ = l 2493 { 2494 size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) 2495 if err != nil { 2496 return 0, err 2497 } 2498 i -= size 2499 i = encodeVarintOcr(dAtA, i, uint64(size)) 2500 } 2501 i-- 2502 dAtA[i] = 0x1a 2503 if len(m.PayeeAddr) > 0 { 2504 i -= len(m.PayeeAddr) 2505 copy(dAtA[i:], m.PayeeAddr) 2506 i = encodeVarintOcr(dAtA, i, uint64(len(m.PayeeAddr))) 2507 i-- 2508 dAtA[i] = 0x12 2509 } 2510 if len(m.TransmitterAddr) > 0 { 2511 i -= len(m.TransmitterAddr) 2512 copy(dAtA[i:], m.TransmitterAddr) 2513 i = encodeVarintOcr(dAtA, i, uint64(len(m.TransmitterAddr))) 2514 i-- 2515 dAtA[i] = 0xa 2516 } 2517 return len(dAtA) - i, nil 2518 } 2519 2520 func (m *EventAnswerUpdated) Marshal() (dAtA []byte, err error) { 2521 size := m.Size() 2522 dAtA = make([]byte, size) 2523 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2524 if err != nil { 2525 return nil, err 2526 } 2527 return dAtA[:n], nil 2528 } 2529 2530 func (m *EventAnswerUpdated) MarshalTo(dAtA []byte) (int, error) { 2531 size := m.Size() 2532 return m.MarshalToSizedBuffer(dAtA[:size]) 2533 } 2534 2535 func (m *EventAnswerUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2536 i := len(dAtA) 2537 _ = i 2538 var l int 2539 _ = l 2540 n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UpdatedAt):]) 2541 if err6 != nil { 2542 return 0, err6 2543 } 2544 i -= n6 2545 i = encodeVarintOcr(dAtA, i, uint64(n6)) 2546 i-- 2547 dAtA[i] = 0x1a 2548 { 2549 size := m.RoundId.Size() 2550 i -= size 2551 if _, err := m.RoundId.MarshalTo(dAtA[i:]); err != nil { 2552 return 0, err 2553 } 2554 i = encodeVarintOcr(dAtA, i, uint64(size)) 2555 } 2556 i-- 2557 dAtA[i] = 0x12 2558 { 2559 size := m.Current.Size() 2560 i -= size 2561 if _, err := m.Current.MarshalTo(dAtA[i:]); err != nil { 2562 return 0, err 2563 } 2564 i = encodeVarintOcr(dAtA, i, uint64(size)) 2565 } 2566 i-- 2567 dAtA[i] = 0xa 2568 return len(dAtA) - i, nil 2569 } 2570 2571 func (m *EventNewRound) Marshal() (dAtA []byte, err error) { 2572 size := m.Size() 2573 dAtA = make([]byte, size) 2574 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2575 if err != nil { 2576 return nil, err 2577 } 2578 return dAtA[:n], nil 2579 } 2580 2581 func (m *EventNewRound) MarshalTo(dAtA []byte) (int, error) { 2582 size := m.Size() 2583 return m.MarshalToSizedBuffer(dAtA[:size]) 2584 } 2585 2586 func (m *EventNewRound) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2587 i := len(dAtA) 2588 _ = i 2589 var l int 2590 _ = l 2591 n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.StartedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartedAt):]) 2592 if err7 != nil { 2593 return 0, err7 2594 } 2595 i -= n7 2596 i = encodeVarintOcr(dAtA, i, uint64(n7)) 2597 i-- 2598 dAtA[i] = 0x1a 2599 if len(m.StartedBy) > 0 { 2600 i -= len(m.StartedBy) 2601 copy(dAtA[i:], m.StartedBy) 2602 i = encodeVarintOcr(dAtA, i, uint64(len(m.StartedBy))) 2603 i-- 2604 dAtA[i] = 0x12 2605 } 2606 { 2607 size := m.RoundId.Size() 2608 i -= size 2609 if _, err := m.RoundId.MarshalTo(dAtA[i:]); err != nil { 2610 return 0, err 2611 } 2612 i = encodeVarintOcr(dAtA, i, uint64(size)) 2613 } 2614 i-- 2615 dAtA[i] = 0xa 2616 return len(dAtA) - i, nil 2617 } 2618 2619 func (m *EventTransmitted) Marshal() (dAtA []byte, err error) { 2620 size := m.Size() 2621 dAtA = make([]byte, size) 2622 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2623 if err != nil { 2624 return nil, err 2625 } 2626 return dAtA[:n], nil 2627 } 2628 2629 func (m *EventTransmitted) MarshalTo(dAtA []byte) (int, error) { 2630 size := m.Size() 2631 return m.MarshalToSizedBuffer(dAtA[:size]) 2632 } 2633 2634 func (m *EventTransmitted) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2635 i := len(dAtA) 2636 _ = i 2637 var l int 2638 _ = l 2639 if m.Epoch != 0 { 2640 i = encodeVarintOcr(dAtA, i, uint64(m.Epoch)) 2641 i-- 2642 dAtA[i] = 0x10 2643 } 2644 if len(m.ConfigDigest) > 0 { 2645 i -= len(m.ConfigDigest) 2646 copy(dAtA[i:], m.ConfigDigest) 2647 i = encodeVarintOcr(dAtA, i, uint64(len(m.ConfigDigest))) 2648 i-- 2649 dAtA[i] = 0xa 2650 } 2651 return len(dAtA) - i, nil 2652 } 2653 2654 func (m *EventNewTransmission) Marshal() (dAtA []byte, err error) { 2655 size := m.Size() 2656 dAtA = make([]byte, size) 2657 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2658 if err != nil { 2659 return nil, err 2660 } 2661 return dAtA[:n], nil 2662 } 2663 2664 func (m *EventNewTransmission) MarshalTo(dAtA []byte) (int, error) { 2665 size := m.Size() 2666 return m.MarshalToSizedBuffer(dAtA[:size]) 2667 } 2668 2669 func (m *EventNewTransmission) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2670 i := len(dAtA) 2671 _ = i 2672 var l int 2673 _ = l 2674 if m.EpochAndRound != nil { 2675 { 2676 size, err := m.EpochAndRound.MarshalToSizedBuffer(dAtA[:i]) 2677 if err != nil { 2678 return 0, err 2679 } 2680 i -= size 2681 i = encodeVarintOcr(dAtA, i, uint64(size)) 2682 } 2683 i-- 2684 dAtA[i] = 0x4a 2685 } 2686 if len(m.ConfigDigest) > 0 { 2687 i -= len(m.ConfigDigest) 2688 copy(dAtA[i:], m.ConfigDigest) 2689 i = encodeVarintOcr(dAtA, i, uint64(len(m.ConfigDigest))) 2690 i-- 2691 dAtA[i] = 0x42 2692 } 2693 if len(m.Observers) > 0 { 2694 i -= len(m.Observers) 2695 copy(dAtA[i:], m.Observers) 2696 i = encodeVarintOcr(dAtA, i, uint64(len(m.Observers))) 2697 i-- 2698 dAtA[i] = 0x3a 2699 } 2700 if len(m.Observations) > 0 { 2701 for iNdEx := len(m.Observations) - 1; iNdEx >= 0; iNdEx-- { 2702 { 2703 size := m.Observations[iNdEx].Size() 2704 i -= size 2705 if _, err := m.Observations[iNdEx].MarshalTo(dAtA[i:]); err != nil { 2706 return 0, err 2707 } 2708 i = encodeVarintOcr(dAtA, i, uint64(size)) 2709 } 2710 i-- 2711 dAtA[i] = 0x32 2712 } 2713 } 2714 if m.ObservationsTimestamp != 0 { 2715 i = encodeVarintOcr(dAtA, i, uint64(m.ObservationsTimestamp)) 2716 i-- 2717 dAtA[i] = 0x28 2718 } 2719 if len(m.Transmitter) > 0 { 2720 i -= len(m.Transmitter) 2721 copy(dAtA[i:], m.Transmitter) 2722 i = encodeVarintOcr(dAtA, i, uint64(len(m.Transmitter))) 2723 i-- 2724 dAtA[i] = 0x22 2725 } 2726 { 2727 size := m.Answer.Size() 2728 i -= size 2729 if _, err := m.Answer.MarshalTo(dAtA[i:]); err != nil { 2730 return 0, err 2731 } 2732 i = encodeVarintOcr(dAtA, i, uint64(size)) 2733 } 2734 i-- 2735 dAtA[i] = 0x1a 2736 if m.AggregatorRoundId != 0 { 2737 i = encodeVarintOcr(dAtA, i, uint64(m.AggregatorRoundId)) 2738 i-- 2739 dAtA[i] = 0x10 2740 } 2741 if len(m.FeedId) > 0 { 2742 i -= len(m.FeedId) 2743 copy(dAtA[i:], m.FeedId) 2744 i = encodeVarintOcr(dAtA, i, uint64(len(m.FeedId))) 2745 i-- 2746 dAtA[i] = 0xa 2747 } 2748 return len(dAtA) - i, nil 2749 } 2750 2751 func (m *EventConfigSet) Marshal() (dAtA []byte, err error) { 2752 size := m.Size() 2753 dAtA = make([]byte, size) 2754 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2755 if err != nil { 2756 return nil, err 2757 } 2758 return dAtA[:n], nil 2759 } 2760 2761 func (m *EventConfigSet) MarshalTo(dAtA []byte) (int, error) { 2762 size := m.Size() 2763 return m.MarshalToSizedBuffer(dAtA[:size]) 2764 } 2765 2766 func (m *EventConfigSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2767 i := len(dAtA) 2768 _ = i 2769 var l int 2770 _ = l 2771 if m.ConfigInfo != nil { 2772 { 2773 size, err := m.ConfigInfo.MarshalToSizedBuffer(dAtA[:i]) 2774 if err != nil { 2775 return 0, err 2776 } 2777 i -= size 2778 i = encodeVarintOcr(dAtA, i, uint64(size)) 2779 } 2780 i-- 2781 dAtA[i] = 0x22 2782 } 2783 if m.Config != nil { 2784 { 2785 size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) 2786 if err != nil { 2787 return 0, err 2788 } 2789 i -= size 2790 i = encodeVarintOcr(dAtA, i, uint64(size)) 2791 } 2792 i-- 2793 dAtA[i] = 0x1a 2794 } 2795 if m.PreviousConfigBlockNumber != 0 { 2796 i = encodeVarintOcr(dAtA, i, uint64(m.PreviousConfigBlockNumber)) 2797 i-- 2798 dAtA[i] = 0x10 2799 } 2800 if len(m.ConfigDigest) > 0 { 2801 i -= len(m.ConfigDigest) 2802 copy(dAtA[i:], m.ConfigDigest) 2803 i = encodeVarintOcr(dAtA, i, uint64(len(m.ConfigDigest))) 2804 i-- 2805 dAtA[i] = 0xa 2806 } 2807 return len(dAtA) - i, nil 2808 } 2809 2810 func encodeVarintOcr(dAtA []byte, offset int, v uint64) int { 2811 offset -= sovOcr(v) 2812 base := offset 2813 for v >= 1<<7 { 2814 dAtA[offset] = uint8(v&0x7f | 0x80) 2815 v >>= 7 2816 offset++ 2817 } 2818 dAtA[offset] = uint8(v) 2819 return base 2820 } 2821 func (m *Params) Size() (n int) { 2822 if m == nil { 2823 return 0 2824 } 2825 var l int 2826 _ = l 2827 l = len(m.LinkDenom) 2828 if l > 0 { 2829 n += 1 + l + sovOcr(uint64(l)) 2830 } 2831 if m.PayoutBlockInterval != 0 { 2832 n += 1 + sovOcr(uint64(m.PayoutBlockInterval)) 2833 } 2834 l = len(m.ModuleAdmin) 2835 if l > 0 { 2836 n += 1 + l + sovOcr(uint64(l)) 2837 } 2838 return n 2839 } 2840 2841 func (m *FeedConfig) Size() (n int) { 2842 if m == nil { 2843 return 0 2844 } 2845 var l int 2846 _ = l 2847 if len(m.Signers) > 0 { 2848 for _, s := range m.Signers { 2849 l = len(s) 2850 n += 1 + l + sovOcr(uint64(l)) 2851 } 2852 } 2853 if len(m.Transmitters) > 0 { 2854 for _, s := range m.Transmitters { 2855 l = len(s) 2856 n += 1 + l + sovOcr(uint64(l)) 2857 } 2858 } 2859 if m.F != 0 { 2860 n += 1 + sovOcr(uint64(m.F)) 2861 } 2862 l = len(m.OnchainConfig) 2863 if l > 0 { 2864 n += 1 + l + sovOcr(uint64(l)) 2865 } 2866 if m.OffchainConfigVersion != 0 { 2867 n += 1 + sovOcr(uint64(m.OffchainConfigVersion)) 2868 } 2869 l = len(m.OffchainConfig) 2870 if l > 0 { 2871 n += 1 + l + sovOcr(uint64(l)) 2872 } 2873 if m.ModuleParams != nil { 2874 l = m.ModuleParams.Size() 2875 n += 1 + l + sovOcr(uint64(l)) 2876 } 2877 return n 2878 } 2879 2880 func (m *FeedConfigInfo) Size() (n int) { 2881 if m == nil { 2882 return 0 2883 } 2884 var l int 2885 _ = l 2886 l = len(m.LatestConfigDigest) 2887 if l > 0 { 2888 n += 1 + l + sovOcr(uint64(l)) 2889 } 2890 if m.F != 0 { 2891 n += 1 + sovOcr(uint64(m.F)) 2892 } 2893 if m.N != 0 { 2894 n += 1 + sovOcr(uint64(m.N)) 2895 } 2896 if m.ConfigCount != 0 { 2897 n += 1 + sovOcr(uint64(m.ConfigCount)) 2898 } 2899 if m.LatestConfigBlockNumber != 0 { 2900 n += 1 + sovOcr(uint64(m.LatestConfigBlockNumber)) 2901 } 2902 return n 2903 } 2904 2905 func (m *ModuleParams) Size() (n int) { 2906 if m == nil { 2907 return 0 2908 } 2909 var l int 2910 _ = l 2911 l = len(m.FeedId) 2912 if l > 0 { 2913 n += 1 + l + sovOcr(uint64(l)) 2914 } 2915 l = m.MinAnswer.Size() 2916 n += 1 + l + sovOcr(uint64(l)) 2917 l = m.MaxAnswer.Size() 2918 n += 1 + l + sovOcr(uint64(l)) 2919 l = m.LinkPerObservation.Size() 2920 n += 1 + l + sovOcr(uint64(l)) 2921 l = m.LinkPerTransmission.Size() 2922 n += 1 + l + sovOcr(uint64(l)) 2923 l = len(m.LinkDenom) 2924 if l > 0 { 2925 n += 1 + l + sovOcr(uint64(l)) 2926 } 2927 if m.UniqueReports { 2928 n += 2 2929 } 2930 l = len(m.Description) 2931 if l > 0 { 2932 n += 1 + l + sovOcr(uint64(l)) 2933 } 2934 l = len(m.FeedAdmin) 2935 if l > 0 { 2936 n += 1 + l + sovOcr(uint64(l)) 2937 } 2938 l = len(m.BillingAdmin) 2939 if l > 0 { 2940 n += 1 + l + sovOcr(uint64(l)) 2941 } 2942 return n 2943 } 2944 2945 func (m *ContractConfig) Size() (n int) { 2946 if m == nil { 2947 return 0 2948 } 2949 var l int 2950 _ = l 2951 if m.ConfigCount != 0 { 2952 n += 1 + sovOcr(uint64(m.ConfigCount)) 2953 } 2954 if len(m.Signers) > 0 { 2955 for _, s := range m.Signers { 2956 l = len(s) 2957 n += 1 + l + sovOcr(uint64(l)) 2958 } 2959 } 2960 if len(m.Transmitters) > 0 { 2961 for _, s := range m.Transmitters { 2962 l = len(s) 2963 n += 1 + l + sovOcr(uint64(l)) 2964 } 2965 } 2966 if m.F != 0 { 2967 n += 1 + sovOcr(uint64(m.F)) 2968 } 2969 l = len(m.OnchainConfig) 2970 if l > 0 { 2971 n += 1 + l + sovOcr(uint64(l)) 2972 } 2973 if m.OffchainConfigVersion != 0 { 2974 n += 1 + sovOcr(uint64(m.OffchainConfigVersion)) 2975 } 2976 l = len(m.OffchainConfig) 2977 if l > 0 { 2978 n += 1 + l + sovOcr(uint64(l)) 2979 } 2980 return n 2981 } 2982 2983 func (m *SetConfigProposal) Size() (n int) { 2984 if m == nil { 2985 return 0 2986 } 2987 var l int 2988 _ = l 2989 l = len(m.Title) 2990 if l > 0 { 2991 n += 1 + l + sovOcr(uint64(l)) 2992 } 2993 l = len(m.Description) 2994 if l > 0 { 2995 n += 1 + l + sovOcr(uint64(l)) 2996 } 2997 if m.Config != nil { 2998 l = m.Config.Size() 2999 n += 1 + l + sovOcr(uint64(l)) 3000 } 3001 return n 3002 } 3003 3004 func (m *FeedProperties) Size() (n int) { 3005 if m == nil { 3006 return 0 3007 } 3008 var l int 3009 _ = l 3010 l = len(m.FeedId) 3011 if l > 0 { 3012 n += 1 + l + sovOcr(uint64(l)) 3013 } 3014 if m.F != 0 { 3015 n += 1 + sovOcr(uint64(m.F)) 3016 } 3017 l = len(m.OnchainConfig) 3018 if l > 0 { 3019 n += 1 + l + sovOcr(uint64(l)) 3020 } 3021 if m.OffchainConfigVersion != 0 { 3022 n += 1 + sovOcr(uint64(m.OffchainConfigVersion)) 3023 } 3024 l = len(m.OffchainConfig) 3025 if l > 0 { 3026 n += 1 + l + sovOcr(uint64(l)) 3027 } 3028 l = m.MinAnswer.Size() 3029 n += 1 + l + sovOcr(uint64(l)) 3030 l = m.MaxAnswer.Size() 3031 n += 1 + l + sovOcr(uint64(l)) 3032 l = m.LinkPerObservation.Size() 3033 n += 1 + l + sovOcr(uint64(l)) 3034 l = m.LinkPerTransmission.Size() 3035 n += 1 + l + sovOcr(uint64(l)) 3036 if m.UniqueReports { 3037 n += 2 3038 } 3039 l = len(m.Description) 3040 if l > 0 { 3041 n += 1 + l + sovOcr(uint64(l)) 3042 } 3043 return n 3044 } 3045 3046 func (m *SetBatchConfigProposal) Size() (n int) { 3047 if m == nil { 3048 return 0 3049 } 3050 var l int 3051 _ = l 3052 l = len(m.Title) 3053 if l > 0 { 3054 n += 1 + l + sovOcr(uint64(l)) 3055 } 3056 l = len(m.Description) 3057 if l > 0 { 3058 n += 1 + l + sovOcr(uint64(l)) 3059 } 3060 if len(m.Signers) > 0 { 3061 for _, s := range m.Signers { 3062 l = len(s) 3063 n += 1 + l + sovOcr(uint64(l)) 3064 } 3065 } 3066 if len(m.Transmitters) > 0 { 3067 for _, s := range m.Transmitters { 3068 l = len(s) 3069 n += 1 + l + sovOcr(uint64(l)) 3070 } 3071 } 3072 l = len(m.LinkDenom) 3073 if l > 0 { 3074 n += 1 + l + sovOcr(uint64(l)) 3075 } 3076 if len(m.FeedProperties) > 0 { 3077 for _, e := range m.FeedProperties { 3078 l = e.Size() 3079 n += 1 + l + sovOcr(uint64(l)) 3080 } 3081 } 3082 return n 3083 } 3084 3085 func (m *OracleObservationsCounts) Size() (n int) { 3086 if m == nil { 3087 return 0 3088 } 3089 var l int 3090 _ = l 3091 if len(m.Counts) > 0 { 3092 l = 0 3093 for _, e := range m.Counts { 3094 l += sovOcr(uint64(e)) 3095 } 3096 n += 1 + sovOcr(uint64(l)) + l 3097 } 3098 return n 3099 } 3100 3101 func (m *GasReimbursements) Size() (n int) { 3102 if m == nil { 3103 return 0 3104 } 3105 var l int 3106 _ = l 3107 if len(m.Reimbursements) > 0 { 3108 for _, e := range m.Reimbursements { 3109 l = e.Size() 3110 n += 1 + l + sovOcr(uint64(l)) 3111 } 3112 } 3113 return n 3114 } 3115 3116 func (m *Payee) Size() (n int) { 3117 if m == nil { 3118 return 0 3119 } 3120 var l int 3121 _ = l 3122 l = len(m.TransmitterAddr) 3123 if l > 0 { 3124 n += 1 + l + sovOcr(uint64(l)) 3125 } 3126 l = len(m.PaymentAddr) 3127 if l > 0 { 3128 n += 1 + l + sovOcr(uint64(l)) 3129 } 3130 return n 3131 } 3132 3133 func (m *Transmission) Size() (n int) { 3134 if m == nil { 3135 return 0 3136 } 3137 var l int 3138 _ = l 3139 l = m.Answer.Size() 3140 n += 1 + l + sovOcr(uint64(l)) 3141 if m.ObservationsTimestamp != 0 { 3142 n += 1 + sovOcr(uint64(m.ObservationsTimestamp)) 3143 } 3144 if m.TransmissionTimestamp != 0 { 3145 n += 1 + sovOcr(uint64(m.TransmissionTimestamp)) 3146 } 3147 return n 3148 } 3149 3150 func (m *EpochAndRound) Size() (n int) { 3151 if m == nil { 3152 return 0 3153 } 3154 var l int 3155 _ = l 3156 if m.Epoch != 0 { 3157 n += 1 + sovOcr(uint64(m.Epoch)) 3158 } 3159 if m.Round != 0 { 3160 n += 1 + sovOcr(uint64(m.Round)) 3161 } 3162 return n 3163 } 3164 3165 func (m *Report) Size() (n int) { 3166 if m == nil { 3167 return 0 3168 } 3169 var l int 3170 _ = l 3171 if m.ObservationsTimestamp != 0 { 3172 n += 1 + sovOcr(uint64(m.ObservationsTimestamp)) 3173 } 3174 l = len(m.Observers) 3175 if l > 0 { 3176 n += 1 + l + sovOcr(uint64(l)) 3177 } 3178 if len(m.Observations) > 0 { 3179 for _, e := range m.Observations { 3180 l = e.Size() 3181 n += 1 + l + sovOcr(uint64(l)) 3182 } 3183 } 3184 return n 3185 } 3186 3187 func (m *ReportToSign) Size() (n int) { 3188 if m == nil { 3189 return 0 3190 } 3191 var l int 3192 _ = l 3193 l = len(m.ConfigDigest) 3194 if l > 0 { 3195 n += 1 + l + sovOcr(uint64(l)) 3196 } 3197 if m.Epoch != 0 { 3198 n += 1 + sovOcr(uint64(m.Epoch)) 3199 } 3200 if m.Round != 0 { 3201 n += 1 + sovOcr(uint64(m.Round)) 3202 } 3203 l = len(m.ExtraHash) 3204 if l > 0 { 3205 n += 1 + l + sovOcr(uint64(l)) 3206 } 3207 l = len(m.Report) 3208 if l > 0 { 3209 n += 1 + l + sovOcr(uint64(l)) 3210 } 3211 return n 3212 } 3213 3214 func (m *EventOraclePaid) Size() (n int) { 3215 if m == nil { 3216 return 0 3217 } 3218 var l int 3219 _ = l 3220 l = len(m.TransmitterAddr) 3221 if l > 0 { 3222 n += 1 + l + sovOcr(uint64(l)) 3223 } 3224 l = len(m.PayeeAddr) 3225 if l > 0 { 3226 n += 1 + l + sovOcr(uint64(l)) 3227 } 3228 l = m.Amount.Size() 3229 n += 1 + l + sovOcr(uint64(l)) 3230 return n 3231 } 3232 3233 func (m *EventAnswerUpdated) Size() (n int) { 3234 if m == nil { 3235 return 0 3236 } 3237 var l int 3238 _ = l 3239 l = m.Current.Size() 3240 n += 1 + l + sovOcr(uint64(l)) 3241 l = m.RoundId.Size() 3242 n += 1 + l + sovOcr(uint64(l)) 3243 l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UpdatedAt) 3244 n += 1 + l + sovOcr(uint64(l)) 3245 return n 3246 } 3247 3248 func (m *EventNewRound) Size() (n int) { 3249 if m == nil { 3250 return 0 3251 } 3252 var l int 3253 _ = l 3254 l = m.RoundId.Size() 3255 n += 1 + l + sovOcr(uint64(l)) 3256 l = len(m.StartedBy) 3257 if l > 0 { 3258 n += 1 + l + sovOcr(uint64(l)) 3259 } 3260 l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StartedAt) 3261 n += 1 + l + sovOcr(uint64(l)) 3262 return n 3263 } 3264 3265 func (m *EventTransmitted) Size() (n int) { 3266 if m == nil { 3267 return 0 3268 } 3269 var l int 3270 _ = l 3271 l = len(m.ConfigDigest) 3272 if l > 0 { 3273 n += 1 + l + sovOcr(uint64(l)) 3274 } 3275 if m.Epoch != 0 { 3276 n += 1 + sovOcr(uint64(m.Epoch)) 3277 } 3278 return n 3279 } 3280 3281 func (m *EventNewTransmission) Size() (n int) { 3282 if m == nil { 3283 return 0 3284 } 3285 var l int 3286 _ = l 3287 l = len(m.FeedId) 3288 if l > 0 { 3289 n += 1 + l + sovOcr(uint64(l)) 3290 } 3291 if m.AggregatorRoundId != 0 { 3292 n += 1 + sovOcr(uint64(m.AggregatorRoundId)) 3293 } 3294 l = m.Answer.Size() 3295 n += 1 + l + sovOcr(uint64(l)) 3296 l = len(m.Transmitter) 3297 if l > 0 { 3298 n += 1 + l + sovOcr(uint64(l)) 3299 } 3300 if m.ObservationsTimestamp != 0 { 3301 n += 1 + sovOcr(uint64(m.ObservationsTimestamp)) 3302 } 3303 if len(m.Observations) > 0 { 3304 for _, e := range m.Observations { 3305 l = e.Size() 3306 n += 1 + l + sovOcr(uint64(l)) 3307 } 3308 } 3309 l = len(m.Observers) 3310 if l > 0 { 3311 n += 1 + l + sovOcr(uint64(l)) 3312 } 3313 l = len(m.ConfigDigest) 3314 if l > 0 { 3315 n += 1 + l + sovOcr(uint64(l)) 3316 } 3317 if m.EpochAndRound != nil { 3318 l = m.EpochAndRound.Size() 3319 n += 1 + l + sovOcr(uint64(l)) 3320 } 3321 return n 3322 } 3323 3324 func (m *EventConfigSet) Size() (n int) { 3325 if m == nil { 3326 return 0 3327 } 3328 var l int 3329 _ = l 3330 l = len(m.ConfigDigest) 3331 if l > 0 { 3332 n += 1 + l + sovOcr(uint64(l)) 3333 } 3334 if m.PreviousConfigBlockNumber != 0 { 3335 n += 1 + sovOcr(uint64(m.PreviousConfigBlockNumber)) 3336 } 3337 if m.Config != nil { 3338 l = m.Config.Size() 3339 n += 1 + l + sovOcr(uint64(l)) 3340 } 3341 if m.ConfigInfo != nil { 3342 l = m.ConfigInfo.Size() 3343 n += 1 + l + sovOcr(uint64(l)) 3344 } 3345 return n 3346 } 3347 3348 func sovOcr(x uint64) (n int) { 3349 return (math_bits.Len64(x|1) + 6) / 7 3350 } 3351 func sozOcr(x uint64) (n int) { 3352 return sovOcr(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3353 } 3354 func (m *Params) Unmarshal(dAtA []byte) error { 3355 l := len(dAtA) 3356 iNdEx := 0 3357 for iNdEx < l { 3358 preIndex := iNdEx 3359 var wire uint64 3360 for shift := uint(0); ; shift += 7 { 3361 if shift >= 64 { 3362 return ErrIntOverflowOcr 3363 } 3364 if iNdEx >= l { 3365 return io.ErrUnexpectedEOF 3366 } 3367 b := dAtA[iNdEx] 3368 iNdEx++ 3369 wire |= uint64(b&0x7F) << shift 3370 if b < 0x80 { 3371 break 3372 } 3373 } 3374 fieldNum := int32(wire >> 3) 3375 wireType := int(wire & 0x7) 3376 if wireType == 4 { 3377 return fmt.Errorf("proto: Params: wiretype end group for non-group") 3378 } 3379 if fieldNum <= 0 { 3380 return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) 3381 } 3382 switch fieldNum { 3383 case 1: 3384 if wireType != 2 { 3385 return fmt.Errorf("proto: wrong wireType = %d for field LinkDenom", wireType) 3386 } 3387 var stringLen uint64 3388 for shift := uint(0); ; shift += 7 { 3389 if shift >= 64 { 3390 return ErrIntOverflowOcr 3391 } 3392 if iNdEx >= l { 3393 return io.ErrUnexpectedEOF 3394 } 3395 b := dAtA[iNdEx] 3396 iNdEx++ 3397 stringLen |= uint64(b&0x7F) << shift 3398 if b < 0x80 { 3399 break 3400 } 3401 } 3402 intStringLen := int(stringLen) 3403 if intStringLen < 0 { 3404 return ErrInvalidLengthOcr 3405 } 3406 postIndex := iNdEx + intStringLen 3407 if postIndex < 0 { 3408 return ErrInvalidLengthOcr 3409 } 3410 if postIndex > l { 3411 return io.ErrUnexpectedEOF 3412 } 3413 m.LinkDenom = string(dAtA[iNdEx:postIndex]) 3414 iNdEx = postIndex 3415 case 2: 3416 if wireType != 0 { 3417 return fmt.Errorf("proto: wrong wireType = %d for field PayoutBlockInterval", wireType) 3418 } 3419 m.PayoutBlockInterval = 0 3420 for shift := uint(0); ; shift += 7 { 3421 if shift >= 64 { 3422 return ErrIntOverflowOcr 3423 } 3424 if iNdEx >= l { 3425 return io.ErrUnexpectedEOF 3426 } 3427 b := dAtA[iNdEx] 3428 iNdEx++ 3429 m.PayoutBlockInterval |= uint64(b&0x7F) << shift 3430 if b < 0x80 { 3431 break 3432 } 3433 } 3434 case 3: 3435 if wireType != 2 { 3436 return fmt.Errorf("proto: wrong wireType = %d for field ModuleAdmin", wireType) 3437 } 3438 var stringLen uint64 3439 for shift := uint(0); ; shift += 7 { 3440 if shift >= 64 { 3441 return ErrIntOverflowOcr 3442 } 3443 if iNdEx >= l { 3444 return io.ErrUnexpectedEOF 3445 } 3446 b := dAtA[iNdEx] 3447 iNdEx++ 3448 stringLen |= uint64(b&0x7F) << shift 3449 if b < 0x80 { 3450 break 3451 } 3452 } 3453 intStringLen := int(stringLen) 3454 if intStringLen < 0 { 3455 return ErrInvalidLengthOcr 3456 } 3457 postIndex := iNdEx + intStringLen 3458 if postIndex < 0 { 3459 return ErrInvalidLengthOcr 3460 } 3461 if postIndex > l { 3462 return io.ErrUnexpectedEOF 3463 } 3464 m.ModuleAdmin = string(dAtA[iNdEx:postIndex]) 3465 iNdEx = postIndex 3466 default: 3467 iNdEx = preIndex 3468 skippy, err := skipOcr(dAtA[iNdEx:]) 3469 if err != nil { 3470 return err 3471 } 3472 if (skippy < 0) || (iNdEx+skippy) < 0 { 3473 return ErrInvalidLengthOcr 3474 } 3475 if (iNdEx + skippy) > l { 3476 return io.ErrUnexpectedEOF 3477 } 3478 iNdEx += skippy 3479 } 3480 } 3481 3482 if iNdEx > l { 3483 return io.ErrUnexpectedEOF 3484 } 3485 return nil 3486 } 3487 func (m *FeedConfig) Unmarshal(dAtA []byte) error { 3488 l := len(dAtA) 3489 iNdEx := 0 3490 for iNdEx < l { 3491 preIndex := iNdEx 3492 var wire uint64 3493 for shift := uint(0); ; shift += 7 { 3494 if shift >= 64 { 3495 return ErrIntOverflowOcr 3496 } 3497 if iNdEx >= l { 3498 return io.ErrUnexpectedEOF 3499 } 3500 b := dAtA[iNdEx] 3501 iNdEx++ 3502 wire |= uint64(b&0x7F) << shift 3503 if b < 0x80 { 3504 break 3505 } 3506 } 3507 fieldNum := int32(wire >> 3) 3508 wireType := int(wire & 0x7) 3509 if wireType == 4 { 3510 return fmt.Errorf("proto: FeedConfig: wiretype end group for non-group") 3511 } 3512 if fieldNum <= 0 { 3513 return fmt.Errorf("proto: FeedConfig: illegal tag %d (wire type %d)", fieldNum, wire) 3514 } 3515 switch fieldNum { 3516 case 1: 3517 if wireType != 2 { 3518 return fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) 3519 } 3520 var stringLen uint64 3521 for shift := uint(0); ; shift += 7 { 3522 if shift >= 64 { 3523 return ErrIntOverflowOcr 3524 } 3525 if iNdEx >= l { 3526 return io.ErrUnexpectedEOF 3527 } 3528 b := dAtA[iNdEx] 3529 iNdEx++ 3530 stringLen |= uint64(b&0x7F) << shift 3531 if b < 0x80 { 3532 break 3533 } 3534 } 3535 intStringLen := int(stringLen) 3536 if intStringLen < 0 { 3537 return ErrInvalidLengthOcr 3538 } 3539 postIndex := iNdEx + intStringLen 3540 if postIndex < 0 { 3541 return ErrInvalidLengthOcr 3542 } 3543 if postIndex > l { 3544 return io.ErrUnexpectedEOF 3545 } 3546 m.Signers = append(m.Signers, string(dAtA[iNdEx:postIndex])) 3547 iNdEx = postIndex 3548 case 2: 3549 if wireType != 2 { 3550 return fmt.Errorf("proto: wrong wireType = %d for field Transmitters", wireType) 3551 } 3552 var stringLen uint64 3553 for shift := uint(0); ; shift += 7 { 3554 if shift >= 64 { 3555 return ErrIntOverflowOcr 3556 } 3557 if iNdEx >= l { 3558 return io.ErrUnexpectedEOF 3559 } 3560 b := dAtA[iNdEx] 3561 iNdEx++ 3562 stringLen |= uint64(b&0x7F) << shift 3563 if b < 0x80 { 3564 break 3565 } 3566 } 3567 intStringLen := int(stringLen) 3568 if intStringLen < 0 { 3569 return ErrInvalidLengthOcr 3570 } 3571 postIndex := iNdEx + intStringLen 3572 if postIndex < 0 { 3573 return ErrInvalidLengthOcr 3574 } 3575 if postIndex > l { 3576 return io.ErrUnexpectedEOF 3577 } 3578 m.Transmitters = append(m.Transmitters, string(dAtA[iNdEx:postIndex])) 3579 iNdEx = postIndex 3580 case 3: 3581 if wireType != 0 { 3582 return fmt.Errorf("proto: wrong wireType = %d for field F", wireType) 3583 } 3584 m.F = 0 3585 for shift := uint(0); ; shift += 7 { 3586 if shift >= 64 { 3587 return ErrIntOverflowOcr 3588 } 3589 if iNdEx >= l { 3590 return io.ErrUnexpectedEOF 3591 } 3592 b := dAtA[iNdEx] 3593 iNdEx++ 3594 m.F |= uint32(b&0x7F) << shift 3595 if b < 0x80 { 3596 break 3597 } 3598 } 3599 case 4: 3600 if wireType != 2 { 3601 return fmt.Errorf("proto: wrong wireType = %d for field OnchainConfig", wireType) 3602 } 3603 var byteLen int 3604 for shift := uint(0); ; shift += 7 { 3605 if shift >= 64 { 3606 return ErrIntOverflowOcr 3607 } 3608 if iNdEx >= l { 3609 return io.ErrUnexpectedEOF 3610 } 3611 b := dAtA[iNdEx] 3612 iNdEx++ 3613 byteLen |= int(b&0x7F) << shift 3614 if b < 0x80 { 3615 break 3616 } 3617 } 3618 if byteLen < 0 { 3619 return ErrInvalidLengthOcr 3620 } 3621 postIndex := iNdEx + byteLen 3622 if postIndex < 0 { 3623 return ErrInvalidLengthOcr 3624 } 3625 if postIndex > l { 3626 return io.ErrUnexpectedEOF 3627 } 3628 m.OnchainConfig = append(m.OnchainConfig[:0], dAtA[iNdEx:postIndex]...) 3629 if m.OnchainConfig == nil { 3630 m.OnchainConfig = []byte{} 3631 } 3632 iNdEx = postIndex 3633 case 5: 3634 if wireType != 0 { 3635 return fmt.Errorf("proto: wrong wireType = %d for field OffchainConfigVersion", wireType) 3636 } 3637 m.OffchainConfigVersion = 0 3638 for shift := uint(0); ; shift += 7 { 3639 if shift >= 64 { 3640 return ErrIntOverflowOcr 3641 } 3642 if iNdEx >= l { 3643 return io.ErrUnexpectedEOF 3644 } 3645 b := dAtA[iNdEx] 3646 iNdEx++ 3647 m.OffchainConfigVersion |= uint64(b&0x7F) << shift 3648 if b < 0x80 { 3649 break 3650 } 3651 } 3652 case 6: 3653 if wireType != 2 { 3654 return fmt.Errorf("proto: wrong wireType = %d for field OffchainConfig", wireType) 3655 } 3656 var byteLen int 3657 for shift := uint(0); ; shift += 7 { 3658 if shift >= 64 { 3659 return ErrIntOverflowOcr 3660 } 3661 if iNdEx >= l { 3662 return io.ErrUnexpectedEOF 3663 } 3664 b := dAtA[iNdEx] 3665 iNdEx++ 3666 byteLen |= int(b&0x7F) << shift 3667 if b < 0x80 { 3668 break 3669 } 3670 } 3671 if byteLen < 0 { 3672 return ErrInvalidLengthOcr 3673 } 3674 postIndex := iNdEx + byteLen 3675 if postIndex < 0 { 3676 return ErrInvalidLengthOcr 3677 } 3678 if postIndex > l { 3679 return io.ErrUnexpectedEOF 3680 } 3681 m.OffchainConfig = append(m.OffchainConfig[:0], dAtA[iNdEx:postIndex]...) 3682 if m.OffchainConfig == nil { 3683 m.OffchainConfig = []byte{} 3684 } 3685 iNdEx = postIndex 3686 case 7: 3687 if wireType != 2 { 3688 return fmt.Errorf("proto: wrong wireType = %d for field ModuleParams", wireType) 3689 } 3690 var msglen int 3691 for shift := uint(0); ; shift += 7 { 3692 if shift >= 64 { 3693 return ErrIntOverflowOcr 3694 } 3695 if iNdEx >= l { 3696 return io.ErrUnexpectedEOF 3697 } 3698 b := dAtA[iNdEx] 3699 iNdEx++ 3700 msglen |= int(b&0x7F) << shift 3701 if b < 0x80 { 3702 break 3703 } 3704 } 3705 if msglen < 0 { 3706 return ErrInvalidLengthOcr 3707 } 3708 postIndex := iNdEx + msglen 3709 if postIndex < 0 { 3710 return ErrInvalidLengthOcr 3711 } 3712 if postIndex > l { 3713 return io.ErrUnexpectedEOF 3714 } 3715 if m.ModuleParams == nil { 3716 m.ModuleParams = &ModuleParams{} 3717 } 3718 if err := m.ModuleParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3719 return err 3720 } 3721 iNdEx = postIndex 3722 default: 3723 iNdEx = preIndex 3724 skippy, err := skipOcr(dAtA[iNdEx:]) 3725 if err != nil { 3726 return err 3727 } 3728 if (skippy < 0) || (iNdEx+skippy) < 0 { 3729 return ErrInvalidLengthOcr 3730 } 3731 if (iNdEx + skippy) > l { 3732 return io.ErrUnexpectedEOF 3733 } 3734 iNdEx += skippy 3735 } 3736 } 3737 3738 if iNdEx > l { 3739 return io.ErrUnexpectedEOF 3740 } 3741 return nil 3742 } 3743 func (m *FeedConfigInfo) Unmarshal(dAtA []byte) error { 3744 l := len(dAtA) 3745 iNdEx := 0 3746 for iNdEx < l { 3747 preIndex := iNdEx 3748 var wire uint64 3749 for shift := uint(0); ; shift += 7 { 3750 if shift >= 64 { 3751 return ErrIntOverflowOcr 3752 } 3753 if iNdEx >= l { 3754 return io.ErrUnexpectedEOF 3755 } 3756 b := dAtA[iNdEx] 3757 iNdEx++ 3758 wire |= uint64(b&0x7F) << shift 3759 if b < 0x80 { 3760 break 3761 } 3762 } 3763 fieldNum := int32(wire >> 3) 3764 wireType := int(wire & 0x7) 3765 if wireType == 4 { 3766 return fmt.Errorf("proto: FeedConfigInfo: wiretype end group for non-group") 3767 } 3768 if fieldNum <= 0 { 3769 return fmt.Errorf("proto: FeedConfigInfo: illegal tag %d (wire type %d)", fieldNum, wire) 3770 } 3771 switch fieldNum { 3772 case 1: 3773 if wireType != 2 { 3774 return fmt.Errorf("proto: wrong wireType = %d for field LatestConfigDigest", wireType) 3775 } 3776 var byteLen int 3777 for shift := uint(0); ; shift += 7 { 3778 if shift >= 64 { 3779 return ErrIntOverflowOcr 3780 } 3781 if iNdEx >= l { 3782 return io.ErrUnexpectedEOF 3783 } 3784 b := dAtA[iNdEx] 3785 iNdEx++ 3786 byteLen |= int(b&0x7F) << shift 3787 if b < 0x80 { 3788 break 3789 } 3790 } 3791 if byteLen < 0 { 3792 return ErrInvalidLengthOcr 3793 } 3794 postIndex := iNdEx + byteLen 3795 if postIndex < 0 { 3796 return ErrInvalidLengthOcr 3797 } 3798 if postIndex > l { 3799 return io.ErrUnexpectedEOF 3800 } 3801 m.LatestConfigDigest = append(m.LatestConfigDigest[:0], dAtA[iNdEx:postIndex]...) 3802 if m.LatestConfigDigest == nil { 3803 m.LatestConfigDigest = []byte{} 3804 } 3805 iNdEx = postIndex 3806 case 2: 3807 if wireType != 0 { 3808 return fmt.Errorf("proto: wrong wireType = %d for field F", wireType) 3809 } 3810 m.F = 0 3811 for shift := uint(0); ; shift += 7 { 3812 if shift >= 64 { 3813 return ErrIntOverflowOcr 3814 } 3815 if iNdEx >= l { 3816 return io.ErrUnexpectedEOF 3817 } 3818 b := dAtA[iNdEx] 3819 iNdEx++ 3820 m.F |= uint32(b&0x7F) << shift 3821 if b < 0x80 { 3822 break 3823 } 3824 } 3825 case 3: 3826 if wireType != 0 { 3827 return fmt.Errorf("proto: wrong wireType = %d for field N", wireType) 3828 } 3829 m.N = 0 3830 for shift := uint(0); ; shift += 7 { 3831 if shift >= 64 { 3832 return ErrIntOverflowOcr 3833 } 3834 if iNdEx >= l { 3835 return io.ErrUnexpectedEOF 3836 } 3837 b := dAtA[iNdEx] 3838 iNdEx++ 3839 m.N |= uint32(b&0x7F) << shift 3840 if b < 0x80 { 3841 break 3842 } 3843 } 3844 case 4: 3845 if wireType != 0 { 3846 return fmt.Errorf("proto: wrong wireType = %d for field ConfigCount", wireType) 3847 } 3848 m.ConfigCount = 0 3849 for shift := uint(0); ; shift += 7 { 3850 if shift >= 64 { 3851 return ErrIntOverflowOcr 3852 } 3853 if iNdEx >= l { 3854 return io.ErrUnexpectedEOF 3855 } 3856 b := dAtA[iNdEx] 3857 iNdEx++ 3858 m.ConfigCount |= uint64(b&0x7F) << shift 3859 if b < 0x80 { 3860 break 3861 } 3862 } 3863 case 5: 3864 if wireType != 0 { 3865 return fmt.Errorf("proto: wrong wireType = %d for field LatestConfigBlockNumber", wireType) 3866 } 3867 m.LatestConfigBlockNumber = 0 3868 for shift := uint(0); ; shift += 7 { 3869 if shift >= 64 { 3870 return ErrIntOverflowOcr 3871 } 3872 if iNdEx >= l { 3873 return io.ErrUnexpectedEOF 3874 } 3875 b := dAtA[iNdEx] 3876 iNdEx++ 3877 m.LatestConfigBlockNumber |= int64(b&0x7F) << shift 3878 if b < 0x80 { 3879 break 3880 } 3881 } 3882 default: 3883 iNdEx = preIndex 3884 skippy, err := skipOcr(dAtA[iNdEx:]) 3885 if err != nil { 3886 return err 3887 } 3888 if (skippy < 0) || (iNdEx+skippy) < 0 { 3889 return ErrInvalidLengthOcr 3890 } 3891 if (iNdEx + skippy) > l { 3892 return io.ErrUnexpectedEOF 3893 } 3894 iNdEx += skippy 3895 } 3896 } 3897 3898 if iNdEx > l { 3899 return io.ErrUnexpectedEOF 3900 } 3901 return nil 3902 } 3903 func (m *ModuleParams) Unmarshal(dAtA []byte) error { 3904 l := len(dAtA) 3905 iNdEx := 0 3906 for iNdEx < l { 3907 preIndex := iNdEx 3908 var wire uint64 3909 for shift := uint(0); ; shift += 7 { 3910 if shift >= 64 { 3911 return ErrIntOverflowOcr 3912 } 3913 if iNdEx >= l { 3914 return io.ErrUnexpectedEOF 3915 } 3916 b := dAtA[iNdEx] 3917 iNdEx++ 3918 wire |= uint64(b&0x7F) << shift 3919 if b < 0x80 { 3920 break 3921 } 3922 } 3923 fieldNum := int32(wire >> 3) 3924 wireType := int(wire & 0x7) 3925 if wireType == 4 { 3926 return fmt.Errorf("proto: ModuleParams: wiretype end group for non-group") 3927 } 3928 if fieldNum <= 0 { 3929 return fmt.Errorf("proto: ModuleParams: illegal tag %d (wire type %d)", fieldNum, wire) 3930 } 3931 switch fieldNum { 3932 case 1: 3933 if wireType != 2 { 3934 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 3935 } 3936 var stringLen uint64 3937 for shift := uint(0); ; shift += 7 { 3938 if shift >= 64 { 3939 return ErrIntOverflowOcr 3940 } 3941 if iNdEx >= l { 3942 return io.ErrUnexpectedEOF 3943 } 3944 b := dAtA[iNdEx] 3945 iNdEx++ 3946 stringLen |= uint64(b&0x7F) << shift 3947 if b < 0x80 { 3948 break 3949 } 3950 } 3951 intStringLen := int(stringLen) 3952 if intStringLen < 0 { 3953 return ErrInvalidLengthOcr 3954 } 3955 postIndex := iNdEx + intStringLen 3956 if postIndex < 0 { 3957 return ErrInvalidLengthOcr 3958 } 3959 if postIndex > l { 3960 return io.ErrUnexpectedEOF 3961 } 3962 m.FeedId = string(dAtA[iNdEx:postIndex]) 3963 iNdEx = postIndex 3964 case 2: 3965 if wireType != 2 { 3966 return fmt.Errorf("proto: wrong wireType = %d for field MinAnswer", wireType) 3967 } 3968 var stringLen uint64 3969 for shift := uint(0); ; shift += 7 { 3970 if shift >= 64 { 3971 return ErrIntOverflowOcr 3972 } 3973 if iNdEx >= l { 3974 return io.ErrUnexpectedEOF 3975 } 3976 b := dAtA[iNdEx] 3977 iNdEx++ 3978 stringLen |= uint64(b&0x7F) << shift 3979 if b < 0x80 { 3980 break 3981 } 3982 } 3983 intStringLen := int(stringLen) 3984 if intStringLen < 0 { 3985 return ErrInvalidLengthOcr 3986 } 3987 postIndex := iNdEx + intStringLen 3988 if postIndex < 0 { 3989 return ErrInvalidLengthOcr 3990 } 3991 if postIndex > l { 3992 return io.ErrUnexpectedEOF 3993 } 3994 if err := m.MinAnswer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3995 return err 3996 } 3997 iNdEx = postIndex 3998 case 3: 3999 if wireType != 2 { 4000 return fmt.Errorf("proto: wrong wireType = %d for field MaxAnswer", wireType) 4001 } 4002 var stringLen uint64 4003 for shift := uint(0); ; shift += 7 { 4004 if shift >= 64 { 4005 return ErrIntOverflowOcr 4006 } 4007 if iNdEx >= l { 4008 return io.ErrUnexpectedEOF 4009 } 4010 b := dAtA[iNdEx] 4011 iNdEx++ 4012 stringLen |= uint64(b&0x7F) << shift 4013 if b < 0x80 { 4014 break 4015 } 4016 } 4017 intStringLen := int(stringLen) 4018 if intStringLen < 0 { 4019 return ErrInvalidLengthOcr 4020 } 4021 postIndex := iNdEx + intStringLen 4022 if postIndex < 0 { 4023 return ErrInvalidLengthOcr 4024 } 4025 if postIndex > l { 4026 return io.ErrUnexpectedEOF 4027 } 4028 if err := m.MaxAnswer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4029 return err 4030 } 4031 iNdEx = postIndex 4032 case 4: 4033 if wireType != 2 { 4034 return fmt.Errorf("proto: wrong wireType = %d for field LinkPerObservation", wireType) 4035 } 4036 var stringLen uint64 4037 for shift := uint(0); ; shift += 7 { 4038 if shift >= 64 { 4039 return ErrIntOverflowOcr 4040 } 4041 if iNdEx >= l { 4042 return io.ErrUnexpectedEOF 4043 } 4044 b := dAtA[iNdEx] 4045 iNdEx++ 4046 stringLen |= uint64(b&0x7F) << shift 4047 if b < 0x80 { 4048 break 4049 } 4050 } 4051 intStringLen := int(stringLen) 4052 if intStringLen < 0 { 4053 return ErrInvalidLengthOcr 4054 } 4055 postIndex := iNdEx + intStringLen 4056 if postIndex < 0 { 4057 return ErrInvalidLengthOcr 4058 } 4059 if postIndex > l { 4060 return io.ErrUnexpectedEOF 4061 } 4062 if err := m.LinkPerObservation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4063 return err 4064 } 4065 iNdEx = postIndex 4066 case 5: 4067 if wireType != 2 { 4068 return fmt.Errorf("proto: wrong wireType = %d for field LinkPerTransmission", wireType) 4069 } 4070 var stringLen uint64 4071 for shift := uint(0); ; shift += 7 { 4072 if shift >= 64 { 4073 return ErrIntOverflowOcr 4074 } 4075 if iNdEx >= l { 4076 return io.ErrUnexpectedEOF 4077 } 4078 b := dAtA[iNdEx] 4079 iNdEx++ 4080 stringLen |= uint64(b&0x7F) << shift 4081 if b < 0x80 { 4082 break 4083 } 4084 } 4085 intStringLen := int(stringLen) 4086 if intStringLen < 0 { 4087 return ErrInvalidLengthOcr 4088 } 4089 postIndex := iNdEx + intStringLen 4090 if postIndex < 0 { 4091 return ErrInvalidLengthOcr 4092 } 4093 if postIndex > l { 4094 return io.ErrUnexpectedEOF 4095 } 4096 if err := m.LinkPerTransmission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4097 return err 4098 } 4099 iNdEx = postIndex 4100 case 6: 4101 if wireType != 2 { 4102 return fmt.Errorf("proto: wrong wireType = %d for field LinkDenom", wireType) 4103 } 4104 var stringLen uint64 4105 for shift := uint(0); ; shift += 7 { 4106 if shift >= 64 { 4107 return ErrIntOverflowOcr 4108 } 4109 if iNdEx >= l { 4110 return io.ErrUnexpectedEOF 4111 } 4112 b := dAtA[iNdEx] 4113 iNdEx++ 4114 stringLen |= uint64(b&0x7F) << shift 4115 if b < 0x80 { 4116 break 4117 } 4118 } 4119 intStringLen := int(stringLen) 4120 if intStringLen < 0 { 4121 return ErrInvalidLengthOcr 4122 } 4123 postIndex := iNdEx + intStringLen 4124 if postIndex < 0 { 4125 return ErrInvalidLengthOcr 4126 } 4127 if postIndex > l { 4128 return io.ErrUnexpectedEOF 4129 } 4130 m.LinkDenom = string(dAtA[iNdEx:postIndex]) 4131 iNdEx = postIndex 4132 case 7: 4133 if wireType != 0 { 4134 return fmt.Errorf("proto: wrong wireType = %d for field UniqueReports", wireType) 4135 } 4136 var v int 4137 for shift := uint(0); ; shift += 7 { 4138 if shift >= 64 { 4139 return ErrIntOverflowOcr 4140 } 4141 if iNdEx >= l { 4142 return io.ErrUnexpectedEOF 4143 } 4144 b := dAtA[iNdEx] 4145 iNdEx++ 4146 v |= int(b&0x7F) << shift 4147 if b < 0x80 { 4148 break 4149 } 4150 } 4151 m.UniqueReports = bool(v != 0) 4152 case 8: 4153 if wireType != 2 { 4154 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 4155 } 4156 var stringLen uint64 4157 for shift := uint(0); ; shift += 7 { 4158 if shift >= 64 { 4159 return ErrIntOverflowOcr 4160 } 4161 if iNdEx >= l { 4162 return io.ErrUnexpectedEOF 4163 } 4164 b := dAtA[iNdEx] 4165 iNdEx++ 4166 stringLen |= uint64(b&0x7F) << shift 4167 if b < 0x80 { 4168 break 4169 } 4170 } 4171 intStringLen := int(stringLen) 4172 if intStringLen < 0 { 4173 return ErrInvalidLengthOcr 4174 } 4175 postIndex := iNdEx + intStringLen 4176 if postIndex < 0 { 4177 return ErrInvalidLengthOcr 4178 } 4179 if postIndex > l { 4180 return io.ErrUnexpectedEOF 4181 } 4182 m.Description = string(dAtA[iNdEx:postIndex]) 4183 iNdEx = postIndex 4184 case 9: 4185 if wireType != 2 { 4186 return fmt.Errorf("proto: wrong wireType = %d for field FeedAdmin", wireType) 4187 } 4188 var stringLen uint64 4189 for shift := uint(0); ; shift += 7 { 4190 if shift >= 64 { 4191 return ErrIntOverflowOcr 4192 } 4193 if iNdEx >= l { 4194 return io.ErrUnexpectedEOF 4195 } 4196 b := dAtA[iNdEx] 4197 iNdEx++ 4198 stringLen |= uint64(b&0x7F) << shift 4199 if b < 0x80 { 4200 break 4201 } 4202 } 4203 intStringLen := int(stringLen) 4204 if intStringLen < 0 { 4205 return ErrInvalidLengthOcr 4206 } 4207 postIndex := iNdEx + intStringLen 4208 if postIndex < 0 { 4209 return ErrInvalidLengthOcr 4210 } 4211 if postIndex > l { 4212 return io.ErrUnexpectedEOF 4213 } 4214 m.FeedAdmin = string(dAtA[iNdEx:postIndex]) 4215 iNdEx = postIndex 4216 case 10: 4217 if wireType != 2 { 4218 return fmt.Errorf("proto: wrong wireType = %d for field BillingAdmin", wireType) 4219 } 4220 var stringLen uint64 4221 for shift := uint(0); ; shift += 7 { 4222 if shift >= 64 { 4223 return ErrIntOverflowOcr 4224 } 4225 if iNdEx >= l { 4226 return io.ErrUnexpectedEOF 4227 } 4228 b := dAtA[iNdEx] 4229 iNdEx++ 4230 stringLen |= uint64(b&0x7F) << shift 4231 if b < 0x80 { 4232 break 4233 } 4234 } 4235 intStringLen := int(stringLen) 4236 if intStringLen < 0 { 4237 return ErrInvalidLengthOcr 4238 } 4239 postIndex := iNdEx + intStringLen 4240 if postIndex < 0 { 4241 return ErrInvalidLengthOcr 4242 } 4243 if postIndex > l { 4244 return io.ErrUnexpectedEOF 4245 } 4246 m.BillingAdmin = string(dAtA[iNdEx:postIndex]) 4247 iNdEx = postIndex 4248 default: 4249 iNdEx = preIndex 4250 skippy, err := skipOcr(dAtA[iNdEx:]) 4251 if err != nil { 4252 return err 4253 } 4254 if (skippy < 0) || (iNdEx+skippy) < 0 { 4255 return ErrInvalidLengthOcr 4256 } 4257 if (iNdEx + skippy) > l { 4258 return io.ErrUnexpectedEOF 4259 } 4260 iNdEx += skippy 4261 } 4262 } 4263 4264 if iNdEx > l { 4265 return io.ErrUnexpectedEOF 4266 } 4267 return nil 4268 } 4269 func (m *ContractConfig) Unmarshal(dAtA []byte) error { 4270 l := len(dAtA) 4271 iNdEx := 0 4272 for iNdEx < l { 4273 preIndex := iNdEx 4274 var wire uint64 4275 for shift := uint(0); ; shift += 7 { 4276 if shift >= 64 { 4277 return ErrIntOverflowOcr 4278 } 4279 if iNdEx >= l { 4280 return io.ErrUnexpectedEOF 4281 } 4282 b := dAtA[iNdEx] 4283 iNdEx++ 4284 wire |= uint64(b&0x7F) << shift 4285 if b < 0x80 { 4286 break 4287 } 4288 } 4289 fieldNum := int32(wire >> 3) 4290 wireType := int(wire & 0x7) 4291 if wireType == 4 { 4292 return fmt.Errorf("proto: ContractConfig: wiretype end group for non-group") 4293 } 4294 if fieldNum <= 0 { 4295 return fmt.Errorf("proto: ContractConfig: illegal tag %d (wire type %d)", fieldNum, wire) 4296 } 4297 switch fieldNum { 4298 case 1: 4299 if wireType != 0 { 4300 return fmt.Errorf("proto: wrong wireType = %d for field ConfigCount", wireType) 4301 } 4302 m.ConfigCount = 0 4303 for shift := uint(0); ; shift += 7 { 4304 if shift >= 64 { 4305 return ErrIntOverflowOcr 4306 } 4307 if iNdEx >= l { 4308 return io.ErrUnexpectedEOF 4309 } 4310 b := dAtA[iNdEx] 4311 iNdEx++ 4312 m.ConfigCount |= uint64(b&0x7F) << shift 4313 if b < 0x80 { 4314 break 4315 } 4316 } 4317 case 2: 4318 if wireType != 2 { 4319 return fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) 4320 } 4321 var stringLen uint64 4322 for shift := uint(0); ; shift += 7 { 4323 if shift >= 64 { 4324 return ErrIntOverflowOcr 4325 } 4326 if iNdEx >= l { 4327 return io.ErrUnexpectedEOF 4328 } 4329 b := dAtA[iNdEx] 4330 iNdEx++ 4331 stringLen |= uint64(b&0x7F) << shift 4332 if b < 0x80 { 4333 break 4334 } 4335 } 4336 intStringLen := int(stringLen) 4337 if intStringLen < 0 { 4338 return ErrInvalidLengthOcr 4339 } 4340 postIndex := iNdEx + intStringLen 4341 if postIndex < 0 { 4342 return ErrInvalidLengthOcr 4343 } 4344 if postIndex > l { 4345 return io.ErrUnexpectedEOF 4346 } 4347 m.Signers = append(m.Signers, string(dAtA[iNdEx:postIndex])) 4348 iNdEx = postIndex 4349 case 3: 4350 if wireType != 2 { 4351 return fmt.Errorf("proto: wrong wireType = %d for field Transmitters", wireType) 4352 } 4353 var stringLen uint64 4354 for shift := uint(0); ; shift += 7 { 4355 if shift >= 64 { 4356 return ErrIntOverflowOcr 4357 } 4358 if iNdEx >= l { 4359 return io.ErrUnexpectedEOF 4360 } 4361 b := dAtA[iNdEx] 4362 iNdEx++ 4363 stringLen |= uint64(b&0x7F) << shift 4364 if b < 0x80 { 4365 break 4366 } 4367 } 4368 intStringLen := int(stringLen) 4369 if intStringLen < 0 { 4370 return ErrInvalidLengthOcr 4371 } 4372 postIndex := iNdEx + intStringLen 4373 if postIndex < 0 { 4374 return ErrInvalidLengthOcr 4375 } 4376 if postIndex > l { 4377 return io.ErrUnexpectedEOF 4378 } 4379 m.Transmitters = append(m.Transmitters, string(dAtA[iNdEx:postIndex])) 4380 iNdEx = postIndex 4381 case 4: 4382 if wireType != 0 { 4383 return fmt.Errorf("proto: wrong wireType = %d for field F", wireType) 4384 } 4385 m.F = 0 4386 for shift := uint(0); ; shift += 7 { 4387 if shift >= 64 { 4388 return ErrIntOverflowOcr 4389 } 4390 if iNdEx >= l { 4391 return io.ErrUnexpectedEOF 4392 } 4393 b := dAtA[iNdEx] 4394 iNdEx++ 4395 m.F |= uint32(b&0x7F) << shift 4396 if b < 0x80 { 4397 break 4398 } 4399 } 4400 case 5: 4401 if wireType != 2 { 4402 return fmt.Errorf("proto: wrong wireType = %d for field OnchainConfig", wireType) 4403 } 4404 var byteLen int 4405 for shift := uint(0); ; shift += 7 { 4406 if shift >= 64 { 4407 return ErrIntOverflowOcr 4408 } 4409 if iNdEx >= l { 4410 return io.ErrUnexpectedEOF 4411 } 4412 b := dAtA[iNdEx] 4413 iNdEx++ 4414 byteLen |= int(b&0x7F) << shift 4415 if b < 0x80 { 4416 break 4417 } 4418 } 4419 if byteLen < 0 { 4420 return ErrInvalidLengthOcr 4421 } 4422 postIndex := iNdEx + byteLen 4423 if postIndex < 0 { 4424 return ErrInvalidLengthOcr 4425 } 4426 if postIndex > l { 4427 return io.ErrUnexpectedEOF 4428 } 4429 m.OnchainConfig = append(m.OnchainConfig[:0], dAtA[iNdEx:postIndex]...) 4430 if m.OnchainConfig == nil { 4431 m.OnchainConfig = []byte{} 4432 } 4433 iNdEx = postIndex 4434 case 6: 4435 if wireType != 0 { 4436 return fmt.Errorf("proto: wrong wireType = %d for field OffchainConfigVersion", wireType) 4437 } 4438 m.OffchainConfigVersion = 0 4439 for shift := uint(0); ; shift += 7 { 4440 if shift >= 64 { 4441 return ErrIntOverflowOcr 4442 } 4443 if iNdEx >= l { 4444 return io.ErrUnexpectedEOF 4445 } 4446 b := dAtA[iNdEx] 4447 iNdEx++ 4448 m.OffchainConfigVersion |= uint64(b&0x7F) << shift 4449 if b < 0x80 { 4450 break 4451 } 4452 } 4453 case 7: 4454 if wireType != 2 { 4455 return fmt.Errorf("proto: wrong wireType = %d for field OffchainConfig", wireType) 4456 } 4457 var byteLen int 4458 for shift := uint(0); ; shift += 7 { 4459 if shift >= 64 { 4460 return ErrIntOverflowOcr 4461 } 4462 if iNdEx >= l { 4463 return io.ErrUnexpectedEOF 4464 } 4465 b := dAtA[iNdEx] 4466 iNdEx++ 4467 byteLen |= int(b&0x7F) << shift 4468 if b < 0x80 { 4469 break 4470 } 4471 } 4472 if byteLen < 0 { 4473 return ErrInvalidLengthOcr 4474 } 4475 postIndex := iNdEx + byteLen 4476 if postIndex < 0 { 4477 return ErrInvalidLengthOcr 4478 } 4479 if postIndex > l { 4480 return io.ErrUnexpectedEOF 4481 } 4482 m.OffchainConfig = append(m.OffchainConfig[:0], dAtA[iNdEx:postIndex]...) 4483 if m.OffchainConfig == nil { 4484 m.OffchainConfig = []byte{} 4485 } 4486 iNdEx = postIndex 4487 default: 4488 iNdEx = preIndex 4489 skippy, err := skipOcr(dAtA[iNdEx:]) 4490 if err != nil { 4491 return err 4492 } 4493 if (skippy < 0) || (iNdEx+skippy) < 0 { 4494 return ErrInvalidLengthOcr 4495 } 4496 if (iNdEx + skippy) > l { 4497 return io.ErrUnexpectedEOF 4498 } 4499 iNdEx += skippy 4500 } 4501 } 4502 4503 if iNdEx > l { 4504 return io.ErrUnexpectedEOF 4505 } 4506 return nil 4507 } 4508 func (m *SetConfigProposal) Unmarshal(dAtA []byte) error { 4509 l := len(dAtA) 4510 iNdEx := 0 4511 for iNdEx < l { 4512 preIndex := iNdEx 4513 var wire uint64 4514 for shift := uint(0); ; shift += 7 { 4515 if shift >= 64 { 4516 return ErrIntOverflowOcr 4517 } 4518 if iNdEx >= l { 4519 return io.ErrUnexpectedEOF 4520 } 4521 b := dAtA[iNdEx] 4522 iNdEx++ 4523 wire |= uint64(b&0x7F) << shift 4524 if b < 0x80 { 4525 break 4526 } 4527 } 4528 fieldNum := int32(wire >> 3) 4529 wireType := int(wire & 0x7) 4530 if wireType == 4 { 4531 return fmt.Errorf("proto: SetConfigProposal: wiretype end group for non-group") 4532 } 4533 if fieldNum <= 0 { 4534 return fmt.Errorf("proto: SetConfigProposal: illegal tag %d (wire type %d)", fieldNum, wire) 4535 } 4536 switch fieldNum { 4537 case 1: 4538 if wireType != 2 { 4539 return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) 4540 } 4541 var stringLen uint64 4542 for shift := uint(0); ; shift += 7 { 4543 if shift >= 64 { 4544 return ErrIntOverflowOcr 4545 } 4546 if iNdEx >= l { 4547 return io.ErrUnexpectedEOF 4548 } 4549 b := dAtA[iNdEx] 4550 iNdEx++ 4551 stringLen |= uint64(b&0x7F) << shift 4552 if b < 0x80 { 4553 break 4554 } 4555 } 4556 intStringLen := int(stringLen) 4557 if intStringLen < 0 { 4558 return ErrInvalidLengthOcr 4559 } 4560 postIndex := iNdEx + intStringLen 4561 if postIndex < 0 { 4562 return ErrInvalidLengthOcr 4563 } 4564 if postIndex > l { 4565 return io.ErrUnexpectedEOF 4566 } 4567 m.Title = string(dAtA[iNdEx:postIndex]) 4568 iNdEx = postIndex 4569 case 2: 4570 if wireType != 2 { 4571 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 4572 } 4573 var stringLen uint64 4574 for shift := uint(0); ; shift += 7 { 4575 if shift >= 64 { 4576 return ErrIntOverflowOcr 4577 } 4578 if iNdEx >= l { 4579 return io.ErrUnexpectedEOF 4580 } 4581 b := dAtA[iNdEx] 4582 iNdEx++ 4583 stringLen |= uint64(b&0x7F) << shift 4584 if b < 0x80 { 4585 break 4586 } 4587 } 4588 intStringLen := int(stringLen) 4589 if intStringLen < 0 { 4590 return ErrInvalidLengthOcr 4591 } 4592 postIndex := iNdEx + intStringLen 4593 if postIndex < 0 { 4594 return ErrInvalidLengthOcr 4595 } 4596 if postIndex > l { 4597 return io.ErrUnexpectedEOF 4598 } 4599 m.Description = string(dAtA[iNdEx:postIndex]) 4600 iNdEx = postIndex 4601 case 3: 4602 if wireType != 2 { 4603 return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) 4604 } 4605 var msglen int 4606 for shift := uint(0); ; shift += 7 { 4607 if shift >= 64 { 4608 return ErrIntOverflowOcr 4609 } 4610 if iNdEx >= l { 4611 return io.ErrUnexpectedEOF 4612 } 4613 b := dAtA[iNdEx] 4614 iNdEx++ 4615 msglen |= int(b&0x7F) << shift 4616 if b < 0x80 { 4617 break 4618 } 4619 } 4620 if msglen < 0 { 4621 return ErrInvalidLengthOcr 4622 } 4623 postIndex := iNdEx + msglen 4624 if postIndex < 0 { 4625 return ErrInvalidLengthOcr 4626 } 4627 if postIndex > l { 4628 return io.ErrUnexpectedEOF 4629 } 4630 if m.Config == nil { 4631 m.Config = &FeedConfig{} 4632 } 4633 if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4634 return err 4635 } 4636 iNdEx = postIndex 4637 default: 4638 iNdEx = preIndex 4639 skippy, err := skipOcr(dAtA[iNdEx:]) 4640 if err != nil { 4641 return err 4642 } 4643 if (skippy < 0) || (iNdEx+skippy) < 0 { 4644 return ErrInvalidLengthOcr 4645 } 4646 if (iNdEx + skippy) > l { 4647 return io.ErrUnexpectedEOF 4648 } 4649 iNdEx += skippy 4650 } 4651 } 4652 4653 if iNdEx > l { 4654 return io.ErrUnexpectedEOF 4655 } 4656 return nil 4657 } 4658 func (m *FeedProperties) Unmarshal(dAtA []byte) error { 4659 l := len(dAtA) 4660 iNdEx := 0 4661 for iNdEx < l { 4662 preIndex := iNdEx 4663 var wire uint64 4664 for shift := uint(0); ; shift += 7 { 4665 if shift >= 64 { 4666 return ErrIntOverflowOcr 4667 } 4668 if iNdEx >= l { 4669 return io.ErrUnexpectedEOF 4670 } 4671 b := dAtA[iNdEx] 4672 iNdEx++ 4673 wire |= uint64(b&0x7F) << shift 4674 if b < 0x80 { 4675 break 4676 } 4677 } 4678 fieldNum := int32(wire >> 3) 4679 wireType := int(wire & 0x7) 4680 if wireType == 4 { 4681 return fmt.Errorf("proto: FeedProperties: wiretype end group for non-group") 4682 } 4683 if fieldNum <= 0 { 4684 return fmt.Errorf("proto: FeedProperties: illegal tag %d (wire type %d)", fieldNum, wire) 4685 } 4686 switch fieldNum { 4687 case 1: 4688 if wireType != 2 { 4689 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 4690 } 4691 var stringLen uint64 4692 for shift := uint(0); ; shift += 7 { 4693 if shift >= 64 { 4694 return ErrIntOverflowOcr 4695 } 4696 if iNdEx >= l { 4697 return io.ErrUnexpectedEOF 4698 } 4699 b := dAtA[iNdEx] 4700 iNdEx++ 4701 stringLen |= uint64(b&0x7F) << shift 4702 if b < 0x80 { 4703 break 4704 } 4705 } 4706 intStringLen := int(stringLen) 4707 if intStringLen < 0 { 4708 return ErrInvalidLengthOcr 4709 } 4710 postIndex := iNdEx + intStringLen 4711 if postIndex < 0 { 4712 return ErrInvalidLengthOcr 4713 } 4714 if postIndex > l { 4715 return io.ErrUnexpectedEOF 4716 } 4717 m.FeedId = string(dAtA[iNdEx:postIndex]) 4718 iNdEx = postIndex 4719 case 2: 4720 if wireType != 0 { 4721 return fmt.Errorf("proto: wrong wireType = %d for field F", wireType) 4722 } 4723 m.F = 0 4724 for shift := uint(0); ; shift += 7 { 4725 if shift >= 64 { 4726 return ErrIntOverflowOcr 4727 } 4728 if iNdEx >= l { 4729 return io.ErrUnexpectedEOF 4730 } 4731 b := dAtA[iNdEx] 4732 iNdEx++ 4733 m.F |= uint32(b&0x7F) << shift 4734 if b < 0x80 { 4735 break 4736 } 4737 } 4738 case 3: 4739 if wireType != 2 { 4740 return fmt.Errorf("proto: wrong wireType = %d for field OnchainConfig", wireType) 4741 } 4742 var byteLen int 4743 for shift := uint(0); ; shift += 7 { 4744 if shift >= 64 { 4745 return ErrIntOverflowOcr 4746 } 4747 if iNdEx >= l { 4748 return io.ErrUnexpectedEOF 4749 } 4750 b := dAtA[iNdEx] 4751 iNdEx++ 4752 byteLen |= int(b&0x7F) << shift 4753 if b < 0x80 { 4754 break 4755 } 4756 } 4757 if byteLen < 0 { 4758 return ErrInvalidLengthOcr 4759 } 4760 postIndex := iNdEx + byteLen 4761 if postIndex < 0 { 4762 return ErrInvalidLengthOcr 4763 } 4764 if postIndex > l { 4765 return io.ErrUnexpectedEOF 4766 } 4767 m.OnchainConfig = append(m.OnchainConfig[:0], dAtA[iNdEx:postIndex]...) 4768 if m.OnchainConfig == nil { 4769 m.OnchainConfig = []byte{} 4770 } 4771 iNdEx = postIndex 4772 case 4: 4773 if wireType != 0 { 4774 return fmt.Errorf("proto: wrong wireType = %d for field OffchainConfigVersion", wireType) 4775 } 4776 m.OffchainConfigVersion = 0 4777 for shift := uint(0); ; shift += 7 { 4778 if shift >= 64 { 4779 return ErrIntOverflowOcr 4780 } 4781 if iNdEx >= l { 4782 return io.ErrUnexpectedEOF 4783 } 4784 b := dAtA[iNdEx] 4785 iNdEx++ 4786 m.OffchainConfigVersion |= uint64(b&0x7F) << shift 4787 if b < 0x80 { 4788 break 4789 } 4790 } 4791 case 5: 4792 if wireType != 2 { 4793 return fmt.Errorf("proto: wrong wireType = %d for field OffchainConfig", wireType) 4794 } 4795 var byteLen int 4796 for shift := uint(0); ; shift += 7 { 4797 if shift >= 64 { 4798 return ErrIntOverflowOcr 4799 } 4800 if iNdEx >= l { 4801 return io.ErrUnexpectedEOF 4802 } 4803 b := dAtA[iNdEx] 4804 iNdEx++ 4805 byteLen |= int(b&0x7F) << shift 4806 if b < 0x80 { 4807 break 4808 } 4809 } 4810 if byteLen < 0 { 4811 return ErrInvalidLengthOcr 4812 } 4813 postIndex := iNdEx + byteLen 4814 if postIndex < 0 { 4815 return ErrInvalidLengthOcr 4816 } 4817 if postIndex > l { 4818 return io.ErrUnexpectedEOF 4819 } 4820 m.OffchainConfig = append(m.OffchainConfig[:0], dAtA[iNdEx:postIndex]...) 4821 if m.OffchainConfig == nil { 4822 m.OffchainConfig = []byte{} 4823 } 4824 iNdEx = postIndex 4825 case 6: 4826 if wireType != 2 { 4827 return fmt.Errorf("proto: wrong wireType = %d for field MinAnswer", wireType) 4828 } 4829 var stringLen uint64 4830 for shift := uint(0); ; shift += 7 { 4831 if shift >= 64 { 4832 return ErrIntOverflowOcr 4833 } 4834 if iNdEx >= l { 4835 return io.ErrUnexpectedEOF 4836 } 4837 b := dAtA[iNdEx] 4838 iNdEx++ 4839 stringLen |= uint64(b&0x7F) << shift 4840 if b < 0x80 { 4841 break 4842 } 4843 } 4844 intStringLen := int(stringLen) 4845 if intStringLen < 0 { 4846 return ErrInvalidLengthOcr 4847 } 4848 postIndex := iNdEx + intStringLen 4849 if postIndex < 0 { 4850 return ErrInvalidLengthOcr 4851 } 4852 if postIndex > l { 4853 return io.ErrUnexpectedEOF 4854 } 4855 if err := m.MinAnswer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4856 return err 4857 } 4858 iNdEx = postIndex 4859 case 7: 4860 if wireType != 2 { 4861 return fmt.Errorf("proto: wrong wireType = %d for field MaxAnswer", wireType) 4862 } 4863 var stringLen uint64 4864 for shift := uint(0); ; shift += 7 { 4865 if shift >= 64 { 4866 return ErrIntOverflowOcr 4867 } 4868 if iNdEx >= l { 4869 return io.ErrUnexpectedEOF 4870 } 4871 b := dAtA[iNdEx] 4872 iNdEx++ 4873 stringLen |= uint64(b&0x7F) << shift 4874 if b < 0x80 { 4875 break 4876 } 4877 } 4878 intStringLen := int(stringLen) 4879 if intStringLen < 0 { 4880 return ErrInvalidLengthOcr 4881 } 4882 postIndex := iNdEx + intStringLen 4883 if postIndex < 0 { 4884 return ErrInvalidLengthOcr 4885 } 4886 if postIndex > l { 4887 return io.ErrUnexpectedEOF 4888 } 4889 if err := m.MaxAnswer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4890 return err 4891 } 4892 iNdEx = postIndex 4893 case 8: 4894 if wireType != 2 { 4895 return fmt.Errorf("proto: wrong wireType = %d for field LinkPerObservation", wireType) 4896 } 4897 var stringLen uint64 4898 for shift := uint(0); ; shift += 7 { 4899 if shift >= 64 { 4900 return ErrIntOverflowOcr 4901 } 4902 if iNdEx >= l { 4903 return io.ErrUnexpectedEOF 4904 } 4905 b := dAtA[iNdEx] 4906 iNdEx++ 4907 stringLen |= uint64(b&0x7F) << shift 4908 if b < 0x80 { 4909 break 4910 } 4911 } 4912 intStringLen := int(stringLen) 4913 if intStringLen < 0 { 4914 return ErrInvalidLengthOcr 4915 } 4916 postIndex := iNdEx + intStringLen 4917 if postIndex < 0 { 4918 return ErrInvalidLengthOcr 4919 } 4920 if postIndex > l { 4921 return io.ErrUnexpectedEOF 4922 } 4923 if err := m.LinkPerObservation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4924 return err 4925 } 4926 iNdEx = postIndex 4927 case 9: 4928 if wireType != 2 { 4929 return fmt.Errorf("proto: wrong wireType = %d for field LinkPerTransmission", wireType) 4930 } 4931 var stringLen uint64 4932 for shift := uint(0); ; shift += 7 { 4933 if shift >= 64 { 4934 return ErrIntOverflowOcr 4935 } 4936 if iNdEx >= l { 4937 return io.ErrUnexpectedEOF 4938 } 4939 b := dAtA[iNdEx] 4940 iNdEx++ 4941 stringLen |= uint64(b&0x7F) << shift 4942 if b < 0x80 { 4943 break 4944 } 4945 } 4946 intStringLen := int(stringLen) 4947 if intStringLen < 0 { 4948 return ErrInvalidLengthOcr 4949 } 4950 postIndex := iNdEx + intStringLen 4951 if postIndex < 0 { 4952 return ErrInvalidLengthOcr 4953 } 4954 if postIndex > l { 4955 return io.ErrUnexpectedEOF 4956 } 4957 if err := m.LinkPerTransmission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4958 return err 4959 } 4960 iNdEx = postIndex 4961 case 10: 4962 if wireType != 0 { 4963 return fmt.Errorf("proto: wrong wireType = %d for field UniqueReports", wireType) 4964 } 4965 var v int 4966 for shift := uint(0); ; shift += 7 { 4967 if shift >= 64 { 4968 return ErrIntOverflowOcr 4969 } 4970 if iNdEx >= l { 4971 return io.ErrUnexpectedEOF 4972 } 4973 b := dAtA[iNdEx] 4974 iNdEx++ 4975 v |= int(b&0x7F) << shift 4976 if b < 0x80 { 4977 break 4978 } 4979 } 4980 m.UniqueReports = bool(v != 0) 4981 case 11: 4982 if wireType != 2 { 4983 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 4984 } 4985 var stringLen uint64 4986 for shift := uint(0); ; shift += 7 { 4987 if shift >= 64 { 4988 return ErrIntOverflowOcr 4989 } 4990 if iNdEx >= l { 4991 return io.ErrUnexpectedEOF 4992 } 4993 b := dAtA[iNdEx] 4994 iNdEx++ 4995 stringLen |= uint64(b&0x7F) << shift 4996 if b < 0x80 { 4997 break 4998 } 4999 } 5000 intStringLen := int(stringLen) 5001 if intStringLen < 0 { 5002 return ErrInvalidLengthOcr 5003 } 5004 postIndex := iNdEx + intStringLen 5005 if postIndex < 0 { 5006 return ErrInvalidLengthOcr 5007 } 5008 if postIndex > l { 5009 return io.ErrUnexpectedEOF 5010 } 5011 m.Description = string(dAtA[iNdEx:postIndex]) 5012 iNdEx = postIndex 5013 default: 5014 iNdEx = preIndex 5015 skippy, err := skipOcr(dAtA[iNdEx:]) 5016 if err != nil { 5017 return err 5018 } 5019 if (skippy < 0) || (iNdEx+skippy) < 0 { 5020 return ErrInvalidLengthOcr 5021 } 5022 if (iNdEx + skippy) > l { 5023 return io.ErrUnexpectedEOF 5024 } 5025 iNdEx += skippy 5026 } 5027 } 5028 5029 if iNdEx > l { 5030 return io.ErrUnexpectedEOF 5031 } 5032 return nil 5033 } 5034 func (m *SetBatchConfigProposal) Unmarshal(dAtA []byte) error { 5035 l := len(dAtA) 5036 iNdEx := 0 5037 for iNdEx < l { 5038 preIndex := iNdEx 5039 var wire uint64 5040 for shift := uint(0); ; shift += 7 { 5041 if shift >= 64 { 5042 return ErrIntOverflowOcr 5043 } 5044 if iNdEx >= l { 5045 return io.ErrUnexpectedEOF 5046 } 5047 b := dAtA[iNdEx] 5048 iNdEx++ 5049 wire |= uint64(b&0x7F) << shift 5050 if b < 0x80 { 5051 break 5052 } 5053 } 5054 fieldNum := int32(wire >> 3) 5055 wireType := int(wire & 0x7) 5056 if wireType == 4 { 5057 return fmt.Errorf("proto: SetBatchConfigProposal: wiretype end group for non-group") 5058 } 5059 if fieldNum <= 0 { 5060 return fmt.Errorf("proto: SetBatchConfigProposal: illegal tag %d (wire type %d)", fieldNum, wire) 5061 } 5062 switch fieldNum { 5063 case 1: 5064 if wireType != 2 { 5065 return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) 5066 } 5067 var stringLen uint64 5068 for shift := uint(0); ; shift += 7 { 5069 if shift >= 64 { 5070 return ErrIntOverflowOcr 5071 } 5072 if iNdEx >= l { 5073 return io.ErrUnexpectedEOF 5074 } 5075 b := dAtA[iNdEx] 5076 iNdEx++ 5077 stringLen |= uint64(b&0x7F) << shift 5078 if b < 0x80 { 5079 break 5080 } 5081 } 5082 intStringLen := int(stringLen) 5083 if intStringLen < 0 { 5084 return ErrInvalidLengthOcr 5085 } 5086 postIndex := iNdEx + intStringLen 5087 if postIndex < 0 { 5088 return ErrInvalidLengthOcr 5089 } 5090 if postIndex > l { 5091 return io.ErrUnexpectedEOF 5092 } 5093 m.Title = string(dAtA[iNdEx:postIndex]) 5094 iNdEx = postIndex 5095 case 2: 5096 if wireType != 2 { 5097 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 5098 } 5099 var stringLen uint64 5100 for shift := uint(0); ; shift += 7 { 5101 if shift >= 64 { 5102 return ErrIntOverflowOcr 5103 } 5104 if iNdEx >= l { 5105 return io.ErrUnexpectedEOF 5106 } 5107 b := dAtA[iNdEx] 5108 iNdEx++ 5109 stringLen |= uint64(b&0x7F) << shift 5110 if b < 0x80 { 5111 break 5112 } 5113 } 5114 intStringLen := int(stringLen) 5115 if intStringLen < 0 { 5116 return ErrInvalidLengthOcr 5117 } 5118 postIndex := iNdEx + intStringLen 5119 if postIndex < 0 { 5120 return ErrInvalidLengthOcr 5121 } 5122 if postIndex > l { 5123 return io.ErrUnexpectedEOF 5124 } 5125 m.Description = string(dAtA[iNdEx:postIndex]) 5126 iNdEx = postIndex 5127 case 3: 5128 if wireType != 2 { 5129 return fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) 5130 } 5131 var stringLen uint64 5132 for shift := uint(0); ; shift += 7 { 5133 if shift >= 64 { 5134 return ErrIntOverflowOcr 5135 } 5136 if iNdEx >= l { 5137 return io.ErrUnexpectedEOF 5138 } 5139 b := dAtA[iNdEx] 5140 iNdEx++ 5141 stringLen |= uint64(b&0x7F) << shift 5142 if b < 0x80 { 5143 break 5144 } 5145 } 5146 intStringLen := int(stringLen) 5147 if intStringLen < 0 { 5148 return ErrInvalidLengthOcr 5149 } 5150 postIndex := iNdEx + intStringLen 5151 if postIndex < 0 { 5152 return ErrInvalidLengthOcr 5153 } 5154 if postIndex > l { 5155 return io.ErrUnexpectedEOF 5156 } 5157 m.Signers = append(m.Signers, string(dAtA[iNdEx:postIndex])) 5158 iNdEx = postIndex 5159 case 4: 5160 if wireType != 2 { 5161 return fmt.Errorf("proto: wrong wireType = %d for field Transmitters", wireType) 5162 } 5163 var stringLen uint64 5164 for shift := uint(0); ; shift += 7 { 5165 if shift >= 64 { 5166 return ErrIntOverflowOcr 5167 } 5168 if iNdEx >= l { 5169 return io.ErrUnexpectedEOF 5170 } 5171 b := dAtA[iNdEx] 5172 iNdEx++ 5173 stringLen |= uint64(b&0x7F) << shift 5174 if b < 0x80 { 5175 break 5176 } 5177 } 5178 intStringLen := int(stringLen) 5179 if intStringLen < 0 { 5180 return ErrInvalidLengthOcr 5181 } 5182 postIndex := iNdEx + intStringLen 5183 if postIndex < 0 { 5184 return ErrInvalidLengthOcr 5185 } 5186 if postIndex > l { 5187 return io.ErrUnexpectedEOF 5188 } 5189 m.Transmitters = append(m.Transmitters, string(dAtA[iNdEx:postIndex])) 5190 iNdEx = postIndex 5191 case 5: 5192 if wireType != 2 { 5193 return fmt.Errorf("proto: wrong wireType = %d for field LinkDenom", wireType) 5194 } 5195 var stringLen uint64 5196 for shift := uint(0); ; shift += 7 { 5197 if shift >= 64 { 5198 return ErrIntOverflowOcr 5199 } 5200 if iNdEx >= l { 5201 return io.ErrUnexpectedEOF 5202 } 5203 b := dAtA[iNdEx] 5204 iNdEx++ 5205 stringLen |= uint64(b&0x7F) << shift 5206 if b < 0x80 { 5207 break 5208 } 5209 } 5210 intStringLen := int(stringLen) 5211 if intStringLen < 0 { 5212 return ErrInvalidLengthOcr 5213 } 5214 postIndex := iNdEx + intStringLen 5215 if postIndex < 0 { 5216 return ErrInvalidLengthOcr 5217 } 5218 if postIndex > l { 5219 return io.ErrUnexpectedEOF 5220 } 5221 m.LinkDenom = string(dAtA[iNdEx:postIndex]) 5222 iNdEx = postIndex 5223 case 6: 5224 if wireType != 2 { 5225 return fmt.Errorf("proto: wrong wireType = %d for field FeedProperties", wireType) 5226 } 5227 var msglen int 5228 for shift := uint(0); ; shift += 7 { 5229 if shift >= 64 { 5230 return ErrIntOverflowOcr 5231 } 5232 if iNdEx >= l { 5233 return io.ErrUnexpectedEOF 5234 } 5235 b := dAtA[iNdEx] 5236 iNdEx++ 5237 msglen |= int(b&0x7F) << shift 5238 if b < 0x80 { 5239 break 5240 } 5241 } 5242 if msglen < 0 { 5243 return ErrInvalidLengthOcr 5244 } 5245 postIndex := iNdEx + msglen 5246 if postIndex < 0 { 5247 return ErrInvalidLengthOcr 5248 } 5249 if postIndex > l { 5250 return io.ErrUnexpectedEOF 5251 } 5252 m.FeedProperties = append(m.FeedProperties, &FeedProperties{}) 5253 if err := m.FeedProperties[len(m.FeedProperties)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5254 return err 5255 } 5256 iNdEx = postIndex 5257 default: 5258 iNdEx = preIndex 5259 skippy, err := skipOcr(dAtA[iNdEx:]) 5260 if err != nil { 5261 return err 5262 } 5263 if (skippy < 0) || (iNdEx+skippy) < 0 { 5264 return ErrInvalidLengthOcr 5265 } 5266 if (iNdEx + skippy) > l { 5267 return io.ErrUnexpectedEOF 5268 } 5269 iNdEx += skippy 5270 } 5271 } 5272 5273 if iNdEx > l { 5274 return io.ErrUnexpectedEOF 5275 } 5276 return nil 5277 } 5278 func (m *OracleObservationsCounts) Unmarshal(dAtA []byte) error { 5279 l := len(dAtA) 5280 iNdEx := 0 5281 for iNdEx < l { 5282 preIndex := iNdEx 5283 var wire uint64 5284 for shift := uint(0); ; shift += 7 { 5285 if shift >= 64 { 5286 return ErrIntOverflowOcr 5287 } 5288 if iNdEx >= l { 5289 return io.ErrUnexpectedEOF 5290 } 5291 b := dAtA[iNdEx] 5292 iNdEx++ 5293 wire |= uint64(b&0x7F) << shift 5294 if b < 0x80 { 5295 break 5296 } 5297 } 5298 fieldNum := int32(wire >> 3) 5299 wireType := int(wire & 0x7) 5300 if wireType == 4 { 5301 return fmt.Errorf("proto: OracleObservationsCounts: wiretype end group for non-group") 5302 } 5303 if fieldNum <= 0 { 5304 return fmt.Errorf("proto: OracleObservationsCounts: illegal tag %d (wire type %d)", fieldNum, wire) 5305 } 5306 switch fieldNum { 5307 case 1: 5308 if wireType == 0 { 5309 var v uint32 5310 for shift := uint(0); ; shift += 7 { 5311 if shift >= 64 { 5312 return ErrIntOverflowOcr 5313 } 5314 if iNdEx >= l { 5315 return io.ErrUnexpectedEOF 5316 } 5317 b := dAtA[iNdEx] 5318 iNdEx++ 5319 v |= uint32(b&0x7F) << shift 5320 if b < 0x80 { 5321 break 5322 } 5323 } 5324 m.Counts = append(m.Counts, v) 5325 } else if wireType == 2 { 5326 var packedLen int 5327 for shift := uint(0); ; shift += 7 { 5328 if shift >= 64 { 5329 return ErrIntOverflowOcr 5330 } 5331 if iNdEx >= l { 5332 return io.ErrUnexpectedEOF 5333 } 5334 b := dAtA[iNdEx] 5335 iNdEx++ 5336 packedLen |= int(b&0x7F) << shift 5337 if b < 0x80 { 5338 break 5339 } 5340 } 5341 if packedLen < 0 { 5342 return ErrInvalidLengthOcr 5343 } 5344 postIndex := iNdEx + packedLen 5345 if postIndex < 0 { 5346 return ErrInvalidLengthOcr 5347 } 5348 if postIndex > l { 5349 return io.ErrUnexpectedEOF 5350 } 5351 var elementCount int 5352 var count int 5353 for _, integer := range dAtA[iNdEx:postIndex] { 5354 if integer < 128 { 5355 count++ 5356 } 5357 } 5358 elementCount = count 5359 if elementCount != 0 && len(m.Counts) == 0 { 5360 m.Counts = make([]uint32, 0, elementCount) 5361 } 5362 for iNdEx < postIndex { 5363 var v uint32 5364 for shift := uint(0); ; shift += 7 { 5365 if shift >= 64 { 5366 return ErrIntOverflowOcr 5367 } 5368 if iNdEx >= l { 5369 return io.ErrUnexpectedEOF 5370 } 5371 b := dAtA[iNdEx] 5372 iNdEx++ 5373 v |= uint32(b&0x7F) << shift 5374 if b < 0x80 { 5375 break 5376 } 5377 } 5378 m.Counts = append(m.Counts, v) 5379 } 5380 } else { 5381 return fmt.Errorf("proto: wrong wireType = %d for field Counts", wireType) 5382 } 5383 default: 5384 iNdEx = preIndex 5385 skippy, err := skipOcr(dAtA[iNdEx:]) 5386 if err != nil { 5387 return err 5388 } 5389 if (skippy < 0) || (iNdEx+skippy) < 0 { 5390 return ErrInvalidLengthOcr 5391 } 5392 if (iNdEx + skippy) > l { 5393 return io.ErrUnexpectedEOF 5394 } 5395 iNdEx += skippy 5396 } 5397 } 5398 5399 if iNdEx > l { 5400 return io.ErrUnexpectedEOF 5401 } 5402 return nil 5403 } 5404 func (m *GasReimbursements) Unmarshal(dAtA []byte) error { 5405 l := len(dAtA) 5406 iNdEx := 0 5407 for iNdEx < l { 5408 preIndex := iNdEx 5409 var wire uint64 5410 for shift := uint(0); ; shift += 7 { 5411 if shift >= 64 { 5412 return ErrIntOverflowOcr 5413 } 5414 if iNdEx >= l { 5415 return io.ErrUnexpectedEOF 5416 } 5417 b := dAtA[iNdEx] 5418 iNdEx++ 5419 wire |= uint64(b&0x7F) << shift 5420 if b < 0x80 { 5421 break 5422 } 5423 } 5424 fieldNum := int32(wire >> 3) 5425 wireType := int(wire & 0x7) 5426 if wireType == 4 { 5427 return fmt.Errorf("proto: GasReimbursements: wiretype end group for non-group") 5428 } 5429 if fieldNum <= 0 { 5430 return fmt.Errorf("proto: GasReimbursements: illegal tag %d (wire type %d)", fieldNum, wire) 5431 } 5432 switch fieldNum { 5433 case 1: 5434 if wireType != 2 { 5435 return fmt.Errorf("proto: wrong wireType = %d for field Reimbursements", wireType) 5436 } 5437 var msglen int 5438 for shift := uint(0); ; shift += 7 { 5439 if shift >= 64 { 5440 return ErrIntOverflowOcr 5441 } 5442 if iNdEx >= l { 5443 return io.ErrUnexpectedEOF 5444 } 5445 b := dAtA[iNdEx] 5446 iNdEx++ 5447 msglen |= int(b&0x7F) << shift 5448 if b < 0x80 { 5449 break 5450 } 5451 } 5452 if msglen < 0 { 5453 return ErrInvalidLengthOcr 5454 } 5455 postIndex := iNdEx + msglen 5456 if postIndex < 0 { 5457 return ErrInvalidLengthOcr 5458 } 5459 if postIndex > l { 5460 return io.ErrUnexpectedEOF 5461 } 5462 m.Reimbursements = append(m.Reimbursements, &types.Coin{}) 5463 if err := m.Reimbursements[len(m.Reimbursements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5464 return err 5465 } 5466 iNdEx = postIndex 5467 default: 5468 iNdEx = preIndex 5469 skippy, err := skipOcr(dAtA[iNdEx:]) 5470 if err != nil { 5471 return err 5472 } 5473 if (skippy < 0) || (iNdEx+skippy) < 0 { 5474 return ErrInvalidLengthOcr 5475 } 5476 if (iNdEx + skippy) > l { 5477 return io.ErrUnexpectedEOF 5478 } 5479 iNdEx += skippy 5480 } 5481 } 5482 5483 if iNdEx > l { 5484 return io.ErrUnexpectedEOF 5485 } 5486 return nil 5487 } 5488 func (m *Payee) Unmarshal(dAtA []byte) error { 5489 l := len(dAtA) 5490 iNdEx := 0 5491 for iNdEx < l { 5492 preIndex := iNdEx 5493 var wire uint64 5494 for shift := uint(0); ; shift += 7 { 5495 if shift >= 64 { 5496 return ErrIntOverflowOcr 5497 } 5498 if iNdEx >= l { 5499 return io.ErrUnexpectedEOF 5500 } 5501 b := dAtA[iNdEx] 5502 iNdEx++ 5503 wire |= uint64(b&0x7F) << shift 5504 if b < 0x80 { 5505 break 5506 } 5507 } 5508 fieldNum := int32(wire >> 3) 5509 wireType := int(wire & 0x7) 5510 if wireType == 4 { 5511 return fmt.Errorf("proto: Payee: wiretype end group for non-group") 5512 } 5513 if fieldNum <= 0 { 5514 return fmt.Errorf("proto: Payee: illegal tag %d (wire type %d)", fieldNum, wire) 5515 } 5516 switch fieldNum { 5517 case 1: 5518 if wireType != 2 { 5519 return fmt.Errorf("proto: wrong wireType = %d for field TransmitterAddr", wireType) 5520 } 5521 var stringLen uint64 5522 for shift := uint(0); ; shift += 7 { 5523 if shift >= 64 { 5524 return ErrIntOverflowOcr 5525 } 5526 if iNdEx >= l { 5527 return io.ErrUnexpectedEOF 5528 } 5529 b := dAtA[iNdEx] 5530 iNdEx++ 5531 stringLen |= uint64(b&0x7F) << shift 5532 if b < 0x80 { 5533 break 5534 } 5535 } 5536 intStringLen := int(stringLen) 5537 if intStringLen < 0 { 5538 return ErrInvalidLengthOcr 5539 } 5540 postIndex := iNdEx + intStringLen 5541 if postIndex < 0 { 5542 return ErrInvalidLengthOcr 5543 } 5544 if postIndex > l { 5545 return io.ErrUnexpectedEOF 5546 } 5547 m.TransmitterAddr = string(dAtA[iNdEx:postIndex]) 5548 iNdEx = postIndex 5549 case 2: 5550 if wireType != 2 { 5551 return fmt.Errorf("proto: wrong wireType = %d for field PaymentAddr", wireType) 5552 } 5553 var stringLen uint64 5554 for shift := uint(0); ; shift += 7 { 5555 if shift >= 64 { 5556 return ErrIntOverflowOcr 5557 } 5558 if iNdEx >= l { 5559 return io.ErrUnexpectedEOF 5560 } 5561 b := dAtA[iNdEx] 5562 iNdEx++ 5563 stringLen |= uint64(b&0x7F) << shift 5564 if b < 0x80 { 5565 break 5566 } 5567 } 5568 intStringLen := int(stringLen) 5569 if intStringLen < 0 { 5570 return ErrInvalidLengthOcr 5571 } 5572 postIndex := iNdEx + intStringLen 5573 if postIndex < 0 { 5574 return ErrInvalidLengthOcr 5575 } 5576 if postIndex > l { 5577 return io.ErrUnexpectedEOF 5578 } 5579 m.PaymentAddr = string(dAtA[iNdEx:postIndex]) 5580 iNdEx = postIndex 5581 default: 5582 iNdEx = preIndex 5583 skippy, err := skipOcr(dAtA[iNdEx:]) 5584 if err != nil { 5585 return err 5586 } 5587 if (skippy < 0) || (iNdEx+skippy) < 0 { 5588 return ErrInvalidLengthOcr 5589 } 5590 if (iNdEx + skippy) > l { 5591 return io.ErrUnexpectedEOF 5592 } 5593 iNdEx += skippy 5594 } 5595 } 5596 5597 if iNdEx > l { 5598 return io.ErrUnexpectedEOF 5599 } 5600 return nil 5601 } 5602 func (m *Transmission) Unmarshal(dAtA []byte) error { 5603 l := len(dAtA) 5604 iNdEx := 0 5605 for iNdEx < l { 5606 preIndex := iNdEx 5607 var wire uint64 5608 for shift := uint(0); ; shift += 7 { 5609 if shift >= 64 { 5610 return ErrIntOverflowOcr 5611 } 5612 if iNdEx >= l { 5613 return io.ErrUnexpectedEOF 5614 } 5615 b := dAtA[iNdEx] 5616 iNdEx++ 5617 wire |= uint64(b&0x7F) << shift 5618 if b < 0x80 { 5619 break 5620 } 5621 } 5622 fieldNum := int32(wire >> 3) 5623 wireType := int(wire & 0x7) 5624 if wireType == 4 { 5625 return fmt.Errorf("proto: Transmission: wiretype end group for non-group") 5626 } 5627 if fieldNum <= 0 { 5628 return fmt.Errorf("proto: Transmission: illegal tag %d (wire type %d)", fieldNum, wire) 5629 } 5630 switch fieldNum { 5631 case 1: 5632 if wireType != 2 { 5633 return fmt.Errorf("proto: wrong wireType = %d for field Answer", wireType) 5634 } 5635 var stringLen uint64 5636 for shift := uint(0); ; shift += 7 { 5637 if shift >= 64 { 5638 return ErrIntOverflowOcr 5639 } 5640 if iNdEx >= l { 5641 return io.ErrUnexpectedEOF 5642 } 5643 b := dAtA[iNdEx] 5644 iNdEx++ 5645 stringLen |= uint64(b&0x7F) << shift 5646 if b < 0x80 { 5647 break 5648 } 5649 } 5650 intStringLen := int(stringLen) 5651 if intStringLen < 0 { 5652 return ErrInvalidLengthOcr 5653 } 5654 postIndex := iNdEx + intStringLen 5655 if postIndex < 0 { 5656 return ErrInvalidLengthOcr 5657 } 5658 if postIndex > l { 5659 return io.ErrUnexpectedEOF 5660 } 5661 if err := m.Answer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5662 return err 5663 } 5664 iNdEx = postIndex 5665 case 2: 5666 if wireType != 0 { 5667 return fmt.Errorf("proto: wrong wireType = %d for field ObservationsTimestamp", wireType) 5668 } 5669 m.ObservationsTimestamp = 0 5670 for shift := uint(0); ; shift += 7 { 5671 if shift >= 64 { 5672 return ErrIntOverflowOcr 5673 } 5674 if iNdEx >= l { 5675 return io.ErrUnexpectedEOF 5676 } 5677 b := dAtA[iNdEx] 5678 iNdEx++ 5679 m.ObservationsTimestamp |= int64(b&0x7F) << shift 5680 if b < 0x80 { 5681 break 5682 } 5683 } 5684 case 3: 5685 if wireType != 0 { 5686 return fmt.Errorf("proto: wrong wireType = %d for field TransmissionTimestamp", wireType) 5687 } 5688 m.TransmissionTimestamp = 0 5689 for shift := uint(0); ; shift += 7 { 5690 if shift >= 64 { 5691 return ErrIntOverflowOcr 5692 } 5693 if iNdEx >= l { 5694 return io.ErrUnexpectedEOF 5695 } 5696 b := dAtA[iNdEx] 5697 iNdEx++ 5698 m.TransmissionTimestamp |= int64(b&0x7F) << shift 5699 if b < 0x80 { 5700 break 5701 } 5702 } 5703 default: 5704 iNdEx = preIndex 5705 skippy, err := skipOcr(dAtA[iNdEx:]) 5706 if err != nil { 5707 return err 5708 } 5709 if (skippy < 0) || (iNdEx+skippy) < 0 { 5710 return ErrInvalidLengthOcr 5711 } 5712 if (iNdEx + skippy) > l { 5713 return io.ErrUnexpectedEOF 5714 } 5715 iNdEx += skippy 5716 } 5717 } 5718 5719 if iNdEx > l { 5720 return io.ErrUnexpectedEOF 5721 } 5722 return nil 5723 } 5724 func (m *EpochAndRound) Unmarshal(dAtA []byte) error { 5725 l := len(dAtA) 5726 iNdEx := 0 5727 for iNdEx < l { 5728 preIndex := iNdEx 5729 var wire uint64 5730 for shift := uint(0); ; shift += 7 { 5731 if shift >= 64 { 5732 return ErrIntOverflowOcr 5733 } 5734 if iNdEx >= l { 5735 return io.ErrUnexpectedEOF 5736 } 5737 b := dAtA[iNdEx] 5738 iNdEx++ 5739 wire |= uint64(b&0x7F) << shift 5740 if b < 0x80 { 5741 break 5742 } 5743 } 5744 fieldNum := int32(wire >> 3) 5745 wireType := int(wire & 0x7) 5746 if wireType == 4 { 5747 return fmt.Errorf("proto: EpochAndRound: wiretype end group for non-group") 5748 } 5749 if fieldNum <= 0 { 5750 return fmt.Errorf("proto: EpochAndRound: illegal tag %d (wire type %d)", fieldNum, wire) 5751 } 5752 switch fieldNum { 5753 case 1: 5754 if wireType != 0 { 5755 return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) 5756 } 5757 m.Epoch = 0 5758 for shift := uint(0); ; shift += 7 { 5759 if shift >= 64 { 5760 return ErrIntOverflowOcr 5761 } 5762 if iNdEx >= l { 5763 return io.ErrUnexpectedEOF 5764 } 5765 b := dAtA[iNdEx] 5766 iNdEx++ 5767 m.Epoch |= uint64(b&0x7F) << shift 5768 if b < 0x80 { 5769 break 5770 } 5771 } 5772 case 2: 5773 if wireType != 0 { 5774 return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) 5775 } 5776 m.Round = 0 5777 for shift := uint(0); ; shift += 7 { 5778 if shift >= 64 { 5779 return ErrIntOverflowOcr 5780 } 5781 if iNdEx >= l { 5782 return io.ErrUnexpectedEOF 5783 } 5784 b := dAtA[iNdEx] 5785 iNdEx++ 5786 m.Round |= uint64(b&0x7F) << shift 5787 if b < 0x80 { 5788 break 5789 } 5790 } 5791 default: 5792 iNdEx = preIndex 5793 skippy, err := skipOcr(dAtA[iNdEx:]) 5794 if err != nil { 5795 return err 5796 } 5797 if (skippy < 0) || (iNdEx+skippy) < 0 { 5798 return ErrInvalidLengthOcr 5799 } 5800 if (iNdEx + skippy) > l { 5801 return io.ErrUnexpectedEOF 5802 } 5803 iNdEx += skippy 5804 } 5805 } 5806 5807 if iNdEx > l { 5808 return io.ErrUnexpectedEOF 5809 } 5810 return nil 5811 } 5812 func (m *Report) Unmarshal(dAtA []byte) error { 5813 l := len(dAtA) 5814 iNdEx := 0 5815 for iNdEx < l { 5816 preIndex := iNdEx 5817 var wire uint64 5818 for shift := uint(0); ; shift += 7 { 5819 if shift >= 64 { 5820 return ErrIntOverflowOcr 5821 } 5822 if iNdEx >= l { 5823 return io.ErrUnexpectedEOF 5824 } 5825 b := dAtA[iNdEx] 5826 iNdEx++ 5827 wire |= uint64(b&0x7F) << shift 5828 if b < 0x80 { 5829 break 5830 } 5831 } 5832 fieldNum := int32(wire >> 3) 5833 wireType := int(wire & 0x7) 5834 if wireType == 4 { 5835 return fmt.Errorf("proto: Report: wiretype end group for non-group") 5836 } 5837 if fieldNum <= 0 { 5838 return fmt.Errorf("proto: Report: illegal tag %d (wire type %d)", fieldNum, wire) 5839 } 5840 switch fieldNum { 5841 case 1: 5842 if wireType != 0 { 5843 return fmt.Errorf("proto: wrong wireType = %d for field ObservationsTimestamp", wireType) 5844 } 5845 m.ObservationsTimestamp = 0 5846 for shift := uint(0); ; shift += 7 { 5847 if shift >= 64 { 5848 return ErrIntOverflowOcr 5849 } 5850 if iNdEx >= l { 5851 return io.ErrUnexpectedEOF 5852 } 5853 b := dAtA[iNdEx] 5854 iNdEx++ 5855 m.ObservationsTimestamp |= int64(b&0x7F) << shift 5856 if b < 0x80 { 5857 break 5858 } 5859 } 5860 case 2: 5861 if wireType != 2 { 5862 return fmt.Errorf("proto: wrong wireType = %d for field Observers", wireType) 5863 } 5864 var byteLen int 5865 for shift := uint(0); ; shift += 7 { 5866 if shift >= 64 { 5867 return ErrIntOverflowOcr 5868 } 5869 if iNdEx >= l { 5870 return io.ErrUnexpectedEOF 5871 } 5872 b := dAtA[iNdEx] 5873 iNdEx++ 5874 byteLen |= int(b&0x7F) << shift 5875 if b < 0x80 { 5876 break 5877 } 5878 } 5879 if byteLen < 0 { 5880 return ErrInvalidLengthOcr 5881 } 5882 postIndex := iNdEx + byteLen 5883 if postIndex < 0 { 5884 return ErrInvalidLengthOcr 5885 } 5886 if postIndex > l { 5887 return io.ErrUnexpectedEOF 5888 } 5889 m.Observers = append(m.Observers[:0], dAtA[iNdEx:postIndex]...) 5890 if m.Observers == nil { 5891 m.Observers = []byte{} 5892 } 5893 iNdEx = postIndex 5894 case 3: 5895 if wireType != 2 { 5896 return fmt.Errorf("proto: wrong wireType = %d for field Observations", wireType) 5897 } 5898 var stringLen uint64 5899 for shift := uint(0); ; shift += 7 { 5900 if shift >= 64 { 5901 return ErrIntOverflowOcr 5902 } 5903 if iNdEx >= l { 5904 return io.ErrUnexpectedEOF 5905 } 5906 b := dAtA[iNdEx] 5907 iNdEx++ 5908 stringLen |= uint64(b&0x7F) << shift 5909 if b < 0x80 { 5910 break 5911 } 5912 } 5913 intStringLen := int(stringLen) 5914 if intStringLen < 0 { 5915 return ErrInvalidLengthOcr 5916 } 5917 postIndex := iNdEx + intStringLen 5918 if postIndex < 0 { 5919 return ErrInvalidLengthOcr 5920 } 5921 if postIndex > l { 5922 return io.ErrUnexpectedEOF 5923 } 5924 var v cosmossdk_io_math.LegacyDec 5925 m.Observations = append(m.Observations, v) 5926 if err := m.Observations[len(m.Observations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5927 return err 5928 } 5929 iNdEx = postIndex 5930 default: 5931 iNdEx = preIndex 5932 skippy, err := skipOcr(dAtA[iNdEx:]) 5933 if err != nil { 5934 return err 5935 } 5936 if (skippy < 0) || (iNdEx+skippy) < 0 { 5937 return ErrInvalidLengthOcr 5938 } 5939 if (iNdEx + skippy) > l { 5940 return io.ErrUnexpectedEOF 5941 } 5942 iNdEx += skippy 5943 } 5944 } 5945 5946 if iNdEx > l { 5947 return io.ErrUnexpectedEOF 5948 } 5949 return nil 5950 } 5951 func (m *ReportToSign) Unmarshal(dAtA []byte) error { 5952 l := len(dAtA) 5953 iNdEx := 0 5954 for iNdEx < l { 5955 preIndex := iNdEx 5956 var wire uint64 5957 for shift := uint(0); ; shift += 7 { 5958 if shift >= 64 { 5959 return ErrIntOverflowOcr 5960 } 5961 if iNdEx >= l { 5962 return io.ErrUnexpectedEOF 5963 } 5964 b := dAtA[iNdEx] 5965 iNdEx++ 5966 wire |= uint64(b&0x7F) << shift 5967 if b < 0x80 { 5968 break 5969 } 5970 } 5971 fieldNum := int32(wire >> 3) 5972 wireType := int(wire & 0x7) 5973 if wireType == 4 { 5974 return fmt.Errorf("proto: ReportToSign: wiretype end group for non-group") 5975 } 5976 if fieldNum <= 0 { 5977 return fmt.Errorf("proto: ReportToSign: illegal tag %d (wire type %d)", fieldNum, wire) 5978 } 5979 switch fieldNum { 5980 case 1: 5981 if wireType != 2 { 5982 return fmt.Errorf("proto: wrong wireType = %d for field ConfigDigest", wireType) 5983 } 5984 var byteLen int 5985 for shift := uint(0); ; shift += 7 { 5986 if shift >= 64 { 5987 return ErrIntOverflowOcr 5988 } 5989 if iNdEx >= l { 5990 return io.ErrUnexpectedEOF 5991 } 5992 b := dAtA[iNdEx] 5993 iNdEx++ 5994 byteLen |= int(b&0x7F) << shift 5995 if b < 0x80 { 5996 break 5997 } 5998 } 5999 if byteLen < 0 { 6000 return ErrInvalidLengthOcr 6001 } 6002 postIndex := iNdEx + byteLen 6003 if postIndex < 0 { 6004 return ErrInvalidLengthOcr 6005 } 6006 if postIndex > l { 6007 return io.ErrUnexpectedEOF 6008 } 6009 m.ConfigDigest = append(m.ConfigDigest[:0], dAtA[iNdEx:postIndex]...) 6010 if m.ConfigDigest == nil { 6011 m.ConfigDigest = []byte{} 6012 } 6013 iNdEx = postIndex 6014 case 2: 6015 if wireType != 0 { 6016 return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) 6017 } 6018 m.Epoch = 0 6019 for shift := uint(0); ; shift += 7 { 6020 if shift >= 64 { 6021 return ErrIntOverflowOcr 6022 } 6023 if iNdEx >= l { 6024 return io.ErrUnexpectedEOF 6025 } 6026 b := dAtA[iNdEx] 6027 iNdEx++ 6028 m.Epoch |= uint64(b&0x7F) << shift 6029 if b < 0x80 { 6030 break 6031 } 6032 } 6033 case 3: 6034 if wireType != 0 { 6035 return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType) 6036 } 6037 m.Round = 0 6038 for shift := uint(0); ; shift += 7 { 6039 if shift >= 64 { 6040 return ErrIntOverflowOcr 6041 } 6042 if iNdEx >= l { 6043 return io.ErrUnexpectedEOF 6044 } 6045 b := dAtA[iNdEx] 6046 iNdEx++ 6047 m.Round |= uint64(b&0x7F) << shift 6048 if b < 0x80 { 6049 break 6050 } 6051 } 6052 case 4: 6053 if wireType != 2 { 6054 return fmt.Errorf("proto: wrong wireType = %d for field ExtraHash", wireType) 6055 } 6056 var byteLen int 6057 for shift := uint(0); ; shift += 7 { 6058 if shift >= 64 { 6059 return ErrIntOverflowOcr 6060 } 6061 if iNdEx >= l { 6062 return io.ErrUnexpectedEOF 6063 } 6064 b := dAtA[iNdEx] 6065 iNdEx++ 6066 byteLen |= int(b&0x7F) << shift 6067 if b < 0x80 { 6068 break 6069 } 6070 } 6071 if byteLen < 0 { 6072 return ErrInvalidLengthOcr 6073 } 6074 postIndex := iNdEx + byteLen 6075 if postIndex < 0 { 6076 return ErrInvalidLengthOcr 6077 } 6078 if postIndex > l { 6079 return io.ErrUnexpectedEOF 6080 } 6081 m.ExtraHash = append(m.ExtraHash[:0], dAtA[iNdEx:postIndex]...) 6082 if m.ExtraHash == nil { 6083 m.ExtraHash = []byte{} 6084 } 6085 iNdEx = postIndex 6086 case 5: 6087 if wireType != 2 { 6088 return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) 6089 } 6090 var byteLen int 6091 for shift := uint(0); ; shift += 7 { 6092 if shift >= 64 { 6093 return ErrIntOverflowOcr 6094 } 6095 if iNdEx >= l { 6096 return io.ErrUnexpectedEOF 6097 } 6098 b := dAtA[iNdEx] 6099 iNdEx++ 6100 byteLen |= int(b&0x7F) << shift 6101 if b < 0x80 { 6102 break 6103 } 6104 } 6105 if byteLen < 0 { 6106 return ErrInvalidLengthOcr 6107 } 6108 postIndex := iNdEx + byteLen 6109 if postIndex < 0 { 6110 return ErrInvalidLengthOcr 6111 } 6112 if postIndex > l { 6113 return io.ErrUnexpectedEOF 6114 } 6115 m.Report = append(m.Report[:0], dAtA[iNdEx:postIndex]...) 6116 if m.Report == nil { 6117 m.Report = []byte{} 6118 } 6119 iNdEx = postIndex 6120 default: 6121 iNdEx = preIndex 6122 skippy, err := skipOcr(dAtA[iNdEx:]) 6123 if err != nil { 6124 return err 6125 } 6126 if (skippy < 0) || (iNdEx+skippy) < 0 { 6127 return ErrInvalidLengthOcr 6128 } 6129 if (iNdEx + skippy) > l { 6130 return io.ErrUnexpectedEOF 6131 } 6132 iNdEx += skippy 6133 } 6134 } 6135 6136 if iNdEx > l { 6137 return io.ErrUnexpectedEOF 6138 } 6139 return nil 6140 } 6141 func (m *EventOraclePaid) Unmarshal(dAtA []byte) error { 6142 l := len(dAtA) 6143 iNdEx := 0 6144 for iNdEx < l { 6145 preIndex := iNdEx 6146 var wire uint64 6147 for shift := uint(0); ; shift += 7 { 6148 if shift >= 64 { 6149 return ErrIntOverflowOcr 6150 } 6151 if iNdEx >= l { 6152 return io.ErrUnexpectedEOF 6153 } 6154 b := dAtA[iNdEx] 6155 iNdEx++ 6156 wire |= uint64(b&0x7F) << shift 6157 if b < 0x80 { 6158 break 6159 } 6160 } 6161 fieldNum := int32(wire >> 3) 6162 wireType := int(wire & 0x7) 6163 if wireType == 4 { 6164 return fmt.Errorf("proto: EventOraclePaid: wiretype end group for non-group") 6165 } 6166 if fieldNum <= 0 { 6167 return fmt.Errorf("proto: EventOraclePaid: illegal tag %d (wire type %d)", fieldNum, wire) 6168 } 6169 switch fieldNum { 6170 case 1: 6171 if wireType != 2 { 6172 return fmt.Errorf("proto: wrong wireType = %d for field TransmitterAddr", wireType) 6173 } 6174 var stringLen uint64 6175 for shift := uint(0); ; shift += 7 { 6176 if shift >= 64 { 6177 return ErrIntOverflowOcr 6178 } 6179 if iNdEx >= l { 6180 return io.ErrUnexpectedEOF 6181 } 6182 b := dAtA[iNdEx] 6183 iNdEx++ 6184 stringLen |= uint64(b&0x7F) << shift 6185 if b < 0x80 { 6186 break 6187 } 6188 } 6189 intStringLen := int(stringLen) 6190 if intStringLen < 0 { 6191 return ErrInvalidLengthOcr 6192 } 6193 postIndex := iNdEx + intStringLen 6194 if postIndex < 0 { 6195 return ErrInvalidLengthOcr 6196 } 6197 if postIndex > l { 6198 return io.ErrUnexpectedEOF 6199 } 6200 m.TransmitterAddr = string(dAtA[iNdEx:postIndex]) 6201 iNdEx = postIndex 6202 case 2: 6203 if wireType != 2 { 6204 return fmt.Errorf("proto: wrong wireType = %d for field PayeeAddr", wireType) 6205 } 6206 var stringLen uint64 6207 for shift := uint(0); ; shift += 7 { 6208 if shift >= 64 { 6209 return ErrIntOverflowOcr 6210 } 6211 if iNdEx >= l { 6212 return io.ErrUnexpectedEOF 6213 } 6214 b := dAtA[iNdEx] 6215 iNdEx++ 6216 stringLen |= uint64(b&0x7F) << shift 6217 if b < 0x80 { 6218 break 6219 } 6220 } 6221 intStringLen := int(stringLen) 6222 if intStringLen < 0 { 6223 return ErrInvalidLengthOcr 6224 } 6225 postIndex := iNdEx + intStringLen 6226 if postIndex < 0 { 6227 return ErrInvalidLengthOcr 6228 } 6229 if postIndex > l { 6230 return io.ErrUnexpectedEOF 6231 } 6232 m.PayeeAddr = string(dAtA[iNdEx:postIndex]) 6233 iNdEx = postIndex 6234 case 3: 6235 if wireType != 2 { 6236 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 6237 } 6238 var msglen int 6239 for shift := uint(0); ; shift += 7 { 6240 if shift >= 64 { 6241 return ErrIntOverflowOcr 6242 } 6243 if iNdEx >= l { 6244 return io.ErrUnexpectedEOF 6245 } 6246 b := dAtA[iNdEx] 6247 iNdEx++ 6248 msglen |= int(b&0x7F) << shift 6249 if b < 0x80 { 6250 break 6251 } 6252 } 6253 if msglen < 0 { 6254 return ErrInvalidLengthOcr 6255 } 6256 postIndex := iNdEx + msglen 6257 if postIndex < 0 { 6258 return ErrInvalidLengthOcr 6259 } 6260 if postIndex > l { 6261 return io.ErrUnexpectedEOF 6262 } 6263 if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6264 return err 6265 } 6266 iNdEx = postIndex 6267 default: 6268 iNdEx = preIndex 6269 skippy, err := skipOcr(dAtA[iNdEx:]) 6270 if err != nil { 6271 return err 6272 } 6273 if (skippy < 0) || (iNdEx+skippy) < 0 { 6274 return ErrInvalidLengthOcr 6275 } 6276 if (iNdEx + skippy) > l { 6277 return io.ErrUnexpectedEOF 6278 } 6279 iNdEx += skippy 6280 } 6281 } 6282 6283 if iNdEx > l { 6284 return io.ErrUnexpectedEOF 6285 } 6286 return nil 6287 } 6288 func (m *EventAnswerUpdated) Unmarshal(dAtA []byte) error { 6289 l := len(dAtA) 6290 iNdEx := 0 6291 for iNdEx < l { 6292 preIndex := iNdEx 6293 var wire uint64 6294 for shift := uint(0); ; shift += 7 { 6295 if shift >= 64 { 6296 return ErrIntOverflowOcr 6297 } 6298 if iNdEx >= l { 6299 return io.ErrUnexpectedEOF 6300 } 6301 b := dAtA[iNdEx] 6302 iNdEx++ 6303 wire |= uint64(b&0x7F) << shift 6304 if b < 0x80 { 6305 break 6306 } 6307 } 6308 fieldNum := int32(wire >> 3) 6309 wireType := int(wire & 0x7) 6310 if wireType == 4 { 6311 return fmt.Errorf("proto: EventAnswerUpdated: wiretype end group for non-group") 6312 } 6313 if fieldNum <= 0 { 6314 return fmt.Errorf("proto: EventAnswerUpdated: illegal tag %d (wire type %d)", fieldNum, wire) 6315 } 6316 switch fieldNum { 6317 case 1: 6318 if wireType != 2 { 6319 return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) 6320 } 6321 var stringLen uint64 6322 for shift := uint(0); ; shift += 7 { 6323 if shift >= 64 { 6324 return ErrIntOverflowOcr 6325 } 6326 if iNdEx >= l { 6327 return io.ErrUnexpectedEOF 6328 } 6329 b := dAtA[iNdEx] 6330 iNdEx++ 6331 stringLen |= uint64(b&0x7F) << shift 6332 if b < 0x80 { 6333 break 6334 } 6335 } 6336 intStringLen := int(stringLen) 6337 if intStringLen < 0 { 6338 return ErrInvalidLengthOcr 6339 } 6340 postIndex := iNdEx + intStringLen 6341 if postIndex < 0 { 6342 return ErrInvalidLengthOcr 6343 } 6344 if postIndex > l { 6345 return io.ErrUnexpectedEOF 6346 } 6347 if err := m.Current.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6348 return err 6349 } 6350 iNdEx = postIndex 6351 case 2: 6352 if wireType != 2 { 6353 return fmt.Errorf("proto: wrong wireType = %d for field RoundId", wireType) 6354 } 6355 var stringLen uint64 6356 for shift := uint(0); ; shift += 7 { 6357 if shift >= 64 { 6358 return ErrIntOverflowOcr 6359 } 6360 if iNdEx >= l { 6361 return io.ErrUnexpectedEOF 6362 } 6363 b := dAtA[iNdEx] 6364 iNdEx++ 6365 stringLen |= uint64(b&0x7F) << shift 6366 if b < 0x80 { 6367 break 6368 } 6369 } 6370 intStringLen := int(stringLen) 6371 if intStringLen < 0 { 6372 return ErrInvalidLengthOcr 6373 } 6374 postIndex := iNdEx + intStringLen 6375 if postIndex < 0 { 6376 return ErrInvalidLengthOcr 6377 } 6378 if postIndex > l { 6379 return io.ErrUnexpectedEOF 6380 } 6381 if err := m.RoundId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6382 return err 6383 } 6384 iNdEx = postIndex 6385 case 3: 6386 if wireType != 2 { 6387 return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) 6388 } 6389 var msglen int 6390 for shift := uint(0); ; shift += 7 { 6391 if shift >= 64 { 6392 return ErrIntOverflowOcr 6393 } 6394 if iNdEx >= l { 6395 return io.ErrUnexpectedEOF 6396 } 6397 b := dAtA[iNdEx] 6398 iNdEx++ 6399 msglen |= int(b&0x7F) << shift 6400 if b < 0x80 { 6401 break 6402 } 6403 } 6404 if msglen < 0 { 6405 return ErrInvalidLengthOcr 6406 } 6407 postIndex := iNdEx + msglen 6408 if postIndex < 0 { 6409 return ErrInvalidLengthOcr 6410 } 6411 if postIndex > l { 6412 return io.ErrUnexpectedEOF 6413 } 6414 if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil { 6415 return err 6416 } 6417 iNdEx = postIndex 6418 default: 6419 iNdEx = preIndex 6420 skippy, err := skipOcr(dAtA[iNdEx:]) 6421 if err != nil { 6422 return err 6423 } 6424 if (skippy < 0) || (iNdEx+skippy) < 0 { 6425 return ErrInvalidLengthOcr 6426 } 6427 if (iNdEx + skippy) > l { 6428 return io.ErrUnexpectedEOF 6429 } 6430 iNdEx += skippy 6431 } 6432 } 6433 6434 if iNdEx > l { 6435 return io.ErrUnexpectedEOF 6436 } 6437 return nil 6438 } 6439 func (m *EventNewRound) Unmarshal(dAtA []byte) error { 6440 l := len(dAtA) 6441 iNdEx := 0 6442 for iNdEx < l { 6443 preIndex := iNdEx 6444 var wire uint64 6445 for shift := uint(0); ; shift += 7 { 6446 if shift >= 64 { 6447 return ErrIntOverflowOcr 6448 } 6449 if iNdEx >= l { 6450 return io.ErrUnexpectedEOF 6451 } 6452 b := dAtA[iNdEx] 6453 iNdEx++ 6454 wire |= uint64(b&0x7F) << shift 6455 if b < 0x80 { 6456 break 6457 } 6458 } 6459 fieldNum := int32(wire >> 3) 6460 wireType := int(wire & 0x7) 6461 if wireType == 4 { 6462 return fmt.Errorf("proto: EventNewRound: wiretype end group for non-group") 6463 } 6464 if fieldNum <= 0 { 6465 return fmt.Errorf("proto: EventNewRound: illegal tag %d (wire type %d)", fieldNum, wire) 6466 } 6467 switch fieldNum { 6468 case 1: 6469 if wireType != 2 { 6470 return fmt.Errorf("proto: wrong wireType = %d for field RoundId", wireType) 6471 } 6472 var stringLen uint64 6473 for shift := uint(0); ; shift += 7 { 6474 if shift >= 64 { 6475 return ErrIntOverflowOcr 6476 } 6477 if iNdEx >= l { 6478 return io.ErrUnexpectedEOF 6479 } 6480 b := dAtA[iNdEx] 6481 iNdEx++ 6482 stringLen |= uint64(b&0x7F) << shift 6483 if b < 0x80 { 6484 break 6485 } 6486 } 6487 intStringLen := int(stringLen) 6488 if intStringLen < 0 { 6489 return ErrInvalidLengthOcr 6490 } 6491 postIndex := iNdEx + intStringLen 6492 if postIndex < 0 { 6493 return ErrInvalidLengthOcr 6494 } 6495 if postIndex > l { 6496 return io.ErrUnexpectedEOF 6497 } 6498 if err := m.RoundId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6499 return err 6500 } 6501 iNdEx = postIndex 6502 case 2: 6503 if wireType != 2 { 6504 return fmt.Errorf("proto: wrong wireType = %d for field StartedBy", wireType) 6505 } 6506 var stringLen uint64 6507 for shift := uint(0); ; shift += 7 { 6508 if shift >= 64 { 6509 return ErrIntOverflowOcr 6510 } 6511 if iNdEx >= l { 6512 return io.ErrUnexpectedEOF 6513 } 6514 b := dAtA[iNdEx] 6515 iNdEx++ 6516 stringLen |= uint64(b&0x7F) << shift 6517 if b < 0x80 { 6518 break 6519 } 6520 } 6521 intStringLen := int(stringLen) 6522 if intStringLen < 0 { 6523 return ErrInvalidLengthOcr 6524 } 6525 postIndex := iNdEx + intStringLen 6526 if postIndex < 0 { 6527 return ErrInvalidLengthOcr 6528 } 6529 if postIndex > l { 6530 return io.ErrUnexpectedEOF 6531 } 6532 m.StartedBy = string(dAtA[iNdEx:postIndex]) 6533 iNdEx = postIndex 6534 case 3: 6535 if wireType != 2 { 6536 return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) 6537 } 6538 var msglen int 6539 for shift := uint(0); ; shift += 7 { 6540 if shift >= 64 { 6541 return ErrIntOverflowOcr 6542 } 6543 if iNdEx >= l { 6544 return io.ErrUnexpectedEOF 6545 } 6546 b := dAtA[iNdEx] 6547 iNdEx++ 6548 msglen |= int(b&0x7F) << shift 6549 if b < 0x80 { 6550 break 6551 } 6552 } 6553 if msglen < 0 { 6554 return ErrInvalidLengthOcr 6555 } 6556 postIndex := iNdEx + msglen 6557 if postIndex < 0 { 6558 return ErrInvalidLengthOcr 6559 } 6560 if postIndex > l { 6561 return io.ErrUnexpectedEOF 6562 } 6563 if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.StartedAt, dAtA[iNdEx:postIndex]); err != nil { 6564 return err 6565 } 6566 iNdEx = postIndex 6567 default: 6568 iNdEx = preIndex 6569 skippy, err := skipOcr(dAtA[iNdEx:]) 6570 if err != nil { 6571 return err 6572 } 6573 if (skippy < 0) || (iNdEx+skippy) < 0 { 6574 return ErrInvalidLengthOcr 6575 } 6576 if (iNdEx + skippy) > l { 6577 return io.ErrUnexpectedEOF 6578 } 6579 iNdEx += skippy 6580 } 6581 } 6582 6583 if iNdEx > l { 6584 return io.ErrUnexpectedEOF 6585 } 6586 return nil 6587 } 6588 func (m *EventTransmitted) Unmarshal(dAtA []byte) error { 6589 l := len(dAtA) 6590 iNdEx := 0 6591 for iNdEx < l { 6592 preIndex := iNdEx 6593 var wire uint64 6594 for shift := uint(0); ; shift += 7 { 6595 if shift >= 64 { 6596 return ErrIntOverflowOcr 6597 } 6598 if iNdEx >= l { 6599 return io.ErrUnexpectedEOF 6600 } 6601 b := dAtA[iNdEx] 6602 iNdEx++ 6603 wire |= uint64(b&0x7F) << shift 6604 if b < 0x80 { 6605 break 6606 } 6607 } 6608 fieldNum := int32(wire >> 3) 6609 wireType := int(wire & 0x7) 6610 if wireType == 4 { 6611 return fmt.Errorf("proto: EventTransmitted: wiretype end group for non-group") 6612 } 6613 if fieldNum <= 0 { 6614 return fmt.Errorf("proto: EventTransmitted: illegal tag %d (wire type %d)", fieldNum, wire) 6615 } 6616 switch fieldNum { 6617 case 1: 6618 if wireType != 2 { 6619 return fmt.Errorf("proto: wrong wireType = %d for field ConfigDigest", wireType) 6620 } 6621 var byteLen int 6622 for shift := uint(0); ; shift += 7 { 6623 if shift >= 64 { 6624 return ErrIntOverflowOcr 6625 } 6626 if iNdEx >= l { 6627 return io.ErrUnexpectedEOF 6628 } 6629 b := dAtA[iNdEx] 6630 iNdEx++ 6631 byteLen |= int(b&0x7F) << shift 6632 if b < 0x80 { 6633 break 6634 } 6635 } 6636 if byteLen < 0 { 6637 return ErrInvalidLengthOcr 6638 } 6639 postIndex := iNdEx + byteLen 6640 if postIndex < 0 { 6641 return ErrInvalidLengthOcr 6642 } 6643 if postIndex > l { 6644 return io.ErrUnexpectedEOF 6645 } 6646 m.ConfigDigest = append(m.ConfigDigest[:0], dAtA[iNdEx:postIndex]...) 6647 if m.ConfigDigest == nil { 6648 m.ConfigDigest = []byte{} 6649 } 6650 iNdEx = postIndex 6651 case 2: 6652 if wireType != 0 { 6653 return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) 6654 } 6655 m.Epoch = 0 6656 for shift := uint(0); ; shift += 7 { 6657 if shift >= 64 { 6658 return ErrIntOverflowOcr 6659 } 6660 if iNdEx >= l { 6661 return io.ErrUnexpectedEOF 6662 } 6663 b := dAtA[iNdEx] 6664 iNdEx++ 6665 m.Epoch |= uint64(b&0x7F) << shift 6666 if b < 0x80 { 6667 break 6668 } 6669 } 6670 default: 6671 iNdEx = preIndex 6672 skippy, err := skipOcr(dAtA[iNdEx:]) 6673 if err != nil { 6674 return err 6675 } 6676 if (skippy < 0) || (iNdEx+skippy) < 0 { 6677 return ErrInvalidLengthOcr 6678 } 6679 if (iNdEx + skippy) > l { 6680 return io.ErrUnexpectedEOF 6681 } 6682 iNdEx += skippy 6683 } 6684 } 6685 6686 if iNdEx > l { 6687 return io.ErrUnexpectedEOF 6688 } 6689 return nil 6690 } 6691 func (m *EventNewTransmission) Unmarshal(dAtA []byte) error { 6692 l := len(dAtA) 6693 iNdEx := 0 6694 for iNdEx < l { 6695 preIndex := iNdEx 6696 var wire uint64 6697 for shift := uint(0); ; shift += 7 { 6698 if shift >= 64 { 6699 return ErrIntOverflowOcr 6700 } 6701 if iNdEx >= l { 6702 return io.ErrUnexpectedEOF 6703 } 6704 b := dAtA[iNdEx] 6705 iNdEx++ 6706 wire |= uint64(b&0x7F) << shift 6707 if b < 0x80 { 6708 break 6709 } 6710 } 6711 fieldNum := int32(wire >> 3) 6712 wireType := int(wire & 0x7) 6713 if wireType == 4 { 6714 return fmt.Errorf("proto: EventNewTransmission: wiretype end group for non-group") 6715 } 6716 if fieldNum <= 0 { 6717 return fmt.Errorf("proto: EventNewTransmission: illegal tag %d (wire type %d)", fieldNum, wire) 6718 } 6719 switch fieldNum { 6720 case 1: 6721 if wireType != 2 { 6722 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 6723 } 6724 var stringLen uint64 6725 for shift := uint(0); ; shift += 7 { 6726 if shift >= 64 { 6727 return ErrIntOverflowOcr 6728 } 6729 if iNdEx >= l { 6730 return io.ErrUnexpectedEOF 6731 } 6732 b := dAtA[iNdEx] 6733 iNdEx++ 6734 stringLen |= uint64(b&0x7F) << shift 6735 if b < 0x80 { 6736 break 6737 } 6738 } 6739 intStringLen := int(stringLen) 6740 if intStringLen < 0 { 6741 return ErrInvalidLengthOcr 6742 } 6743 postIndex := iNdEx + intStringLen 6744 if postIndex < 0 { 6745 return ErrInvalidLengthOcr 6746 } 6747 if postIndex > l { 6748 return io.ErrUnexpectedEOF 6749 } 6750 m.FeedId = string(dAtA[iNdEx:postIndex]) 6751 iNdEx = postIndex 6752 case 2: 6753 if wireType != 0 { 6754 return fmt.Errorf("proto: wrong wireType = %d for field AggregatorRoundId", wireType) 6755 } 6756 m.AggregatorRoundId = 0 6757 for shift := uint(0); ; shift += 7 { 6758 if shift >= 64 { 6759 return ErrIntOverflowOcr 6760 } 6761 if iNdEx >= l { 6762 return io.ErrUnexpectedEOF 6763 } 6764 b := dAtA[iNdEx] 6765 iNdEx++ 6766 m.AggregatorRoundId |= uint32(b&0x7F) << shift 6767 if b < 0x80 { 6768 break 6769 } 6770 } 6771 case 3: 6772 if wireType != 2 { 6773 return fmt.Errorf("proto: wrong wireType = %d for field Answer", wireType) 6774 } 6775 var stringLen uint64 6776 for shift := uint(0); ; shift += 7 { 6777 if shift >= 64 { 6778 return ErrIntOverflowOcr 6779 } 6780 if iNdEx >= l { 6781 return io.ErrUnexpectedEOF 6782 } 6783 b := dAtA[iNdEx] 6784 iNdEx++ 6785 stringLen |= uint64(b&0x7F) << shift 6786 if b < 0x80 { 6787 break 6788 } 6789 } 6790 intStringLen := int(stringLen) 6791 if intStringLen < 0 { 6792 return ErrInvalidLengthOcr 6793 } 6794 postIndex := iNdEx + intStringLen 6795 if postIndex < 0 { 6796 return ErrInvalidLengthOcr 6797 } 6798 if postIndex > l { 6799 return io.ErrUnexpectedEOF 6800 } 6801 if err := m.Answer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6802 return err 6803 } 6804 iNdEx = postIndex 6805 case 4: 6806 if wireType != 2 { 6807 return fmt.Errorf("proto: wrong wireType = %d for field Transmitter", wireType) 6808 } 6809 var stringLen uint64 6810 for shift := uint(0); ; shift += 7 { 6811 if shift >= 64 { 6812 return ErrIntOverflowOcr 6813 } 6814 if iNdEx >= l { 6815 return io.ErrUnexpectedEOF 6816 } 6817 b := dAtA[iNdEx] 6818 iNdEx++ 6819 stringLen |= uint64(b&0x7F) << shift 6820 if b < 0x80 { 6821 break 6822 } 6823 } 6824 intStringLen := int(stringLen) 6825 if intStringLen < 0 { 6826 return ErrInvalidLengthOcr 6827 } 6828 postIndex := iNdEx + intStringLen 6829 if postIndex < 0 { 6830 return ErrInvalidLengthOcr 6831 } 6832 if postIndex > l { 6833 return io.ErrUnexpectedEOF 6834 } 6835 m.Transmitter = string(dAtA[iNdEx:postIndex]) 6836 iNdEx = postIndex 6837 case 5: 6838 if wireType != 0 { 6839 return fmt.Errorf("proto: wrong wireType = %d for field ObservationsTimestamp", wireType) 6840 } 6841 m.ObservationsTimestamp = 0 6842 for shift := uint(0); ; shift += 7 { 6843 if shift >= 64 { 6844 return ErrIntOverflowOcr 6845 } 6846 if iNdEx >= l { 6847 return io.ErrUnexpectedEOF 6848 } 6849 b := dAtA[iNdEx] 6850 iNdEx++ 6851 m.ObservationsTimestamp |= int64(b&0x7F) << shift 6852 if b < 0x80 { 6853 break 6854 } 6855 } 6856 case 6: 6857 if wireType != 2 { 6858 return fmt.Errorf("proto: wrong wireType = %d for field Observations", wireType) 6859 } 6860 var stringLen uint64 6861 for shift := uint(0); ; shift += 7 { 6862 if shift >= 64 { 6863 return ErrIntOverflowOcr 6864 } 6865 if iNdEx >= l { 6866 return io.ErrUnexpectedEOF 6867 } 6868 b := dAtA[iNdEx] 6869 iNdEx++ 6870 stringLen |= uint64(b&0x7F) << shift 6871 if b < 0x80 { 6872 break 6873 } 6874 } 6875 intStringLen := int(stringLen) 6876 if intStringLen < 0 { 6877 return ErrInvalidLengthOcr 6878 } 6879 postIndex := iNdEx + intStringLen 6880 if postIndex < 0 { 6881 return ErrInvalidLengthOcr 6882 } 6883 if postIndex > l { 6884 return io.ErrUnexpectedEOF 6885 } 6886 var v cosmossdk_io_math.LegacyDec 6887 m.Observations = append(m.Observations, v) 6888 if err := m.Observations[len(m.Observations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6889 return err 6890 } 6891 iNdEx = postIndex 6892 case 7: 6893 if wireType != 2 { 6894 return fmt.Errorf("proto: wrong wireType = %d for field Observers", wireType) 6895 } 6896 var byteLen int 6897 for shift := uint(0); ; shift += 7 { 6898 if shift >= 64 { 6899 return ErrIntOverflowOcr 6900 } 6901 if iNdEx >= l { 6902 return io.ErrUnexpectedEOF 6903 } 6904 b := dAtA[iNdEx] 6905 iNdEx++ 6906 byteLen |= int(b&0x7F) << shift 6907 if b < 0x80 { 6908 break 6909 } 6910 } 6911 if byteLen < 0 { 6912 return ErrInvalidLengthOcr 6913 } 6914 postIndex := iNdEx + byteLen 6915 if postIndex < 0 { 6916 return ErrInvalidLengthOcr 6917 } 6918 if postIndex > l { 6919 return io.ErrUnexpectedEOF 6920 } 6921 m.Observers = append(m.Observers[:0], dAtA[iNdEx:postIndex]...) 6922 if m.Observers == nil { 6923 m.Observers = []byte{} 6924 } 6925 iNdEx = postIndex 6926 case 8: 6927 if wireType != 2 { 6928 return fmt.Errorf("proto: wrong wireType = %d for field ConfigDigest", wireType) 6929 } 6930 var byteLen int 6931 for shift := uint(0); ; shift += 7 { 6932 if shift >= 64 { 6933 return ErrIntOverflowOcr 6934 } 6935 if iNdEx >= l { 6936 return io.ErrUnexpectedEOF 6937 } 6938 b := dAtA[iNdEx] 6939 iNdEx++ 6940 byteLen |= int(b&0x7F) << shift 6941 if b < 0x80 { 6942 break 6943 } 6944 } 6945 if byteLen < 0 { 6946 return ErrInvalidLengthOcr 6947 } 6948 postIndex := iNdEx + byteLen 6949 if postIndex < 0 { 6950 return ErrInvalidLengthOcr 6951 } 6952 if postIndex > l { 6953 return io.ErrUnexpectedEOF 6954 } 6955 m.ConfigDigest = append(m.ConfigDigest[:0], dAtA[iNdEx:postIndex]...) 6956 if m.ConfigDigest == nil { 6957 m.ConfigDigest = []byte{} 6958 } 6959 iNdEx = postIndex 6960 case 9: 6961 if wireType != 2 { 6962 return fmt.Errorf("proto: wrong wireType = %d for field EpochAndRound", wireType) 6963 } 6964 var msglen int 6965 for shift := uint(0); ; shift += 7 { 6966 if shift >= 64 { 6967 return ErrIntOverflowOcr 6968 } 6969 if iNdEx >= l { 6970 return io.ErrUnexpectedEOF 6971 } 6972 b := dAtA[iNdEx] 6973 iNdEx++ 6974 msglen |= int(b&0x7F) << shift 6975 if b < 0x80 { 6976 break 6977 } 6978 } 6979 if msglen < 0 { 6980 return ErrInvalidLengthOcr 6981 } 6982 postIndex := iNdEx + msglen 6983 if postIndex < 0 { 6984 return ErrInvalidLengthOcr 6985 } 6986 if postIndex > l { 6987 return io.ErrUnexpectedEOF 6988 } 6989 if m.EpochAndRound == nil { 6990 m.EpochAndRound = &EpochAndRound{} 6991 } 6992 if err := m.EpochAndRound.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6993 return err 6994 } 6995 iNdEx = postIndex 6996 default: 6997 iNdEx = preIndex 6998 skippy, err := skipOcr(dAtA[iNdEx:]) 6999 if err != nil { 7000 return err 7001 } 7002 if (skippy < 0) || (iNdEx+skippy) < 0 { 7003 return ErrInvalidLengthOcr 7004 } 7005 if (iNdEx + skippy) > l { 7006 return io.ErrUnexpectedEOF 7007 } 7008 iNdEx += skippy 7009 } 7010 } 7011 7012 if iNdEx > l { 7013 return io.ErrUnexpectedEOF 7014 } 7015 return nil 7016 } 7017 func (m *EventConfigSet) Unmarshal(dAtA []byte) error { 7018 l := len(dAtA) 7019 iNdEx := 0 7020 for iNdEx < l { 7021 preIndex := iNdEx 7022 var wire uint64 7023 for shift := uint(0); ; shift += 7 { 7024 if shift >= 64 { 7025 return ErrIntOverflowOcr 7026 } 7027 if iNdEx >= l { 7028 return io.ErrUnexpectedEOF 7029 } 7030 b := dAtA[iNdEx] 7031 iNdEx++ 7032 wire |= uint64(b&0x7F) << shift 7033 if b < 0x80 { 7034 break 7035 } 7036 } 7037 fieldNum := int32(wire >> 3) 7038 wireType := int(wire & 0x7) 7039 if wireType == 4 { 7040 return fmt.Errorf("proto: EventConfigSet: wiretype end group for non-group") 7041 } 7042 if fieldNum <= 0 { 7043 return fmt.Errorf("proto: EventConfigSet: illegal tag %d (wire type %d)", fieldNum, wire) 7044 } 7045 switch fieldNum { 7046 case 1: 7047 if wireType != 2 { 7048 return fmt.Errorf("proto: wrong wireType = %d for field ConfigDigest", wireType) 7049 } 7050 var byteLen int 7051 for shift := uint(0); ; shift += 7 { 7052 if shift >= 64 { 7053 return ErrIntOverflowOcr 7054 } 7055 if iNdEx >= l { 7056 return io.ErrUnexpectedEOF 7057 } 7058 b := dAtA[iNdEx] 7059 iNdEx++ 7060 byteLen |= int(b&0x7F) << shift 7061 if b < 0x80 { 7062 break 7063 } 7064 } 7065 if byteLen < 0 { 7066 return ErrInvalidLengthOcr 7067 } 7068 postIndex := iNdEx + byteLen 7069 if postIndex < 0 { 7070 return ErrInvalidLengthOcr 7071 } 7072 if postIndex > l { 7073 return io.ErrUnexpectedEOF 7074 } 7075 m.ConfigDigest = append(m.ConfigDigest[:0], dAtA[iNdEx:postIndex]...) 7076 if m.ConfigDigest == nil { 7077 m.ConfigDigest = []byte{} 7078 } 7079 iNdEx = postIndex 7080 case 2: 7081 if wireType != 0 { 7082 return fmt.Errorf("proto: wrong wireType = %d for field PreviousConfigBlockNumber", wireType) 7083 } 7084 m.PreviousConfigBlockNumber = 0 7085 for shift := uint(0); ; shift += 7 { 7086 if shift >= 64 { 7087 return ErrIntOverflowOcr 7088 } 7089 if iNdEx >= l { 7090 return io.ErrUnexpectedEOF 7091 } 7092 b := dAtA[iNdEx] 7093 iNdEx++ 7094 m.PreviousConfigBlockNumber |= int64(b&0x7F) << shift 7095 if b < 0x80 { 7096 break 7097 } 7098 } 7099 case 3: 7100 if wireType != 2 { 7101 return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) 7102 } 7103 var msglen int 7104 for shift := uint(0); ; shift += 7 { 7105 if shift >= 64 { 7106 return ErrIntOverflowOcr 7107 } 7108 if iNdEx >= l { 7109 return io.ErrUnexpectedEOF 7110 } 7111 b := dAtA[iNdEx] 7112 iNdEx++ 7113 msglen |= int(b&0x7F) << shift 7114 if b < 0x80 { 7115 break 7116 } 7117 } 7118 if msglen < 0 { 7119 return ErrInvalidLengthOcr 7120 } 7121 postIndex := iNdEx + msglen 7122 if postIndex < 0 { 7123 return ErrInvalidLengthOcr 7124 } 7125 if postIndex > l { 7126 return io.ErrUnexpectedEOF 7127 } 7128 if m.Config == nil { 7129 m.Config = &FeedConfig{} 7130 } 7131 if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7132 return err 7133 } 7134 iNdEx = postIndex 7135 case 4: 7136 if wireType != 2 { 7137 return fmt.Errorf("proto: wrong wireType = %d for field ConfigInfo", wireType) 7138 } 7139 var msglen int 7140 for shift := uint(0); ; shift += 7 { 7141 if shift >= 64 { 7142 return ErrIntOverflowOcr 7143 } 7144 if iNdEx >= l { 7145 return io.ErrUnexpectedEOF 7146 } 7147 b := dAtA[iNdEx] 7148 iNdEx++ 7149 msglen |= int(b&0x7F) << shift 7150 if b < 0x80 { 7151 break 7152 } 7153 } 7154 if msglen < 0 { 7155 return ErrInvalidLengthOcr 7156 } 7157 postIndex := iNdEx + msglen 7158 if postIndex < 0 { 7159 return ErrInvalidLengthOcr 7160 } 7161 if postIndex > l { 7162 return io.ErrUnexpectedEOF 7163 } 7164 if m.ConfigInfo == nil { 7165 m.ConfigInfo = &FeedConfigInfo{} 7166 } 7167 if err := m.ConfigInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7168 return err 7169 } 7170 iNdEx = postIndex 7171 default: 7172 iNdEx = preIndex 7173 skippy, err := skipOcr(dAtA[iNdEx:]) 7174 if err != nil { 7175 return err 7176 } 7177 if (skippy < 0) || (iNdEx+skippy) < 0 { 7178 return ErrInvalidLengthOcr 7179 } 7180 if (iNdEx + skippy) > l { 7181 return io.ErrUnexpectedEOF 7182 } 7183 iNdEx += skippy 7184 } 7185 } 7186 7187 if iNdEx > l { 7188 return io.ErrUnexpectedEOF 7189 } 7190 return nil 7191 } 7192 func skipOcr(dAtA []byte) (n int, err error) { 7193 l := len(dAtA) 7194 iNdEx := 0 7195 depth := 0 7196 for iNdEx < l { 7197 var wire uint64 7198 for shift := uint(0); ; shift += 7 { 7199 if shift >= 64 { 7200 return 0, ErrIntOverflowOcr 7201 } 7202 if iNdEx >= l { 7203 return 0, io.ErrUnexpectedEOF 7204 } 7205 b := dAtA[iNdEx] 7206 iNdEx++ 7207 wire |= (uint64(b) & 0x7F) << shift 7208 if b < 0x80 { 7209 break 7210 } 7211 } 7212 wireType := int(wire & 0x7) 7213 switch wireType { 7214 case 0: 7215 for shift := uint(0); ; shift += 7 { 7216 if shift >= 64 { 7217 return 0, ErrIntOverflowOcr 7218 } 7219 if iNdEx >= l { 7220 return 0, io.ErrUnexpectedEOF 7221 } 7222 iNdEx++ 7223 if dAtA[iNdEx-1] < 0x80 { 7224 break 7225 } 7226 } 7227 case 1: 7228 iNdEx += 8 7229 case 2: 7230 var length int 7231 for shift := uint(0); ; shift += 7 { 7232 if shift >= 64 { 7233 return 0, ErrIntOverflowOcr 7234 } 7235 if iNdEx >= l { 7236 return 0, io.ErrUnexpectedEOF 7237 } 7238 b := dAtA[iNdEx] 7239 iNdEx++ 7240 length |= (int(b) & 0x7F) << shift 7241 if b < 0x80 { 7242 break 7243 } 7244 } 7245 if length < 0 { 7246 return 0, ErrInvalidLengthOcr 7247 } 7248 iNdEx += length 7249 case 3: 7250 depth++ 7251 case 4: 7252 if depth == 0 { 7253 return 0, ErrUnexpectedEndOfGroupOcr 7254 } 7255 depth-- 7256 case 5: 7257 iNdEx += 4 7258 default: 7259 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 7260 } 7261 if iNdEx < 0 { 7262 return 0, ErrInvalidLengthOcr 7263 } 7264 if depth == 0 { 7265 return iNdEx, nil 7266 } 7267 } 7268 return 0, io.ErrUnexpectedEOF 7269 } 7270 7271 var ( 7272 ErrInvalidLengthOcr = fmt.Errorf("proto: negative length found during unmarshaling") 7273 ErrIntOverflowOcr = fmt.Errorf("proto: integer overflow") 7274 ErrUnexpectedEndOfGroupOcr = fmt.Errorf("proto: unexpected end of group") 7275 )