From 6aff2cd19a015710194499087ed5d68409ed8e68 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Wed, 29 Sep 2021 12:43:30 +0200 Subject: [PATCH] add remaining REST spec references This adds spec references for a few APIs that were missing them so far, in line with how spec references already exist for the other REST APIs. --- beacon_chain/spec/eth2_apis/rest_beacon_calls.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim b/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim index e459700cf..005884d28 100644 --- a/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim +++ b/beacon_chain/spec/eth2_apis/rest_beacon_calls.nim @@ -33,6 +33,7 @@ proc getStateFinalityCheckpoints*(state_id: StateIdent ): RestResponse[GetStateFinalityCheckpointsResponse] {. rest, endpoint: "/api/eth/v1/beacon/states/{state_id}/finality_checkpoints", meth: MethodGet.} + ## https://ethereum.github.io/beacon-APIs/#/Beacon/getStateFinalityCheckpoints proc getStateValidators*(state_id: StateIdent, id: seq[ValidatorIdent] @@ -93,6 +94,7 @@ proc getBlockPlain*(block_id: BlockIdent): RestPlainResponse {. rest, endpoint: "/api/eth/v1/beacon/blocks/{block_id}", accept: "application/octet-stream,application-json;q=0.9", meth: MethodGet.} + ## https://ethereum.github.io/beacon-APIs/#/Beacon/getBlock proc getBlock*(client: RestClientRef, block_id: BlockIdent, restAccept = ""): Future[ForkedSignedBeaconBlock] {.async.} =