Skip to content

Commit 55f076b

Browse files
authored
Merge branch 'master' into nflaig/remove-block-apis
2 parents 626a828 + 14ddc04 commit 55f076b

File tree

8 files changed

+49
-16
lines changed

8 files changed

+49
-16
lines changed

apis/beacon/pool/attestations.v2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ post:
5656
operationId: submitPoolAttestationsV2
5757
summary: Submit Attestation objects to node
5858
description: |
59-
Submits Attestation objects to the node. Each attestation in the request body is processed individually.
59+
Submits attestations to the node. Each attestation in the request body is processed individually.
6060
6161
If an attestation is validated successfully, the node MUST publish that attestation on the appropriate subnet.
6262
@@ -82,7 +82,7 @@ post:
8282
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
8383
- type: array
8484
items:
85-
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation'
85+
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.SingleAttestation'
8686
responses:
8787
"200":
8888
description: Attestations are stored in pool and broadcast on the appropriate subnet

apis/debug/fork_choice.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ get:
1313
title: GetForkChoiceResponse
1414
type: object
1515
description: "Debugging context of fork choice"
16-
required: [justified_checkpoint, finalized_checkpoint]
16+
required: [justified_checkpoint, finalized_checkpoint, fork_choice_nodes]
1717
properties:
1818
justified_checkpoint:
1919
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Checkpoint'
@@ -28,4 +28,4 @@ get:
2828
extra_data:
2929
$ref: "../../beacon-node-oapi.yaml#/components/schemas/ExtraData"
3030
"500":
31-
$ref: "../../beacon-node-oapi.yaml#/components/responses/InternalError"
31+
$ref: "../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/eventstream/index.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ get:
2626
- block
2727
- block_gossip
2828
- attestation
29+
- single_attestation
2930
- voluntary_exit
3031
- bls_to_execution_change
3132
- proposer_slashing
@@ -66,6 +67,11 @@ get:
6667
value: |
6768
event: attestation
6869
data: {"aggregation_bits":"0x01", "signature":"0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505", "data":{"slot":"1", "index":"1", "beacon_block_root":"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", "source":{"epoch":"1", "root":"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"}, "target":{"epoch":"1", "root":"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"}}}
70+
single_attestation:
71+
description: The node has received a SingleAttestation (from P2P or API) that passes validation rules of the `beacon_attestation_{subnet_id}` topic
72+
value: |
73+
event: single_attestation
74+
data: {"committee_index":"1", "attester_index": "1", "data":{"slot":"1", "index":"1", "beacon_block_root":"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", "source":{"epoch":"1", "root":"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"}, "target":{"epoch":"1", "root":"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"}}, "signature":"0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"}
6975
voluntary_exit:
7076
description: The node has received a SignedVoluntaryExit (from P2P or API) that passes validation rules of `voluntary_exit` topic
7177
value: |

beacon-node-oapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ components:
409409
$ref: './types/electra/block.yaml#/Electra/SignedBlindedBeaconBlock'
410410
Electra.Attestation:
411411
$ref: './types/electra/attestation.yaml#/Electra/Attestation'
412+
Electra.SingleAttestation:
413+
$ref: './types/electra/attestation.yaml#/Electra/SingleAttestation'
412414
Electra.AttesterSlashing:
413415
$ref: './types/electra/attester_slashing.yaml#/Electra/AttesterSlashing'
414416
Electra.SignedAggregateAndProof:

types/electra/attestation.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ Electra:
1616
$ref: '../primitive.yaml#/Signature'
1717
description: "The BLS signature of the `IndexedAttestation`, created by the validator of the attestation."
1818

19+
SingleAttestation:
20+
type: object
21+
description: "The [`SingleAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/electra/beacon-chain.md#singleattestation) object from the CL spec."
22+
required: [committee_index, attester_index, data, signature]
23+
properties:
24+
committee_index:
25+
$ref: "../primitive.yaml#/Uint64"
26+
description: "The attestations committee index."
27+
attester_index:
28+
$ref: "../primitive.yaml#/Uint64"
29+
description: "The validator index that signed this attestation."
30+
data:
31+
$ref: '../attestation_data.yaml#/AttestationData'
32+
signature:
33+
$ref: '../primitive.yaml#/Signature'
34+
description: "BLS aggregate signature."
35+
1936
Attestation:
2037
type: object
2138
description: "The [`Attestation`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/electra/beacon-chain.md#attestation) object from the CL spec."

types/electra/block.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ Electra:
8080
allOf:
8181
- $ref: "#/Electra/BeaconBlockBodyCommon"
8282
- type: object
83-
required: [execution_payload_header, execution_requests_root]
83+
required: [execution_payload_header, execution_requests]
8484
properties:
8585
execution_payload_header:
8686
$ref: "../deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
87-
execution_requests_root:
88-
$ref: "../primitive.yaml#/Root"
87+
execution_requests:
88+
$ref: "./execution_requests.yaml#/Electra/ExecutionRequests"
8989

9090
BlindedBeaconBlock:
9191
description: "A variant of the [`BeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.5/specs/phase0/beacon-chain.md#beaconblock) object from the CL Electra spec, which contains a `BlindedBeaconBlockBody` rather than a `BeaconBlockBody`."

types/electra/deposit.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ Electra:
1919
$ref: "../primitive.yaml#/Uint64"
2020
description: "The index of the deposit request."
2121

22-
PendingBalanceDeposit:
22+
PendingDeposit:
2323
type: object
24-
description: "The [`PendingBalanceDeposit`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.5/specs/electra/beacon-chain.md#pendingbalancedeposit) object from the CL Electra spec."
25-
required: [index, amount]
24+
description: "The [`PendingDeposit`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/electra/beacon-chain.md#pendingdeposit) object from the CL Electra spec."
25+
required: [pubkey, withdrawal_credentials, amount, signature, slot]
2626
properties:
27-
index:
28-
$ref: "../primitive.yaml#/Uint64"
29-
description: "Index of validator in validator registry."
27+
pubkey:
28+
$ref: "../primitive.yaml#/Pubkey"
29+
description: "BLS public key of validator."
30+
withdrawal_credentials:
31+
$ref: "../primitive.yaml#/Root"
32+
description: "The withdrawal credentials."
3033
amount:
3134
$ref: "../primitive.yaml#/Gwei"
3235
description: "The value to be deposited (gwei)."
36+
signature:
37+
$ref: "../primitive.yaml#/Signature"
38+
slot:
39+
$ref: "../primitive.yaml#/Uint64"
40+
description: "The slot at which the deposit request was processed."

types/electra/state.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Electra:
22
BeaconState:
33
type: object
44
description: "The [`BeaconState`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.5/specs/electra/beacon-chain.md#beaconstate) object from the CL Electra spec."
5-
required: [genesis_time, genesis_validators_root, slot, fork, latest_block_header, block_roots, state_roots, historical_roots, eth1_data, eth1_data_votes, eth1_deposit_index, validators, balances, randao_mixes, slashings, previous_epoch_participation, current_epoch_participation, justification_bits, previous_justified_checkpoint, current_justified_checkpoint, finalized_checkpoint, inactivity_scores, current_sync_committee, next_sync_committee, latest_execution_payload_header, next_withdrawal_index, next_withdrawal_validator_index, historical_summaries, deposit_requests_start_index, deposit_balance_to_consume, exit_balance_to_consume, earliest_exit_epoch, consolidation_balance_to_consume, earliest_consolidation_epoch, pending_balance_deposits, pending_partial_withdrawals, pending_consolidations]
5+
required: [genesis_time, genesis_validators_root, slot, fork, latest_block_header, block_roots, state_roots, historical_roots, eth1_data, eth1_data_votes, eth1_deposit_index, validators, balances, randao_mixes, slashings, previous_epoch_participation, current_epoch_participation, justification_bits, previous_justified_checkpoint, current_justified_checkpoint, finalized_checkpoint, inactivity_scores, current_sync_committee, next_sync_committee, latest_execution_payload_header, next_withdrawal_index, next_withdrawal_validator_index, historical_summaries, deposit_requests_start_index, deposit_balance_to_consume, exit_balance_to_consume, earliest_exit_epoch, consolidation_balance_to_consume, earliest_consolidation_epoch, pending_deposits, pending_partial_withdrawals, pending_consolidations]
66
properties:
77
genesis_time:
88
$ref: "../primitive.yaml#/Uint64"
@@ -104,10 +104,10 @@ Electra:
104104
$ref: "../primitive.yaml#/Gwei"
105105
earliest_consolidation_epoch:
106106
$ref: "../primitive.yaml#/Uint64"
107-
pending_balance_deposits:
107+
pending_deposits:
108108
type: array
109109
items:
110-
$ref: "./deposit.yaml#/Electra/PendingBalanceDeposit"
110+
$ref: "./deposit.yaml#/Electra/PendingDeposit"
111111
maxItems: 134217728
112112
pending_partial_withdrawals:
113113
type: array

0 commit comments

Comments
 (0)