github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1/beacon_chain_service.pb.gw.go (about) 1 // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. 2 // source: proto/eth/v1/beacon_chain_service.proto 3 4 /* 5 Package v1 is a reverse proxy. 6 7 It translates gRPC into RESTful JSON APIs. 8 */ 9 package v1 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 func request_BeaconChain_GetGenesis_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 41 var protoReq emptypb.Empty 42 var metadata runtime.ServerMetadata 43 44 msg, err := client.GetGenesis(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 45 return msg, metadata, err 46 47 } 48 49 func local_request_BeaconChain_GetGenesis_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 50 var protoReq emptypb.Empty 51 var metadata runtime.ServerMetadata 52 53 msg, err := server.GetGenesis(ctx, &protoReq) 54 return msg, metadata, err 55 56 } 57 58 func request_BeaconChain_GetStateRoot_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 59 var protoReq StateRequest 60 var metadata runtime.ServerMetadata 61 62 var ( 63 val string 64 ok bool 65 err error 66 _ = err 67 ) 68 69 val, ok = pathParams["state_id"] 70 if !ok { 71 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 72 } 73 74 state_id, err := runtime.Bytes(val) 75 if err != nil { 76 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 77 } 78 protoReq.StateId = (state_id) 79 80 msg, err := client.GetStateRoot(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 81 return msg, metadata, err 82 83 } 84 85 func local_request_BeaconChain_GetStateRoot_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 86 var protoReq StateRequest 87 var metadata runtime.ServerMetadata 88 89 var ( 90 val string 91 ok bool 92 err error 93 _ = err 94 ) 95 96 val, ok = pathParams["state_id"] 97 if !ok { 98 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 99 } 100 101 state_id, err := runtime.Bytes(val) 102 if err != nil { 103 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 104 } 105 protoReq.StateId = (state_id) 106 107 msg, err := server.GetStateRoot(ctx, &protoReq) 108 return msg, metadata, err 109 110 } 111 112 func request_BeaconChain_GetStateFork_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 113 var protoReq StateRequest 114 var metadata runtime.ServerMetadata 115 116 var ( 117 val string 118 ok bool 119 err error 120 _ = err 121 ) 122 123 val, ok = pathParams["state_id"] 124 if !ok { 125 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 126 } 127 128 state_id, err := runtime.Bytes(val) 129 if err != nil { 130 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 131 } 132 protoReq.StateId = (state_id) 133 134 msg, err := client.GetStateFork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 135 return msg, metadata, err 136 137 } 138 139 func local_request_BeaconChain_GetStateFork_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 140 var protoReq StateRequest 141 var metadata runtime.ServerMetadata 142 143 var ( 144 val string 145 ok bool 146 err error 147 _ = err 148 ) 149 150 val, ok = pathParams["state_id"] 151 if !ok { 152 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 153 } 154 155 state_id, err := runtime.Bytes(val) 156 if err != nil { 157 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 158 } 159 protoReq.StateId = (state_id) 160 161 msg, err := server.GetStateFork(ctx, &protoReq) 162 return msg, metadata, err 163 164 } 165 166 func request_BeaconChain_GetFinalityCheckpoints_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 167 var protoReq StateRequest 168 var metadata runtime.ServerMetadata 169 170 var ( 171 val string 172 ok bool 173 err error 174 _ = err 175 ) 176 177 val, ok = pathParams["state_id"] 178 if !ok { 179 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 180 } 181 182 state_id, err := runtime.Bytes(val) 183 if err != nil { 184 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 185 } 186 protoReq.StateId = (state_id) 187 188 msg, err := client.GetFinalityCheckpoints(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 189 return msg, metadata, err 190 191 } 192 193 func local_request_BeaconChain_GetFinalityCheckpoints_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 194 var protoReq StateRequest 195 var metadata runtime.ServerMetadata 196 197 var ( 198 val string 199 ok bool 200 err error 201 _ = err 202 ) 203 204 val, ok = pathParams["state_id"] 205 if !ok { 206 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 207 } 208 209 state_id, err := runtime.Bytes(val) 210 if err != nil { 211 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 212 } 213 protoReq.StateId = (state_id) 214 215 msg, err := server.GetFinalityCheckpoints(ctx, &protoReq) 216 return msg, metadata, err 217 218 } 219 220 var ( 221 filter_BeaconChain_ListValidators_0 = &utilities.DoubleArray{Encoding: map[string]int{"state_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 222 ) 223 224 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) { 225 var protoReq StateValidatorsRequest 226 var metadata runtime.ServerMetadata 227 228 var ( 229 val string 230 ok bool 231 err error 232 _ = err 233 ) 234 235 val, ok = pathParams["state_id"] 236 if !ok { 237 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 238 } 239 240 state_id, err := runtime.Bytes(val) 241 if err != nil { 242 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 243 } 244 protoReq.StateId = (state_id) 245 246 if err := req.ParseForm(); err != nil { 247 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 248 } 249 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidators_0); err != nil { 250 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 251 } 252 253 msg, err := client.ListValidators(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 254 return msg, metadata, err 255 256 } 257 258 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) { 259 var protoReq StateValidatorsRequest 260 var metadata runtime.ServerMetadata 261 262 var ( 263 val string 264 ok bool 265 err error 266 _ = err 267 ) 268 269 val, ok = pathParams["state_id"] 270 if !ok { 271 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 272 } 273 274 state_id, err := runtime.Bytes(val) 275 if err != nil { 276 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 277 } 278 protoReq.StateId = (state_id) 279 280 if err := req.ParseForm(); err != nil { 281 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 282 } 283 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidators_0); err != nil { 284 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 285 } 286 287 msg, err := server.ListValidators(ctx, &protoReq) 288 return msg, metadata, err 289 290 } 291 292 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) { 293 var protoReq StateValidatorRequest 294 var metadata runtime.ServerMetadata 295 296 var ( 297 val string 298 ok bool 299 err error 300 _ = err 301 ) 302 303 val, ok = pathParams["state_id"] 304 if !ok { 305 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 306 } 307 308 state_id, err := runtime.Bytes(val) 309 if err != nil { 310 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 311 } 312 protoReq.StateId = (state_id) 313 314 val, ok = pathParams["validator_id"] 315 if !ok { 316 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "validator_id") 317 } 318 319 validator_id, err := runtime.Bytes(val) 320 if err != nil { 321 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "validator_id", err) 322 } 323 protoReq.ValidatorId = (validator_id) 324 325 msg, err := client.GetValidator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 326 return msg, metadata, err 327 328 } 329 330 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) { 331 var protoReq StateValidatorRequest 332 var metadata runtime.ServerMetadata 333 334 var ( 335 val string 336 ok bool 337 err error 338 _ = err 339 ) 340 341 val, ok = pathParams["state_id"] 342 if !ok { 343 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 344 } 345 346 state_id, err := runtime.Bytes(val) 347 if err != nil { 348 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 349 } 350 protoReq.StateId = (state_id) 351 352 val, ok = pathParams["validator_id"] 353 if !ok { 354 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "validator_id") 355 } 356 357 validator_id, err := runtime.Bytes(val) 358 if err != nil { 359 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "validator_id", err) 360 } 361 protoReq.ValidatorId = (validator_id) 362 363 msg, err := server.GetValidator(ctx, &protoReq) 364 return msg, metadata, err 365 366 } 367 368 var ( 369 filter_BeaconChain_ListValidatorBalances_0 = &utilities.DoubleArray{Encoding: map[string]int{"state_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 370 ) 371 372 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) { 373 var protoReq ValidatorBalancesRequest 374 var metadata runtime.ServerMetadata 375 376 var ( 377 val string 378 ok bool 379 err error 380 _ = err 381 ) 382 383 val, ok = pathParams["state_id"] 384 if !ok { 385 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 386 } 387 388 state_id, err := runtime.Bytes(val) 389 if err != nil { 390 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 391 } 392 protoReq.StateId = (state_id) 393 394 if err := req.ParseForm(); err != nil { 395 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 396 } 397 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidatorBalances_0); err != nil { 398 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 399 } 400 401 msg, err := client.ListValidatorBalances(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 402 return msg, metadata, err 403 404 } 405 406 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) { 407 var protoReq ValidatorBalancesRequest 408 var metadata runtime.ServerMetadata 409 410 var ( 411 val string 412 ok bool 413 err error 414 _ = err 415 ) 416 417 val, ok = pathParams["state_id"] 418 if !ok { 419 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 420 } 421 422 state_id, err := runtime.Bytes(val) 423 if err != nil { 424 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 425 } 426 protoReq.StateId = (state_id) 427 428 if err := req.ParseForm(); err != nil { 429 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 430 } 431 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListValidatorBalances_0); err != nil { 432 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 433 } 434 435 msg, err := server.ListValidatorBalances(ctx, &protoReq) 436 return msg, metadata, err 437 438 } 439 440 var ( 441 filter_BeaconChain_ListCommittees_0 = &utilities.DoubleArray{Encoding: map[string]int{"state_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 442 ) 443 444 func request_BeaconChain_ListCommittees_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 445 var protoReq StateCommitteesRequest 446 var metadata runtime.ServerMetadata 447 448 var ( 449 val string 450 ok bool 451 err error 452 _ = err 453 ) 454 455 val, ok = pathParams["state_id"] 456 if !ok { 457 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 458 } 459 460 state_id, err := runtime.Bytes(val) 461 if err != nil { 462 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 463 } 464 protoReq.StateId = (state_id) 465 466 if err := req.ParseForm(); err != nil { 467 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 468 } 469 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListCommittees_0); err != nil { 470 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 471 } 472 473 msg, err := client.ListCommittees(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 474 return msg, metadata, err 475 476 } 477 478 func local_request_BeaconChain_ListCommittees_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 479 var protoReq StateCommitteesRequest 480 var metadata runtime.ServerMetadata 481 482 var ( 483 val string 484 ok bool 485 err error 486 _ = err 487 ) 488 489 val, ok = pathParams["state_id"] 490 if !ok { 491 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "state_id") 492 } 493 494 state_id, err := runtime.Bytes(val) 495 if err != nil { 496 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "state_id", err) 497 } 498 protoReq.StateId = (state_id) 499 500 if err := req.ParseForm(); err != nil { 501 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 502 } 503 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListCommittees_0); err != nil { 504 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 505 } 506 507 msg, err := server.ListCommittees(ctx, &protoReq) 508 return msg, metadata, err 509 510 } 511 512 var ( 513 filter_BeaconChain_ListBlockHeaders_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 514 ) 515 516 func request_BeaconChain_ListBlockHeaders_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 517 var protoReq BlockHeadersRequest 518 var metadata runtime.ServerMetadata 519 520 if err := req.ParseForm(); err != nil { 521 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 522 } 523 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListBlockHeaders_0); err != nil { 524 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 525 } 526 527 msg, err := client.ListBlockHeaders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 528 return msg, metadata, err 529 530 } 531 532 func local_request_BeaconChain_ListBlockHeaders_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 533 var protoReq BlockHeadersRequest 534 var metadata runtime.ServerMetadata 535 536 if err := req.ParseForm(); err != nil { 537 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 538 } 539 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListBlockHeaders_0); err != nil { 540 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 541 } 542 543 msg, err := server.ListBlockHeaders(ctx, &protoReq) 544 return msg, metadata, err 545 546 } 547 548 func request_BeaconChain_GetBlockHeader_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 549 var protoReq BlockRequest 550 var metadata runtime.ServerMetadata 551 552 var ( 553 val string 554 ok bool 555 err error 556 _ = err 557 ) 558 559 val, ok = pathParams["block_id"] 560 if !ok { 561 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 562 } 563 564 block_id, err := runtime.Bytes(val) 565 if err != nil { 566 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 567 } 568 protoReq.BlockId = (block_id) 569 570 msg, err := client.GetBlockHeader(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 571 return msg, metadata, err 572 573 } 574 575 func local_request_BeaconChain_GetBlockHeader_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 576 var protoReq BlockRequest 577 var metadata runtime.ServerMetadata 578 579 var ( 580 val string 581 ok bool 582 err error 583 _ = err 584 ) 585 586 val, ok = pathParams["block_id"] 587 if !ok { 588 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 589 } 590 591 block_id, err := runtime.Bytes(val) 592 if err != nil { 593 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 594 } 595 protoReq.BlockId = (block_id) 596 597 msg, err := server.GetBlockHeader(ctx, &protoReq) 598 return msg, metadata, err 599 600 } 601 602 func request_BeaconChain_SubmitBlock_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 603 var protoReq BeaconBlockContainer 604 var metadata runtime.ServerMetadata 605 606 newReader, berr := utilities.IOReaderFactory(req.Body) 607 if berr != nil { 608 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 609 } 610 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 611 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 612 } 613 614 msg, err := client.SubmitBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 615 return msg, metadata, err 616 617 } 618 619 func local_request_BeaconChain_SubmitBlock_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 620 var protoReq BeaconBlockContainer 621 var metadata runtime.ServerMetadata 622 623 newReader, berr := utilities.IOReaderFactory(req.Body) 624 if berr != nil { 625 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 626 } 627 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 628 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 629 } 630 631 msg, err := server.SubmitBlock(ctx, &protoReq) 632 return msg, metadata, err 633 634 } 635 636 func request_BeaconChain_GetBlock_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 637 var protoReq BlockRequest 638 var metadata runtime.ServerMetadata 639 640 var ( 641 val string 642 ok bool 643 err error 644 _ = err 645 ) 646 647 val, ok = pathParams["block_id"] 648 if !ok { 649 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 650 } 651 652 block_id, err := runtime.Bytes(val) 653 if err != nil { 654 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 655 } 656 protoReq.BlockId = (block_id) 657 658 msg, err := client.GetBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 659 return msg, metadata, err 660 661 } 662 663 func local_request_BeaconChain_GetBlock_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 664 var protoReq BlockRequest 665 var metadata runtime.ServerMetadata 666 667 var ( 668 val string 669 ok bool 670 err error 671 _ = err 672 ) 673 674 val, ok = pathParams["block_id"] 675 if !ok { 676 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 677 } 678 679 block_id, err := runtime.Bytes(val) 680 if err != nil { 681 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 682 } 683 protoReq.BlockId = (block_id) 684 685 msg, err := server.GetBlock(ctx, &protoReq) 686 return msg, metadata, err 687 688 } 689 690 func request_BeaconChain_GetBlockRoot_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 691 var protoReq BlockRequest 692 var metadata runtime.ServerMetadata 693 694 var ( 695 val string 696 ok bool 697 err error 698 _ = err 699 ) 700 701 val, ok = pathParams["block_id"] 702 if !ok { 703 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 704 } 705 706 block_id, err := runtime.Bytes(val) 707 if err != nil { 708 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 709 } 710 protoReq.BlockId = (block_id) 711 712 msg, err := client.GetBlockRoot(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 713 return msg, metadata, err 714 715 } 716 717 func local_request_BeaconChain_GetBlockRoot_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 718 var protoReq BlockRequest 719 var metadata runtime.ServerMetadata 720 721 var ( 722 val string 723 ok bool 724 err error 725 _ = err 726 ) 727 728 val, ok = pathParams["block_id"] 729 if !ok { 730 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 731 } 732 733 block_id, err := runtime.Bytes(val) 734 if err != nil { 735 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 736 } 737 protoReq.BlockId = (block_id) 738 739 msg, err := server.GetBlockRoot(ctx, &protoReq) 740 return msg, metadata, err 741 742 } 743 744 func request_BeaconChain_GetBlockSSZ_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 745 var protoReq BlockRequest 746 var metadata runtime.ServerMetadata 747 748 var ( 749 val string 750 ok bool 751 err error 752 _ = err 753 ) 754 755 val, ok = pathParams["block_id"] 756 if !ok { 757 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 758 } 759 760 block_id, err := runtime.Bytes(val) 761 if err != nil { 762 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 763 } 764 protoReq.BlockId = (block_id) 765 766 msg, err := client.GetBlockSSZ(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 767 return msg, metadata, err 768 769 } 770 771 func local_request_BeaconChain_GetBlockSSZ_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 772 var protoReq BlockRequest 773 var metadata runtime.ServerMetadata 774 775 var ( 776 val string 777 ok bool 778 err error 779 _ = err 780 ) 781 782 val, ok = pathParams["block_id"] 783 if !ok { 784 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 785 } 786 787 block_id, err := runtime.Bytes(val) 788 if err != nil { 789 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 790 } 791 protoReq.BlockId = (block_id) 792 793 msg, err := server.GetBlockSSZ(ctx, &protoReq) 794 return msg, metadata, err 795 796 } 797 798 func request_BeaconChain_ListBlockAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 799 var protoReq BlockRequest 800 var metadata runtime.ServerMetadata 801 802 var ( 803 val string 804 ok bool 805 err error 806 _ = err 807 ) 808 809 val, ok = pathParams["block_id"] 810 if !ok { 811 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 812 } 813 814 block_id, err := runtime.Bytes(val) 815 if err != nil { 816 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 817 } 818 protoReq.BlockId = (block_id) 819 820 msg, err := client.ListBlockAttestations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 821 return msg, metadata, err 822 823 } 824 825 func local_request_BeaconChain_ListBlockAttestations_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 826 var protoReq BlockRequest 827 var metadata runtime.ServerMetadata 828 829 var ( 830 val string 831 ok bool 832 err error 833 _ = err 834 ) 835 836 val, ok = pathParams["block_id"] 837 if !ok { 838 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_id") 839 } 840 841 block_id, err := runtime.Bytes(val) 842 if err != nil { 843 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_id", err) 844 } 845 protoReq.BlockId = (block_id) 846 847 msg, err := server.ListBlockAttestations(ctx, &protoReq) 848 return msg, metadata, err 849 850 } 851 852 var ( 853 filter_BeaconChain_ListPoolAttestations_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 854 ) 855 856 func request_BeaconChain_ListPoolAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 857 var protoReq AttestationsPoolRequest 858 var metadata runtime.ServerMetadata 859 860 if err := req.ParseForm(); err != nil { 861 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 862 } 863 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListPoolAttestations_0); err != nil { 864 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 865 } 866 867 msg, err := client.ListPoolAttestations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 868 return msg, metadata, err 869 870 } 871 872 func local_request_BeaconChain_ListPoolAttestations_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 873 var protoReq AttestationsPoolRequest 874 var metadata runtime.ServerMetadata 875 876 if err := req.ParseForm(); err != nil { 877 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 878 } 879 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconChain_ListPoolAttestations_0); err != nil { 880 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 881 } 882 883 msg, err := server.ListPoolAttestations(ctx, &protoReq) 884 return msg, metadata, err 885 886 } 887 888 func request_BeaconChain_SubmitAttestations_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 889 var protoReq SubmitAttestationsRequest 890 var metadata runtime.ServerMetadata 891 892 newReader, berr := utilities.IOReaderFactory(req.Body) 893 if berr != nil { 894 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 895 } 896 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 897 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 898 } 899 900 msg, err := client.SubmitAttestations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 901 return msg, metadata, err 902 903 } 904 905 func local_request_BeaconChain_SubmitAttestations_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 906 var protoReq SubmitAttestationsRequest 907 var metadata runtime.ServerMetadata 908 909 newReader, berr := utilities.IOReaderFactory(req.Body) 910 if berr != nil { 911 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 912 } 913 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 914 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 915 } 916 917 msg, err := server.SubmitAttestations(ctx, &protoReq) 918 return msg, metadata, err 919 920 } 921 922 func request_BeaconChain_ListPoolAttesterSlashings_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 923 var protoReq emptypb.Empty 924 var metadata runtime.ServerMetadata 925 926 msg, err := client.ListPoolAttesterSlashings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 927 return msg, metadata, err 928 929 } 930 931 func local_request_BeaconChain_ListPoolAttesterSlashings_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 932 var protoReq emptypb.Empty 933 var metadata runtime.ServerMetadata 934 935 msg, err := server.ListPoolAttesterSlashings(ctx, &protoReq) 936 return msg, metadata, err 937 938 } 939 940 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) { 941 var protoReq AttesterSlashing 942 var metadata runtime.ServerMetadata 943 944 newReader, berr := utilities.IOReaderFactory(req.Body) 945 if berr != nil { 946 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 947 } 948 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 949 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 950 } 951 952 msg, err := client.SubmitAttesterSlashing(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 953 return msg, metadata, err 954 955 } 956 957 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) { 958 var protoReq AttesterSlashing 959 var metadata runtime.ServerMetadata 960 961 newReader, berr := utilities.IOReaderFactory(req.Body) 962 if berr != nil { 963 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 964 } 965 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 966 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 967 } 968 969 msg, err := server.SubmitAttesterSlashing(ctx, &protoReq) 970 return msg, metadata, err 971 972 } 973 974 func request_BeaconChain_ListPoolProposerSlashings_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 975 var protoReq emptypb.Empty 976 var metadata runtime.ServerMetadata 977 978 msg, err := client.ListPoolProposerSlashings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 979 return msg, metadata, err 980 981 } 982 983 func local_request_BeaconChain_ListPoolProposerSlashings_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 984 var protoReq emptypb.Empty 985 var metadata runtime.ServerMetadata 986 987 msg, err := server.ListPoolProposerSlashings(ctx, &protoReq) 988 return msg, metadata, err 989 990 } 991 992 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) { 993 var protoReq ProposerSlashing 994 var metadata runtime.ServerMetadata 995 996 newReader, berr := utilities.IOReaderFactory(req.Body) 997 if berr != nil { 998 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 999 } 1000 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 1001 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1002 } 1003 1004 msg, err := client.SubmitProposerSlashing(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1005 return msg, metadata, err 1006 1007 } 1008 1009 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) { 1010 var protoReq ProposerSlashing 1011 var metadata runtime.ServerMetadata 1012 1013 newReader, berr := utilities.IOReaderFactory(req.Body) 1014 if berr != nil { 1015 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1016 } 1017 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 1018 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1019 } 1020 1021 msg, err := server.SubmitProposerSlashing(ctx, &protoReq) 1022 return msg, metadata, err 1023 1024 } 1025 1026 func request_BeaconChain_ListPoolVoluntaryExits_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1027 var protoReq emptypb.Empty 1028 var metadata runtime.ServerMetadata 1029 1030 msg, err := client.ListPoolVoluntaryExits(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1031 return msg, metadata, err 1032 1033 } 1034 1035 func local_request_BeaconChain_ListPoolVoluntaryExits_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1036 var protoReq emptypb.Empty 1037 var metadata runtime.ServerMetadata 1038 1039 msg, err := server.ListPoolVoluntaryExits(ctx, &protoReq) 1040 return msg, metadata, err 1041 1042 } 1043 1044 func request_BeaconChain_SubmitVoluntaryExit_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1045 var protoReq SignedVoluntaryExit 1046 var metadata runtime.ServerMetadata 1047 1048 newReader, berr := utilities.IOReaderFactory(req.Body) 1049 if berr != nil { 1050 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1051 } 1052 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 1053 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1054 } 1055 1056 msg, err := client.SubmitVoluntaryExit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1057 return msg, metadata, err 1058 1059 } 1060 1061 func local_request_BeaconChain_SubmitVoluntaryExit_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1062 var protoReq SignedVoluntaryExit 1063 var metadata runtime.ServerMetadata 1064 1065 newReader, berr := utilities.IOReaderFactory(req.Body) 1066 if berr != nil { 1067 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1068 } 1069 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 1070 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1071 } 1072 1073 msg, err := server.SubmitVoluntaryExit(ctx, &protoReq) 1074 return msg, metadata, err 1075 1076 } 1077 1078 func request_BeaconChain_GetForkSchedule_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1079 var protoReq emptypb.Empty 1080 var metadata runtime.ServerMetadata 1081 1082 msg, err := client.GetForkSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1083 return msg, metadata, err 1084 1085 } 1086 1087 func local_request_BeaconChain_GetForkSchedule_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1088 var protoReq emptypb.Empty 1089 var metadata runtime.ServerMetadata 1090 1091 msg, err := server.GetForkSchedule(ctx, &protoReq) 1092 return msg, metadata, err 1093 1094 } 1095 1096 func request_BeaconChain_GetSpec_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1097 var protoReq emptypb.Empty 1098 var metadata runtime.ServerMetadata 1099 1100 msg, err := client.GetSpec(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1101 return msg, metadata, err 1102 1103 } 1104 1105 func local_request_BeaconChain_GetSpec_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1106 var protoReq emptypb.Empty 1107 var metadata runtime.ServerMetadata 1108 1109 msg, err := server.GetSpec(ctx, &protoReq) 1110 return msg, metadata, err 1111 1112 } 1113 1114 func request_BeaconChain_GetDepositContract_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconChainClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1115 var protoReq emptypb.Empty 1116 var metadata runtime.ServerMetadata 1117 1118 msg, err := client.GetDepositContract(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1119 return msg, metadata, err 1120 1121 } 1122 1123 func local_request_BeaconChain_GetDepositContract_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconChainServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1124 var protoReq emptypb.Empty 1125 var metadata runtime.ServerMetadata 1126 1127 msg, err := server.GetDepositContract(ctx, &protoReq) 1128 return msg, metadata, err 1129 1130 } 1131 1132 // RegisterBeaconChainHandlerServer registers the http handlers for service BeaconChain to "mux". 1133 // UnaryRPC :call BeaconChainServer directly. 1134 // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. 1135 // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBeaconChainHandlerFromEndpoint instead. 1136 func RegisterBeaconChainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BeaconChainServer) error { 1137 1138 mux.Handle("GET", pattern_BeaconChain_GetGenesis_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1139 ctx, cancel := context.WithCancel(req.Context()) 1140 defer cancel() 1141 var stream runtime.ServerTransportStream 1142 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1143 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1144 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetGenesis") 1145 if err != nil { 1146 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1147 return 1148 } 1149 resp, md, err := local_request_BeaconChain_GetGenesis_0(rctx, inboundMarshaler, server, req, pathParams) 1150 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1151 ctx = runtime.NewServerMetadataContext(ctx, md) 1152 if err != nil { 1153 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1154 return 1155 } 1156 1157 forward_BeaconChain_GetGenesis_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1158 1159 }) 1160 1161 mux.Handle("GET", pattern_BeaconChain_GetStateRoot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1162 ctx, cancel := context.WithCancel(req.Context()) 1163 defer cancel() 1164 var stream runtime.ServerTransportStream 1165 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1166 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1167 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetStateRoot") 1168 if err != nil { 1169 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1170 return 1171 } 1172 resp, md, err := local_request_BeaconChain_GetStateRoot_0(rctx, inboundMarshaler, server, req, pathParams) 1173 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1174 ctx = runtime.NewServerMetadataContext(ctx, md) 1175 if err != nil { 1176 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1177 return 1178 } 1179 1180 forward_BeaconChain_GetStateRoot_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1181 1182 }) 1183 1184 mux.Handle("GET", pattern_BeaconChain_GetStateFork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1185 ctx, cancel := context.WithCancel(req.Context()) 1186 defer cancel() 1187 var stream runtime.ServerTransportStream 1188 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1189 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1190 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetStateFork") 1191 if err != nil { 1192 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1193 return 1194 } 1195 resp, md, err := local_request_BeaconChain_GetStateFork_0(rctx, inboundMarshaler, server, req, pathParams) 1196 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1197 ctx = runtime.NewServerMetadataContext(ctx, md) 1198 if err != nil { 1199 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1200 return 1201 } 1202 1203 forward_BeaconChain_GetStateFork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1204 1205 }) 1206 1207 mux.Handle("GET", pattern_BeaconChain_GetFinalityCheckpoints_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1208 ctx, cancel := context.WithCancel(req.Context()) 1209 defer cancel() 1210 var stream runtime.ServerTransportStream 1211 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1212 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1213 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetFinalityCheckpoints") 1214 if err != nil { 1215 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1216 return 1217 } 1218 resp, md, err := local_request_BeaconChain_GetFinalityCheckpoints_0(rctx, inboundMarshaler, server, req, pathParams) 1219 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1220 ctx = runtime.NewServerMetadataContext(ctx, md) 1221 if err != nil { 1222 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1223 return 1224 } 1225 1226 forward_BeaconChain_GetFinalityCheckpoints_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1227 1228 }) 1229 1230 mux.Handle("GET", pattern_BeaconChain_ListValidators_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1231 ctx, cancel := context.WithCancel(req.Context()) 1232 defer cancel() 1233 var stream runtime.ServerTransportStream 1234 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1235 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1236 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListValidators") 1237 if err != nil { 1238 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1239 return 1240 } 1241 resp, md, err := local_request_BeaconChain_ListValidators_0(rctx, inboundMarshaler, server, req, pathParams) 1242 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1243 ctx = runtime.NewServerMetadataContext(ctx, md) 1244 if err != nil { 1245 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1246 return 1247 } 1248 1249 forward_BeaconChain_ListValidators_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1250 1251 }) 1252 1253 mux.Handle("GET", pattern_BeaconChain_GetValidator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1254 ctx, cancel := context.WithCancel(req.Context()) 1255 defer cancel() 1256 var stream runtime.ServerTransportStream 1257 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1258 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1259 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetValidator") 1260 if err != nil { 1261 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1262 return 1263 } 1264 resp, md, err := local_request_BeaconChain_GetValidator_0(rctx, inboundMarshaler, server, req, pathParams) 1265 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1266 ctx = runtime.NewServerMetadataContext(ctx, md) 1267 if err != nil { 1268 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1269 return 1270 } 1271 1272 forward_BeaconChain_GetValidator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1273 1274 }) 1275 1276 mux.Handle("GET", pattern_BeaconChain_ListValidatorBalances_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1277 ctx, cancel := context.WithCancel(req.Context()) 1278 defer cancel() 1279 var stream runtime.ServerTransportStream 1280 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1281 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1282 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListValidatorBalances") 1283 if err != nil { 1284 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1285 return 1286 } 1287 resp, md, err := local_request_BeaconChain_ListValidatorBalances_0(rctx, inboundMarshaler, server, req, pathParams) 1288 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1289 ctx = runtime.NewServerMetadataContext(ctx, md) 1290 if err != nil { 1291 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1292 return 1293 } 1294 1295 forward_BeaconChain_ListValidatorBalances_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1296 1297 }) 1298 1299 mux.Handle("GET", pattern_BeaconChain_ListCommittees_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1300 ctx, cancel := context.WithCancel(req.Context()) 1301 defer cancel() 1302 var stream runtime.ServerTransportStream 1303 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1304 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1305 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListCommittees") 1306 if err != nil { 1307 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1308 return 1309 } 1310 resp, md, err := local_request_BeaconChain_ListCommittees_0(rctx, inboundMarshaler, server, req, pathParams) 1311 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 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_ListCommittees_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1319 1320 }) 1321 1322 mux.Handle("GET", pattern_BeaconChain_ListBlockHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1323 ctx, cancel := context.WithCancel(req.Context()) 1324 defer cancel() 1325 var stream runtime.ServerTransportStream 1326 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1327 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1328 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListBlockHeaders") 1329 if err != nil { 1330 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1331 return 1332 } 1333 resp, md, err := local_request_BeaconChain_ListBlockHeaders_0(rctx, inboundMarshaler, server, req, pathParams) 1334 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1335 ctx = runtime.NewServerMetadataContext(ctx, md) 1336 if err != nil { 1337 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1338 return 1339 } 1340 1341 forward_BeaconChain_ListBlockHeaders_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1342 1343 }) 1344 1345 mux.Handle("GET", pattern_BeaconChain_GetBlockHeader_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1346 ctx, cancel := context.WithCancel(req.Context()) 1347 defer cancel() 1348 var stream runtime.ServerTransportStream 1349 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1350 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1351 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlockHeader") 1352 if err != nil { 1353 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1354 return 1355 } 1356 resp, md, err := local_request_BeaconChain_GetBlockHeader_0(rctx, inboundMarshaler, server, req, pathParams) 1357 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1358 ctx = runtime.NewServerMetadataContext(ctx, md) 1359 if err != nil { 1360 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1361 return 1362 } 1363 1364 forward_BeaconChain_GetBlockHeader_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1365 1366 }) 1367 1368 mux.Handle("POST", pattern_BeaconChain_SubmitBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1369 ctx, cancel := context.WithCancel(req.Context()) 1370 defer cancel() 1371 var stream runtime.ServerTransportStream 1372 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1373 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1374 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitBlock") 1375 if err != nil { 1376 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1377 return 1378 } 1379 resp, md, err := local_request_BeaconChain_SubmitBlock_0(rctx, inboundMarshaler, server, req, pathParams) 1380 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1381 ctx = runtime.NewServerMetadataContext(ctx, md) 1382 if err != nil { 1383 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1384 return 1385 } 1386 1387 forward_BeaconChain_SubmitBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1388 1389 }) 1390 1391 mux.Handle("GET", pattern_BeaconChain_GetBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1392 ctx, cancel := context.WithCancel(req.Context()) 1393 defer cancel() 1394 var stream runtime.ServerTransportStream 1395 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1396 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1397 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlock") 1398 if err != nil { 1399 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1400 return 1401 } 1402 resp, md, err := local_request_BeaconChain_GetBlock_0(rctx, inboundMarshaler, server, req, pathParams) 1403 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1404 ctx = runtime.NewServerMetadataContext(ctx, md) 1405 if err != nil { 1406 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1407 return 1408 } 1409 1410 forward_BeaconChain_GetBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1411 1412 }) 1413 1414 mux.Handle("GET", pattern_BeaconChain_GetBlockRoot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1415 ctx, cancel := context.WithCancel(req.Context()) 1416 defer cancel() 1417 var stream runtime.ServerTransportStream 1418 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1419 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1420 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlockRoot") 1421 if err != nil { 1422 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1423 return 1424 } 1425 resp, md, err := local_request_BeaconChain_GetBlockRoot_0(rctx, inboundMarshaler, server, req, pathParams) 1426 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1427 ctx = runtime.NewServerMetadataContext(ctx, md) 1428 if err != nil { 1429 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1430 return 1431 } 1432 1433 forward_BeaconChain_GetBlockRoot_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1434 1435 }) 1436 1437 mux.Handle("GET", pattern_BeaconChain_GetBlockSSZ_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1438 ctx, cancel := context.WithCancel(req.Context()) 1439 defer cancel() 1440 var stream runtime.ServerTransportStream 1441 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1442 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1443 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlockSSZ") 1444 if err != nil { 1445 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1446 return 1447 } 1448 resp, md, err := local_request_BeaconChain_GetBlockSSZ_0(rctx, inboundMarshaler, server, req, pathParams) 1449 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1450 ctx = runtime.NewServerMetadataContext(ctx, md) 1451 if err != nil { 1452 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1453 return 1454 } 1455 1456 forward_BeaconChain_GetBlockSSZ_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1457 1458 }) 1459 1460 mux.Handle("GET", pattern_BeaconChain_ListBlockAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1461 ctx, cancel := context.WithCancel(req.Context()) 1462 defer cancel() 1463 var stream runtime.ServerTransportStream 1464 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1465 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1466 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListBlockAttestations") 1467 if err != nil { 1468 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1469 return 1470 } 1471 resp, md, err := local_request_BeaconChain_ListBlockAttestations_0(rctx, inboundMarshaler, server, req, pathParams) 1472 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1473 ctx = runtime.NewServerMetadataContext(ctx, md) 1474 if err != nil { 1475 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1476 return 1477 } 1478 1479 forward_BeaconChain_ListBlockAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1480 1481 }) 1482 1483 mux.Handle("GET", pattern_BeaconChain_ListPoolAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1484 ctx, cancel := context.WithCancel(req.Context()) 1485 defer cancel() 1486 var stream runtime.ServerTransportStream 1487 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1488 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1489 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolAttestations") 1490 if err != nil { 1491 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1492 return 1493 } 1494 resp, md, err := local_request_BeaconChain_ListPoolAttestations_0(rctx, inboundMarshaler, server, req, pathParams) 1495 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1496 ctx = runtime.NewServerMetadataContext(ctx, md) 1497 if err != nil { 1498 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1499 return 1500 } 1501 1502 forward_BeaconChain_ListPoolAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1503 1504 }) 1505 1506 mux.Handle("POST", pattern_BeaconChain_SubmitAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1507 ctx, cancel := context.WithCancel(req.Context()) 1508 defer cancel() 1509 var stream runtime.ServerTransportStream 1510 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1511 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1512 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitAttestations") 1513 if err != nil { 1514 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1515 return 1516 } 1517 resp, md, err := local_request_BeaconChain_SubmitAttestations_0(rctx, inboundMarshaler, server, req, pathParams) 1518 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1519 ctx = runtime.NewServerMetadataContext(ctx, md) 1520 if err != nil { 1521 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1522 return 1523 } 1524 1525 forward_BeaconChain_SubmitAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1526 1527 }) 1528 1529 mux.Handle("GET", pattern_BeaconChain_ListPoolAttesterSlashings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1530 ctx, cancel := context.WithCancel(req.Context()) 1531 defer cancel() 1532 var stream runtime.ServerTransportStream 1533 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1534 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1535 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolAttesterSlashings") 1536 if err != nil { 1537 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1538 return 1539 } 1540 resp, md, err := local_request_BeaconChain_ListPoolAttesterSlashings_0(rctx, inboundMarshaler, server, req, pathParams) 1541 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1542 ctx = runtime.NewServerMetadataContext(ctx, md) 1543 if err != nil { 1544 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1545 return 1546 } 1547 1548 forward_BeaconChain_ListPoolAttesterSlashings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1549 1550 }) 1551 1552 mux.Handle("POST", pattern_BeaconChain_SubmitAttesterSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1553 ctx, cancel := context.WithCancel(req.Context()) 1554 defer cancel() 1555 var stream runtime.ServerTransportStream 1556 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1557 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1558 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitAttesterSlashing") 1559 if err != nil { 1560 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1561 return 1562 } 1563 resp, md, err := local_request_BeaconChain_SubmitAttesterSlashing_0(rctx, inboundMarshaler, server, req, pathParams) 1564 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1565 ctx = runtime.NewServerMetadataContext(ctx, md) 1566 if err != nil { 1567 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1568 return 1569 } 1570 1571 forward_BeaconChain_SubmitAttesterSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1572 1573 }) 1574 1575 mux.Handle("GET", pattern_BeaconChain_ListPoolProposerSlashings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1576 ctx, cancel := context.WithCancel(req.Context()) 1577 defer cancel() 1578 var stream runtime.ServerTransportStream 1579 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1580 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1581 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolProposerSlashings") 1582 if err != nil { 1583 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1584 return 1585 } 1586 resp, md, err := local_request_BeaconChain_ListPoolProposerSlashings_0(rctx, inboundMarshaler, server, req, pathParams) 1587 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1588 ctx = runtime.NewServerMetadataContext(ctx, md) 1589 if err != nil { 1590 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1591 return 1592 } 1593 1594 forward_BeaconChain_ListPoolProposerSlashings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1595 1596 }) 1597 1598 mux.Handle("POST", pattern_BeaconChain_SubmitProposerSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1599 ctx, cancel := context.WithCancel(req.Context()) 1600 defer cancel() 1601 var stream runtime.ServerTransportStream 1602 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1603 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1604 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitProposerSlashing") 1605 if err != nil { 1606 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1607 return 1608 } 1609 resp, md, err := local_request_BeaconChain_SubmitProposerSlashing_0(rctx, inboundMarshaler, server, req, pathParams) 1610 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1611 ctx = runtime.NewServerMetadataContext(ctx, md) 1612 if err != nil { 1613 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1614 return 1615 } 1616 1617 forward_BeaconChain_SubmitProposerSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1618 1619 }) 1620 1621 mux.Handle("GET", pattern_BeaconChain_ListPoolVoluntaryExits_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1622 ctx, cancel := context.WithCancel(req.Context()) 1623 defer cancel() 1624 var stream runtime.ServerTransportStream 1625 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1626 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1627 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolVoluntaryExits") 1628 if err != nil { 1629 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1630 return 1631 } 1632 resp, md, err := local_request_BeaconChain_ListPoolVoluntaryExits_0(rctx, inboundMarshaler, server, req, pathParams) 1633 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1634 ctx = runtime.NewServerMetadataContext(ctx, md) 1635 if err != nil { 1636 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1637 return 1638 } 1639 1640 forward_BeaconChain_ListPoolVoluntaryExits_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1641 1642 }) 1643 1644 mux.Handle("POST", pattern_BeaconChain_SubmitVoluntaryExit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1645 ctx, cancel := context.WithCancel(req.Context()) 1646 defer cancel() 1647 var stream runtime.ServerTransportStream 1648 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1649 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1650 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitVoluntaryExit") 1651 if err != nil { 1652 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1653 return 1654 } 1655 resp, md, err := local_request_BeaconChain_SubmitVoluntaryExit_0(rctx, inboundMarshaler, server, req, pathParams) 1656 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1657 ctx = runtime.NewServerMetadataContext(ctx, md) 1658 if err != nil { 1659 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1660 return 1661 } 1662 1663 forward_BeaconChain_SubmitVoluntaryExit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1664 1665 }) 1666 1667 mux.Handle("GET", pattern_BeaconChain_GetForkSchedule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1668 ctx, cancel := context.WithCancel(req.Context()) 1669 defer cancel() 1670 var stream runtime.ServerTransportStream 1671 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1672 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1673 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetForkSchedule") 1674 if err != nil { 1675 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1676 return 1677 } 1678 resp, md, err := local_request_BeaconChain_GetForkSchedule_0(rctx, inboundMarshaler, server, req, pathParams) 1679 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1680 ctx = runtime.NewServerMetadataContext(ctx, md) 1681 if err != nil { 1682 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1683 return 1684 } 1685 1686 forward_BeaconChain_GetForkSchedule_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1687 1688 }) 1689 1690 mux.Handle("GET", pattern_BeaconChain_GetSpec_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1691 ctx, cancel := context.WithCancel(req.Context()) 1692 defer cancel() 1693 var stream runtime.ServerTransportStream 1694 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1695 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1696 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetSpec") 1697 if err != nil { 1698 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1699 return 1700 } 1701 resp, md, err := local_request_BeaconChain_GetSpec_0(rctx, inboundMarshaler, server, req, pathParams) 1702 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1703 ctx = runtime.NewServerMetadataContext(ctx, md) 1704 if err != nil { 1705 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1706 return 1707 } 1708 1709 forward_BeaconChain_GetSpec_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1710 1711 }) 1712 1713 mux.Handle("GET", pattern_BeaconChain_GetDepositContract_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1714 ctx, cancel := context.WithCancel(req.Context()) 1715 defer cancel() 1716 var stream runtime.ServerTransportStream 1717 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 1718 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1719 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetDepositContract") 1720 if err != nil { 1721 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1722 return 1723 } 1724 resp, md, err := local_request_BeaconChain_GetDepositContract_0(rctx, inboundMarshaler, server, req, pathParams) 1725 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 1726 ctx = runtime.NewServerMetadataContext(ctx, md) 1727 if err != nil { 1728 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1729 return 1730 } 1731 1732 forward_BeaconChain_GetDepositContract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1733 1734 }) 1735 1736 return nil 1737 } 1738 1739 // RegisterBeaconChainHandlerFromEndpoint is same as RegisterBeaconChainHandler but 1740 // automatically dials to "endpoint" and closes the connection when "ctx" gets done. 1741 func RegisterBeaconChainHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { 1742 conn, err := grpc.Dial(endpoint, opts...) 1743 if err != nil { 1744 return err 1745 } 1746 defer func() { 1747 if err != nil { 1748 if cerr := conn.Close(); cerr != nil { 1749 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 1750 } 1751 return 1752 } 1753 go func() { 1754 <-ctx.Done() 1755 if cerr := conn.Close(); cerr != nil { 1756 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 1757 } 1758 }() 1759 }() 1760 1761 return RegisterBeaconChainHandler(ctx, mux, conn) 1762 } 1763 1764 // RegisterBeaconChainHandler registers the http handlers for service BeaconChain to "mux". 1765 // The handlers forward requests to the grpc endpoint over "conn". 1766 func RegisterBeaconChainHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { 1767 return RegisterBeaconChainHandlerClient(ctx, mux, NewBeaconChainClient(conn)) 1768 } 1769 1770 // RegisterBeaconChainHandlerClient registers the http handlers for service BeaconChain 1771 // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BeaconChainClient". 1772 // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BeaconChainClient" 1773 // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in 1774 // "BeaconChainClient" to call the correct interceptors. 1775 func RegisterBeaconChainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BeaconChainClient) error { 1776 1777 mux.Handle("GET", pattern_BeaconChain_GetGenesis_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1778 ctx, cancel := context.WithCancel(req.Context()) 1779 defer cancel() 1780 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1781 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetGenesis") 1782 if err != nil { 1783 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1784 return 1785 } 1786 resp, md, err := request_BeaconChain_GetGenesis_0(rctx, inboundMarshaler, client, req, pathParams) 1787 ctx = runtime.NewServerMetadataContext(ctx, md) 1788 if err != nil { 1789 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1790 return 1791 } 1792 1793 forward_BeaconChain_GetGenesis_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1794 1795 }) 1796 1797 mux.Handle("GET", pattern_BeaconChain_GetStateRoot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1798 ctx, cancel := context.WithCancel(req.Context()) 1799 defer cancel() 1800 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1801 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetStateRoot") 1802 if err != nil { 1803 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1804 return 1805 } 1806 resp, md, err := request_BeaconChain_GetStateRoot_0(rctx, inboundMarshaler, client, req, pathParams) 1807 ctx = runtime.NewServerMetadataContext(ctx, md) 1808 if err != nil { 1809 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1810 return 1811 } 1812 1813 forward_BeaconChain_GetStateRoot_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1814 1815 }) 1816 1817 mux.Handle("GET", pattern_BeaconChain_GetStateFork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1818 ctx, cancel := context.WithCancel(req.Context()) 1819 defer cancel() 1820 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1821 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetStateFork") 1822 if err != nil { 1823 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1824 return 1825 } 1826 resp, md, err := request_BeaconChain_GetStateFork_0(rctx, inboundMarshaler, client, req, pathParams) 1827 ctx = runtime.NewServerMetadataContext(ctx, md) 1828 if err != nil { 1829 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1830 return 1831 } 1832 1833 forward_BeaconChain_GetStateFork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1834 1835 }) 1836 1837 mux.Handle("GET", pattern_BeaconChain_GetFinalityCheckpoints_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1838 ctx, cancel := context.WithCancel(req.Context()) 1839 defer cancel() 1840 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1841 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetFinalityCheckpoints") 1842 if err != nil { 1843 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1844 return 1845 } 1846 resp, md, err := request_BeaconChain_GetFinalityCheckpoints_0(rctx, inboundMarshaler, client, req, pathParams) 1847 ctx = runtime.NewServerMetadataContext(ctx, md) 1848 if err != nil { 1849 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1850 return 1851 } 1852 1853 forward_BeaconChain_GetFinalityCheckpoints_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1854 1855 }) 1856 1857 mux.Handle("GET", pattern_BeaconChain_ListValidators_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1858 ctx, cancel := context.WithCancel(req.Context()) 1859 defer cancel() 1860 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1861 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListValidators") 1862 if err != nil { 1863 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1864 return 1865 } 1866 resp, md, err := request_BeaconChain_ListValidators_0(rctx, inboundMarshaler, client, req, pathParams) 1867 ctx = runtime.NewServerMetadataContext(ctx, md) 1868 if err != nil { 1869 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1870 return 1871 } 1872 1873 forward_BeaconChain_ListValidators_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1874 1875 }) 1876 1877 mux.Handle("GET", pattern_BeaconChain_GetValidator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1878 ctx, cancel := context.WithCancel(req.Context()) 1879 defer cancel() 1880 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1881 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetValidator") 1882 if err != nil { 1883 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1884 return 1885 } 1886 resp, md, err := request_BeaconChain_GetValidator_0(rctx, inboundMarshaler, client, req, pathParams) 1887 ctx = runtime.NewServerMetadataContext(ctx, md) 1888 if err != nil { 1889 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1890 return 1891 } 1892 1893 forward_BeaconChain_GetValidator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1894 1895 }) 1896 1897 mux.Handle("GET", pattern_BeaconChain_ListValidatorBalances_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1898 ctx, cancel := context.WithCancel(req.Context()) 1899 defer cancel() 1900 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1901 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListValidatorBalances") 1902 if err != nil { 1903 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1904 return 1905 } 1906 resp, md, err := request_BeaconChain_ListValidatorBalances_0(rctx, inboundMarshaler, client, req, pathParams) 1907 ctx = runtime.NewServerMetadataContext(ctx, md) 1908 if err != nil { 1909 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1910 return 1911 } 1912 1913 forward_BeaconChain_ListValidatorBalances_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1914 1915 }) 1916 1917 mux.Handle("GET", pattern_BeaconChain_ListCommittees_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1918 ctx, cancel := context.WithCancel(req.Context()) 1919 defer cancel() 1920 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1921 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListCommittees") 1922 if err != nil { 1923 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1924 return 1925 } 1926 resp, md, err := request_BeaconChain_ListCommittees_0(rctx, inboundMarshaler, client, req, pathParams) 1927 ctx = runtime.NewServerMetadataContext(ctx, md) 1928 if err != nil { 1929 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1930 return 1931 } 1932 1933 forward_BeaconChain_ListCommittees_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1934 1935 }) 1936 1937 mux.Handle("GET", pattern_BeaconChain_ListBlockHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1938 ctx, cancel := context.WithCancel(req.Context()) 1939 defer cancel() 1940 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1941 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListBlockHeaders") 1942 if err != nil { 1943 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1944 return 1945 } 1946 resp, md, err := request_BeaconChain_ListBlockHeaders_0(rctx, inboundMarshaler, client, req, pathParams) 1947 ctx = runtime.NewServerMetadataContext(ctx, md) 1948 if err != nil { 1949 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1950 return 1951 } 1952 1953 forward_BeaconChain_ListBlockHeaders_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1954 1955 }) 1956 1957 mux.Handle("GET", pattern_BeaconChain_GetBlockHeader_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1958 ctx, cancel := context.WithCancel(req.Context()) 1959 defer cancel() 1960 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1961 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlockHeader") 1962 if err != nil { 1963 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1964 return 1965 } 1966 resp, md, err := request_BeaconChain_GetBlockHeader_0(rctx, inboundMarshaler, client, req, pathParams) 1967 ctx = runtime.NewServerMetadataContext(ctx, md) 1968 if err != nil { 1969 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1970 return 1971 } 1972 1973 forward_BeaconChain_GetBlockHeader_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1974 1975 }) 1976 1977 mux.Handle("POST", pattern_BeaconChain_SubmitBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1978 ctx, cancel := context.WithCancel(req.Context()) 1979 defer cancel() 1980 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1981 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitBlock") 1982 if err != nil { 1983 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1984 return 1985 } 1986 resp, md, err := request_BeaconChain_SubmitBlock_0(rctx, inboundMarshaler, client, req, pathParams) 1987 ctx = runtime.NewServerMetadataContext(ctx, md) 1988 if err != nil { 1989 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1990 return 1991 } 1992 1993 forward_BeaconChain_SubmitBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1994 1995 }) 1996 1997 mux.Handle("GET", pattern_BeaconChain_GetBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1998 ctx, cancel := context.WithCancel(req.Context()) 1999 defer cancel() 2000 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2001 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlock") 2002 if err != nil { 2003 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2004 return 2005 } 2006 resp, md, err := request_BeaconChain_GetBlock_0(rctx, inboundMarshaler, client, req, pathParams) 2007 ctx = runtime.NewServerMetadataContext(ctx, md) 2008 if err != nil { 2009 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2010 return 2011 } 2012 2013 forward_BeaconChain_GetBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2014 2015 }) 2016 2017 mux.Handle("GET", pattern_BeaconChain_GetBlockRoot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2018 ctx, cancel := context.WithCancel(req.Context()) 2019 defer cancel() 2020 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2021 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlockRoot") 2022 if err != nil { 2023 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2024 return 2025 } 2026 resp, md, err := request_BeaconChain_GetBlockRoot_0(rctx, inboundMarshaler, client, req, pathParams) 2027 ctx = runtime.NewServerMetadataContext(ctx, md) 2028 if err != nil { 2029 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2030 return 2031 } 2032 2033 forward_BeaconChain_GetBlockRoot_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2034 2035 }) 2036 2037 mux.Handle("GET", pattern_BeaconChain_GetBlockSSZ_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2038 ctx, cancel := context.WithCancel(req.Context()) 2039 defer cancel() 2040 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2041 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetBlockSSZ") 2042 if err != nil { 2043 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2044 return 2045 } 2046 resp, md, err := request_BeaconChain_GetBlockSSZ_0(rctx, inboundMarshaler, client, req, pathParams) 2047 ctx = runtime.NewServerMetadataContext(ctx, md) 2048 if err != nil { 2049 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2050 return 2051 } 2052 2053 forward_BeaconChain_GetBlockSSZ_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2054 2055 }) 2056 2057 mux.Handle("GET", pattern_BeaconChain_ListBlockAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2058 ctx, cancel := context.WithCancel(req.Context()) 2059 defer cancel() 2060 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2061 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListBlockAttestations") 2062 if err != nil { 2063 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2064 return 2065 } 2066 resp, md, err := request_BeaconChain_ListBlockAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 2067 ctx = runtime.NewServerMetadataContext(ctx, md) 2068 if err != nil { 2069 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2070 return 2071 } 2072 2073 forward_BeaconChain_ListBlockAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2074 2075 }) 2076 2077 mux.Handle("GET", pattern_BeaconChain_ListPoolAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2078 ctx, cancel := context.WithCancel(req.Context()) 2079 defer cancel() 2080 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2081 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolAttestations") 2082 if err != nil { 2083 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2084 return 2085 } 2086 resp, md, err := request_BeaconChain_ListPoolAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 2087 ctx = runtime.NewServerMetadataContext(ctx, md) 2088 if err != nil { 2089 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2090 return 2091 } 2092 2093 forward_BeaconChain_ListPoolAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2094 2095 }) 2096 2097 mux.Handle("POST", pattern_BeaconChain_SubmitAttestations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2098 ctx, cancel := context.WithCancel(req.Context()) 2099 defer cancel() 2100 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2101 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitAttestations") 2102 if err != nil { 2103 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2104 return 2105 } 2106 resp, md, err := request_BeaconChain_SubmitAttestations_0(rctx, inboundMarshaler, client, req, pathParams) 2107 ctx = runtime.NewServerMetadataContext(ctx, md) 2108 if err != nil { 2109 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2110 return 2111 } 2112 2113 forward_BeaconChain_SubmitAttestations_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2114 2115 }) 2116 2117 mux.Handle("GET", pattern_BeaconChain_ListPoolAttesterSlashings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2118 ctx, cancel := context.WithCancel(req.Context()) 2119 defer cancel() 2120 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2121 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolAttesterSlashings") 2122 if err != nil { 2123 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2124 return 2125 } 2126 resp, md, err := request_BeaconChain_ListPoolAttesterSlashings_0(rctx, inboundMarshaler, client, req, pathParams) 2127 ctx = runtime.NewServerMetadataContext(ctx, md) 2128 if err != nil { 2129 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2130 return 2131 } 2132 2133 forward_BeaconChain_ListPoolAttesterSlashings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2134 2135 }) 2136 2137 mux.Handle("POST", pattern_BeaconChain_SubmitAttesterSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2138 ctx, cancel := context.WithCancel(req.Context()) 2139 defer cancel() 2140 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2141 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitAttesterSlashing") 2142 if err != nil { 2143 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2144 return 2145 } 2146 resp, md, err := request_BeaconChain_SubmitAttesterSlashing_0(rctx, inboundMarshaler, client, req, pathParams) 2147 ctx = runtime.NewServerMetadataContext(ctx, md) 2148 if err != nil { 2149 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2150 return 2151 } 2152 2153 forward_BeaconChain_SubmitAttesterSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2154 2155 }) 2156 2157 mux.Handle("GET", pattern_BeaconChain_ListPoolProposerSlashings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2158 ctx, cancel := context.WithCancel(req.Context()) 2159 defer cancel() 2160 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2161 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolProposerSlashings") 2162 if err != nil { 2163 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2164 return 2165 } 2166 resp, md, err := request_BeaconChain_ListPoolProposerSlashings_0(rctx, inboundMarshaler, client, req, pathParams) 2167 ctx = runtime.NewServerMetadataContext(ctx, md) 2168 if err != nil { 2169 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2170 return 2171 } 2172 2173 forward_BeaconChain_ListPoolProposerSlashings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2174 2175 }) 2176 2177 mux.Handle("POST", pattern_BeaconChain_SubmitProposerSlashing_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2178 ctx, cancel := context.WithCancel(req.Context()) 2179 defer cancel() 2180 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2181 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitProposerSlashing") 2182 if err != nil { 2183 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2184 return 2185 } 2186 resp, md, err := request_BeaconChain_SubmitProposerSlashing_0(rctx, inboundMarshaler, client, req, pathParams) 2187 ctx = runtime.NewServerMetadataContext(ctx, md) 2188 if err != nil { 2189 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2190 return 2191 } 2192 2193 forward_BeaconChain_SubmitProposerSlashing_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2194 2195 }) 2196 2197 mux.Handle("GET", pattern_BeaconChain_ListPoolVoluntaryExits_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2198 ctx, cancel := context.WithCancel(req.Context()) 2199 defer cancel() 2200 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2201 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/ListPoolVoluntaryExits") 2202 if err != nil { 2203 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2204 return 2205 } 2206 resp, md, err := request_BeaconChain_ListPoolVoluntaryExits_0(rctx, inboundMarshaler, client, req, pathParams) 2207 ctx = runtime.NewServerMetadataContext(ctx, md) 2208 if err != nil { 2209 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2210 return 2211 } 2212 2213 forward_BeaconChain_ListPoolVoluntaryExits_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2214 2215 }) 2216 2217 mux.Handle("POST", pattern_BeaconChain_SubmitVoluntaryExit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2218 ctx, cancel := context.WithCancel(req.Context()) 2219 defer cancel() 2220 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2221 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/SubmitVoluntaryExit") 2222 if err != nil { 2223 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2224 return 2225 } 2226 resp, md, err := request_BeaconChain_SubmitVoluntaryExit_0(rctx, inboundMarshaler, client, req, pathParams) 2227 ctx = runtime.NewServerMetadataContext(ctx, md) 2228 if err != nil { 2229 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2230 return 2231 } 2232 2233 forward_BeaconChain_SubmitVoluntaryExit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2234 2235 }) 2236 2237 mux.Handle("GET", pattern_BeaconChain_GetForkSchedule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2238 ctx, cancel := context.WithCancel(req.Context()) 2239 defer cancel() 2240 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2241 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetForkSchedule") 2242 if err != nil { 2243 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2244 return 2245 } 2246 resp, md, err := request_BeaconChain_GetForkSchedule_0(rctx, inboundMarshaler, client, req, pathParams) 2247 ctx = runtime.NewServerMetadataContext(ctx, md) 2248 if err != nil { 2249 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2250 return 2251 } 2252 2253 forward_BeaconChain_GetForkSchedule_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2254 2255 }) 2256 2257 mux.Handle("GET", pattern_BeaconChain_GetSpec_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2258 ctx, cancel := context.WithCancel(req.Context()) 2259 defer cancel() 2260 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2261 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetSpec") 2262 if err != nil { 2263 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2264 return 2265 } 2266 resp, md, err := request_BeaconChain_GetSpec_0(rctx, inboundMarshaler, client, req, pathParams) 2267 ctx = runtime.NewServerMetadataContext(ctx, md) 2268 if err != nil { 2269 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2270 return 2271 } 2272 2273 forward_BeaconChain_GetSpec_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2274 2275 }) 2276 2277 mux.Handle("GET", pattern_BeaconChain_GetDepositContract_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2278 ctx, cancel := context.WithCancel(req.Context()) 2279 defer cancel() 2280 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2281 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1.BeaconChain/GetDepositContract") 2282 if err != nil { 2283 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2284 return 2285 } 2286 resp, md, err := request_BeaconChain_GetDepositContract_0(rctx, inboundMarshaler, client, req, pathParams) 2287 ctx = runtime.NewServerMetadataContext(ctx, md) 2288 if err != nil { 2289 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2290 return 2291 } 2292 2293 forward_BeaconChain_GetDepositContract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2294 2295 }) 2296 2297 return nil 2298 } 2299 2300 var ( 2301 pattern_BeaconChain_GetGenesis_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1", "beacon", "genesis"}, "")) 2302 2303 pattern_BeaconChain_GetStateRoot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "states", "state_id", "root"}, "")) 2304 2305 pattern_BeaconChain_GetStateFork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "states", "state_id", "fork"}, "")) 2306 2307 pattern_BeaconChain_GetFinalityCheckpoints_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "states", "state_id", "finality_checkpoints"}, "")) 2308 2309 pattern_BeaconChain_ListValidators_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "states", "state_id", "validators"}, "")) 2310 2311 pattern_BeaconChain_GetValidator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"eth", "v1", "beacon", "states", "state_id", "validators", "validator_id"}, "")) 2312 2313 pattern_BeaconChain_ListValidatorBalances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "states", "state_id", "validator_balances"}, "")) 2314 2315 pattern_BeaconChain_ListCommittees_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "states", "state_id", "committees"}, "")) 2316 2317 pattern_BeaconChain_ListBlockHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1", "beacon", "headers"}, "")) 2318 2319 pattern_BeaconChain_GetBlockHeader_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"eth", "v1", "beacon", "headers", "block_id"}, "")) 2320 2321 pattern_BeaconChain_SubmitBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1", "beacon", "blocks"}, "")) 2322 2323 pattern_BeaconChain_GetBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"eth", "v1", "beacon", "blocks", "block_id"}, "")) 2324 2325 pattern_BeaconChain_GetBlockRoot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "blocks", "block_id", "root"}, "")) 2326 2327 pattern_BeaconChain_GetBlockSSZ_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "blocks", "block_id", "ssz"}, "")) 2328 2329 pattern_BeaconChain_ListBlockAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"eth", "v1", "beacon", "blocks", "block_id", "attestations"}, "")) 2330 2331 pattern_BeaconChain_ListPoolAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "attestations"}, "")) 2332 2333 pattern_BeaconChain_SubmitAttestations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "attestations"}, "")) 2334 2335 pattern_BeaconChain_ListPoolAttesterSlashings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "attester_slashings"}, "")) 2336 2337 pattern_BeaconChain_SubmitAttesterSlashing_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "attester_slashings"}, "")) 2338 2339 pattern_BeaconChain_ListPoolProposerSlashings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "proposer_slashings"}, "")) 2340 2341 pattern_BeaconChain_SubmitProposerSlashing_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "proposer_slashings"}, "")) 2342 2343 pattern_BeaconChain_ListPoolVoluntaryExits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "voluntary_exits"}, "")) 2344 2345 pattern_BeaconChain_SubmitVoluntaryExit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1", "beacon", "pool", "voluntary_exits"}, "")) 2346 2347 pattern_BeaconChain_GetForkSchedule_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1", "config", "fork_schedule"}, "")) 2348 2349 pattern_BeaconChain_GetSpec_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1", "config", "spec"}, "")) 2350 2351 pattern_BeaconChain_GetDepositContract_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1", "config", "deposit_contract"}, "")) 2352 ) 2353 2354 var ( 2355 forward_BeaconChain_GetGenesis_0 = runtime.ForwardResponseMessage 2356 2357 forward_BeaconChain_GetStateRoot_0 = runtime.ForwardResponseMessage 2358 2359 forward_BeaconChain_GetStateFork_0 = runtime.ForwardResponseMessage 2360 2361 forward_BeaconChain_GetFinalityCheckpoints_0 = runtime.ForwardResponseMessage 2362 2363 forward_BeaconChain_ListValidators_0 = runtime.ForwardResponseMessage 2364 2365 forward_BeaconChain_GetValidator_0 = runtime.ForwardResponseMessage 2366 2367 forward_BeaconChain_ListValidatorBalances_0 = runtime.ForwardResponseMessage 2368 2369 forward_BeaconChain_ListCommittees_0 = runtime.ForwardResponseMessage 2370 2371 forward_BeaconChain_ListBlockHeaders_0 = runtime.ForwardResponseMessage 2372 2373 forward_BeaconChain_GetBlockHeader_0 = runtime.ForwardResponseMessage 2374 2375 forward_BeaconChain_SubmitBlock_0 = runtime.ForwardResponseMessage 2376 2377 forward_BeaconChain_GetBlock_0 = runtime.ForwardResponseMessage 2378 2379 forward_BeaconChain_GetBlockRoot_0 = runtime.ForwardResponseMessage 2380 2381 forward_BeaconChain_GetBlockSSZ_0 = runtime.ForwardResponseMessage 2382 2383 forward_BeaconChain_ListBlockAttestations_0 = runtime.ForwardResponseMessage 2384 2385 forward_BeaconChain_ListPoolAttestations_0 = runtime.ForwardResponseMessage 2386 2387 forward_BeaconChain_SubmitAttestations_0 = runtime.ForwardResponseMessage 2388 2389 forward_BeaconChain_ListPoolAttesterSlashings_0 = runtime.ForwardResponseMessage 2390 2391 forward_BeaconChain_SubmitAttesterSlashing_0 = runtime.ForwardResponseMessage 2392 2393 forward_BeaconChain_ListPoolProposerSlashings_0 = runtime.ForwardResponseMessage 2394 2395 forward_BeaconChain_SubmitProposerSlashing_0 = runtime.ForwardResponseMessage 2396 2397 forward_BeaconChain_ListPoolVoluntaryExits_0 = runtime.ForwardResponseMessage 2398 2399 forward_BeaconChain_SubmitVoluntaryExit_0 = runtime.ForwardResponseMessage 2400 2401 forward_BeaconChain_GetForkSchedule_0 = runtime.ForwardResponseMessage 2402 2403 forward_BeaconChain_GetSpec_0 = runtime.ForwardResponseMessage 2404 2405 forward_BeaconChain_GetDepositContract_0 = runtime.ForwardResponseMessage 2406 )