github.com/prysmaticlabs/prysm@v1.4.4/proto/beacon/rpc/v1/slasher.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/beacon/rpc/v1/slasher.proto 6 7 package ethereum_beacon_rpc_v1 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 _ "github.com/golang/protobuf/ptypes/empty" 16 github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types" 17 _ "github.com/prysmaticlabs/prysm/proto/eth/ext" 18 v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 19 _ "google.golang.org/genproto/googleapis/api/annotations" 20 grpc "google.golang.org/grpc" 21 codes "google.golang.org/grpc/codes" 22 status "google.golang.org/grpc/status" 23 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 24 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 25 ) 26 27 const ( 28 // Verify that this generated code is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 30 // Verify that runtime/protoimpl is sufficiently up-to-date. 31 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 32 ) 33 34 // This is a compile-time assertion that a sufficiently up-to-date version 35 // of the legacy proto package is being used. 36 const _ = proto.ProtoPackageIsVersion4 37 38 type AttesterSlashingResponse struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 AttesterSlashing *v1alpha1.AttesterSlashing `protobuf:"bytes,1,opt,name=attester_slashing,json=attesterSlashing,proto3" json:"attester_slashing,omitempty"` 44 } 45 46 func (x *AttesterSlashingResponse) Reset() { 47 *x = AttesterSlashingResponse{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *AttesterSlashingResponse) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*AttesterSlashingResponse) ProtoMessage() {} 60 61 func (x *AttesterSlashingResponse) ProtoReflect() protoreflect.Message { 62 mi := &file_proto_beacon_rpc_v1_slasher_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 AttesterSlashingResponse.ProtoReflect.Descriptor instead. 74 func (*AttesterSlashingResponse) Descriptor() ([]byte, []int) { 75 return file_proto_beacon_rpc_v1_slasher_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *AttesterSlashingResponse) GetAttesterSlashing() *v1alpha1.AttesterSlashing { 79 if x != nil { 80 return x.AttesterSlashing 81 } 82 return nil 83 } 84 85 type ProposerSlashingResponse struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 ProposerSlashing *v1alpha1.ProposerSlashing `protobuf:"bytes,1,opt,name=proposer_slashing,json=proposerSlashing,proto3" json:"proposer_slashing,omitempty"` 91 } 92 93 func (x *ProposerSlashingResponse) Reset() { 94 *x = ProposerSlashingResponse{} 95 if protoimpl.UnsafeEnabled { 96 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[1] 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 ms.StoreMessageInfo(mi) 99 } 100 } 101 102 func (x *ProposerSlashingResponse) String() string { 103 return protoimpl.X.MessageStringOf(x) 104 } 105 106 func (*ProposerSlashingResponse) ProtoMessage() {} 107 108 func (x *ProposerSlashingResponse) ProtoReflect() protoreflect.Message { 109 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[1] 110 if protoimpl.UnsafeEnabled && x != nil { 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 if ms.LoadMessageInfo() == nil { 113 ms.StoreMessageInfo(mi) 114 } 115 return ms 116 } 117 return mi.MessageOf(x) 118 } 119 120 // Deprecated: Use ProposerSlashingResponse.ProtoReflect.Descriptor instead. 121 func (*ProposerSlashingResponse) Descriptor() ([]byte, []int) { 122 return file_proto_beacon_rpc_v1_slasher_proto_rawDescGZIP(), []int{1} 123 } 124 125 func (x *ProposerSlashingResponse) GetProposerSlashing() *v1alpha1.ProposerSlashing { 126 if x != nil { 127 return x.ProposerSlashing 128 } 129 return nil 130 } 131 132 type HighestAttestationRequest struct { 133 state protoimpl.MessageState 134 sizeCache protoimpl.SizeCache 135 unknownFields protoimpl.UnknownFields 136 137 ValidatorIndices []uint64 `protobuf:"varint,1,rep,packed,name=validator_indices,json=validatorIndices,proto3" json:"validator_indices,omitempty"` 138 } 139 140 func (x *HighestAttestationRequest) Reset() { 141 *x = HighestAttestationRequest{} 142 if protoimpl.UnsafeEnabled { 143 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[2] 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 ms.StoreMessageInfo(mi) 146 } 147 } 148 149 func (x *HighestAttestationRequest) String() string { 150 return protoimpl.X.MessageStringOf(x) 151 } 152 153 func (*HighestAttestationRequest) ProtoMessage() {} 154 155 func (x *HighestAttestationRequest) ProtoReflect() protoreflect.Message { 156 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[2] 157 if protoimpl.UnsafeEnabled && x != nil { 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 if ms.LoadMessageInfo() == nil { 160 ms.StoreMessageInfo(mi) 161 } 162 return ms 163 } 164 return mi.MessageOf(x) 165 } 166 167 // Deprecated: Use HighestAttestationRequest.ProtoReflect.Descriptor instead. 168 func (*HighestAttestationRequest) Descriptor() ([]byte, []int) { 169 return file_proto_beacon_rpc_v1_slasher_proto_rawDescGZIP(), []int{2} 170 } 171 172 func (x *HighestAttestationRequest) GetValidatorIndices() []uint64 { 173 if x != nil { 174 return x.ValidatorIndices 175 } 176 return nil 177 } 178 179 type HighestAttestationResponse struct { 180 state protoimpl.MessageState 181 sizeCache protoimpl.SizeCache 182 unknownFields protoimpl.UnknownFields 183 184 Attestations []*HighestAttestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"` 185 } 186 187 func (x *HighestAttestationResponse) Reset() { 188 *x = HighestAttestationResponse{} 189 if protoimpl.UnsafeEnabled { 190 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[3] 191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 192 ms.StoreMessageInfo(mi) 193 } 194 } 195 196 func (x *HighestAttestationResponse) String() string { 197 return protoimpl.X.MessageStringOf(x) 198 } 199 200 func (*HighestAttestationResponse) ProtoMessage() {} 201 202 func (x *HighestAttestationResponse) ProtoReflect() protoreflect.Message { 203 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[3] 204 if protoimpl.UnsafeEnabled && x != nil { 205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 206 if ms.LoadMessageInfo() == nil { 207 ms.StoreMessageInfo(mi) 208 } 209 return ms 210 } 211 return mi.MessageOf(x) 212 } 213 214 // Deprecated: Use HighestAttestationResponse.ProtoReflect.Descriptor instead. 215 func (*HighestAttestationResponse) Descriptor() ([]byte, []int) { 216 return file_proto_beacon_rpc_v1_slasher_proto_rawDescGZIP(), []int{3} 217 } 218 219 func (x *HighestAttestationResponse) GetAttestations() []*HighestAttestation { 220 if x != nil { 221 return x.Attestations 222 } 223 return nil 224 } 225 226 type HighestAttestation struct { 227 state protoimpl.MessageState 228 sizeCache protoimpl.SizeCache 229 unknownFields protoimpl.UnknownFields 230 231 ValidatorIndex uint64 `protobuf:"varint,1,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"` 232 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"` 233 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"` 234 } 235 236 func (x *HighestAttestation) Reset() { 237 *x = HighestAttestation{} 238 if protoimpl.UnsafeEnabled { 239 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[4] 240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 241 ms.StoreMessageInfo(mi) 242 } 243 } 244 245 func (x *HighestAttestation) String() string { 246 return protoimpl.X.MessageStringOf(x) 247 } 248 249 func (*HighestAttestation) ProtoMessage() {} 250 251 func (x *HighestAttestation) ProtoReflect() protoreflect.Message { 252 mi := &file_proto_beacon_rpc_v1_slasher_proto_msgTypes[4] 253 if protoimpl.UnsafeEnabled && x != nil { 254 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 255 if ms.LoadMessageInfo() == nil { 256 ms.StoreMessageInfo(mi) 257 } 258 return ms 259 } 260 return mi.MessageOf(x) 261 } 262 263 // Deprecated: Use HighestAttestation.ProtoReflect.Descriptor instead. 264 func (*HighestAttestation) Descriptor() ([]byte, []int) { 265 return file_proto_beacon_rpc_v1_slasher_proto_rawDescGZIP(), []int{4} 266 } 267 268 func (x *HighestAttestation) GetValidatorIndex() uint64 { 269 if x != nil { 270 return x.ValidatorIndex 271 } 272 return 0 273 } 274 275 func (x *HighestAttestation) GetHighestSourceEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 276 if x != nil { 277 return x.HighestSourceEpoch 278 } 279 return github_com_prysmaticlabs_eth2_types.Epoch(0) 280 } 281 282 func (x *HighestAttestation) GetHighestTargetEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 283 if x != nil { 284 return x.HighestTargetEpoch 285 } 286 return github_com_prysmaticlabs_eth2_types.Epoch(0) 287 } 288 289 var File_proto_beacon_rpc_v1_slasher_proto protoreflect.FileDescriptor 290 291 var file_proto_beacon_rpc_v1_slasher_proto_rawDesc = []byte{ 292 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2f, 0x72, 293 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 294 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 295 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x70, 0x72, 0x6f, 296 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x65, 0x78, 0x74, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 297 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 298 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x62, 0x65, 0x61, 299 0x63, 0x6f, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 300 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 301 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 302 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 303 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x18, 0x41, 0x74, 304 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 305 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 306 0x65, 0x72, 0x5f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 307 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 308 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 309 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x61, 0x74, 0x74, 0x65, 310 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x22, 0x70, 0x0a, 0x18, 311 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 312 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 313 0x6f, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 314 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 315 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 316 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x70, 0x72, 317 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x22, 0x48, 318 0x0a, 0x19, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 319 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x76, 320 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 321 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 322 0x72, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x22, 0x6c, 0x0a, 0x1a, 0x48, 0x69, 0x67, 0x68, 323 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 324 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0c, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 325 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 326 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x72, 327 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 328 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 329 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xff, 0x01, 0x0a, 0x12, 0x48, 0x69, 0x67, 0x68, 0x65, 330 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 331 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 332 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 333 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x5f, 0x0a, 0x14, 0x68, 0x69, 0x67, 0x68, 0x65, 0x73, 334 0x74, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 335 0x20, 0x01, 0x28, 0x04, 0x42, 0x2d, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 336 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 337 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x70, 338 0x6f, 0x63, 0x68, 0x52, 0x12, 0x68, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 339 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x5f, 0x0a, 0x14, 0x68, 0x69, 0x67, 0x68, 0x65, 340 0x73, 0x74, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 341 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2d, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 342 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 343 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 344 0x70, 0x6f, 0x63, 0x68, 0x52, 0x12, 0x68, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x54, 0x61, 0x72, 345 0x67, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x32, 0x94, 0x04, 0x0a, 0x07, 0x53, 0x6c, 0x61, 346 0x73, 0x68, 0x65, 0x72, 0x12, 0xae, 0x01, 0x0a, 0x16, 0x49, 0x73, 0x53, 0x6c, 0x61, 0x73, 0x68, 347 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 348 0x29, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 349 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x41, 350 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x30, 0x2e, 0x65, 0x74, 0x68, 351 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 352 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 353 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 354 0xe4, 0x93, 0x02, 0x31, 0x22, 0x2c, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 355 0x68, 0x61, 0x31, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x61, 0x74, 0x74, 0x65, 356 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 357 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0xa4, 0x01, 0x0a, 0x10, 0x49, 0x73, 0x53, 0x6c, 0x61, 0x73, 358 0x68, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2e, 0x2e, 0x65, 0x74, 0x68, 359 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 360 0x61, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x42, 361 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x30, 0x2e, 0x65, 0x74, 0x68, 362 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 363 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x53, 0x6c, 0x61, 0x73, 364 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 365 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 366 0x68, 0x61, 0x31, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 367 0x6b, 0x73, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x12, 0xb0, 0x01, 0x0a, 368 0x13, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 369 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 370 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 371 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 372 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 373 0x75, 0x6d, 0x2e, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 374 0x2e, 0x48, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 375 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 376 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 377 0x61, 0x31, 0x2f, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 378 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x69, 0x67, 0x68, 0x65, 0x73, 0x74, 0x62, 379 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 380 } 381 382 var ( 383 file_proto_beacon_rpc_v1_slasher_proto_rawDescOnce sync.Once 384 file_proto_beacon_rpc_v1_slasher_proto_rawDescData = file_proto_beacon_rpc_v1_slasher_proto_rawDesc 385 ) 386 387 func file_proto_beacon_rpc_v1_slasher_proto_rawDescGZIP() []byte { 388 file_proto_beacon_rpc_v1_slasher_proto_rawDescOnce.Do(func() { 389 file_proto_beacon_rpc_v1_slasher_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_beacon_rpc_v1_slasher_proto_rawDescData) 390 }) 391 return file_proto_beacon_rpc_v1_slasher_proto_rawDescData 392 } 393 394 var file_proto_beacon_rpc_v1_slasher_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 395 var file_proto_beacon_rpc_v1_slasher_proto_goTypes = []interface{}{ 396 (*AttesterSlashingResponse)(nil), // 0: ethereum.beacon.rpc.v1.AttesterSlashingResponse 397 (*ProposerSlashingResponse)(nil), // 1: ethereum.beacon.rpc.v1.ProposerSlashingResponse 398 (*HighestAttestationRequest)(nil), // 2: ethereum.beacon.rpc.v1.HighestAttestationRequest 399 (*HighestAttestationResponse)(nil), // 3: ethereum.beacon.rpc.v1.HighestAttestationResponse 400 (*HighestAttestation)(nil), // 4: ethereum.beacon.rpc.v1.HighestAttestation 401 (*v1alpha1.AttesterSlashing)(nil), // 5: ethereum.eth.v1alpha1.AttesterSlashing 402 (*v1alpha1.ProposerSlashing)(nil), // 6: ethereum.eth.v1alpha1.ProposerSlashing 403 (*v1alpha1.IndexedAttestation)(nil), // 7: ethereum.eth.v1alpha1.IndexedAttestation 404 (*v1alpha1.SignedBeaconBlockHeader)(nil), // 8: ethereum.eth.v1alpha1.SignedBeaconBlockHeader 405 } 406 var file_proto_beacon_rpc_v1_slasher_proto_depIdxs = []int32{ 407 5, // 0: ethereum.beacon.rpc.v1.AttesterSlashingResponse.attester_slashing:type_name -> ethereum.eth.v1alpha1.AttesterSlashing 408 6, // 1: ethereum.beacon.rpc.v1.ProposerSlashingResponse.proposer_slashing:type_name -> ethereum.eth.v1alpha1.ProposerSlashing 409 4, // 2: ethereum.beacon.rpc.v1.HighestAttestationResponse.attestations:type_name -> ethereum.beacon.rpc.v1.HighestAttestation 410 7, // 3: ethereum.beacon.rpc.v1.Slasher.IsSlashableAttestation:input_type -> ethereum.eth.v1alpha1.IndexedAttestation 411 8, // 4: ethereum.beacon.rpc.v1.Slasher.IsSlashableBlock:input_type -> ethereum.eth.v1alpha1.SignedBeaconBlockHeader 412 2, // 5: ethereum.beacon.rpc.v1.Slasher.HighestAttestations:input_type -> ethereum.beacon.rpc.v1.HighestAttestationRequest 413 0, // 6: ethereum.beacon.rpc.v1.Slasher.IsSlashableAttestation:output_type -> ethereum.beacon.rpc.v1.AttesterSlashingResponse 414 1, // 7: ethereum.beacon.rpc.v1.Slasher.IsSlashableBlock:output_type -> ethereum.beacon.rpc.v1.ProposerSlashingResponse 415 3, // 8: ethereum.beacon.rpc.v1.Slasher.HighestAttestations:output_type -> ethereum.beacon.rpc.v1.HighestAttestationResponse 416 6, // [6:9] is the sub-list for method output_type 417 3, // [3:6] is the sub-list for method input_type 418 3, // [3:3] is the sub-list for extension type_name 419 3, // [3:3] is the sub-list for extension extendee 420 0, // [0:3] is the sub-list for field type_name 421 } 422 423 func init() { file_proto_beacon_rpc_v1_slasher_proto_init() } 424 func file_proto_beacon_rpc_v1_slasher_proto_init() { 425 if File_proto_beacon_rpc_v1_slasher_proto != nil { 426 return 427 } 428 if !protoimpl.UnsafeEnabled { 429 file_proto_beacon_rpc_v1_slasher_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 430 switch v := v.(*AttesterSlashingResponse); i { 431 case 0: 432 return &v.state 433 case 1: 434 return &v.sizeCache 435 case 2: 436 return &v.unknownFields 437 default: 438 return nil 439 } 440 } 441 file_proto_beacon_rpc_v1_slasher_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 442 switch v := v.(*ProposerSlashingResponse); i { 443 case 0: 444 return &v.state 445 case 1: 446 return &v.sizeCache 447 case 2: 448 return &v.unknownFields 449 default: 450 return nil 451 } 452 } 453 file_proto_beacon_rpc_v1_slasher_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 454 switch v := v.(*HighestAttestationRequest); i { 455 case 0: 456 return &v.state 457 case 1: 458 return &v.sizeCache 459 case 2: 460 return &v.unknownFields 461 default: 462 return nil 463 } 464 } 465 file_proto_beacon_rpc_v1_slasher_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 466 switch v := v.(*HighestAttestationResponse); i { 467 case 0: 468 return &v.state 469 case 1: 470 return &v.sizeCache 471 case 2: 472 return &v.unknownFields 473 default: 474 return nil 475 } 476 } 477 file_proto_beacon_rpc_v1_slasher_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 478 switch v := v.(*HighestAttestation); i { 479 case 0: 480 return &v.state 481 case 1: 482 return &v.sizeCache 483 case 2: 484 return &v.unknownFields 485 default: 486 return nil 487 } 488 } 489 } 490 type x struct{} 491 out := protoimpl.TypeBuilder{ 492 File: protoimpl.DescBuilder{ 493 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 494 RawDescriptor: file_proto_beacon_rpc_v1_slasher_proto_rawDesc, 495 NumEnums: 0, 496 NumMessages: 5, 497 NumExtensions: 0, 498 NumServices: 1, 499 }, 500 GoTypes: file_proto_beacon_rpc_v1_slasher_proto_goTypes, 501 DependencyIndexes: file_proto_beacon_rpc_v1_slasher_proto_depIdxs, 502 MessageInfos: file_proto_beacon_rpc_v1_slasher_proto_msgTypes, 503 }.Build() 504 File_proto_beacon_rpc_v1_slasher_proto = out.File 505 file_proto_beacon_rpc_v1_slasher_proto_rawDesc = nil 506 file_proto_beacon_rpc_v1_slasher_proto_goTypes = nil 507 file_proto_beacon_rpc_v1_slasher_proto_depIdxs = nil 508 } 509 510 // Reference imports to suppress errors if they are not otherwise used. 511 var _ context.Context 512 var _ grpc.ClientConnInterface 513 514 // This is a compile-time assertion to ensure that this generated file 515 // is compatible with the grpc package it is being compiled against. 516 const _ = grpc.SupportPackageIsVersion6 517 518 // SlasherClient is the client API for Slasher service. 519 // 520 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 521 type SlasherClient interface { 522 IsSlashableAttestation(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*AttesterSlashingResponse, error) 523 IsSlashableBlock(ctx context.Context, in *v1alpha1.SignedBeaconBlockHeader, opts ...grpc.CallOption) (*ProposerSlashingResponse, error) 524 HighestAttestations(ctx context.Context, in *HighestAttestationRequest, opts ...grpc.CallOption) (*HighestAttestationResponse, error) 525 } 526 527 type slasherClient struct { 528 cc grpc.ClientConnInterface 529 } 530 531 func NewSlasherClient(cc grpc.ClientConnInterface) SlasherClient { 532 return &slasherClient{cc} 533 } 534 535 func (c *slasherClient) IsSlashableAttestation(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*AttesterSlashingResponse, error) { 536 out := new(AttesterSlashingResponse) 537 err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Slasher/IsSlashableAttestation", in, out, opts...) 538 if err != nil { 539 return nil, err 540 } 541 return out, nil 542 } 543 544 func (c *slasherClient) IsSlashableBlock(ctx context.Context, in *v1alpha1.SignedBeaconBlockHeader, opts ...grpc.CallOption) (*ProposerSlashingResponse, error) { 545 out := new(ProposerSlashingResponse) 546 err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Slasher/IsSlashableBlock", in, out, opts...) 547 if err != nil { 548 return nil, err 549 } 550 return out, nil 551 } 552 553 func (c *slasherClient) HighestAttestations(ctx context.Context, in *HighestAttestationRequest, opts ...grpc.CallOption) (*HighestAttestationResponse, error) { 554 out := new(HighestAttestationResponse) 555 err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Slasher/HighestAttestations", in, out, opts...) 556 if err != nil { 557 return nil, err 558 } 559 return out, nil 560 } 561 562 // SlasherServer is the server API for Slasher service. 563 type SlasherServer interface { 564 IsSlashableAttestation(context.Context, *v1alpha1.IndexedAttestation) (*AttesterSlashingResponse, error) 565 IsSlashableBlock(context.Context, *v1alpha1.SignedBeaconBlockHeader) (*ProposerSlashingResponse, error) 566 HighestAttestations(context.Context, *HighestAttestationRequest) (*HighestAttestationResponse, error) 567 } 568 569 // UnimplementedSlasherServer can be embedded to have forward compatible implementations. 570 type UnimplementedSlasherServer struct { 571 } 572 573 func (*UnimplementedSlasherServer) IsSlashableAttestation(context.Context, *v1alpha1.IndexedAttestation) (*AttesterSlashingResponse, error) { 574 return nil, status.Errorf(codes.Unimplemented, "method IsSlashableAttestation not implemented") 575 } 576 func (*UnimplementedSlasherServer) IsSlashableBlock(context.Context, *v1alpha1.SignedBeaconBlockHeader) (*ProposerSlashingResponse, error) { 577 return nil, status.Errorf(codes.Unimplemented, "method IsSlashableBlock not implemented") 578 } 579 func (*UnimplementedSlasherServer) HighestAttestations(context.Context, *HighestAttestationRequest) (*HighestAttestationResponse, error) { 580 return nil, status.Errorf(codes.Unimplemented, "method HighestAttestations not implemented") 581 } 582 583 func RegisterSlasherServer(s *grpc.Server, srv SlasherServer) { 584 s.RegisterService(&_Slasher_serviceDesc, srv) 585 } 586 587 func _Slasher_IsSlashableAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 588 in := new(v1alpha1.IndexedAttestation) 589 if err := dec(in); err != nil { 590 return nil, err 591 } 592 if interceptor == nil { 593 return srv.(SlasherServer).IsSlashableAttestation(ctx, in) 594 } 595 info := &grpc.UnaryServerInfo{ 596 Server: srv, 597 FullMethod: "/ethereum.beacon.rpc.v1.Slasher/IsSlashableAttestation", 598 } 599 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 600 return srv.(SlasherServer).IsSlashableAttestation(ctx, req.(*v1alpha1.IndexedAttestation)) 601 } 602 return interceptor(ctx, in, info, handler) 603 } 604 605 func _Slasher_IsSlashableBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 606 in := new(v1alpha1.SignedBeaconBlockHeader) 607 if err := dec(in); err != nil { 608 return nil, err 609 } 610 if interceptor == nil { 611 return srv.(SlasherServer).IsSlashableBlock(ctx, in) 612 } 613 info := &grpc.UnaryServerInfo{ 614 Server: srv, 615 FullMethod: "/ethereum.beacon.rpc.v1.Slasher/IsSlashableBlock", 616 } 617 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 618 return srv.(SlasherServer).IsSlashableBlock(ctx, req.(*v1alpha1.SignedBeaconBlockHeader)) 619 } 620 return interceptor(ctx, in, info, handler) 621 } 622 623 func _Slasher_HighestAttestations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 624 in := new(HighestAttestationRequest) 625 if err := dec(in); err != nil { 626 return nil, err 627 } 628 if interceptor == nil { 629 return srv.(SlasherServer).HighestAttestations(ctx, in) 630 } 631 info := &grpc.UnaryServerInfo{ 632 Server: srv, 633 FullMethod: "/ethereum.beacon.rpc.v1.Slasher/HighestAttestations", 634 } 635 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 636 return srv.(SlasherServer).HighestAttestations(ctx, req.(*HighestAttestationRequest)) 637 } 638 return interceptor(ctx, in, info, handler) 639 } 640 641 var _Slasher_serviceDesc = grpc.ServiceDesc{ 642 ServiceName: "ethereum.beacon.rpc.v1.Slasher", 643 HandlerType: (*SlasherServer)(nil), 644 Methods: []grpc.MethodDesc{ 645 { 646 MethodName: "IsSlashableAttestation", 647 Handler: _Slasher_IsSlashableAttestation_Handler, 648 }, 649 { 650 MethodName: "IsSlashableBlock", 651 Handler: _Slasher_IsSlashableBlock_Handler, 652 }, 653 { 654 MethodName: "HighestAttestations", 655 Handler: _Slasher_HighestAttestations_Handler, 656 }, 657 }, 658 Streams: []grpc.StreamDesc{}, 659 Metadata: "proto/beacon/rpc/v1/slasher.proto", 660 }