Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Electra block and state objects from CL spec #469

Merged
merged 4 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Move requests out of execution_payload into beacon_block.body
  • Loading branch information
nflaig committed Sep 18, 2024
commit 2c262580783931d660d4c5ea871b7e7726c4c55e
12 changes: 8 additions & 4 deletions types/electra/block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ Electra:
allOf:
- $ref: "#/Electra/BeaconBlockBodyCommon"
- type: object
required: [execution_payload]
required: [execution_payload, execution_requests]
properties:
execution_payload:
$ref: "./execution_payload.yaml#/Electra/ExecutionPayload"
$ref: "../deneb/execution_payload.yaml#/Deneb/ExecutionPayload"
execution_requests:
$ref: "./execution_requests.yaml#/Electra/ExecutionRequests"

BeaconBlock:
description: "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."
Expand All @@ -78,10 +80,12 @@ Electra:
allOf:
- $ref: "#/Electra/BeaconBlockBodyCommon"
- type: object
required: [execution_payload_header]
required: [execution_payload_header, execution_requests_root]
properties:
execution_payload_header:
$ref: "./execution_payload.yaml#/Electra/ExecutionPayloadHeader"
$ref: "../deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
execution_requests_root:
$ref: "../primitive.yaml#/Root"

BlindedBeaconBlock:
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`."
Expand Down
79 changes: 0 additions & 79 deletions types/electra/execution_payload.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions types/electra/execution_requests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Electra:
ExecutionRequests:
type: object
description: "The [`ExecutionRequests`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.6/specs/electra/beacon-chain.md#executionrequests) object from the CL Electra spec."
required: [deposits, withdrawals, consolidations]
properties:
deposits:
type: array
items:
$ref: "./deposit.yaml#/Electra/DepositRequest"
maxItems: 8192
withdrawals:
type: array
items:
$ref: "./withdrawal.yaml#/Electra/WithdrawalRequest"
maxItems: 16
consolidations:
type: array
items:
$ref: "./consolidation.yaml#/Electra/ConsolidationRequest"
maxItems: 1
2 changes: 1 addition & 1 deletion types/electra/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Electra:
next_sync_committee:
$ref: "../altair/sync_committee.yaml#/Altair/SyncCommittee"
latest_execution_payload_header:
$ref: "./execution_payload.yaml#/Electra/ExecutionPayloadHeader"
$ref: "../deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
next_withdrawal_index:
$ref: "../primitive.yaml#/Uint64"
next_withdrawal_validator_index:
Expand Down