Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed May 28, 2024
1 parent fe3cc11 commit 7625e1c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
26 changes: 13 additions & 13 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ There are likely to be descriptions etc outside of the list below, but new query

| Endpoint | [Lighthouse](https://github.com/sigp/lighthouse) | [Lodestar](https://github.com/ChainSafe/lodestar) | [Nimbus](https://github.com/status-im/nimbus-eth2) | [Prysm](https://github.com/prysmaticlabs/prysm) | [Teku](https://github.com/ConsenSys/teku) |
|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------|----------------------------------------------------|-------------------------------------------------|-------------------------------------------|
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `GET /eth/v2/beacon/blocks/{block_id}/attestations` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `GET /eth/v2/beacon/pool/attestations` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `POST /eth/v2/beacon/pool/attestations` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `GET /eth/v2/beacon/pool/attester_slashings` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `POST /eth/v2/beacon/pool/attester_slashings` added | | - | | | |


The Following are no longer in the Standard API, removed since the latest version.
Expand All @@ -23,20 +28,15 @@ These endpoints have been added or updated since the last release.

There are likely to be descriptions etc outside of the list below, but new query parameters, changes to headers, new endpoints should be listed.

| Endpoint | [Lighthouse](https://github.com/sigp/lighthouse) | [Lodestar](https://github.com/ChainSafe/lodestar) | [Nimbus](https://github.com/status-im/nimbus-eth2) | [Prysm](https://github.com/prysmaticlabs/prysm) | [Teku](https://github.com/ConsenSys/teku) |
|----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------|----------------------------------------------------|-------------------------------------------------|-------------------------------------------|
| [#350](https://github.com/ethereum/beacon-APIs/pull/350) `blob_sidecar EVENT` added | | v1.12.0 | | | |
| [#358](https://github.com/ethereum/beacon-APIs/pull/358) `/eth/v3/validator/blocks` added `consensus_block_value` to response | | v1.13.0 | | | |
| [#367](https://github.com/ethereum/beacon-APIs/pull/367) `POST /eth/v1/beacon/states/{state_id}/validators` added | | - | | | |
| [#367](https://github.com/ethereum/beacon-APIs/pull/367) `POST /eth/v1/beacon/states/{state_id}/validator_balances` added | | - | | | |
| [#376](https://github.com/ethereum/beacon-APIs/pull/376) `proposer_slashing, attester_slashing EVENT` added | | v1.16.0 | | | |
| Endpoint | [Lighthouse](https://github.com/sigp/lighthouse) | [Lodestar](https://github.com/ChainSafe/lodestar) | [Nimbus](https://github.com/status-im/nimbus-eth2) | [Prysm](https://github.com/prysmaticlabs/prysm) | [Teku](https://github.com/ConsenSys/teku) |
|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------|----------------------------------------------------|-------------------------------------------------|-------------------------------------------|
| [#350](https://github.com/ethereum/beacon-APIs/pull/350) `blob_sidecar EVENT` added | | v1.12.0 | | | |
| [#358](https://github.com/ethereum/beacon-APIs/pull/358) `/eth/v3/validator/blocks` added `consensus_block_value` to response | | v1.13.0 | | | |
| [#367](https://github.com/ethereum/beacon-APIs/pull/367) `POST /eth/v1/beacon/states/{state_id}/validators` added | | - | | | |
| [#367](https://github.com/ethereum/beacon-APIs/pull/367) `POST /eth/v1/beacon/states/{state_id}/validator_balances` added | | - | | | |
| [#376](https://github.com/ethereum/beacon-APIs/pull/376) `proposer_slashing, attester_slashing EVENT` added | | v1.16.0 | | | |
| [#386](https://github.com/ethereum/beacon-APIs/pull/386) `/eth/v3/validator/blocks` added `builder_boost_factor` query parameter | | v1.14.0 | | | |
| [#405](https://github.com/ethereum/beacon-APIs/pull/405) `block_gossip EVENT` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `GET /eth/v2/beacon/blocks/{block_id}/attestations` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `GET /eth/v2/beacon/pool/attestations` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `POST /eth/v2/beacon/pool/attestations` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `GET /eth/v2/beacon/pool/attester_slashings` added | | - | | | |
| [#448](https://github.com/ethereum/beacon-APIs/pull/448) `POST /eth/v2/beacon/pool/attester_slashings` added | | - | | | |
| [#405](https://github.com/ethereum/beacon-APIs/pull/405) `block_gossip EVENT` added | | - | | | |


## Version 2.4.2
Expand Down
2 changes: 1 addition & 1 deletion apis/beacon/blocks/attestations.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ get:
schema:
title: GetBlockAttestationsV2Response
type: object
required: [execution_optimistic, finalized, data]
required: [version, execution_optimistic, finalized, data]
properties:
version:
type: string
Expand Down
6 changes: 5 additions & 1 deletion apis/beacon/pool/attestations.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ get:
schema:
title: GetPoolAttestationsV2Response
type: object
required: [data]
required: [version, data]
properties:
version:
type: string
enum: [phase0, altair, bellatrix, capella, deneb, electra]
example: "phase0"
data:
anyOf:
- type: array
Expand Down
2 changes: 1 addition & 1 deletion apis/beacon/pool/attester_slashings.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ get:
schema:
title: GetPoolAttesterSlashingsV2Response
type: object
required: [data]
required: [version, data]
properties:
version:
type: string
Expand Down
2 changes: 1 addition & 1 deletion types/electra/attestation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Electra:
Attestation:
type: object
description: "The [`Attestation`](https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#attestation) object from the CL spec."
required: [aggregation_bits, signature, data]
required: [aggregation_bits, signature, committee_bits, data]
properties:
aggregation_bits:
$ref: "../primitive.yaml#/BitList"
Expand Down

0 comments on commit 7625e1c

Please sign in to comment.