Skip to content

Commit 339eea9

Browse files
authored
Add beacon state for fulu with proposer_lookahead field (#565)
* Add beacon state for fulu with proposer_lookahead field * Fix DataColumnSidecar ref
1 parent ee44b49 commit 339eea9

File tree

4 files changed

+131
-1
lines changed

4 files changed

+131
-1
lines changed

apis/debug/state.v2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ get:
3434
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Finalized"
3535
data:
3636
anyOf:
37+
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Fulu.BeaconState"
3738
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Electra.BeaconState"
3839
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BeaconState"
3940
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BeaconState"

beacon-node-oapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ components:
425425
$ref: './types/electra/consolidation.yaml#/Electra/PendingConsolidation'
426426
Electra.PendingPartialWithdrawal:
427427
$ref: './types/electra/withdrawal.yaml#/Electra/PendingPartialWithdrawal'
428+
Fulu.BeaconState:
429+
$ref: './types/fulu/state.yaml#/Fulu/BeaconState'
428430
Fulu.BlockContents:
429431
$ref: "./types/fulu/block_contents.yaml#/Fulu/BlockContents"
430432
Fulu.SignedBlockContents:

types/fulu/data_column_sidecar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Fulu:
2121

2222
DataColumnSidecar:
2323
type: object
24-
description: "A [`DataColumnSidecar`](https://github.com/ethereum/consensus-specs/blob/dev/specs/fulu/das-core.md#datacolumnsidecar) as defined in the Fulu consensus spec."
24+
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."
2525
required: [index, column, kzg_commitments, kzg_proofs, signed_block_header, kzg_commitments_inclusion_proof]
2626
properties:
2727
index:

types/fulu/state.yaml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
Fulu:
2+
BeaconState:
3+
type: object
4+
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."
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, proposer_lookahead]
6+
properties:
7+
genesis_time:
8+
$ref: "../primitive.yaml#/Uint64"
9+
genesis_validators_root:
10+
$ref: "../primitive.yaml#/Root"
11+
slot:
12+
$ref: "../primitive.yaml#/Uint64"
13+
fork:
14+
$ref: "../misc.yaml#/Fork"
15+
latest_block_header:
16+
$ref: "../phase0/block.yaml#/Phase0/BeaconBlockHeader"
17+
block_roots:
18+
type: array
19+
description: "Fixed length of 8192 items"
20+
items:
21+
$ref: "../primitive.yaml#/Root"
22+
state_roots:
23+
type: array
24+
description: "Fixed length of 8192 items"
25+
items:
26+
$ref: "../primitive.yaml#/Root"
27+
historical_roots:
28+
type: array
29+
description: "Variable length list, maximum 16777216 items. Frozen in Capella, replaced by historical_summaries."
30+
items:
31+
$ref: "../primitive.yaml#/Root"
32+
eth1_data:
33+
$ref: "../phase0/eth1.yaml#/Phase0/Eth1Data"
34+
eth1_data_votes:
35+
type: array
36+
description: "Fixed length of 1024 items"
37+
items:
38+
$ref: "../phase0/eth1.yaml#/Phase0/Eth1Data"
39+
maxItems: 1024
40+
eth1_deposit_index:
41+
$ref: "../primitive.yaml#/Uint64"
42+
validators:
43+
type: array
44+
description: "Variable length list, maximum 1099511627776 items"
45+
items:
46+
$ref: "../phase0/validator.yaml#/Phase0/Validator"
47+
balances:
48+
type: array
49+
description: "Validator balances in gwei. Variable length list, maximum 1099511627776 items"
50+
items:
51+
$ref: '../primitive.yaml#/Uint64'
52+
randao_mixes:
53+
type: array
54+
description: "Fixed length of 65536 items"
55+
items:
56+
$ref: "../primitive.yaml#/Bytes32"
57+
slashings:
58+
type: array
59+
description: "Per-epoch sums of slashed effective balances. Fixed length of 8192 items"
60+
items:
61+
$ref: "../primitive.yaml#/Uint64"
62+
previous_epoch_participation:
63+
$ref: "../altair/epoch_participation.yaml#/Altair/EpochParticipation"
64+
current_epoch_participation:
65+
$ref: "../altair/epoch_participation.yaml#/Altair/EpochParticipation"
66+
justification_bits:
67+
$ref: "../primitive.yaml#/BitList"
68+
description: "Bit set for every recent justified epoch"
69+
previous_justified_checkpoint:
70+
$ref: "../misc.yaml#/Checkpoint"
71+
current_justified_checkpoint:
72+
$ref: "../misc.yaml#/Checkpoint"
73+
finalized_checkpoint:
74+
$ref: "../misc.yaml#/Checkpoint"
75+
inactivity_scores:
76+
description: "Per-validator inactivity scores. Introduced in Altair. Variable length list, maximum 1099511627776 items"
77+
type: array
78+
items:
79+
$ref: "../primitive.yaml#/Uint64"
80+
current_sync_committee:
81+
$ref: "../altair/sync_committee.yaml#/Altair/SyncCommittee"
82+
next_sync_committee:
83+
$ref: "../altair/sync_committee.yaml#/Altair/SyncCommittee"
84+
latest_execution_payload_header:
85+
$ref: "../deneb/execution_payload.yaml#/Deneb/ExecutionPayloadHeader"
86+
next_withdrawal_index:
87+
$ref: "../primitive.yaml#/Uint64"
88+
next_withdrawal_validator_index:
89+
$ref: "../primitive.yaml#/Uint64"
90+
historical_summaries:
91+
type: array
92+
items:
93+
$ref: "../capella/historical_summary.yaml#/Capella/HistoricalSummary"
94+
description: "Variable length list, maximum 16777216 items"
95+
deposit_requests_start_index:
96+
$ref: "../primitive.yaml#/Uint64"
97+
deposit_balance_to_consume:
98+
$ref: "../primitive.yaml#/Gwei"
99+
exit_balance_to_consume:
100+
$ref: "../primitive.yaml#/Gwei"
101+
earliest_exit_epoch:
102+
$ref: "../primitive.yaml#/Uint64"
103+
consolidation_balance_to_consume:
104+
$ref: "../primitive.yaml#/Gwei"
105+
earliest_consolidation_epoch:
106+
$ref: "../primitive.yaml#/Uint64"
107+
pending_deposits:
108+
type: array
109+
items:
110+
$ref: "../electra/deposit.yaml#/Electra/PendingDeposit"
111+
maxItems: 134217728
112+
pending_partial_withdrawals:
113+
type: array
114+
items:
115+
$ref: "../electra/withdrawal.yaml#/Electra/PendingPartialWithdrawal"
116+
maxItems: 134217728
117+
pending_consolidations:
118+
type: array
119+
items:
120+
$ref: "../electra/consolidation.yaml#/Electra/PendingConsolidation"
121+
maxItems: 262144
122+
proposer_lookahead:
123+
type: array
124+
items:
125+
$ref: "../primitive.yaml#/Uint64"
126+
minItems: 64
127+
maxItems: 64

0 commit comments

Comments
 (0)