Skip to content

Commit 589e29b

Browse files
committed
Update for v1.7.0-alpha.1
1 parent 8fb2b9c commit 589e29b

File tree

7 files changed

+1348
-613
lines changed

7 files changed

+1348
-613
lines changed

specrefs/.ethspecify.yml

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: v1.6.1
1+
version: v1.7.0-alpha.1
22
style: full
33

44
specrefs:
@@ -72,8 +72,6 @@ exceptions:
7272
- BUILDER_PAYMENT_THRESHOLD_DENOMINATOR#gloas
7373
- BUILDER_PAYMENT_THRESHOLD_NUMERATOR#gloas
7474
- BUILDER_WITHDRAWAL_PREFIX#gloas
75-
- DOMAIN_BEACON_BUILDER#gloas
76-
- DOMAIN_PTC_ATTESTER#gloas
7775
- PAYLOAD_STATUS_EMPTY#gloas
7876
- PAYLOAD_STATUS_FULL#gloas
7977
- PAYLOAD_STATUS_PENDING#gloas
@@ -97,8 +95,6 @@ exceptions:
9795
# Not implemented: gloas
9896
- BeaconBlockBody#gloas
9997
- BeaconState#gloas
100-
- BuilderPendingPayment#gloas
101-
- BuilderPendingWithdrawal#gloas
10298
- DataColumnSidecar#gloas
10399
- ExecutionPayloadBid#gloas
104100
- ExecutionPayloadEnvelope#gloas
@@ -108,8 +104,10 @@ exceptions:
108104
- PayloadAttestation#gloas
109105
- PayloadAttestationData#gloas
110106
- PayloadAttestationMessage#gloas
107+
- ProposerPreferences#gloas
111108
- SignedExecutionPayloadBid#gloas
112109
- SignedExecutionPayloadEnvelope#gloas
110+
- SignedProposerPreferences#gloas
113111

114112
dataclasses:
115113
# Not implemented: phase0
@@ -122,9 +120,14 @@ exceptions:
122120
- OptimisticStore#bellatrix
123121

124122
# Not implemented: capella
123+
- ExpectedWithdrawals#capella
125124
- LightClientStore#capella
126125

126+
# Not implemented: electra
127+
- ExpectedWithdrawals#electra
128+
127129
# Not implemented: gloas
130+
- ExpectedWithdrawals#gloas
128131
- LatestMessage#gloas
129132
- Store#gloas
130133

@@ -187,6 +190,7 @@ exceptions:
187190
- bytes_to_uint64#phase0
188191
- check_if_validator_active#phase0
189192
- compute_new_state_root#phase0
193+
- compute_proposer_score#phase0
190194
- compute_pulled_up_tip#phase0
191195
- compute_subscribed_subnet#phase0
192196
- compute_subscribed_subnets#phase0
@@ -200,6 +204,7 @@ exceptions:
200204
- get_attestation_component_deltas#phase0
201205
- get_attestation_deltas#phase0
202206
- get_attestation_due_ms#phase0
207+
- get_attestation_score#phase0
203208
- get_attestation_signature#phase0
204209
- get_attesting_balance#phase0
205210
- get_block_signature#phase0
@@ -239,6 +244,7 @@ exceptions:
239244
- is_head_weak#phase0
240245
- is_parent_strong#phase0
241246
- is_proposer#phase0
247+
- is_proposer_equivocation#phase0
242248
- is_proposing_on_time#phase0
243249
- is_shuffling_stable#phase0
244250
- is_slashable_attestation_data#phase0
@@ -247,10 +253,12 @@ exceptions:
247253
- is_within_weak_subjectivity_period#phase0
248254
- on_tick_per_slot#phase0
249255
- process_slots#phase0
256+
- record_block_timeliness#phase0
250257
- seconds_to_milliseconds#phase0
251258
- state_transition#phase0
252259
- store_target_checkpoint_state#phase0
253260
- update_latest_messages#phase0
261+
- update_proposer_boost_root#phase0
254262
- update_unrealized_checkpoints#phase0
255263
- voting_period_start_time#phase0
256264
- xor#phase0
@@ -306,8 +314,13 @@ exceptions:
306314
- should_override_forkchoice_update#bellatrix
307315

308316
# Not implemented: capella
317+
- apply_withdrawals#capella
318+
- get_balance_after_withdrawals#capella
309319
- get_lc_execution_root#capella
320+
- get_validators_sweep_withdrawals#capella
310321
- is_valid_light_client_header#capella
322+
- update_next_withdrawal_index#capella
323+
- update_next_withdrawal_validator_index#capella
311324
- upgrade_lc_bootstrap_to_capella#capella
312325
- upgrade_lc_finality_update_to_capella#capella
313326
- upgrade_lc_header_to_capella#capella
@@ -340,12 +353,16 @@ exceptions:
340353
- get_eth1_vote#electra
341354
- get_execution_requests#electra
342355
- get_lc_execution_root#electra
356+
- get_pending_partial_withdrawals#electra
343357
- get_validator_from_deposit#electra
358+
- get_validators_sweep_withdrawals#electra
359+
- is_eligible_for_partial_withdrawals#electra
344360
- is_within_weak_subjectivity_period#electra
345361
- next_sync_committee_gindex_at_slot#electra
346362
- normalize_merkle_branch#electra
347363
- process_pending_deposits#electra
348364
- process_voluntary_exit#electra
365+
- update_pending_partial_withdrawals#electra
349366
- upgrade_lc_bootstrap_to_electra#electra
350367
- upgrade_lc_finality_update_to_electra#electra
351368
- upgrade_lc_header_to_electra#electra
@@ -360,14 +377,24 @@ exceptions:
360377
- get_data_column_sidecars_from_column_sidecar#fulu
361378

362379
# Not implemented: gloas
380+
- add_builder_to_registry#gloas
381+
- apply_deposit_for_builder#gloas
382+
- apply_withdrawals#gloas
383+
- can_builder_cover_bid#gloas
363384
- compute_balance_weighted_acceptance#gloas
364385
- compute_balance_weighted_selection#gloas
365386
- compute_proposer_indices#gloas
387+
- convert_builder_index_to_validator_index#gloas
388+
- convert_validator_index_to_builder_index#gloas
366389
- get_aggregate_due_ms#gloas
367390
- get_ancestor#gloas
368391
- get_attestation_due_ms#gloas
369392
- get_attestation_participation_flag_indices#gloas
393+
- get_attestation_score#gloas
394+
- get_builder_from_deposit#gloas
370395
- get_builder_payment_quorum_threshold#gloas
396+
- get_builder_withdrawals#gloas
397+
- get_builders_sweep_withdrawals#gloas
371398
- get_checkpoint_block#gloas
372399
- get_contribution_due_ms#gloas
373400
- get_data_column_sidecars#gloas
@@ -378,6 +405,7 @@ exceptions:
378405
- get_expected_withdrawals#gloas
379406
- get_forkchoice_store#gloas
380407
- get_head#gloas
408+
- get_index_for_new_builder#gloas
381409
- get_indexed_payload_attestation#gloas
382410
- get_next_sync_committee_indices#gloas
383411
- get_node_children#gloas
@@ -386,21 +414,29 @@ exceptions:
386414
- get_payload_attestation_message_signature#gloas
387415
- get_payload_status_tiebreaker#gloas
388416
- get_pending_balance_to_withdraw#gloas
417+
- get_pending_balance_to_withdraw_for_builder#gloas
418+
- get_proposer_preferences_signature#gloas
389419
- get_ptc#gloas
390420
- get_ptc_assignment#gloas
391421
- get_sync_message_due_ms#gloas
422+
- get_upcoming_proposal_slots#gloas
392423
- get_weight#gloas
393-
- has_builder_withdrawal_credential#gloas
394424
- has_compounding_withdrawal_credential#gloas
425+
- initiate_builder_exit#gloas
426+
- is_active_builder#gloas
395427
- is_attestation_same_slot#gloas
396-
- is_builder_payment_withdrawable#gloas
428+
- is_builder_index#gloas
397429
- is_builder_withdrawal_credential#gloas
430+
- is_head_late#gloas
431+
- is_head_weak#gloas
398432
- is_merge_transition_complete#gloas
399433
- is_parent_block_full#gloas
400434
- is_parent_node_full#gloas
435+
- is_parent_strong#gloas
401436
- is_payload_timely#gloas
402437
- is_supporting_vote#gloas
403438
- is_valid_indexed_payload_attestation#gloas
439+
- is_valid_proposal_slot#gloas
404440
- notify_ptc_messages#gloas
405441
- on_block#gloas
406442
- on_execution_payload#gloas
@@ -409,26 +445,28 @@ exceptions:
409445
- process_attestation#gloas
410446
- process_block#gloas
411447
- process_builder_pending_payments#gloas
448+
- process_deposit_request#gloas
412449
- process_epoch#gloas
413450
- process_execution_payload#gloas
414451
- process_execution_payload_bid#gloas
415452
- process_operations#gloas
416453
- process_payload_attestation#gloas
417454
- process_proposer_slashing#gloas
418455
- process_slot#gloas
456+
- process_voluntary_exit#gloas
419457
- process_withdrawals#gloas
458+
- record_block_timeliness#gloas
459+
- should_apply_proposer_boost#gloas
420460
- should_extend_payload#gloas
461+
- update_builder_pending_withdrawals#gloas
421462
- update_latest_messages#gloas
463+
- update_next_withdrawal_builder_index#gloas
464+
- update_payload_expected_withdrawals#gloas
465+
- update_proposer_boost_root#gloas
422466
- upgrade_to_gloas#gloas
423467
- validate_merge_block#gloas
424468
- validate_on_attestation#gloas
425469
- verify_data_column_sidecar#gloas
426470
- verify_data_column_sidecar_inclusion_proof#gloas
427471
- verify_execution_payload_bid_signature#gloas
428472
- verify_execution_payload_envelope_signature#gloas
429-
430-
presets:
431-
# Not implemented: gloas
432-
- BUILDER_PENDING_WITHDRAWALS_LIMIT#gloas
433-
- MAX_PAYLOAD_ATTESTATIONS#gloas
434-
- PTC_SIZE#gloas

specrefs/configs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
- name: ATTESTATION_DUE_BPS#phase0
4545
sources:
4646
- file: common/eth2_network_config/built_in_network_configs/mainnet/config.yaml
47-
search: ATTESTATION_DUE_BPS:
47+
search: '^ATTESTATION_DUE_BPS:'
48+
regex: true
4849
- file: consensus/types/src/core/chain_spec.rs
4950
search: 'pub fn mainnet\(\).*\n(?:.*\n)*?.*attestation_due_bps:'
5051
regex: true
@@ -607,6 +608,15 @@
607608
MESSAGE_DOMAIN_VALID_SNAPPY: DomainType = '0x01000000'
608609
</spec>
609610
611+
- name: MIN_BUILDER_WITHDRAWABILITY_DELAY#gloas
612+
sources:
613+
- file: common/eth2_network_config/built_in_network_configs/mainnet/config.yaml
614+
search: MIN_BUILDER_WITHDRAWABILITY_DELAY:
615+
spec: |
616+
<spec config_var="MIN_BUILDER_WITHDRAWABILITY_DELAY" fork="gloas" hash="d378428f">
617+
MIN_BUILDER_WITHDRAWABILITY_DELAY: uint64 = 4096
618+
</spec>
619+
610620
- name: MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS#deneb
611621
sources:
612622
- file: common/eth2_network_config/built_in_network_configs/mainnet/config.yaml

specrefs/constants.yml

Lines changed: 65 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
- name: ATTESTATION_TIMELINESS_INDEX#gloas
2+
sources:
3+
- file: consensus/types/src/core/consts.rs
4+
search: pub const ATTESTATION_TIMELINESS_INDEX:
5+
spec: |
6+
<spec constant_var="ATTESTATION_TIMELINESS_INDEX" fork="gloas" hash="7d373fc8">
7+
ATTESTATION_TIMELINESS_INDEX = 0
8+
</spec>
9+
110
- name: BASE_REWARDS_PER_EPOCH#phase0
211
sources:
312
- file: consensus/types/src/core/chain_spec.rs
@@ -32,6 +41,24 @@
3241
BLS_WITHDRAWAL_PREFIX: Bytes1 = '0x00'
3342
</spec>
3443
44+
- name: BUILDER_INDEX_FLAG#gloas
45+
sources:
46+
- file: consensus/types/src/core/consts.rs
47+
search: pub const BUILDER_INDEX_FLAG:
48+
spec: |
49+
<spec constant_var="BUILDER_INDEX_FLAG" fork="gloas" hash="e9dca70d">
50+
BUILDER_INDEX_FLAG: uint64 = 2**40
51+
</spec>
52+
53+
- name: BUILDER_INDEX_SELF_BUILD#gloas
54+
sources:
55+
- file: consensus/types/src/core/consts.rs
56+
search: pub const BUILDER_INDEX_SELF_BUILD:
57+
spec: |
58+
<spec constant_var="BUILDER_INDEX_SELF_BUILD" fork="gloas" hash="622fd1b5">
59+
BUILDER_INDEX_SELF_BUILD: BuilderIndex = UINT64_MAX
60+
</spec>
61+
3562
- name: BUILDER_PAYMENT_THRESHOLD_DENOMINATOR#gloas
3663
sources: []
3764
spec: |
@@ -139,10 +166,13 @@
139166
</spec>
140167
141168
- name: DOMAIN_BEACON_BUILDER#gloas
142-
sources: []
169+
sources:
170+
- file: consensus/types/src/core/chain_spec.rs
171+
search: 'pub fn mainnet\(\).*\n(?:.*\n)*?.*domain_beacon_builder:'
172+
regex: true
143173
spec: |
144-
<spec constant_var="DOMAIN_BEACON_BUILDER" fork="gloas" hash="31821111">
145-
DOMAIN_BEACON_BUILDER: DomainType = '0x1B000000'
174+
<spec constant_var="DOMAIN_BEACON_BUILDER" fork="gloas" hash="76709e39">
175+
DOMAIN_BEACON_BUILDER: DomainType = '0x0B000000'
146176
</spec>
147177
148178
- name: DOMAIN_BEACON_PROPOSER#phase0
@@ -185,8 +215,21 @@
185215
DOMAIN_DEPOSIT: DomainType = '0x03000000'
186216
</spec>
187217
218+
- name: DOMAIN_PROPOSER_PREFERENCES#gloas
219+
sources:
220+
- file: consensus/types/src/core/chain_spec.rs
221+
search: 'pub fn mainnet\(\).*\n(?:.*\n)*?.*domain_proposer_preferences:'
222+
regex: true
223+
spec: |
224+
<spec constant_var="DOMAIN_PROPOSER_PREFERENCES" fork="gloas" hash="9377ecfb">
225+
DOMAIN_PROPOSER_PREFERENCES: DomainType = '0x0D000000'
226+
</spec>
227+
188228
- name: DOMAIN_PTC_ATTESTER#gloas
189-
sources: []
229+
sources:
230+
- file: consensus/types/src/core/chain_spec.rs
231+
search: 'pub fn mainnet\(\).*\n(?:.*\n)*?.*domain_ptc_attester:'
232+
regex: true
190233
spec: |
191234
<spec constant_var="DOMAIN_PTC_ATTESTER" fork="gloas" hash="4feba202">
192235
DOMAIN_PTC_ATTESTER: DomainType = '0x0C000000'
@@ -324,15 +367,6 @@
324367
GENESIS_SLOT: Slot = 0
325368
</spec>
326369
327-
- name: INTERVALS_PER_SLOT#phase0
328-
sources:
329-
- file: consensus/types/src/core/consts.rs
330-
search: pub const INTERVALS_PER_SLOT:
331-
spec: |
332-
<spec constant_var="INTERVALS_PER_SLOT" fork="phase0" hash="3352e419">
333-
INTERVALS_PER_SLOT: uint64 = 3
334-
</spec>
335-
336370
- name: JUSTIFICATION_BITS_LENGTH#phase0
337371
sources: []
338372
spec: |
@@ -382,6 +416,15 @@
382416
NODE_ID_BITS = 256
383417
</spec>
384418
419+
- name: NUM_BLOCK_TIMELINESS_DEADLINES#gloas
420+
sources:
421+
- file: consensus/types/src/core/consts.rs
422+
search: pub const NUM_BLOCK_TIMELINESS_DEADLINES:
423+
spec: |
424+
<spec constant_var="NUM_BLOCK_TIMELINESS_DEADLINES" fork="gloas" hash="c4e721d9">
425+
NUM_BLOCK_TIMELINESS_DEADLINES = 2
426+
</spec>
427+
385428
- name: PARTICIPATION_FLAG_WEIGHTS#altair
386429
sources:
387430
- file: consensus/types/src/core/consts.rs
@@ -428,6 +471,15 @@
428471
PROPOSER_WEIGHT: uint64 = 8
429472
</spec>
430473
474+
- name: PTC_TIMELINESS_INDEX#gloas
475+
sources:
476+
- file: consensus/types/src/core/consts.rs
477+
search: pub const PTC_TIMELINESS_INDEX:
478+
spec: |
479+
<spec constant_var="PTC_TIMELINESS_INDEX" fork="gloas" hash="ffca13bd">
480+
PTC_TIMELINESS_INDEX = 1
481+
</spec>
482+
431483
- name: RANDOM_CHALLENGE_KZG_BATCH_DOMAIN#deneb
432484
sources: []
433485
spec: |

0 commit comments

Comments
 (0)