github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1alpha1/beacon_chain.pb.gw.go (about) 1 // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. 2 // source: proto/eth/v1alpha1/beacon_chain.proto 3 4 /* 5 Package eth is a reverse proxy. 6 7 It translates gRPC into RESTful JSON APIs. 8 */ 9 package eth 10 11 import ( 12 "context" 13 "io" 14 "net/http" 15 16 "github.com/golang/protobuf/ptypes/empty" 17 emptypb "github.com/golang/protobuf/ptypes/empty" 18 "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" 19 "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" 20 github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types" 21 "google.golang.org/grpc" 22 "google.golang.org/grpc/codes" 23 "google.golang.org/grpc/grpclog" 24 "google.golang.org/grpc/metadata" 25 "google.golang.org/grpc/status" 26 "google.golang.org/protobuf/proto" 27 ) 28 29 // Suppress "imported and not used" errors 30 var _ codes.Code 31 var _ io.Reader 32 var _ status.Status 33 var _ = runtime.String 34 var _ = utilities.NewDoubleArray 35 var _ = metadata.Join 36 var _ = github_com_prysmaticlabs_eth2_types.Epoch(0) 37 var _ = emptypb.Empty{} 38 var _ = empty.Empty{} 39 40 var ( 41 filter_BeaconChain_ListAttestations_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 42 ) 43 44 func request_BeaconChain_ListAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 45 var protoReq ListAttestationsRequest 46 var metadata runtime.ServerMetadata 47 48 if err := req.ParseForm(); err != nil { 49 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 50 } 51 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListAttestations_0); err != nil { 52 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 53 } 54 55 msg, err := client.ListAttestations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 56 return msg, metadata, err 57 58 } 59 60 func local_request_BeaconChain_ListAttestations_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 61 var protoReq ListAttestationsRequest 62 var metadata runtime.ServerMetadata 63 64 if err := req.ParseForm(); err != nil { 65 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 66 } 67 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListAttestations_0); err != nil { 68 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 69 } 70 71 msg, err := server.ListAttestations(ctx, &protoReq) 72 return msg, metadata, err 73 74 } 75 76 var ( 77 filter_BeaconChain_ListIndexedAttestations_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 78 ) 79 80 func request_BeaconChain_ListIndexedAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 81 var protoReq ListIndexedAttestationsRequest 82 var metadata runtime.ServerMetadata 83 84 if err := req.ParseForm(); err != nil { 85 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 86 } 87 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListIndexedAttestations_0); err != nil { 88 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 89 } 90 91 msg, err := client.ListIndexedAttestations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 92 return msg, metadata, err 93 94 } 95 96 func local_request_BeaconChain_ListIndexedAttestations_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 97 var protoReq ListIndexedAttestationsRequest 98 var metadata runtime.ServerMetadata 99 100 if err := req.ParseForm(); err != nil { 101 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 102 } 103 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListIndexedAttestations_0); err != nil { 104 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 105 } 106 107 msg, err := server.ListIndexedAttestations(ctx, &protoReq) 108 return msg, metadata, err 109 110 } 111 112 func request_BeaconChain_StreamAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (BeaconChain_StreamAttestationsClient, runtime.ServerMetadata, error) { 113 var protoReq emptypb.Empty 114 var metadata runtime.ServerMetadata 115 116 stream, err := client.StreamAttestations(ctx, &protoReq) 117 if err != nil { 118 return nil, metadata, err 119 } 120 header, err := stream.Header() 121 if err != nil { 122 return nil, metadata, err 123 } 124 metadata.HeaderMD = header 125 return stream, metadata, nil 126 127 } 128 129 func request_BeaconChain_StreamIndexedAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (BeaconChain_StreamIndexedAttestationsClient, runtime.ServerMetadata, error) { 130 var protoReq emptypb.Empty 131 var metadata runtime.ServerMetadata 132 133 stream, err := client.StreamIndexedAttestations(ctx, &protoReq) 134 if err != nil { 135 return nil, metadata, err 136 } 137 header, err := stream.Header() 138 if err != nil { 139 return nil, metadata, err 140 } 141 metadata.HeaderMD = header 142 return stream, metadata, nil 143 144 } 145 146 var ( 147 filter_BeaconChain_AttestationPool_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 148 ) 149 150 func request_BeaconChain_AttestationPool_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 151 var protoReq AttestationPoolRequest 152 var metadata runtime.ServerMetadata 153 154 if err := req.ParseForm(); err != nil { 155 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 156 } 157 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_AttestationPool_0); err != nil { 158 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 159 } 160 161 msg, err := client.AttestationPool(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 162 return msg, metadata, err 163 164 } 165 166 func local_request_BeaconChain_AttestationPool_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 167 var protoReq AttestationPoolRequest 168 var metadata runtime.ServerMetadata 169 170 if err := req.ParseForm(); err != nil { 171 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 172 } 173 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_AttestationPool_0); err != nil { 174 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 175 } 176 177 msg, err := server.AttestationPool(ctx, &protoReq) 178 return msg, metadata, err 179 180 } 181 182 var ( 183 filter_BeaconChain_ListBlocks_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 184 ) 185 186 func request_BeaconChain_ListBlocks_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 187 var protoReq ListBlocksRequest 188 var metadata runtime.ServerMetadata 189 190 if err := req.ParseForm(); err != nil { 191 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 192 } 193 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListBlocks_0); err != nil { 194 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 195 } 196 197 msg, err := client.ListBlocks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 198 return msg, metadata, err 199 200 } 201 202 func local_request_BeaconChain_ListBlocks_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 203 var protoReq ListBlocksRequest 204 var metadata runtime.ServerMetadata 205 206 if err := req.ParseForm(); err != nil { 207 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 208 } 209 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListBlocks_0); err != nil { 210 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 211 } 212 213 msg, err := server.ListBlocks(ctx, &protoReq) 214 return msg, metadata, err 215 216 } 217 218 var ( 219 filter_BeaconChain_StreamBlocks_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 220 ) 221 222 func request_BeaconChain_StreamBlocks_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (BeaconChain_StreamBlocksClient, runtime.ServerMetadata, error) { 223 var protoReq StreamBlocksRequest 224 var metadata runtime.ServerMetadata 225 226 if err := req.ParseForm(); err != nil { 227 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 228 } 229 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_StreamBlocks_0); err != nil { 230 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 231 } 232 233 stream, err := client.StreamBlocks(ctx, &protoReq) 234 if err != nil { 235 return nil, metadata, err 236 } 237 header, err := stream.Header() 238 if err != nil { 239 return nil, metadata, err 240 } 241 metadata.HeaderMD = header 242 return stream, metadata, nil 243 244 } 245 246 func request_BeaconChain_StreamChainHead_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (BeaconChain_StreamChainHeadClient, runtime.ServerMetadata, error) { 247 var protoReq emptypb.Empty 248 var metadata runtime.ServerMetadata 249 250 stream, err := client.StreamChainHead(ctx, &protoReq) 251 if err != nil { 252 return nil, metadata, err 253 } 254 header, err := stream.Header() 255 if err != nil { 256 return nil, metadata, err 257 } 258 metadata.HeaderMD = header 259 return stream, metadata, nil 260 261 } 262 263 func request_BeaconChain_GetChainHead_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 264 var protoReq emptypb.Empty 265 var metadata runtime.ServerMetadata 266 267 msg, err := client.GetChainHead(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 268 return msg, metadata, err 269 270 } 271 272 func local_request_BeaconChain_GetChainHead_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 273 var protoReq emptypb.Empty 274 var metadata runtime.ServerMetadata 275 276 msg, err := server.GetChainHead(ctx, &protoReq) 277 return msg, metadata, err 278 279 } 280 281 func request_BeaconChain_GetWeakSubjectivityCheckpoint_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 282 var protoReq emptypb.Empty 283 var metadata runtime.ServerMetadata 284 285 msg, err := client.GetWeakSubjectivityCheckpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 286 return msg, metadata, err 287 288 } 289 290 func local_request_BeaconChain_GetWeakSubjectivityCheckpoint_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 291 var protoReq emptypb.Empty 292 var metadata runtime.ServerMetadata 293 294 msg, err := server.GetWeakSubjectivityCheckpoint(ctx, &protoReq) 295 return msg, metadata, err 296 297 } 298 299 var ( 300 filter_BeaconChain_ListBeaconCommittees_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 301 ) 302 303 func request_BeaconChain_ListBeaconCommittees_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 304 var protoReq ListCommitteesRequest 305 var metadata runtime.ServerMetadata 306 307 if err := req.ParseForm(); err != nil { 308 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 309 } 310 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListBeaconCommittees_0); err != nil { 311 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 312 } 313 314 msg, err := client.ListBeaconCommittees(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 315 return msg, metadata, err 316 317 } 318 319 func local_request_BeaconChain_ListBeaconCommittees_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 320 var protoReq ListCommitteesRequest 321 var metadata runtime.ServerMetadata 322 323 if err := req.ParseForm(); err != nil { 324 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 325 } 326 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListBeaconCommittees_0); err != nil { 327 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 328 } 329 330 msg, err := server.ListBeaconCommittees(ctx, &protoReq) 331 return msg, metadata, err 332 333 } 334 335 var ( 336 filter_BeaconChain_ListValidatorBalances_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 337 ) 338 339 func request_BeaconChain_ListValidatorBalances_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 340 var protoReq ListValidatorBalancesRequest 341 var metadata runtime.ServerMetadata 342 343 if err := req.ParseForm(); err != nil { 344 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 345 } 346 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidatorBalances_0); err != nil { 347 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 348 } 349 350 msg, err := client.ListValidatorBalances(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 351 return msg, metadata, err 352 353 } 354 355 func local_request_BeaconChain_ListValidatorBalances_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 356 var protoReq ListValidatorBalancesRequest 357 var metadata runtime.ServerMetadata 358 359 if err := req.ParseForm(); err != nil { 360 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 361 } 362 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidatorBalances_0); err != nil { 363 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 364 } 365 366 msg, err := server.ListValidatorBalances(ctx, &protoReq) 367 return msg, metadata, err 368 369 } 370 371 var ( 372 filter_BeaconChain_ListValidators_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 373 ) 374 375 func request_BeaconChain_ListValidators_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 376 var protoReq ListValidatorsRequest 377 var metadata runtime.ServerMetadata 378 379 if err := req.ParseForm(); err != nil { 380 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 381 } 382 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidators_0); err != nil { 383 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 384 } 385 386 msg, err := client.ListValidators(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 387 return msg, metadata, err 388 389 } 390 391 func local_request_BeaconChain_ListValidators_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 392 var protoReq ListValidatorsRequest 393 var metadata runtime.ServerMetadata 394 395 if err := req.ParseForm(); err != nil { 396 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 397 } 398 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidators_0); err != nil { 399 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 400 } 401 402 msg, err := server.ListValidators(ctx, &protoReq) 403 return msg, metadata, err 404 405 } 406 407 var ( 408 filter_BeaconChain_GetValidator_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 409 ) 410 411 func request_BeaconChain_GetValidator_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 412 var protoReq GetValidatorRequest 413 var metadata runtime.ServerMetadata 414 415 if err := req.ParseForm(); err != nil { 416 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 417 } 418 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidator_0); err != nil { 419 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 420 } 421 422 msg, err := client.GetValidator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 423 return msg, metadata, err 424 425 } 426 427 func local_request_BeaconChain_GetValidator_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 428 var protoReq GetValidatorRequest 429 var metadata runtime.ServerMetadata 430 431 if err := req.ParseForm(); err != nil { 432 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 433 } 434 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidator_0); err != nil { 435 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 436 } 437 438 msg, err := server.GetValidator(ctx, &protoReq) 439 return msg, metadata, err 440 441 } 442 443 var ( 444 filter_BeaconChain_GetValidatorActiveSetChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 445 ) 446 447 func request_BeaconChain_GetValidatorActiveSetChanges_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 448 var protoReq GetValidatorActiveSetChangesRequest 449 var metadata runtime.ServerMetadata 450 451 if err := req.ParseForm(); err != nil { 452 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 453 } 454 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidatorActiveSetChanges_0); err != nil { 455 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 456 } 457 458 msg, err := client.GetValidatorActiveSetChanges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 459 return msg, metadata, err 460 461 } 462 463 func local_request_BeaconChain_GetValidatorActiveSetChanges_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 464 var protoReq GetValidatorActiveSetChangesRequest 465 var metadata runtime.ServerMetadata 466 467 if err := req.ParseForm(); err != nil { 468 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 469 } 470 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidatorActiveSetChanges_0); err != nil { 471 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 472 } 473 474 msg, err := server.GetValidatorActiveSetChanges(ctx, &protoReq) 475 return msg, metadata, err 476 477 } 478 479 func request_BeaconChain_GetValidatorQueue_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 480 var protoReq emptypb.Empty 481 var metadata runtime.ServerMetadata 482 483 msg, err := client.GetValidatorQueue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 484 return msg, metadata, err 485 486 } 487 488 func local_request_BeaconChain_GetValidatorQueue_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 489 var protoReq emptypb.Empty 490 var metadata runtime.ServerMetadata 491 492 msg, err := server.GetValidatorQueue(ctx, &protoReq) 493 return msg, metadata, err 494 495 } 496 497 var ( 498 filter_BeaconChain_GetValidatorPerformance_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 499 ) 500 501 func request_BeaconChain_GetValidatorPerformance_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 502 var protoReq ValidatorPerformanceRequest 503 var metadata runtime.ServerMetadata 504 505 if err := req.ParseForm(); err != nil { 506 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 507 } 508 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidatorPerformance_0); err != nil { 509 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 510 } 511 512 msg, err := client.GetValidatorPerformance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 513 return msg, metadata, err 514 515 } 516 517 func local_request_BeaconChain_GetValidatorPerformance_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 518 var protoReq ValidatorPerformanceRequest 519 var metadata runtime.ServerMetadata 520 521 if err := req.ParseForm(); err != nil { 522 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 523 } 524 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidatorPerformance_0); err != nil { 525 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 526 } 527 528 msg, err := server.GetValidatorPerformance(ctx, &protoReq) 529 return msg, metadata, err 530 531 } 532 533 var ( 534 filter_BeaconChain_ListValidatorAssignments_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 535 ) 536 537 func request_BeaconChain_ListValidatorAssignments_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 538 var protoReq ListValidatorAssignmentsRequest 539 var metadata runtime.ServerMetadata 540 541 if err := req.ParseForm(); err != nil { 542 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 543 } 544 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidatorAssignments_0); err != nil { 545 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 546 } 547 548 msg, err := client.ListValidatorAssignments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 549 return msg, metadata, err 550 551 } 552 553 func local_request_BeaconChain_ListValidatorAssignments_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 554 var protoReq ListValidatorAssignmentsRequest 555 var metadata runtime.ServerMetadata 556 557 if err := req.ParseForm(); err != nil { 558 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 559 } 560 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidatorAssignments_0); err != nil { 561 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 562 } 563 564 msg, err := server.ListValidatorAssignments(ctx, &protoReq) 565 return msg, metadata, err 566 567 } 568 569 var ( 570 filter_BeaconChain_GetValidatorParticipation_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 571 ) 572 573 func request_BeaconChain_GetValidatorParticipation_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 574 var protoReq GetValidatorParticipationRequest 575 var metadata runtime.ServerMetadata 576 577 if err := req.ParseForm(); err != nil { 578 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 579 } 580 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidatorParticipation_0); err != nil { 581 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 582 } 583 584 msg, err := client.GetValidatorParticipation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 585 return msg, metadata, err 586 587 } 588 589 func local_request_BeaconChain_GetValidatorParticipation_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 590 var protoReq GetValidatorParticipationRequest 591 var metadata runtime.ServerMetadata 592 593 if err := req.ParseForm(); err != nil { 594 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 595 } 596 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetValidatorParticipation_0); err != nil { 597 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 598 } 599 600 msg, err := server.GetValidatorParticipation(ctx, &protoReq) 601 return msg, metadata, err 602 603 } 604 605 func request_BeaconChain_GetBeaconConfig_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 606 var protoReq emptypb.Empty 607 var metadata runtime.ServerMetadata 608 609 msg, err := client.GetBeaconConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 610 return msg, metadata, err 611 612 } 613 614 func local_request_BeaconChain_GetBeaconConfig_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 615 var protoReq emptypb.Empty 616 var metadata runtime.ServerMetadata 617 618 msg, err := server.GetBeaconConfig(ctx, &protoReq) 619 return msg, metadata, err 620 621 } 622 623 func request_BeaconChain_StreamValidatorsInfo_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (BeaconChain_StreamValidatorsInfoClient, runtime.ServerMetadata, error) { 624 var metadata runtime.ServerMetadata 625 stream, err := client.StreamValidatorsInfo(ctx) 626 if err != nil { 627 grpclog.Infof("Failed to start streaming: %v", err) 628 return nil, metadata, err 629 } 630 dec := marshaler.NewDecoder(req.Body) 631 handleSend := func() error { 632 var protoReq ValidatorChangeSet 633 err := dec.Decode(&protoReq) 634 if err == io.EOF { 635 return err 636 } 637 if err != nil { 638 grpclog.Infof("Failed to decode request: %v", err) 639 return err 640 } 641 if err := stream.Send(&protoReq); err != nil { 642 grpclog.Infof("Failed to send request: %v", err) 643 return err 644 } 645 return nil 646 } 647 if err := handleSend(); err != nil { 648 if cerr := stream.CloseSend(); cerr != nil { 649 grpclog.Infof("Failed to terminate client stream: %v", cerr) 650 } 651 if err == io.EOF { 652 return stream, metadata, nil 653 } 654 return nil, metadata, err 655 } 656 go func() { 657 for { 658 if err := handleSend(); err != nil { 659 break 660 } 661 } 662 if err := stream.CloseSend(); err != nil { 663 grpclog.Infof("Failed to terminate client stream: %v", err) 664 } 665 }() 666 header, err := stream.Header() 667 if err != nil { 668 grpclog.Infof("Failed to get header from client: %v", err) 669 return nil, metadata, err 670 } 671 metadata.HeaderMD = header 672 return stream, metadata, nil 673 } 674 675 var ( 676 filter_BeaconChain_SubmitAttesterSlashing_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 677 ) 678 679 func request_BeaconChain_SubmitAttesterSlashing_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 680 var protoReq AttesterSlashing 681 var metadata runtime.ServerMetadata 682 683 if err := req.ParseForm(); err != nil { 684 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 685 } 686 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_SubmitAttesterSlashing_0); err != nil { 687 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 688 } 689 690 msg, err := client.SubmitAttesterSlashing(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 691 return msg, metadata, err 692 693 } 694 695 func local_request_BeaconChain_SubmitAttesterSlashing_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 696 var protoReq AttesterSlashing 697 var metadata runtime.ServerMetadata 698 699 if err := req.ParseForm(); err != nil { 700 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 701 } 702 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_SubmitAttesterSlashing_0); err != nil { 703 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 704 } 705 706 msg, err := server.SubmitAttesterSlashing(ctx, &protoReq) 707 return msg, metadata, err 708 709 } 710 711 var ( 712 filter_BeaconChain_SubmitProposerSlashing_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 713 ) 714 715 func request_BeaconChain_SubmitProposerSlashing_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 716 var protoReq ProposerSlashing 717 var metadata runtime.ServerMetadata 718 719 if err := req.ParseForm(); err != nil { 720 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 721 } 722 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_SubmitProposerSlashing_0); err != nil { 723 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 724 } 725 726 msg, err := client.SubmitProposerSlashing(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 727 return msg, metadata, err 728 729 } 730 731 func local_request_BeaconChain_SubmitProposerSlashing_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 732 var protoReq ProposerSlashing 733 var metadata runtime.ServerMetadata 734 735 if err := req.ParseForm(); err != nil { 736 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 737 } 738 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_SubmitProposerSlashing_0); err != nil { 739 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 740 } 741 742 msg, err := server.SubmitProposerSlashing(ctx, &protoReq) 743 return msg, metadata, err 744 745 } 746 747 var ( 748 filter_BeaconChain_GetIndividualVotes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 749 ) 750 751 func request_BeaconChain_GetIndividualVotes_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 752 var protoReq IndividualVotesRequest 753 var metadata runtime.ServerMetadata 754 755 if err := req.ParseForm(); err != nil { 756 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 757 } 758 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetIndividualVotes_0); err != nil { 759 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 760 } 761 762 msg, err := client.GetIndividualVotes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 763 return msg, metadata, err 764 765 } 766 767 func local_request_BeaconChain_GetIndividualVotes_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 768 var protoReq IndividualVotesRequest 769 var metadata runtime.ServerMetadata 770 771 if err := req.ParseForm(); err != nil { 772 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 773 } 774 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_GetIndividualVotes_0); err != nil { 775 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 776 } 777 778 msg, err := server.GetIndividualVotes(ctx, &protoReq) 779 return msg, metadata, err 780 781 } 782 783 // RegisterBeaconChainHandlerServer registers the http handlers for service BeaconChain to "mux". 784 // UnaryRPC :call BeaconChainServer directly. 785 // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. 786 // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBeaconChainHandlerFromEndpoint instead. 787 func RegisterBeaconChainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BeaconChainServer) error { 788 789 mux.Handle("GET", pattern_BeaconChain_ListAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 790 ctx, cancel := context.WithCancel(req.Context()) 791 defer cancel() 792 var stream runtime.ServerTransportStream 793 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 794 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 795 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListAttestations") 796 if err != nil { 797 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 798 return 799 } 800 resp, md, err := local_request_BeaconChain_ListAttestations_0(rctx, inboundMarshaler, server, req, pathParams) 801 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 802 ctx = runtime.NewServerMetadataContext(ctx, md) 803 if err != nil { 804 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 805 return 806 } 807 808 forward_BeaconChain_ListAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 809 810 }) 811 812 mux.Handle("GET", pattern_BeaconChain_ListIndexedAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 813 ctx, cancel := context.WithCancel(req.Context()) 814 defer cancel() 815 var stream runtime.ServerTransportStream 816 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 817 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 818 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListIndexedAttestations") 819 if err != nil { 820 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 821 return 822 } 823 resp, md, err := local_request_BeaconChain_ListIndexedAttestations_0(rctx, inboundMarshaler, server, req, pathParams) 824 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 825 ctx = runtime.NewServerMetadataContext(ctx, md) 826 if err != nil { 827 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 828 return 829 } 830 831 forward_BeaconChain_ListIndexedAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 832 833 }) 834 835 mux.Handle("GET", pattern_BeaconChain_StreamAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 836 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 837 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 838 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 839 return 840 }) 841 842 mux.Handle("GET", pattern_BeaconChain_StreamIndexedAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 843 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 844 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 845 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 846 return 847 }) 848 849 mux.Handle("GET", pattern_BeaconChain_AttestationPool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 850 ctx, cancel := context.WithCancel(req.Context()) 851 defer cancel() 852 var stream runtime.ServerTransportStream 853 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 854 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 855 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/AttestationPool") 856 if err != nil { 857 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 858 return 859 } 860 resp, md, err := local_request_BeaconChain_AttestationPool_0(rctx, inboundMarshaler, server, req, pathParams) 861 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 862 ctx = runtime.NewServerMetadataContext(ctx, md) 863 if err != nil { 864 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 865 return 866 } 867 868 forward_BeaconChain_AttestationPool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 869 870 }) 871 872 mux.Handle("GET", pattern_BeaconChain_ListBlocks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 873 ctx, cancel := context.WithCancel(req.Context()) 874 defer cancel() 875 var stream runtime.ServerTransportStream 876 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 877 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 878 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListBlocks") 879 if err != nil { 880 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 881 return 882 } 883 resp, md, err := local_request_BeaconChain_ListBlocks_0(rctx, inboundMarshaler, server, req, pathParams) 884 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 885 ctx = runtime.NewServerMetadataContext(ctx, md) 886 if err != nil { 887 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 888 return 889 } 890 891 forward_BeaconChain_ListBlocks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 892 893 }) 894 895 mux.Handle("GET", pattern_BeaconChain_StreamBlocks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 896 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 897 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 898 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 899 return 900 }) 901 902 mux.Handle("GET", pattern_BeaconChain_StreamChainHead_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 903 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 904 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 905 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 906 return 907 }) 908 909 mux.Handle("GET", pattern_BeaconChain_GetChainHead_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 910 ctx, cancel := context.WithCancel(req.Context()) 911 defer cancel() 912 var stream runtime.ServerTransportStream 913 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 914 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 915 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetChainHead") 916 if err != nil { 917 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 918 return 919 } 920 resp, md, err := local_request_BeaconChain_GetChainHead_0(rctx, inboundMarshaler, server, req, pathParams) 921 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 922 ctx = runtime.NewServerMetadataContext(ctx, md) 923 if err != nil { 924 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 925 return 926 } 927 928 forward_BeaconChain_GetChainHead_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 929 930 }) 931 932 mux.Handle("GET", pattern_BeaconChain_GetWeakSubjectivityCheckpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 933 ctx, cancel := context.WithCancel(req.Context()) 934 defer cancel() 935 var stream runtime.ServerTransportStream 936 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 937 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 938 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetWeakSubjectivityCheckpoint") 939 if err != nil { 940 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 941 return 942 } 943 resp, md, err := local_request_BeaconChain_GetWeakSubjectivityCheckpoint_0(rctx, inboundMarshaler, server, req, pathParams) 944 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 945 ctx = runtime.NewServerMetadataContext(ctx, md) 946 if err != nil { 947 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 948 return 949 } 950 951 forward_BeaconChain_GetWeakSubjectivityCheckpoint_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 952 953 }) 954 955 mux.Handle("GET", pattern_BeaconChain_ListBeaconCommittees_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 956 ctx, cancel := context.WithCancel(req.Context()) 957 defer cancel() 958 var stream runtime.ServerTransportStream 959 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 960 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 961 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListBeaconCommittees") 962 if err != nil { 963 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 964 return 965 } 966 resp, md, err := local_request_BeaconChain_ListBeaconCommittees_0(rctx, inboundMarshaler, server, req, pathParams) 967 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 968 ctx = runtime.NewServerMetadataContext(ctx, md) 969 if err != nil { 970 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 971 return 972 } 973 974 forward_BeaconChain_ListBeaconCommittees_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 975 976 }) 977 978 mux.Handle("GET", pattern_BeaconChain_ListValidatorBalances_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 979 ctx, cancel := context.WithCancel(req.Context()) 980 defer cancel() 981 var stream runtime.ServerTransportStream 982 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 983 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 984 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListValidatorBalances") 985 if err != nil { 986 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 987 return 988 } 989 resp, md, err := local_request_BeaconChain_ListValidatorBalances_0(rctx, inboundMarshaler, server, req, pathParams) 990 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 991 ctx = runtime.NewServerMetadataContext(ctx, md) 992 if err != nil { 993 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 994 return 995 } 996 997 forward_BeaconChain_ListValidatorBalances_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 998 999 }) 1000 1001 mux.Handle("GET", pattern_BeaconChain_ListValidators_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1002 ctx, cancel := context.WithCancel(req.Context()) 1003 defer cancel() 1004 var stream runtime.ServerTransportStream 1005 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1006 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1007 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListValidators") 1008 if err != nil { 1009 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1010 return 1011 } 1012 resp, md, err := local_request_BeaconChain_ListValidators_0(rctx, inboundMarshaler, server, req, pathParams) 1013 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1014 ctx = runtime.NewServerMetadataContext(ctx, md) 1015 if err != nil { 1016 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1017 return 1018 } 1019 1020 forward_BeaconChain_ListValidators_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1021 1022 }) 1023 1024 mux.Handle("GET", pattern_BeaconChain_GetValidator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1025 ctx, cancel := context.WithCancel(req.Context()) 1026 defer cancel() 1027 var stream runtime.ServerTransportStream 1028 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1029 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1030 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidator") 1031 if err != nil { 1032 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1033 return 1034 } 1035 resp, md, err := local_request_BeaconChain_GetValidator_0(rctx, inboundMarshaler, server, req, pathParams) 1036 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1037 ctx = runtime.NewServerMetadataContext(ctx, md) 1038 if err != nil { 1039 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1040 return 1041 } 1042 1043 forward_BeaconChain_GetValidator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1044 1045 }) 1046 1047 mux.Handle("GET", pattern_BeaconChain_GetValidatorActiveSetChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1048 ctx, cancel := context.WithCancel(req.Context()) 1049 defer cancel() 1050 var stream runtime.ServerTransportStream 1051 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1052 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1053 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorActiveSetChanges") 1054 if err != nil { 1055 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1056 return 1057 } 1058 resp, md, err := local_request_BeaconChain_GetValidatorActiveSetChanges_0(rctx, inboundMarshaler, server, req, pathParams) 1059 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1060 ctx = runtime.NewServerMetadataContext(ctx, md) 1061 if err != nil { 1062 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1063 return 1064 } 1065 1066 forward_BeaconChain_GetValidatorActiveSetChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1067 1068 }) 1069 1070 mux.Handle("GET", pattern_BeaconChain_GetValidatorQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1071 ctx, cancel := context.WithCancel(req.Context()) 1072 defer cancel() 1073 var stream runtime.ServerTransportStream 1074 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1075 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1076 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorQueue") 1077 if err != nil { 1078 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1079 return 1080 } 1081 resp, md, err := local_request_BeaconChain_GetValidatorQueue_0(rctx, inboundMarshaler, server, req, pathParams) 1082 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1083 ctx = runtime.NewServerMetadataContext(ctx, md) 1084 if err != nil { 1085 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1086 return 1087 } 1088 1089 forward_BeaconChain_GetValidatorQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1090 1091 }) 1092 1093 mux.Handle("GET", pattern_BeaconChain_GetValidatorPerformance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1094 ctx, cancel := context.WithCancel(req.Context()) 1095 defer cancel() 1096 var stream runtime.ServerTransportStream 1097 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1098 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1099 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorPerformance") 1100 if err != nil { 1101 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1102 return 1103 } 1104 resp, md, err := local_request_BeaconChain_GetValidatorPerformance_0(rctx, inboundMarshaler, server, req, pathParams) 1105 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1106 ctx = runtime.NewServerMetadataContext(ctx, md) 1107 if err != nil { 1108 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1109 return 1110 } 1111 1112 forward_BeaconChain_GetValidatorPerformance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1113 1114 }) 1115 1116 mux.Handle("GET", pattern_BeaconChain_ListValidatorAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1117 ctx, cancel := context.WithCancel(req.Context()) 1118 defer cancel() 1119 var stream runtime.ServerTransportStream 1120 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1121 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1122 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListValidatorAssignments") 1123 if err != nil { 1124 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1125 return 1126 } 1127 resp, md, err := local_request_BeaconChain_ListValidatorAssignments_0(rctx, inboundMarshaler, server, req, pathParams) 1128 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1129 ctx = runtime.NewServerMetadataContext(ctx, md) 1130 if err != nil { 1131 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1132 return 1133 } 1134 1135 forward_BeaconChain_ListValidatorAssignments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1136 1137 }) 1138 1139 mux.Handle("GET", pattern_BeaconChain_GetValidatorParticipation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1140 ctx, cancel := context.WithCancel(req.Context()) 1141 defer cancel() 1142 var stream runtime.ServerTransportStream 1143 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1144 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1145 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorParticipation") 1146 if err != nil { 1147 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1148 return 1149 } 1150 resp, md, err := local_request_BeaconChain_GetValidatorParticipation_0(rctx, inboundMarshaler, server, req, pathParams) 1151 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1152 ctx = runtime.NewServerMetadataContext(ctx, md) 1153 if err != nil { 1154 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1155 return 1156 } 1157 1158 forward_BeaconChain_GetValidatorParticipation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1159 1160 }) 1161 1162 mux.Handle("GET", pattern_BeaconChain_GetBeaconConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1163 ctx, cancel := context.WithCancel(req.Context()) 1164 defer cancel() 1165 var stream runtime.ServerTransportStream 1166 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1167 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1168 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetBeaconConfig") 1169 if err != nil { 1170 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1171 return 1172 } 1173 resp, md, err := local_request_BeaconChain_GetBeaconConfig_0(rctx, inboundMarshaler, server, req, pathParams) 1174 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1175 ctx = runtime.NewServerMetadataContext(ctx, md) 1176 if err != nil { 1177 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1178 return 1179 } 1180 1181 forward_BeaconChain_GetBeaconConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1182 1183 }) 1184 1185 mux.Handle("GET", pattern_BeaconChain_StreamValidatorsInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1186 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 1187 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1188 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1189 return 1190 }) 1191 1192 mux.Handle("GET", pattern_BeaconChain_SubmitAttesterSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1193 ctx, cancel := context.WithCancel(req.Context()) 1194 defer cancel() 1195 var stream runtime.ServerTransportStream 1196 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1197 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1198 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/SubmitAttesterSlashing") 1199 if err != nil { 1200 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1201 return 1202 } 1203 resp, md, err := local_request_BeaconChain_SubmitAttesterSlashing_0(rctx, inboundMarshaler, server, req, pathParams) 1204 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1205 ctx = runtime.NewServerMetadataContext(ctx, md) 1206 if err != nil { 1207 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1208 return 1209 } 1210 1211 forward_BeaconChain_SubmitAttesterSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1212 1213 }) 1214 1215 mux.Handle("GET", pattern_BeaconChain_SubmitProposerSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1216 ctx, cancel := context.WithCancel(req.Context()) 1217 defer cancel() 1218 var stream runtime.ServerTransportStream 1219 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1220 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1221 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/SubmitProposerSlashing") 1222 if err != nil { 1223 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1224 return 1225 } 1226 resp, md, err := local_request_BeaconChain_SubmitProposerSlashing_0(rctx, inboundMarshaler, server, req, pathParams) 1227 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1228 ctx = runtime.NewServerMetadataContext(ctx, md) 1229 if err != nil { 1230 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1231 return 1232 } 1233 1234 forward_BeaconChain_SubmitProposerSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1235 1236 }) 1237 1238 mux.Handle("GET", pattern_BeaconChain_GetIndividualVotes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1239 ctx, cancel := context.WithCancel(req.Context()) 1240 defer cancel() 1241 var stream runtime.ServerTransportStream 1242 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1243 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1244 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetIndividualVotes") 1245 if err != nil { 1246 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1247 return 1248 } 1249 resp, md, err := local_request_BeaconChain_GetIndividualVotes_0(rctx, inboundMarshaler, server, req, pathParams) 1250 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1251 ctx = runtime.NewServerMetadataContext(ctx, md) 1252 if err != nil { 1253 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1254 return 1255 } 1256 1257 forward_BeaconChain_GetIndividualVotes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1258 1259 }) 1260 1261 return nil 1262 } 1263 1264 // RegisterBeaconChainHandlerFromEndpoint is same as RegisterBeaconChainHandler but 1265 // automatically dials to "endpoint" and closes the connection when "ctx" gets done. 1266 func RegisterBeaconChainHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { 1267 conn, err := grpc.Dial(endpoint, opts...) 1268 if err != nil { 1269 return err 1270 } 1271 defer func() { 1272 if err != nil { 1273 if cerr := conn.Close(); cerr != nil { 1274 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 1275 } 1276 return 1277 } 1278 go func() { 1279 <-ctx.Done() 1280 if cerr := conn.Close(); cerr != nil { 1281 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 1282 } 1283 }() 1284 }() 1285 1286 return RegisterBeaconChainHandler(ctx, mux, conn) 1287 } 1288 1289 // RegisterBeaconChainHandler registers the http handlers for service BeaconChain to "mux". 1290 // The handlers forward requests to the grpc endpoint over "conn". 1291 func RegisterBeaconChainHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { 1292 return RegisterBeaconChainHandlerClient(ctx, mux, NewBeaconChainClient(conn)) 1293 } 1294 1295 // RegisterBeaconChainHandlerClient registers the http handlers for service BeaconChain 1296 // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BeaconChainClient". 1297 // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BeaconChainClient" 1298 // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in 1299 // "BeaconChainClient" to call the correct interceptors. 1300 func RegisterBeaconChainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BeaconChainClient) error { 1301 1302 mux.Handle("GET", pattern_BeaconChain_ListAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1303 ctx, cancel := context.WithCancel(req.Context()) 1304 defer cancel() 1305 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1306 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListAttestations") 1307 if err != nil { 1308 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1309 return 1310 } 1311 resp, md, err := request_BeaconChain_ListAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 1312 ctx = runtime.NewServerMetadataContext(ctx, md) 1313 if err != nil { 1314 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1315 return 1316 } 1317 1318 forward_BeaconChain_ListAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1319 1320 }) 1321 1322 mux.Handle("GET", pattern_BeaconChain_ListIndexedAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1323 ctx, cancel := context.WithCancel(req.Context()) 1324 defer cancel() 1325 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1326 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListIndexedAttestations") 1327 if err != nil { 1328 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1329 return 1330 } 1331 resp, md, err := request_BeaconChain_ListIndexedAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 1332 ctx = runtime.NewServerMetadataContext(ctx, md) 1333 if err != nil { 1334 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1335 return 1336 } 1337 1338 forward_BeaconChain_ListIndexedAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1339 1340 }) 1341 1342 mux.Handle("GET", pattern_BeaconChain_StreamAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1343 ctx, cancel := context.WithCancel(req.Context()) 1344 defer cancel() 1345 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1346 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/StreamAttestations") 1347 if err != nil { 1348 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1349 return 1350 } 1351 resp, md, err := request_BeaconChain_StreamAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 1352 ctx = runtime.NewServerMetadataContext(ctx, md) 1353 if err != nil { 1354 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1355 return 1356 } 1357 1358 forward_BeaconChain_StreamAttestations_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 1359 1360 }) 1361 1362 mux.Handle("GET", pattern_BeaconChain_StreamIndexedAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1363 ctx, cancel := context.WithCancel(req.Context()) 1364 defer cancel() 1365 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1366 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/StreamIndexedAttestations") 1367 if err != nil { 1368 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1369 return 1370 } 1371 resp, md, err := request_BeaconChain_StreamIndexedAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 1372 ctx = runtime.NewServerMetadataContext(ctx, md) 1373 if err != nil { 1374 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1375 return 1376 } 1377 1378 forward_BeaconChain_StreamIndexedAttestations_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 1379 1380 }) 1381 1382 mux.Handle("GET", pattern_BeaconChain_AttestationPool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1383 ctx, cancel := context.WithCancel(req.Context()) 1384 defer cancel() 1385 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1386 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/AttestationPool") 1387 if err != nil { 1388 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1389 return 1390 } 1391 resp, md, err := request_BeaconChain_AttestationPool_0(rctx, inboundMarshaler, client, req, pathParams) 1392 ctx = runtime.NewServerMetadataContext(ctx, md) 1393 if err != nil { 1394 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1395 return 1396 } 1397 1398 forward_BeaconChain_AttestationPool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1399 1400 }) 1401 1402 mux.Handle("GET", pattern_BeaconChain_ListBlocks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1403 ctx, cancel := context.WithCancel(req.Context()) 1404 defer cancel() 1405 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1406 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListBlocks") 1407 if err != nil { 1408 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1409 return 1410 } 1411 resp, md, err := request_BeaconChain_ListBlocks_0(rctx, inboundMarshaler, client, req, pathParams) 1412 ctx = runtime.NewServerMetadataContext(ctx, md) 1413 if err != nil { 1414 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1415 return 1416 } 1417 1418 forward_BeaconChain_ListBlocks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1419 1420 }) 1421 1422 mux.Handle("GET", pattern_BeaconChain_StreamBlocks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1423 ctx, cancel := context.WithCancel(req.Context()) 1424 defer cancel() 1425 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1426 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/StreamBlocks") 1427 if err != nil { 1428 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1429 return 1430 } 1431 resp, md, err := request_BeaconChain_StreamBlocks_0(rctx, inboundMarshaler, client, req, pathParams) 1432 ctx = runtime.NewServerMetadataContext(ctx, md) 1433 if err != nil { 1434 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1435 return 1436 } 1437 1438 forward_BeaconChain_StreamBlocks_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 1439 1440 }) 1441 1442 mux.Handle("GET", pattern_BeaconChain_StreamChainHead_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1443 ctx, cancel := context.WithCancel(req.Context()) 1444 defer cancel() 1445 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1446 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/StreamChainHead") 1447 if err != nil { 1448 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1449 return 1450 } 1451 resp, md, err := request_BeaconChain_StreamChainHead_0(rctx, inboundMarshaler, client, req, pathParams) 1452 ctx = runtime.NewServerMetadataContext(ctx, md) 1453 if err != nil { 1454 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1455 return 1456 } 1457 1458 forward_BeaconChain_StreamChainHead_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 1459 1460 }) 1461 1462 mux.Handle("GET", pattern_BeaconChain_GetChainHead_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1463 ctx, cancel := context.WithCancel(req.Context()) 1464 defer cancel() 1465 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1466 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetChainHead") 1467 if err != nil { 1468 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1469 return 1470 } 1471 resp, md, err := request_BeaconChain_GetChainHead_0(rctx, inboundMarshaler, client, req, pathParams) 1472 ctx = runtime.NewServerMetadataContext(ctx, md) 1473 if err != nil { 1474 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1475 return 1476 } 1477 1478 forward_BeaconChain_GetChainHead_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1479 1480 }) 1481 1482 mux.Handle("GET", pattern_BeaconChain_GetWeakSubjectivityCheckpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1483 ctx, cancel := context.WithCancel(req.Context()) 1484 defer cancel() 1485 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1486 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetWeakSubjectivityCheckpoint") 1487 if err != nil { 1488 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1489 return 1490 } 1491 resp, md, err := request_BeaconChain_GetWeakSubjectivityCheckpoint_0(rctx, inboundMarshaler, client, req, pathParams) 1492 ctx = runtime.NewServerMetadataContext(ctx, md) 1493 if err != nil { 1494 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1495 return 1496 } 1497 1498 forward_BeaconChain_GetWeakSubjectivityCheckpoint_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1499 1500 }) 1501 1502 mux.Handle("GET", pattern_BeaconChain_ListBeaconCommittees_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1503 ctx, cancel := context.WithCancel(req.Context()) 1504 defer cancel() 1505 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1506 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListBeaconCommittees") 1507 if err != nil { 1508 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1509 return 1510 } 1511 resp, md, err := request_BeaconChain_ListBeaconCommittees_0(rctx, inboundMarshaler, client, req, pathParams) 1512 ctx = runtime.NewServerMetadataContext(ctx, md) 1513 if err != nil { 1514 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1515 return 1516 } 1517 1518 forward_BeaconChain_ListBeaconCommittees_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1519 1520 }) 1521 1522 mux.Handle("GET", pattern_BeaconChain_ListValidatorBalances_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1523 ctx, cancel := context.WithCancel(req.Context()) 1524 defer cancel() 1525 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1526 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListValidatorBalances") 1527 if err != nil { 1528 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1529 return 1530 } 1531 resp, md, err := request_BeaconChain_ListValidatorBalances_0(rctx, inboundMarshaler, client, req, pathParams) 1532 ctx = runtime.NewServerMetadataContext(ctx, md) 1533 if err != nil { 1534 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1535 return 1536 } 1537 1538 forward_BeaconChain_ListValidatorBalances_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1539 1540 }) 1541 1542 mux.Handle("GET", pattern_BeaconChain_ListValidators_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1543 ctx, cancel := context.WithCancel(req.Context()) 1544 defer cancel() 1545 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1546 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListValidators") 1547 if err != nil { 1548 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1549 return 1550 } 1551 resp, md, err := request_BeaconChain_ListValidators_0(rctx, inboundMarshaler, client, req, pathParams) 1552 ctx = runtime.NewServerMetadataContext(ctx, md) 1553 if err != nil { 1554 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1555 return 1556 } 1557 1558 forward_BeaconChain_ListValidators_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1559 1560 }) 1561 1562 mux.Handle("GET", pattern_BeaconChain_GetValidator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1563 ctx, cancel := context.WithCancel(req.Context()) 1564 defer cancel() 1565 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1566 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidator") 1567 if err != nil { 1568 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1569 return 1570 } 1571 resp, md, err := request_BeaconChain_GetValidator_0(rctx, inboundMarshaler, client, req, pathParams) 1572 ctx = runtime.NewServerMetadataContext(ctx, md) 1573 if err != nil { 1574 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1575 return 1576 } 1577 1578 forward_BeaconChain_GetValidator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1579 1580 }) 1581 1582 mux.Handle("GET", pattern_BeaconChain_GetValidatorActiveSetChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1583 ctx, cancel := context.WithCancel(req.Context()) 1584 defer cancel() 1585 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1586 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorActiveSetChanges") 1587 if err != nil { 1588 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1589 return 1590 } 1591 resp, md, err := request_BeaconChain_GetValidatorActiveSetChanges_0(rctx, inboundMarshaler, client, req, pathParams) 1592 ctx = runtime.NewServerMetadataContext(ctx, md) 1593 if err != nil { 1594 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1595 return 1596 } 1597 1598 forward_BeaconChain_GetValidatorActiveSetChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1599 1600 }) 1601 1602 mux.Handle("GET", pattern_BeaconChain_GetValidatorQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1603 ctx, cancel := context.WithCancel(req.Context()) 1604 defer cancel() 1605 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1606 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorQueue") 1607 if err != nil { 1608 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1609 return 1610 } 1611 resp, md, err := request_BeaconChain_GetValidatorQueue_0(rctx, inboundMarshaler, client, req, pathParams) 1612 ctx = runtime.NewServerMetadataContext(ctx, md) 1613 if err != nil { 1614 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1615 return 1616 } 1617 1618 forward_BeaconChain_GetValidatorQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1619 1620 }) 1621 1622 mux.Handle("GET", pattern_BeaconChain_GetValidatorPerformance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1623 ctx, cancel := context.WithCancel(req.Context()) 1624 defer cancel() 1625 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1626 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorPerformance") 1627 if err != nil { 1628 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1629 return 1630 } 1631 resp, md, err := request_BeaconChain_GetValidatorPerformance_0(rctx, inboundMarshaler, client, req, pathParams) 1632 ctx = runtime.NewServerMetadataContext(ctx, md) 1633 if err != nil { 1634 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1635 return 1636 } 1637 1638 forward_BeaconChain_GetValidatorPerformance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1639 1640 }) 1641 1642 mux.Handle("GET", pattern_BeaconChain_ListValidatorAssignments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1643 ctx, cancel := context.WithCancel(req.Context()) 1644 defer cancel() 1645 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1646 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/ListValidatorAssignments") 1647 if err != nil { 1648 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1649 return 1650 } 1651 resp, md, err := request_BeaconChain_ListValidatorAssignments_0(rctx, inboundMarshaler, client, req, pathParams) 1652 ctx = runtime.NewServerMetadataContext(ctx, md) 1653 if err != nil { 1654 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1655 return 1656 } 1657 1658 forward_BeaconChain_ListValidatorAssignments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1659 1660 }) 1661 1662 mux.Handle("GET", pattern_BeaconChain_GetValidatorParticipation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1663 ctx, cancel := context.WithCancel(req.Context()) 1664 defer cancel() 1665 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1666 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetValidatorParticipation") 1667 if err != nil { 1668 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1669 return 1670 } 1671 resp, md, err := request_BeaconChain_GetValidatorParticipation_0(rctx, inboundMarshaler, client, req, pathParams) 1672 ctx = runtime.NewServerMetadataContext(ctx, md) 1673 if err != nil { 1674 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1675 return 1676 } 1677 1678 forward_BeaconChain_GetValidatorParticipation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1679 1680 }) 1681 1682 mux.Handle("GET", pattern_BeaconChain_GetBeaconConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1683 ctx, cancel := context.WithCancel(req.Context()) 1684 defer cancel() 1685 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1686 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetBeaconConfig") 1687 if err != nil { 1688 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1689 return 1690 } 1691 resp, md, err := request_BeaconChain_GetBeaconConfig_0(rctx, inboundMarshaler, client, req, pathParams) 1692 ctx = runtime.NewServerMetadataContext(ctx, md) 1693 if err != nil { 1694 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1695 return 1696 } 1697 1698 forward_BeaconChain_GetBeaconConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1699 1700 }) 1701 1702 mux.Handle("GET", pattern_BeaconChain_StreamValidatorsInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1703 ctx, cancel := context.WithCancel(req.Context()) 1704 defer cancel() 1705 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1706 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/StreamValidatorsInfo") 1707 if err != nil { 1708 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1709 return 1710 } 1711 resp, md, err := request_BeaconChain_StreamValidatorsInfo_0(rctx, inboundMarshaler, client, req, pathParams) 1712 ctx = runtime.NewServerMetadataContext(ctx, md) 1713 if err != nil { 1714 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1715 return 1716 } 1717 1718 forward_BeaconChain_StreamValidatorsInfo_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 1719 1720 }) 1721 1722 mux.Handle("GET", pattern_BeaconChain_SubmitAttesterSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1723 ctx, cancel := context.WithCancel(req.Context()) 1724 defer cancel() 1725 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1726 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/SubmitAttesterSlashing") 1727 if err != nil { 1728 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1729 return 1730 } 1731 resp, md, err := request_BeaconChain_SubmitAttesterSlashing_0(rctx, inboundMarshaler, client, req, pathParams) 1732 ctx = runtime.NewServerMetadataContext(ctx, md) 1733 if err != nil { 1734 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1735 return 1736 } 1737 1738 forward_BeaconChain_SubmitAttesterSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1739 1740 }) 1741 1742 mux.Handle("GET", pattern_BeaconChain_SubmitProposerSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1743 ctx, cancel := context.WithCancel(req.Context()) 1744 defer cancel() 1745 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1746 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/SubmitProposerSlashing") 1747 if err != nil { 1748 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1749 return 1750 } 1751 resp, md, err := request_BeaconChain_SubmitProposerSlashing_0(rctx, inboundMarshaler, client, req, pathParams) 1752 ctx = runtime.NewServerMetadataContext(ctx, md) 1753 if err != nil { 1754 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1755 return 1756 } 1757 1758 forward_BeaconChain_SubmitProposerSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1759 1760 }) 1761 1762 mux.Handle("GET", pattern_BeaconChain_GetIndividualVotes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1763 ctx, cancel := context.WithCancel(req.Context()) 1764 defer cancel() 1765 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1766 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconChain/GetIndividualVotes") 1767 if err != nil { 1768 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1769 return 1770 } 1771 resp, md, err := request_BeaconChain_GetIndividualVotes_0(rctx, inboundMarshaler, client, req, pathParams) 1772 ctx = runtime.NewServerMetadataContext(ctx, md) 1773 if err != nil { 1774 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1775 return 1776 } 1777 1778 forward_BeaconChain_GetIndividualVotes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1779 1780 }) 1781 1782 return nil 1783 } 1784 1785 var ( 1786 pattern_BeaconChain_ListAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "attestations"}, "")) 1787 1788 pattern_BeaconChain_ListIndexedAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "beacon", "attestations", "indexed"}, "")) 1789 1790 pattern_BeaconChain_StreamAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "beacon", "attestations", "stream"}, "")) 1791 1792 pattern_BeaconChain_StreamIndexedAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"eth", "v1alpha1", "beacon", "attestations", "indexed", "stream"}, "")) 1793 1794 pattern_BeaconChain_AttestationPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "beacon", "attestations", "pool"}, "")) 1795 1796 pattern_BeaconChain_ListBlocks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "blocks"}, "")) 1797 1798 pattern_BeaconChain_StreamBlocks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "beacon", "blocks", "stream"}, "")) 1799 1800 pattern_BeaconChain_StreamChainHead_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "beacon", "chainhead", "stream"}, "")) 1801 1802 pattern_BeaconChain_GetChainHead_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "chainhead"}, "")) 1803 1804 pattern_BeaconChain_GetWeakSubjectivityCheckpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "weak_subjectivity_checkpoint"}, "")) 1805 1806 pattern_BeaconChain_ListBeaconCommittees_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "committees"}, "")) 1807 1808 pattern_BeaconChain_ListValidatorBalances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validators", "balances"}, "")) 1809 1810 pattern_BeaconChain_ListValidators_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"eth", "v1alpha1", "validators"}, "")) 1811 1812 pattern_BeaconChain_GetValidator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"eth", "v1alpha1", "validator"}, "")) 1813 1814 pattern_BeaconChain_GetValidatorActiveSetChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validators", "activesetchanges"}, "")) 1815 1816 pattern_BeaconChain_GetValidatorQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validators", "queue"}, "")) 1817 1818 pattern_BeaconChain_GetValidatorPerformance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validators", "performance"}, "")) 1819 1820 pattern_BeaconChain_ListValidatorAssignments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validators", "assignments"}, "")) 1821 1822 pattern_BeaconChain_GetValidatorParticipation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validators", "participation"}, "")) 1823 1824 pattern_BeaconChain_GetBeaconConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "config"}, "")) 1825 1826 pattern_BeaconChain_StreamValidatorsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"eth", "v1alpha1", "beacon", "validators", "info", "stream"}, "")) 1827 1828 pattern_BeaconChain_SubmitAttesterSlashing_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"eth", "v1alpha1", "beacon", "slashings", "attester", "submit"}, "")) 1829 1830 pattern_BeaconChain_SubmitProposerSlashing_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"eth", "v1alpha1", "beacon", "slashings", "proposer", "submit"}, "")) 1831 1832 pattern_BeaconChain_GetIndividualVotes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "beacon", "individual_votes"}, "")) 1833 ) 1834 1835 var ( 1836 forward_BeaconChain_ListAttestations_0 = runtime.ForwardResponseMessage 1837 1838 forward_BeaconChain_ListIndexedAttestations_0 = runtime.ForwardResponseMessage 1839 1840 forward_BeaconChain_StreamAttestations_0 = runtime.ForwardResponseStream 1841 1842 forward_BeaconChain_StreamIndexedAttestations_0 = runtime.ForwardResponseStream 1843 1844 forward_BeaconChain_AttestationPool_0 = runtime.ForwardResponseMessage 1845 1846 forward_BeaconChain_ListBlocks_0 = runtime.ForwardResponseMessage 1847 1848 forward_BeaconChain_StreamBlocks_0 = runtime.ForwardResponseStream 1849 1850 forward_BeaconChain_StreamChainHead_0 = runtime.ForwardResponseStream 1851 1852 forward_BeaconChain_GetChainHead_0 = runtime.ForwardResponseMessage 1853 1854 forward_BeaconChain_GetWeakSubjectivityCheckpoint_0 = runtime.ForwardResponseMessage 1855 1856 forward_BeaconChain_ListBeaconCommittees_0 = runtime.ForwardResponseMessage 1857 1858 forward_BeaconChain_ListValidatorBalances_0 = runtime.ForwardResponseMessage 1859 1860 forward_BeaconChain_ListValidators_0 = runtime.ForwardResponseMessage 1861 1862 forward_BeaconChain_GetValidator_0 = runtime.ForwardResponseMessage 1863 1864 forward_BeaconChain_GetValidatorActiveSetChanges_0 = runtime.ForwardResponseMessage 1865 1866 forward_BeaconChain_GetValidatorQueue_0 = runtime.ForwardResponseMessage 1867 1868 forward_BeaconChain_GetValidatorPerformance_0 = runtime.ForwardResponseMessage 1869 1870 forward_BeaconChain_ListValidatorAssignments_0 = runtime.ForwardResponseMessage 1871 1872 forward_BeaconChain_GetValidatorParticipation_0 = runtime.ForwardResponseMessage 1873 1874 forward_BeaconChain_GetBeaconConfig_0 = runtime.ForwardResponseMessage 1875 1876 forward_BeaconChain_StreamValidatorsInfo_0 = runtime.ForwardResponseStream 1877 1878 forward_BeaconChain_SubmitAttesterSlashing_0 = runtime.ForwardResponseMessage 1879 1880 forward_BeaconChain_SubmitProposerSlashing_0 = runtime.ForwardResponseMessage 1881 1882 forward_BeaconChain_GetIndividualVotes_0 = runtime.ForwardResponseMessage 1883 )