Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions apis/debug/state.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ get:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Finalized"
data:
anyOf:
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Fulu.BeaconState"
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Electra.BeaconState"
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BeaconState"
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BeaconState"
Expand Down
2 changes: 2 additions & 0 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ components:
$ref: './types/electra/consolidation.yaml#/Electra/PendingConsolidation'
Electra.PendingPartialWithdrawal:
$ref: './types/electra/withdrawal.yaml#/Electra/PendingPartialWithdrawal'
Fulu.BeaconState:
$ref: './types/fulu/state.yaml#/Fulu/BeaconState'
Fulu.BlockContents:
$ref: "./types/fulu/block_contents.yaml#/Fulu/BlockContents"
Fulu.SignedBlockContents:
Expand Down
2 changes: 1 addition & 1 deletion types/fulu/data_column_sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Fulu:

DataColumnSidecar:
type: object
description: "A [`DataColumnSidecar`](https://github.com/ethereum/consensus-specs/blob/dev/specs/fulu/das-core.md#datacolumnsidecar) as defined in the Fulu consensus spec."
description: "A [`DataColumnSidecar`](https://github.com/ethereum/consensus-specs/blob/v1.6.0/specs/fulu/das-core.md#datacolumnsidecar) as defined in the Fulu consensus spec."
required: [index, column, kzg_commitments, kzg_proofs, signed_block_header, kzg_commitments_inclusion_proof]
properties:
index:
Expand Down
127 changes: 127 additions & 0 deletions types/fulu/state.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
Fulu:
BeaconState:
type: object
description: "The [`BeaconState`](https://github.com/ethereum/consensus-specs/blob/v1.6.0/specs/fulu/beacon-chain.md#beaconstate) object from the CL Fulu spec."
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, proposer_lookahead]
properties:
genesis_time:
$ref: "../primitive.yaml#/Uint64"
genesis_validators_root:
$ref: "../primitive.yaml#/Root"
slot:
$ref: "../primitive.yaml#/Uint64"
fork:
$ref: "../misc.yaml#/Fork"
latest_block_header:
$ref: "../phase0/block.yaml#/Phase0/BeaconBlockHeader"
block_roots:
type: array
description: "Fixed length of 8192 items"
items:
$ref: "../primitive.yaml#/Root"
state_roots:
type: array
description: "Fixed length of 8192 items"
items:
$ref: "../primitive.yaml#/Root"
historical_roots:
type: array
description: "Variable length list, maximum 16777216 items. Frozen in Capella, replaced by historical_summaries."
items:
$ref: "../primitive.yaml#/Root"
eth1_data:
$ref: "../phase0/eth1.yaml#/Phase0/Eth1Data"
eth1_data_votes:
type: array
description: "Fixed length of 1024 items"
items:
$ref: "../phase0/eth1.yaml#/Phase0/Eth1Data"
maxItems: 1024
eth1_deposit_index:
$ref: "../primitive.yaml#/Uint64"
validators:
type: array
description: "Variable length list, maximum 1099511627776 items"
items:
$ref: "../phase0/validator.yaml#/Phase0/Validator"
balances:
type: array
description: "Validator balances in gwei. Variable length list, maximum 1099511627776 items"
items:
$ref: '../primitive.yaml#/Uint64'
randao_mixes:
type: array
description: "Fixed length of 65536 items"
items:
$ref: "../primitive.yaml#/Bytes32"
slashings:
type: array
description: "Per-epoch sums of slashed effective balances. Fixed length of 8192 items"
items:
$ref: "../primitive.yaml#/Uint64"
previous_epoch_participation:
$ref: "../altair/epoch_participation.yaml#/Altair/EpochParticipation"
current_epoch_participation:
$ref: "../altair/epoch_participation.yaml#/Altair/EpochParticipation"
justification_bits:
$ref: "../primitive.yaml#/BitList"
description: "Bit set for every recent justified epoch"
previous_justified_checkpoint:
$ref: "../misc.yaml#/Checkpoint"
current_justified_checkpoint:
$ref: "../misc.yaml#/Checkpoint"
finalized_checkpoint:
$ref: "../misc.yaml#/Checkpoint"
inactivity_scores:
description: "Per-validator inactivity scores. Introduced in Altair. Variable length list, maximum 1099511627776 items"
type: array
items:
$ref: "../primitive.yaml#/Uint64"
current_sync_committee:
$ref: "../altair/sync_committee.yaml#/Altair/SyncCommittee"
next_sync_committee:
$ref: "../altair/sync_committee.yaml#/Altair/SyncCommittee"
latest_execution_payload_header:
$ref: "../deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
next_withdrawal_index:
$ref: "../primitive.yaml#/Uint64"
next_withdrawal_validator_index:
$ref: "../primitive.yaml#/Uint64"
historical_summaries:
type: array
items:
$ref: "../capella/historical_summary.yaml#/Capella/HistoricalSummary"
description: "Variable length list, maximum 16777216 items"
deposit_requests_start_index:
$ref: "../primitive.yaml#/Uint64"
deposit_balance_to_consume:
$ref: "../primitive.yaml#/Gwei"
exit_balance_to_consume:
$ref: "../primitive.yaml#/Gwei"
earliest_exit_epoch:
$ref: "../primitive.yaml#/Uint64"
consolidation_balance_to_consume:
$ref: "../primitive.yaml#/Gwei"
earliest_consolidation_epoch:
$ref: "../primitive.yaml#/Uint64"
pending_deposits:
type: array
items:
$ref: "../electra/deposit.yaml#/Electra/PendingDeposit"
maxItems: 134217728
pending_partial_withdrawals:
type: array
items:
$ref: "../electra/withdrawal.yaml#/Electra/PendingPartialWithdrawal"
maxItems: 134217728
pending_consolidations:
type: array
items:
$ref: "../electra/consolidation.yaml#/Electra/PendingConsolidation"
maxItems: 262144
proposer_lookahead:
type: array
items:
$ref: "../primitive.yaml#/Uint64"
minItems: 64
maxItems: 64