github.com/prysmaticlabs/prysm@v1.4.4/proto/slashing/slashing.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.15.8 5 // source: proto/slashing/slashing.proto 6 7 package ethereum_slashing 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types" 16 github_com_prysmaticlabs_go_bitfield "github.com/prysmaticlabs/go-bitfield" 17 _ "github.com/prysmaticlabs/prysm/proto/eth/ext" 18 v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 19 grpc "google.golang.org/grpc" 20 codes "google.golang.org/grpc/codes" 21 status "google.golang.org/grpc/status" 22 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 23 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 24 ) 25 26 const ( 27 // Verify that this generated code is sufficiently up-to-date. 28 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 29 // Verify that runtime/protoimpl is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 31 ) 32 33 // This is a compile-time assertion that a sufficiently up-to-date version 34 // of the legacy proto package is being used. 35 const _ = proto.ProtoPackageIsVersion4 36 37 type HighestAttestationRequest struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 42 // Deprecated: Do not use. 43 ValidatorIds []uint64 `protobuf:"varint,1,rep,packed,name=validator_ids,json=validatorIds,proto3" json:"validator_ids,omitempty"` 44 } 45 46 func (x *HighestAttestationRequest) Reset() { 47 *x = HighestAttestationRequest{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_proto_slashing_slashing_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *HighestAttestationRequest) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*HighestAttestationRequest) ProtoMessage() {} 60 61 func (x *HighestAttestationRequest) ProtoReflect() protoreflect.Message { 62 mi := &file_proto_slashing_slashing_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use HighestAttestationRequest.ProtoReflect.Descriptor instead. 74 func (*HighestAttestationRequest) Descriptor() ([]byte, []int) { 75 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{0} 76 } 77 78 // Deprecated: Do not use. 79 func (x *HighestAttestationRequest) GetValidatorIds() []uint64 { 80 if x != nil { 81 return x.ValidatorIds 82 } 83 return nil 84 } 85 86 type HighestAttestationResponse struct { 87 state protoimpl.MessageState 88 sizeCache protoimpl.SizeCache 89 unknownFields protoimpl.UnknownFields 90 91 // Deprecated: Do not use. 92 Attestations []*HighestAttestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"` 93 } 94 95 func (x *HighestAttestationResponse) Reset() { 96 *x = HighestAttestationResponse{} 97 if protoimpl.UnsafeEnabled { 98 mi := &file_proto_slashing_slashing_proto_msgTypes[1] 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 ms.StoreMessageInfo(mi) 101 } 102 } 103 104 func (x *HighestAttestationResponse) String() string { 105 return protoimpl.X.MessageStringOf(x) 106 } 107 108 func (*HighestAttestationResponse) ProtoMessage() {} 109 110 func (x *HighestAttestationResponse) ProtoReflect() protoreflect.Message { 111 mi := &file_proto_slashing_slashing_proto_msgTypes[1] 112 if protoimpl.UnsafeEnabled && x != nil { 113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 114 if ms.LoadMessageInfo() == nil { 115 ms.StoreMessageInfo(mi) 116 } 117 return ms 118 } 119 return mi.MessageOf(x) 120 } 121 122 // Deprecated: Use HighestAttestationResponse.ProtoReflect.Descriptor instead. 123 func (*HighestAttestationResponse) Descriptor() ([]byte, []int) { 124 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{1} 125 } 126 127 // Deprecated: Do not use. 128 func (x *HighestAttestationResponse) GetAttestations() []*HighestAttestation { 129 if x != nil { 130 return x.Attestations 131 } 132 return nil 133 } 134 135 type HighestAttestation struct { 136 state protoimpl.MessageState 137 sizeCache protoimpl.SizeCache 138 unknownFields protoimpl.UnknownFields 139 140 // Deprecated: Do not use. 141 ValidatorId uint64 `protobuf:"varint,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"` 142 // Deprecated: Do not use. 143 HighestSourceEpoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,2,opt,name=highest_source_epoch,json=highestSourceEpoch,proto3" json:"highest_source_epoch,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 144 HighestTargetEpoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,3,opt,name=highest_target_epoch,json=highestTargetEpoch,proto3" json:"highest_target_epoch,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 145 } 146 147 func (x *HighestAttestation) Reset() { 148 *x = HighestAttestation{} 149 if protoimpl.UnsafeEnabled { 150 mi := &file_proto_slashing_slashing_proto_msgTypes[2] 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 ms.StoreMessageInfo(mi) 153 } 154 } 155 156 func (x *HighestAttestation) String() string { 157 return protoimpl.X.MessageStringOf(x) 158 } 159 160 func (*HighestAttestation) ProtoMessage() {} 161 162 func (x *HighestAttestation) ProtoReflect() protoreflect.Message { 163 mi := &file_proto_slashing_slashing_proto_msgTypes[2] 164 if protoimpl.UnsafeEnabled && x != nil { 165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 166 if ms.LoadMessageInfo() == nil { 167 ms.StoreMessageInfo(mi) 168 } 169 return ms 170 } 171 return mi.MessageOf(x) 172 } 173 174 // Deprecated: Use HighestAttestation.ProtoReflect.Descriptor instead. 175 func (*HighestAttestation) Descriptor() ([]byte, []int) { 176 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{2} 177 } 178 179 // Deprecated: Do not use. 180 func (x *HighestAttestation) GetValidatorId() uint64 { 181 if x != nil { 182 return x.ValidatorId 183 } 184 return 0 185 } 186 187 // Deprecated: Do not use. 188 func (x *HighestAttestation) GetHighestSourceEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 189 if x != nil { 190 return x.HighestSourceEpoch 191 } 192 return github_com_prysmaticlabs_eth2_types.Epoch(0) 193 } 194 195 func (x *HighestAttestation) GetHighestTargetEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 196 if x != nil { 197 return x.HighestTargetEpoch 198 } 199 return github_com_prysmaticlabs_eth2_types.Epoch(0) 200 } 201 202 type ProposerSlashingResponse struct { 203 state protoimpl.MessageState 204 sizeCache protoimpl.SizeCache 205 unknownFields protoimpl.UnknownFields 206 207 // Deprecated: Do not use. 208 ProposerSlashing []*v1alpha1.ProposerSlashing `protobuf:"bytes,1,rep,name=proposer_slashing,json=proposerSlashing,proto3" json:"proposer_slashing,omitempty"` 209 } 210 211 func (x *ProposerSlashingResponse) Reset() { 212 *x = ProposerSlashingResponse{} 213 if protoimpl.UnsafeEnabled { 214 mi := &file_proto_slashing_slashing_proto_msgTypes[3] 215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 ms.StoreMessageInfo(mi) 217 } 218 } 219 220 func (x *ProposerSlashingResponse) String() string { 221 return protoimpl.X.MessageStringOf(x) 222 } 223 224 func (*ProposerSlashingResponse) ProtoMessage() {} 225 226 func (x *ProposerSlashingResponse) ProtoReflect() protoreflect.Message { 227 mi := &file_proto_slashing_slashing_proto_msgTypes[3] 228 if protoimpl.UnsafeEnabled && x != nil { 229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 230 if ms.LoadMessageInfo() == nil { 231 ms.StoreMessageInfo(mi) 232 } 233 return ms 234 } 235 return mi.MessageOf(x) 236 } 237 238 // Deprecated: Use ProposerSlashingResponse.ProtoReflect.Descriptor instead. 239 func (*ProposerSlashingResponse) Descriptor() ([]byte, []int) { 240 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{3} 241 } 242 243 // Deprecated: Do not use. 244 func (x *ProposerSlashingResponse) GetProposerSlashing() []*v1alpha1.ProposerSlashing { 245 if x != nil { 246 return x.ProposerSlashing 247 } 248 return nil 249 } 250 251 type Slashable struct { 252 state protoimpl.MessageState 253 sizeCache protoimpl.SizeCache 254 unknownFields protoimpl.UnknownFields 255 256 // Deprecated: Do not use. 257 Slashable bool `protobuf:"varint,1,opt,name=slashable,proto3" json:"slashable,omitempty"` 258 } 259 260 func (x *Slashable) Reset() { 261 *x = Slashable{} 262 if protoimpl.UnsafeEnabled { 263 mi := &file_proto_slashing_slashing_proto_msgTypes[4] 264 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 265 ms.StoreMessageInfo(mi) 266 } 267 } 268 269 func (x *Slashable) String() string { 270 return protoimpl.X.MessageStringOf(x) 271 } 272 273 func (*Slashable) ProtoMessage() {} 274 275 func (x *Slashable) ProtoReflect() protoreflect.Message { 276 mi := &file_proto_slashing_slashing_proto_msgTypes[4] 277 if protoimpl.UnsafeEnabled && x != nil { 278 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 279 if ms.LoadMessageInfo() == nil { 280 ms.StoreMessageInfo(mi) 281 } 282 return ms 283 } 284 return mi.MessageOf(x) 285 } 286 287 // Deprecated: Use Slashable.ProtoReflect.Descriptor instead. 288 func (*Slashable) Descriptor() ([]byte, []int) { 289 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{4} 290 } 291 292 // Deprecated: Do not use. 293 func (x *Slashable) GetSlashable() bool { 294 if x != nil { 295 return x.Slashable 296 } 297 return false 298 } 299 300 type AttesterSlashingResponse struct { 301 state protoimpl.MessageState 302 sizeCache protoimpl.SizeCache 303 unknownFields protoimpl.UnknownFields 304 305 // Deprecated: Do not use. 306 AttesterSlashing []*v1alpha1.AttesterSlashing `protobuf:"bytes,1,rep,name=attester_slashing,json=attesterSlashing,proto3" json:"attester_slashing,omitempty"` 307 } 308 309 func (x *AttesterSlashingResponse) Reset() { 310 *x = AttesterSlashingResponse{} 311 if protoimpl.UnsafeEnabled { 312 mi := &file_proto_slashing_slashing_proto_msgTypes[5] 313 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 314 ms.StoreMessageInfo(mi) 315 } 316 } 317 318 func (x *AttesterSlashingResponse) String() string { 319 return protoimpl.X.MessageStringOf(x) 320 } 321 322 func (*AttesterSlashingResponse) ProtoMessage() {} 323 324 func (x *AttesterSlashingResponse) ProtoReflect() protoreflect.Message { 325 mi := &file_proto_slashing_slashing_proto_msgTypes[5] 326 if protoimpl.UnsafeEnabled && x != nil { 327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 328 if ms.LoadMessageInfo() == nil { 329 ms.StoreMessageInfo(mi) 330 } 331 return ms 332 } 333 return mi.MessageOf(x) 334 } 335 336 // Deprecated: Use AttesterSlashingResponse.ProtoReflect.Descriptor instead. 337 func (*AttesterSlashingResponse) Descriptor() ([]byte, []int) { 338 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{5} 339 } 340 341 // Deprecated: Do not use. 342 func (x *AttesterSlashingResponse) GetAttesterSlashing() []*v1alpha1.AttesterSlashing { 343 if x != nil { 344 return x.AttesterSlashing 345 } 346 return nil 347 } 348 349 type ProposalHistory struct { 350 state protoimpl.MessageState 351 sizeCache protoimpl.SizeCache 352 unknownFields protoimpl.UnknownFields 353 354 // Deprecated: Do not use. 355 EpochBits github_com_prysmaticlabs_go_bitfield.Bitlist `protobuf:"bytes,1,opt,name=epoch_bits,json=epochBits,proto3" json:"epoch_bits,omitempty" cast-type:"github.com/prysmaticlabs/go-bitfield.Bitlist"` 356 // Deprecated: Do not use. 357 LatestEpochWritten github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,2,opt,name=latest_epoch_written,json=latestEpochWritten,proto3" json:"latest_epoch_written,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 358 } 359 360 func (x *ProposalHistory) Reset() { 361 *x = ProposalHistory{} 362 if protoimpl.UnsafeEnabled { 363 mi := &file_proto_slashing_slashing_proto_msgTypes[6] 364 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 365 ms.StoreMessageInfo(mi) 366 } 367 } 368 369 func (x *ProposalHistory) String() string { 370 return protoimpl.X.MessageStringOf(x) 371 } 372 373 func (*ProposalHistory) ProtoMessage() {} 374 375 func (x *ProposalHistory) ProtoReflect() protoreflect.Message { 376 mi := &file_proto_slashing_slashing_proto_msgTypes[6] 377 if protoimpl.UnsafeEnabled && x != nil { 378 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 379 if ms.LoadMessageInfo() == nil { 380 ms.StoreMessageInfo(mi) 381 } 382 return ms 383 } 384 return mi.MessageOf(x) 385 } 386 387 // Deprecated: Use ProposalHistory.ProtoReflect.Descriptor instead. 388 func (*ProposalHistory) Descriptor() ([]byte, []int) { 389 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{6} 390 } 391 392 // Deprecated: Do not use. 393 func (x *ProposalHistory) GetEpochBits() github_com_prysmaticlabs_go_bitfield.Bitlist { 394 if x != nil { 395 return x.EpochBits 396 } 397 return github_com_prysmaticlabs_go_bitfield.Bitlist(nil) 398 } 399 400 // Deprecated: Do not use. 401 func (x *ProposalHistory) GetLatestEpochWritten() github_com_prysmaticlabs_eth2_types.Epoch { 402 if x != nil { 403 return x.LatestEpochWritten 404 } 405 return github_com_prysmaticlabs_eth2_types.Epoch(0) 406 } 407 408 type AttestationHistory struct { 409 state protoimpl.MessageState 410 sizeCache protoimpl.SizeCache 411 unknownFields protoimpl.UnknownFields 412 413 // Deprecated: Do not use. 414 TargetToSource map[uint64]uint64 `protobuf:"bytes,1,rep,name=target_to_source,json=targetToSource,proto3" json:"target_to_source,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 415 // Deprecated: Do not use. 416 LatestEpochWritten github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,2,opt,name=latest_epoch_written,json=latestEpochWritten,proto3" json:"latest_epoch_written,omitempty" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 417 } 418 419 func (x *AttestationHistory) Reset() { 420 *x = AttestationHistory{} 421 if protoimpl.UnsafeEnabled { 422 mi := &file_proto_slashing_slashing_proto_msgTypes[7] 423 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 424 ms.StoreMessageInfo(mi) 425 } 426 } 427 428 func (x *AttestationHistory) String() string { 429 return protoimpl.X.MessageStringOf(x) 430 } 431 432 func (*AttestationHistory) ProtoMessage() {} 433 434 func (x *AttestationHistory) ProtoReflect() protoreflect.Message { 435 mi := &file_proto_slashing_slashing_proto_msgTypes[7] 436 if protoimpl.UnsafeEnabled && x != nil { 437 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 438 if ms.LoadMessageInfo() == nil { 439 ms.StoreMessageInfo(mi) 440 } 441 return ms 442 } 443 return mi.MessageOf(x) 444 } 445 446 // Deprecated: Use AttestationHistory.ProtoReflect.Descriptor instead. 447 func (*AttestationHistory) Descriptor() ([]byte, []int) { 448 return file_proto_slashing_slashing_proto_rawDescGZIP(), []int{7} 449 } 450 451 // Deprecated: Do not use. 452 func (x *AttestationHistory) GetTargetToSource() map[uint64]uint64 { 453 if x != nil { 454 return x.TargetToSource 455 } 456 return nil 457 } 458 459 // Deprecated: Do not use. 460 func (x *AttestationHistory) GetLatestEpochWritten() github_com_prysmaticlabs_eth2_types.Epoch { 461 if x != nil { 462 return x.LatestEpochWritten 463 } 464 return github_com_prysmaticlabs_eth2_types.Epoch(0) 465 } 466 467 var File_proto_slashing_slashing_proto protoreflect.FileDescriptor 468 469 var file_proto_slashing_slashing_proto_rawDesc = []byte{ 470 0x0a, 0x1d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 471 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 472 0x11, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 473 0x6e, 0x67, 0x1a, 0x1b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x65, 0x78, 474 0x74, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 475 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 476 0x68, 0x61, 0x31, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 477 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x19, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 478 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 479 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 480 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0c, 481 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x73, 0x22, 0x6b, 0x0a, 0x1a, 482 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 483 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x61, 0x74, 484 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 485 0x32, 0x25, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 486 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 487 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0c, 0x61, 0x74, 0x74, 488 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xff, 0x01, 0x0a, 0x12, 0x48, 0x69, 489 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 490 0x12, 0x25, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 491 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x76, 0x61, 0x6c, 0x69, 492 0x64, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x61, 0x0a, 0x14, 0x68, 0x69, 0x67, 0x68, 0x65, 493 0x73, 0x74, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 494 0x02, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2f, 0x18, 0x01, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 0x74, 495 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 496 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 497 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x12, 0x68, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x53, 498 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x5f, 0x0a, 0x14, 0x68, 0x69, 499 0x67, 0x68, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x65, 0x70, 0x6f, 500 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2d, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 501 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 502 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 503 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x12, 0x68, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 504 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x74, 0x0a, 0x18, 0x50, 505 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x52, 506 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x6f, 507 0x73, 0x65, 0x72, 0x5f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x03, 508 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 509 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 510 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x42, 0x02, 0x18, 0x01, 0x52, 511 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 512 0x67, 0x22, 0x2d, 0x0a, 0x09, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 513 0x0a, 0x09, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 514 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 515 0x22, 0x74, 0x0a, 0x18, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 516 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 517 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 518 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 519 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 520 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 521 0x42, 0x02, 0x18, 0x01, 0x52, 0x10, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 522 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x22, 0xc7, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x6f, 523 0x73, 0x61, 0x6c, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x51, 0x0a, 0x0a, 0x65, 0x70, 524 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x32, 525 0x18, 0x01, 0x82, 0xb5, 0x18, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 526 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x67, 527 0x6f, 0x2d, 0x62, 0x69, 0x74, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x42, 0x69, 0x74, 0x6c, 0x69, 528 0x73, 0x74, 0x52, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x69, 0x74, 0x73, 0x12, 0x61, 0x0a, 529 0x14, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x77, 0x72, 530 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2f, 0x18, 0x01, 0x82, 531 0xb5, 0x18, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 532 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 533 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x12, 0x6c, 0x61, 534 0x74, 0x65, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x57, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 535 0x22, 0xa3, 0x02, 0x0a, 0x12, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 536 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x67, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 537 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 538 0x0b, 0x32, 0x39, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 539 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 540 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 541 0x6f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 542 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x6f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 543 0x12, 0x61, 0x0a, 0x14, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 544 0x5f, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2f, 545 0x18, 0x01, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 546 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 547 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 548 0x12, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x57, 0x72, 0x69, 0x74, 549 0x74, 0x65, 0x6e, 0x1a, 0x41, 0x0a, 0x13, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x6f, 0x53, 550 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 551 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 552 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 553 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xc8, 0x04, 0x0a, 0x07, 0x53, 0x6c, 0x61, 0x73, 0x68, 554 0x65, 0x72, 0x12, 0x75, 0x0a, 0x16, 0x49, 0x73, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 555 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x65, 556 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 557 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x41, 0x74, 0x74, 0x65, 558 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2b, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 559 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x74, 0x74, 0x65, 560 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 561 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x74, 0x0a, 0x10, 0x49, 0x73, 0x53, 562 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2e, 0x2e, 563 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 564 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x42, 0x65, 0x61, 0x63, 565 0x6f, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x2b, 0x2e, 566 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 567 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 568 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 569 0x6e, 0x0a, 0x1e, 0x49, 0x73, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 570 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x55, 0x70, 0x64, 0x61, 0x74, 571 0x65, 0x12, 0x29, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 572 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 573 0x64, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x2e, 0x65, 574 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 575 0x2e, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 576 0x67, 0x0a, 0x18, 0x49, 0x73, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x6c, 577 0x6f, 0x63, 0x6b, 0x4e, 0x6f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x28, 0x2e, 0x65, 0x74, 578 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 579 0x68, 0x61, 0x31, 0x2e, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 580 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x1c, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 581 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x61, 582 0x62, 0x6c, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x77, 0x0a, 0x13, 0x48, 0x69, 0x67, 0x68, 583 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 584 0x2c, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 585 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 586 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 587 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 588 0x67, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 589 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 590 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 591 } 592 593 var ( 594 file_proto_slashing_slashing_proto_rawDescOnce sync.Once 595 file_proto_slashing_slashing_proto_rawDescData = file_proto_slashing_slashing_proto_rawDesc 596 ) 597 598 func file_proto_slashing_slashing_proto_rawDescGZIP() []byte { 599 file_proto_slashing_slashing_proto_rawDescOnce.Do(func() { 600 file_proto_slashing_slashing_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_slashing_slashing_proto_rawDescData) 601 }) 602 return file_proto_slashing_slashing_proto_rawDescData 603 } 604 605 var file_proto_slashing_slashing_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 606 var file_proto_slashing_slashing_proto_goTypes = []interface{}{ 607 (*HighestAttestationRequest)(nil), // 0: ethereum.slashing.HighestAttestationRequest 608 (*HighestAttestationResponse)(nil), // 1: ethereum.slashing.HighestAttestationResponse 609 (*HighestAttestation)(nil), // 2: ethereum.slashing.HighestAttestation 610 (*ProposerSlashingResponse)(nil), // 3: ethereum.slashing.ProposerSlashingResponse 611 (*Slashable)(nil), // 4: ethereum.slashing.Slashable 612 (*AttesterSlashingResponse)(nil), // 5: ethereum.slashing.AttesterSlashingResponse 613 (*ProposalHistory)(nil), // 6: ethereum.slashing.ProposalHistory 614 (*AttestationHistory)(nil), // 7: ethereum.slashing.AttestationHistory 615 nil, // 8: ethereum.slashing.AttestationHistory.TargetToSourceEntry 616 (*v1alpha1.ProposerSlashing)(nil), // 9: ethereum.eth.v1alpha1.ProposerSlashing 617 (*v1alpha1.AttesterSlashing)(nil), // 10: ethereum.eth.v1alpha1.AttesterSlashing 618 (*v1alpha1.IndexedAttestation)(nil), // 11: ethereum.eth.v1alpha1.IndexedAttestation 619 (*v1alpha1.SignedBeaconBlockHeader)(nil), // 12: ethereum.eth.v1alpha1.SignedBeaconBlockHeader 620 (*v1alpha1.BeaconBlockHeader)(nil), // 13: ethereum.eth.v1alpha1.BeaconBlockHeader 621 } 622 var file_proto_slashing_slashing_proto_depIdxs = []int32{ 623 2, // 0: ethereum.slashing.HighestAttestationResponse.attestations:type_name -> ethereum.slashing.HighestAttestation 624 9, // 1: ethereum.slashing.ProposerSlashingResponse.proposer_slashing:type_name -> ethereum.eth.v1alpha1.ProposerSlashing 625 10, // 2: ethereum.slashing.AttesterSlashingResponse.attester_slashing:type_name -> ethereum.eth.v1alpha1.AttesterSlashing 626 8, // 3: ethereum.slashing.AttestationHistory.target_to_source:type_name -> ethereum.slashing.AttestationHistory.TargetToSourceEntry 627 11, // 4: ethereum.slashing.Slasher.IsSlashableAttestation:input_type -> ethereum.eth.v1alpha1.IndexedAttestation 628 12, // 5: ethereum.slashing.Slasher.IsSlashableBlock:input_type -> ethereum.eth.v1alpha1.SignedBeaconBlockHeader 629 11, // 6: ethereum.slashing.Slasher.IsSlashableAttestationNoUpdate:input_type -> ethereum.eth.v1alpha1.IndexedAttestation 630 13, // 7: ethereum.slashing.Slasher.IsSlashableBlockNoUpdate:input_type -> ethereum.eth.v1alpha1.BeaconBlockHeader 631 0, // 8: ethereum.slashing.Slasher.HighestAttestations:input_type -> ethereum.slashing.HighestAttestationRequest 632 5, // 9: ethereum.slashing.Slasher.IsSlashableAttestation:output_type -> ethereum.slashing.AttesterSlashingResponse 633 3, // 10: ethereum.slashing.Slasher.IsSlashableBlock:output_type -> ethereum.slashing.ProposerSlashingResponse 634 4, // 11: ethereum.slashing.Slasher.IsSlashableAttestationNoUpdate:output_type -> ethereum.slashing.Slashable 635 4, // 12: ethereum.slashing.Slasher.IsSlashableBlockNoUpdate:output_type -> ethereum.slashing.Slashable 636 1, // 13: ethereum.slashing.Slasher.HighestAttestations:output_type -> ethereum.slashing.HighestAttestationResponse 637 9, // [9:14] is the sub-list for method output_type 638 4, // [4:9] is the sub-list for method input_type 639 4, // [4:4] is the sub-list for extension type_name 640 4, // [4:4] is the sub-list for extension extendee 641 0, // [0:4] is the sub-list for field type_name 642 } 643 644 func init() { file_proto_slashing_slashing_proto_init() } 645 func file_proto_slashing_slashing_proto_init() { 646 if File_proto_slashing_slashing_proto != nil { 647 return 648 } 649 if !protoimpl.UnsafeEnabled { 650 file_proto_slashing_slashing_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 651 switch v := v.(*HighestAttestationRequest); i { 652 case 0: 653 return &v.state 654 case 1: 655 return &v.sizeCache 656 case 2: 657 return &v.unknownFields 658 default: 659 return nil 660 } 661 } 662 file_proto_slashing_slashing_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 663 switch v := v.(*HighestAttestationResponse); i { 664 case 0: 665 return &v.state 666 case 1: 667 return &v.sizeCache 668 case 2: 669 return &v.unknownFields 670 default: 671 return nil 672 } 673 } 674 file_proto_slashing_slashing_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 675 switch v := v.(*HighestAttestation); i { 676 case 0: 677 return &v.state 678 case 1: 679 return &v.sizeCache 680 case 2: 681 return &v.unknownFields 682 default: 683 return nil 684 } 685 } 686 file_proto_slashing_slashing_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 687 switch v := v.(*ProposerSlashingResponse); i { 688 case 0: 689 return &v.state 690 case 1: 691 return &v.sizeCache 692 case 2: 693 return &v.unknownFields 694 default: 695 return nil 696 } 697 } 698 file_proto_slashing_slashing_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 699 switch v := v.(*Slashable); i { 700 case 0: 701 return &v.state 702 case 1: 703 return &v.sizeCache 704 case 2: 705 return &v.unknownFields 706 default: 707 return nil 708 } 709 } 710 file_proto_slashing_slashing_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 711 switch v := v.(*AttesterSlashingResponse); i { 712 case 0: 713 return &v.state 714 case 1: 715 return &v.sizeCache 716 case 2: 717 return &v.unknownFields 718 default: 719 return nil 720 } 721 } 722 file_proto_slashing_slashing_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 723 switch v := v.(*ProposalHistory); i { 724 case 0: 725 return &v.state 726 case 1: 727 return &v.sizeCache 728 case 2: 729 return &v.unknownFields 730 default: 731 return nil 732 } 733 } 734 file_proto_slashing_slashing_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 735 switch v := v.(*AttestationHistory); i { 736 case 0: 737 return &v.state 738 case 1: 739 return &v.sizeCache 740 case 2: 741 return &v.unknownFields 742 default: 743 return nil 744 } 745 } 746 } 747 type x struct{} 748 out := protoimpl.TypeBuilder{ 749 File: protoimpl.DescBuilder{ 750 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 751 RawDescriptor: file_proto_slashing_slashing_proto_rawDesc, 752 NumEnums: 0, 753 NumMessages: 9, 754 NumExtensions: 0, 755 NumServices: 1, 756 }, 757 GoTypes: file_proto_slashing_slashing_proto_goTypes, 758 DependencyIndexes: file_proto_slashing_slashing_proto_depIdxs, 759 MessageInfos: file_proto_slashing_slashing_proto_msgTypes, 760 }.Build() 761 File_proto_slashing_slashing_proto = out.File 762 file_proto_slashing_slashing_proto_rawDesc = nil 763 file_proto_slashing_slashing_proto_goTypes = nil 764 file_proto_slashing_slashing_proto_depIdxs = nil 765 } 766 767 // Reference imports to suppress errors if they are not otherwise used. 768 var _ context.Context 769 var _ grpc.ClientConnInterface 770 771 // This is a compile-time assertion to ensure that this generated file 772 // is compatible with the grpc package it is being compiled against. 773 const _ = grpc.SupportPackageIsVersion6 774 775 // SlasherClient is the client API for Slasher service. 776 // 777 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 778 type SlasherClient interface { 779 // Deprecated: Do not use. 780 IsSlashableAttestation(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*AttesterSlashingResponse, error) 781 // Deprecated: Do not use. 782 IsSlashableBlock(ctx context.Context, in *v1alpha1.SignedBeaconBlockHeader, opts ...grpc.CallOption) (*ProposerSlashingResponse, error) 783 // Deprecated: Do not use. 784 IsSlashableAttestationNoUpdate(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*Slashable, error) 785 // Deprecated: Do not use. 786 IsSlashableBlockNoUpdate(ctx context.Context, in *v1alpha1.BeaconBlockHeader, opts ...grpc.CallOption) (*Slashable, error) 787 // Deprecated: Do not use. 788 HighestAttestations(ctx context.Context, in *HighestAttestationRequest, opts ...grpc.CallOption) (*HighestAttestationResponse, error) 789 } 790 791 type slasherClient struct { 792 cc grpc.ClientConnInterface 793 } 794 795 func NewSlasherClient(cc grpc.ClientConnInterface) SlasherClient { 796 return &slasherClient{cc} 797 } 798 799 // Deprecated: Do not use. 800 func (c *slasherClient) IsSlashableAttestation(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*AttesterSlashingResponse, error) { 801 out := new(AttesterSlashingResponse) 802 err := c.cc.Invoke(ctx, "/ethereum.slashing.Slasher/IsSlashableAttestation", in, out, opts...) 803 if err != nil { 804 return nil, err 805 } 806 return out, nil 807 } 808 809 // Deprecated: Do not use. 810 func (c *slasherClient) IsSlashableBlock(ctx context.Context, in *v1alpha1.SignedBeaconBlockHeader, opts ...grpc.CallOption) (*ProposerSlashingResponse, error) { 811 out := new(ProposerSlashingResponse) 812 err := c.cc.Invoke(ctx, "/ethereum.slashing.Slasher/IsSlashableBlock", in, out, opts...) 813 if err != nil { 814 return nil, err 815 } 816 return out, nil 817 } 818 819 // Deprecated: Do not use. 820 func (c *slasherClient) IsSlashableAttestationNoUpdate(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*Slashable, error) { 821 out := new(Slashable) 822 err := c.cc.Invoke(ctx, "/ethereum.slashing.Slasher/IsSlashableAttestationNoUpdate", in, out, opts...) 823 if err != nil { 824 return nil, err 825 } 826 return out, nil 827 } 828 829 // Deprecated: Do not use. 830 func (c *slasherClient) IsSlashableBlockNoUpdate(ctx context.Context, in *v1alpha1.BeaconBlockHeader, opts ...grpc.CallOption) (*Slashable, error) { 831 out := new(Slashable) 832 err := c.cc.Invoke(ctx, "/ethereum.slashing.Slasher/IsSlashableBlockNoUpdate", in, out, opts...) 833 if err != nil { 834 return nil, err 835 } 836 return out, nil 837 } 838 839 // Deprecated: Do not use. 840 func (c *slasherClient) HighestAttestations(ctx context.Context, in *HighestAttestationRequest, opts ...grpc.CallOption) (*HighestAttestationResponse, error) { 841 out := new(HighestAttestationResponse) 842 err := c.cc.Invoke(ctx, "/ethereum.slashing.Slasher/HighestAttestations", in, out, opts...) 843 if err != nil { 844 return nil, err 845 } 846 return out, nil 847 } 848 849 // SlasherServer is the server API for Slasher service. 850 type SlasherServer interface { 851 // Deprecated: Do not use. 852 IsSlashableAttestation(context.Context, *v1alpha1.IndexedAttestation) (*AttesterSlashingResponse, error) 853 // Deprecated: Do not use. 854 IsSlashableBlock(context.Context, *v1alpha1.SignedBeaconBlockHeader) (*ProposerSlashingResponse, error) 855 // Deprecated: Do not use. 856 IsSlashableAttestationNoUpdate(context.Context, *v1alpha1.IndexedAttestation) (*Slashable, error) 857 // Deprecated: Do not use. 858 IsSlashableBlockNoUpdate(context.Context, *v1alpha1.BeaconBlockHeader) (*Slashable, error) 859 // Deprecated: Do not use. 860 HighestAttestations(context.Context, *HighestAttestationRequest) (*HighestAttestationResponse, error) 861 } 862 863 // UnimplementedSlasherServer can be embedded to have forward compatible implementations. 864 type UnimplementedSlasherServer struct { 865 } 866 867 func (*UnimplementedSlasherServer) IsSlashableAttestation(context.Context, *v1alpha1.IndexedAttestation) (*AttesterSlashingResponse, error) { 868 return nil, status.Errorf(codes.Unimplemented, "method IsSlashableAttestation not implemented") 869 } 870 func (*UnimplementedSlasherServer) IsSlashableBlock(context.Context, *v1alpha1.SignedBeaconBlockHeader) (*ProposerSlashingResponse, error) { 871 return nil, status.Errorf(codes.Unimplemented, "method IsSlashableBlock not implemented") 872 } 873 func (*UnimplementedSlasherServer) IsSlashableAttestationNoUpdate(context.Context, *v1alpha1.IndexedAttestation) (*Slashable, error) { 874 return nil, status.Errorf(codes.Unimplemented, "method IsSlashableAttestationNoUpdate not implemented") 875 } 876 func (*UnimplementedSlasherServer) IsSlashableBlockNoUpdate(context.Context, *v1alpha1.BeaconBlockHeader) (*Slashable, error) { 877 return nil, status.Errorf(codes.Unimplemented, "method IsSlashableBlockNoUpdate not implemented") 878 } 879 func (*UnimplementedSlasherServer) HighestAttestations(context.Context, *HighestAttestationRequest) (*HighestAttestationResponse, error) { 880 return nil, status.Errorf(codes.Unimplemented, "method HighestAttestations not implemented") 881 } 882 883 func RegisterSlasherServer(s *grpc.Server, srv SlasherServer) { 884 s.RegisterService(&_Slasher_serviceDesc, srv) 885 } 886 887 func _Slasher_IsSlashableAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 888 in := new(v1alpha1.IndexedAttestation) 889 if err := dec(in); err != nil { 890 return nil, err 891 } 892 if interceptor == nil { 893 return srv.(SlasherServer).IsSlashableAttestation(ctx, in) 894 } 895 info := &grpc.UnaryServerInfo{ 896 Server: srv, 897 FullMethod: "/ethereum.slashing.Slasher/IsSlashableAttestation", 898 } 899 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 900 return srv.(SlasherServer).IsSlashableAttestation(ctx, req.(*v1alpha1.IndexedAttestation)) 901 } 902 return interceptor(ctx, in, info, handler) 903 } 904 905 func _Slasher_IsSlashableBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 906 in := new(v1alpha1.SignedBeaconBlockHeader) 907 if err := dec(in); err != nil { 908 return nil, err 909 } 910 if interceptor == nil { 911 return srv.(SlasherServer).IsSlashableBlock(ctx, in) 912 } 913 info := &grpc.UnaryServerInfo{ 914 Server: srv, 915 FullMethod: "/ethereum.slashing.Slasher/IsSlashableBlock", 916 } 917 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 918 return srv.(SlasherServer).IsSlashableBlock(ctx, req.(*v1alpha1.SignedBeaconBlockHeader)) 919 } 920 return interceptor(ctx, in, info, handler) 921 } 922 923 func _Slasher_IsSlashableAttestationNoUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 924 in := new(v1alpha1.IndexedAttestation) 925 if err := dec(in); err != nil { 926 return nil, err 927 } 928 if interceptor == nil { 929 return srv.(SlasherServer).IsSlashableAttestationNoUpdate(ctx, in) 930 } 931 info := &grpc.UnaryServerInfo{ 932 Server: srv, 933 FullMethod: "/ethereum.slashing.Slasher/IsSlashableAttestationNoUpdate", 934 } 935 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 936 return srv.(SlasherServer).IsSlashableAttestationNoUpdate(ctx, req.(*v1alpha1.IndexedAttestation)) 937 } 938 return interceptor(ctx, in, info, handler) 939 } 940 941 func _Slasher_IsSlashableBlockNoUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 942 in := new(v1alpha1.BeaconBlockHeader) 943 if err := dec(in); err != nil { 944 return nil, err 945 } 946 if interceptor == nil { 947 return srv.(SlasherServer).IsSlashableBlockNoUpdate(ctx, in) 948 } 949 info := &grpc.UnaryServerInfo{ 950 Server: srv, 951 FullMethod: "/ethereum.slashing.Slasher/IsSlashableBlockNoUpdate", 952 } 953 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 954 return srv.(SlasherServer).IsSlashableBlockNoUpdate(ctx, req.(*v1alpha1.BeaconBlockHeader)) 955 } 956 return interceptor(ctx, in, info, handler) 957 } 958 959 func _Slasher_HighestAttestations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 960 in := new(HighestAttestationRequest) 961 if err := dec(in); err != nil { 962 return nil, err 963 } 964 if interceptor == nil { 965 return srv.(SlasherServer).HighestAttestations(ctx, in) 966 } 967 info := &grpc.UnaryServerInfo{ 968 Server: srv, 969 FullMethod: "/ethereum.slashing.Slasher/HighestAttestations", 970 } 971 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 972 return srv.(SlasherServer).HighestAttestations(ctx, req.(*HighestAttestationRequest)) 973 } 974 return interceptor(ctx, in, info, handler) 975 } 976 977 var _Slasher_serviceDesc = grpc.ServiceDesc{ 978 ServiceName: "ethereum.slashing.Slasher", 979 HandlerType: (*SlasherServer)(nil), 980 Methods: []grpc.MethodDesc{ 981 { 982 MethodName: "IsSlashableAttestation", 983 Handler: _Slasher_IsSlashableAttestation_Handler, 984 }, 985 { 986 MethodName: "IsSlashableBlock", 987 Handler: _Slasher_IsSlashableBlock_Handler, 988 }, 989 { 990 MethodName: "IsSlashableAttestationNoUpdate", 991 Handler: _Slasher_IsSlashableAttestationNoUpdate_Handler, 992 }, 993 { 994 MethodName: "IsSlashableBlockNoUpdate", 995 Handler: _Slasher_IsSlashableBlockNoUpdate_Handler, 996 }, 997 { 998 MethodName: "HighestAttestations", 999 Handler: _Slasher_HighestAttestations_Handler, 1000 }, 1001 }, 1002 Streams: []grpc.StreamDesc{}, 1003 Metadata: "proto/slashing/slashing.proto", 1004 }