forked from ethereum/beacon-APIs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support Capella / EIP4844 LC data formats
Implements the light client data format for Capella / EIP4844: - ethereum/consensus-specs#3151
- Loading branch information
1 parent
6669d98
commit ea9e9a5
Showing
12 changed files
with
239 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Bellatrix: | ||
Capella: | ||
Transactions: | ||
type: array | ||
items: | ||
allOf: | ||
- $ref: '../primitive.yaml#/Transaction' | ||
$ref: '../primitive.yaml#/Transaction' | ||
maxItems: 1048576 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
Capella: | ||
ExecutionBranch: | ||
type: array | ||
items: | ||
$ref: '../primitive.yaml#/Root' | ||
description: "Merkle proof consisting of [`log2trunc(EXECUTION_PAYLOAD_INDEX])`](https://github.com/ethereum/consensus-specs/blob/v1.3.0-rc.1/specs/capella/light-client/sync-protocol.md#constants) roots" | ||
minItems: 4 | ||
maxItems: 4 | ||
|
||
LightClientHeader: | ||
type: object | ||
properties: | ||
beacon: | ||
$ref: '../block.yaml#/BeaconBlockHeader' | ||
execution: | ||
$ref: './execution_payload.yaml#/Capella/ExecutionPayloadHeader' | ||
execution_branch: | ||
$ref: '#/Capella/ExecutionBranch' | ||
|
||
LightClientBootstrap: | ||
type: object | ||
properties: | ||
header: | ||
$ref: '#/Capella/LightClientHeader' | ||
current_sync_committee: | ||
$ref: '../altair/sync_committee.yaml#/Altair/SyncCommittee' | ||
current_sync_committee_branch: | ||
$ref: '../altair/light_client.yaml#/Altair/CurrentSyncCommitteeBranch' | ||
LightClientUpdate: | ||
type: object | ||
properties: | ||
attested_header: | ||
$ref: '#/Capella/LightClientHeader' | ||
next_sync_committee: | ||
$ref: '../altair/sync_committee.yaml#/Altair/SyncCommittee' | ||
next_sync_committee_branch: | ||
$ref: '../altair/light_client.yaml#/Altair/NextSyncCommitteeBranch' | ||
finalized_header: | ||
$ref: '#/Capella/LightClientHeader' | ||
finality_branch: | ||
$ref: '../altair/light_client.yaml#/Altair/FinalityBranch' | ||
sync_aggregate: | ||
$ref: '../altair/sync_aggregate.yaml#/Altair/SyncAggregate' | ||
signature_slot: | ||
$ref: '../primitive.yaml#/Uint64' | ||
LightClientFinalityUpdate: | ||
type: object | ||
properties: | ||
attested_header: | ||
$ref: '#/Capella/LightClientHeader' | ||
finalized_header: | ||
$ref: '#/Capella/LightClientHeader' | ||
finality_branch: | ||
$ref: '../altair/light_client.yaml#/Altair/FinalityBranch' | ||
sync_aggregate: | ||
$ref: '../altair/sync_aggregate.yaml#/Altair/SyncAggregate' | ||
signature_slot: | ||
$ref: '../primitive.yaml#/Uint64' | ||
LightClientOptimisticUpdate: | ||
type: object | ||
properties: | ||
attested_header: | ||
$ref: '#/Capella/LightClientHeader' | ||
sync_aggregate: | ||
$ref: '../altair/sync_aggregate.yaml#/Altair/SyncAggregate' | ||
signature_slot: | ||
$ref: '../primitive.yaml#/Uint64' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
EIP4844: | ||
ExecutionPayloadCommon: | ||
# An abstract object to collect the common fields between the ExecutionPayload and the ExecutionPayloadHeader objects. | ||
type: object | ||
description: "The [`ExecutionPayload`](https://github.com/ethereum/consensus-specs/blob/master/specs/eip4844/beacon-chain.md#executionpayload) object from the CL EIP4844 spec." | ||
properties: | ||
parent_hash: | ||
$ref: '../primitive.yaml#/Root' | ||
fee_recipient: | ||
$ref: '../primitive.yaml#/ExecutionAddress' | ||
state_root: | ||
$ref: '../primitive.yaml#/Root' | ||
receipts_root: | ||
$ref: '../primitive.yaml#/Root' | ||
logs_bloom: | ||
$ref: '../primitive.yaml#/LogsBloom' | ||
prev_randao: | ||
$ref: '../primitive.yaml#/Bytes32' | ||
block_number: | ||
$ref: '../primitive.yaml#/Uint64' | ||
gas_limit: | ||
$ref: '../primitive.yaml#/Uint64' | ||
gas_used: | ||
$ref: '../primitive.yaml#/Uint64' | ||
timestamp: | ||
$ref: '../primitive.yaml#/Uint64' | ||
extra_data: | ||
$ref: '../primitive.yaml#/ExtraData' | ||
base_fee_per_gas: | ||
$ref: '../primitive.yaml#/Uint256' | ||
excess_data_gas: | ||
$ref: '../primitive.yaml#/Uint256' | ||
block_hash: | ||
$ref: '../primitive.yaml#/Root' | ||
|
||
|
||
ExecutionPayload: | ||
allOf: | ||
- $ref: '#/EIP4844/ExecutionPayloadCommon' | ||
- type: object | ||
properties: | ||
transactions: | ||
$ref: '../bellatrix/transactions.yaml#/Bellatrix/Transactions' | ||
withdrawals: | ||
$ref: '../capella/withdrawals.yaml#/Capella/Withdrawals' | ||
|
||
ExecutionPayloadHeader: | ||
description: "The [`ExecutionPayloadHeader`](https://github.com/ethereum/consensus-specs/blob/master/specs/eip4844/beacon-chain.md#executionpayloadheader) object from the CL EIP4844 spec." | ||
allOf: | ||
- $ref: '#/EIP4844/ExecutionPayloadCommon' | ||
- type: object | ||
properties: | ||
transactions_root: | ||
$ref: '../primitive.yaml#/Root' | ||
withdrawals_root: | ||
$ref: '../primitive.yaml#/Root' |
Oops, something went wrong.