1
1
# beacon_chain
2
- # Copyright (c) 2024 Status Research & Development GmbH
2
+ # Copyright (c) 2024-2025 Status Research & Development GmbH
3
3
# Licensed and distributed under either of
4
4
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
5
5
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
20
20
ssz_serialization/ [merkleization, proofs],
21
21
ssz_serialization/ types as sszTypes,
22
22
kzg4844/ [kzg, kzg_abi],
23
- std/ typetraits,
24
23
chronicles,
25
24
../ digest,
26
25
" ." / [base, phase0, electra],
@@ -36,11 +35,6 @@ from ./capella import
36
35
ExecutionBranch , HistoricalSummary , SignedBLSToExecutionChangeList ,
37
36
Withdrawal , EXECUTION_PAYLOAD_GINDEX
38
37
from ./ deneb import Blobs , BlobsBundle , KzgCommitments , KzgProofs
39
- from ./ electra import
40
- PendingDeposit , PendingPartialWithdrawal ,
41
- PendingConsolidation , ExecutionPayload , Attestation , TrustedAttestation ,
42
- ElectraCommitteeValidatorsBits ,AttesterSlashing , AttestationCommitteeBits ,
43
- FINALIZED_ROOT_GINDEX_ELECTRA , ExecutionRequests
44
38
45
39
export json_serialization, base, kzg4844
46
40
@@ -130,16 +124,16 @@ const
130
124
PTC_SIZE * = 512
131
125
132
126
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/_features/eip7732/beacon-chain.md#max-operations-per-block
133
- MAX_PAYLOAD_ATTESTATIONS = 4
127
+ MAX_PAYLOAD_ATTESTATIONS * = 4
134
128
type
135
129
136
130
PTCStatus * = distinct uint64
137
131
138
132
# https://github.com/ethereum/consensus-specs/blob/dev/specs/_features/eip7732/beacon-chain.md#payloadattestationdata
139
133
PayloadAttestationData * = object
140
- beaconBlockRoot * : Eth2Digest
134
+ beacon_block_root * : Eth2Digest
141
135
slot* : Slot
142
- payload_Status * : uint8
136
+ payload_status * : uint8
143
137
144
138
# https://github.com/ethereum/consensus-specs/blob/dev/specs/_features/eip7732/beacon-chain.md#payloadattestation
145
139
PayloadAttestation * = object
155
149
156
150
# https://github.com/ethereum/consensus-specs/blob/dev/specs/_features/eip7732/beacon-chain.md#indexedpayloadattestation
157
151
IndexedPayloadAttestation * = object
158
- attestingIndices * : List [ValidatorIndex , Limit PTC_SIZE ]
152
+ attesting_indices * : List [ValidatorIndex , Limit PTC_SIZE ]
159
153
data* : PayloadAttestationData
160
154
signature* : ValidatorSig
161
155
@@ -630,9 +624,9 @@ func initHashedBeaconState*(s: BeaconState): HashedBeaconState =
630
624
631
625
func shortLog * (v: PayloadAttestationData ): auto =
632
626
(
633
- beaconBlockRoot : shortLog (v.beaconBlockRoot ),
627
+ beacon_block_root : shortLog (v.beacon_block_root ),
634
628
slot: shortLog (v.slot),
635
- payload_Status : $ v.payload_Status
629
+ payload_status : $ v.payload_status
636
630
)
637
631
638
632
func shortLog * (v: SomeBeaconBlock ): auto =
0 commit comments