-
Notifications
You must be signed in to change notification settings - Fork 46
/
structs.go
486 lines (430 loc) · 24.1 KB
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
package spectests
type AggregateAndProof struct {
Index uint64 `json:"aggregator_index"`
Aggregate *Attestation `json:"aggregate"`
SelectionProof [96]byte `json:"selection_proof" ssz-size:"96"`
}
type Checkpoint struct {
Epoch uint64 `json:"epoch"`
Root []byte `json:"root" ssz-size:"32"`
}
type Slot uint64 // alias from the same package
type Hash [32]byte
type AttestationData struct {
Slot Slot `json:"slot"`
Index uint64 `json:"index"`
BeaconBlockHash Hash `json:"beacon_block_root" ssz-size:"32"`
Source *Checkpoint `json:"source"`
Target *Checkpoint `json:"target"`
}
type Attestation struct {
AggregationBits []byte `json:"aggregation_bits" ssz:"bitlist" ssz-max:"2048"`
Data *AttestationData `json:"data"`
Signature [96]byte `json:"signature" ssz-size:"96"`
}
type DepositData struct {
Pubkey [48]byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials [32]byte `json:"withdrawal_credentials" ssz-size:"32"`
Amount uint64 `json:"amount"`
Signature []byte `json:"signature" ssz-size:"96"`
Root [32]byte `ssz:"-"`
}
type Deposit struct {
Proof [][]byte `ssz-size:"33,32"`
Data *DepositData
}
type DepositMessage struct {
Pubkey []byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
Amount uint64 `json:"amount"`
}
type IndexedAttestation struct {
AttestationIndices []uint64 `json:"attesting_indices" ssz-max:"2048"`
Data *AttestationData `json:"data"`
Signature []byte `json:"signature" ssz-size:"96"`
}
type PendingAttestation struct {
AggregationBits []byte `json:"aggregation_bits" ssz:"bitlist" ssz-max:"2048"`
Data *AttestationData `json:"data"`
InclusionDelay uint64 `json:"inclusion_delay"`
ProposerIndex uint64 `json:"proposer_index"`
}
type Fork struct {
PreviousVersion []byte `json:"previous_version" ssz-size:"4"`
CurrentVersion []byte `json:"current_version" ssz-size:"4"`
Epoch uint64 `json:"epoch"`
}
type Validator struct {
Pubkey []byte `json:"pubkey" ssz-size:"48"`
WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
EffectiveBalance uint64 `json:"effective_balance"`
Slashed bool `json:"slashed"`
ActivationEligibilityEpoch uint64 `json:"activation_eligibility_epoch"`
ActivationEpoch uint64 `json:"activation_epoch"`
ExitEpoch uint64 `json:"exit_epoch"`
WithdrawableEpoch uint64 `json:"withdrawable_epoch"`
}
type VoluntaryExit struct {
Epoch uint64 `json:"epoch"`
ValidatorIndex uint64 `json:"validator_index"`
}
type SignedVoluntaryExit struct {
Exit *VoluntaryExit `json:"message"`
Signature [96]byte `json:"signature" ssz-size:"96"`
}
type Eth1Block struct {
Timestamp uint64 `json:"timestamp"`
DepositRoot []byte `json:"deposit_root" ssz-size:"32"`
DepositCount uint64 `json:"deposit_count" ssz-size:"32"`
}
type Eth1Data struct {
DepositRoot []byte `json:"deposit_root" ssz-size:"32"`
DepositCount uint64 `json:"deposit_count"`
BlockHash []byte `json:"block_hash" ssz-size:"32"`
}
type SigningRoot struct {
ObjectRoot []byte `json:"object_root" ssz-size:"32"`
Domain []byte `json:"domain" ssz-size:"8"`
}
type HistoricalBatch struct {
BlockRoots [][32]byte `json:"block_roots" ssz-size:"8192,32"`
StateRoots [][32]byte `json:"state_roots" ssz-size:"8192,32"`
}
type ProposerSlashing struct {
Header1 *SignedBeaconBlockHeader `json:"signed_header_1"`
Header2 *SignedBeaconBlockHeader `json:"signed_header_2"`
}
type AttesterSlashing struct {
Attestation1 *IndexedAttestation `json:"attestation_1"`
Attestation2 *IndexedAttestation `json:"attestation_2"`
}
type BeaconBlock struct {
Slot uint64 `json:"slot"`
ProposerIndex uint64 `json:"proposer_index"`
ParentRoot []byte `json:"parent_root" ssz-size:"32"`
StateRoot []byte `json:"state_root" ssz-size:"32"`
Body *BeaconBlockBodyPhase0 `json:"body"`
}
type SignedBeaconBlock struct {
Block *BeaconBlock `json:"message"`
Signature []byte `json:"signature" ssz-size:"96"`
}
type Transfer struct {
Sender uint64 `json:"sender"`
Recipient uint64 `json:"recipient"`
Amount uint64 `json:"amount"`
Fee uint64 `json:"fee"`
Slot uint64 `json:"slot"`
Pubkey []byte `json:"pubkey" ssz-size:"48"`
Signature []byte `json:"signature" ssz-size:"96"`
}
type BeaconState struct {
GenesisTime uint64 `json:"genesis_time"`
GenesisValidatorsRoot []byte `json:"genesis_validators_root" ssz-size:"32"`
Slot uint64 `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots [][]byte `json:"block_roots" ssz-size:"8192,32"`
StateRoots [][]byte `json:"state_roots" ssz-size:"8192,32"`
HistoricalRoots [][]byte `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes" ssz-max:"2048"`
Eth1DepositIndex uint64 `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators" ssz-max:"1099511627776"`
Balances []uint64 `json:"balances" ssz-max:"1099511627776"`
RandaoMixes [][]byte `json:"randao_mixes" ssz-size:"65536,32"`
Slashings []uint64 `json:"slashings" ssz-size:"8192"`
PreviousEpochAttestations []*PendingAttestation `json:"previous_epoch_attestations" ssz-max:"4096"`
CurrentEpochAttestations []*PendingAttestation `json:"current_epoch_attestations" ssz-max:"4096"`
JustificationBits []byte `json:"justification_bits" ssz-size:"1"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
}
type BeaconBlockBodyPhase0 struct {
RandaoReveal []byte `json:"randao_reveal" ssz-size:"96"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti [32]byte `json:"graffiti" ssz-size:"32"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings" ssz-max:"16"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings" ssz-max:"2"`
Attestations []*Attestation `json:"attestations" ssz-max:"128"`
Deposits []*Deposit `json:"deposits" ssz-max:"16"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits" ssz-max:"16"`
}
type BeaconBlockBodyAltair struct {
RandaoReveal []byte `json:"randao_reveal" ssz-size:"96"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti [32]byte `json:"graffiti" ssz-size:"32"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings" ssz-max:"16"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings" ssz-max:"2"`
Attestations []*Attestation `json:"attestations" ssz-max:"128"`
Deposits []*Deposit `json:"deposits" ssz-max:"16"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits" ssz-max:"16"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
}
type BeaconBlockBodyBellatrix struct {
BeaconBlockBodyAltair `json:",squash"`
ExecutionPayload *ExecutionPayload `json:"execution_payload"`
}
type BeaconStateAltair struct {
GenesisTime uint64 `json:"genesis_time"`
GenesisValidatorsRoot []byte `json:"genesis_validators_root" ssz-size:"32"`
Slot uint64 `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots [][]byte `json:"block_roots" ssz-size:"8192,32"`
StateRoots [][]byte `json:"state_roots" ssz-size:"8192,32"`
HistoricalRoots [][]byte `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes" ssz-max:"2048"`
Eth1DepositIndex uint64 `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators" ssz-max:"1099511627776"`
Balances []uint64 `json:"balances" ssz-max:"1099511627776"`
RandaoMixes [][]byte `json:"randao_mixes" ssz-size:"65536,32"`
Slashings []uint64 `json:"slashings" ssz-size:"8192"`
PreviousEpochParticipation []byte `json:"previous_epoch_participation" ssz-max:"1099511627776"`
CurrentEpochParticipation []byte `json:"current_epoch_participation" ssz-max:"1099511627776"`
JustificationBits []byte `json:"justification_bits" cast-type:"github.com/prysmaticlabs/go-bitfield.Bitvector4" ssz-size:"1"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []uint64 `json:"inactivity_scores" ssz-max:"1099511627776"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
}
type BeaconStateBellatrix struct {
GenesisTime uint64 `json:"genesis_time"`
GenesisValidatorsRoot []byte `json:"genesis_validators_root" ssz-size:"32"`
Slot uint64 `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots [][]byte `json:"block_roots" ssz-size:"8192,32"`
StateRoots [][]byte `json:"state_roots" ssz-size:"8192,32"`
HistoricalRoots [][]byte `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes" ssz-max:"2048"`
Eth1DepositIndex uint64 `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators" ssz-max:"1099511627776"`
Balances []uint64 `json:"balances" ssz-max:"1099511627776"`
RandaoMixes [][]byte `json:"randao_mixes" ssz-size:"65536,32"`
Slashings []uint64 `json:"slashings" ssz-size:"8192"`
PreviousEpochParticipation []byte `json:"previous_epoch_participation" ssz-max:"1099511627776"`
CurrentEpochParticipation []byte `json:"current_epoch_participation" ssz-max:"1099511627776"`
JustificationBits []byte `json:"justification_bits" cast-type:"github.com/prysmaticlabs/go-bitfield.Bitvector4" ssz-size:"1"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []uint64 `json:"inactivity_scores" ssz-max:"1099511627776"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeader `json:"latest_execution_payload_header"`
}
type SignedBeaconBlockHeader struct {
Header *BeaconBlockHeader `json:"message"`
Signature []byte `json:"signature" ssz-size:"96"`
}
type BeaconBlockHeader struct {
Slot uint64 `json:"slot"`
ProposerIndex uint64 `json:"proposer_index"`
ParentRoot []byte `json:"parent_root" ssz-size:"32"`
StateRoot []byte `json:"state_root" ssz-size:"32"`
BodyRoot []byte `json:"body_root" ssz-size:"32"`
}
type ErrorResponse struct {
Message []byte `ssz-max:"256"`
}
type Dummy struct{}
type Interface interface{}
type SyncCommittee struct {
PubKeys [][]byte `json:"pubkeys" ssz-size:"512,48"`
AggregatePubKey [48]byte `json:"aggregate_pubkey" ssz-size:"48"`
}
type SyncAggregate struct {
SyncCommiteeBits []byte `json:"sync_committee_bits" ssz-size:"64"`
SyncCommiteeSignature [96]byte `json:"sync_committee_signature" ssz-size:"96"`
}
// bellatrix
type ExecutionPayload struct {
ParentHash [32]byte `ssz-size:"32" json:"parent_hash"`
FeeRecipient [20]byte `ssz-size:"20" json:"fee_recipient"`
StateRoot [32]byte `ssz-size:"32" json:"state_root"`
ReceiptsRoot [32]byte `ssz-size:"32" json:"receipts_root"`
LogsBloom [256]byte `ssz-size:"256" json:"logs_bloom"`
PrevRandao [32]byte `ssz-size:"32" json:"prev_randao"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `ssz-max:"32" json:"extra_data"`
BaseFeePerGas [32]byte `ssz-size:"32" json:"base_fee_per_gas"`
BlockHash [32]byte `ssz-size:"32" json:"block_hash"`
Transactions [][]byte `ssz-max:"1048576,1073741824" ssz-size:"?,?" json:"transactions"`
}
type ExecutionPayloadHeader struct {
ParentHash []byte `json:"parent_hash" ssz-size:"32"`
FeeRecipient []byte `json:"fee_recipient" ssz-size:"20"`
StateRoot []byte `json:"state_root" ssz-size:"32"`
ReceiptsRoot []byte `json:"receipts_root" ssz-size:"32"`
LogsBloom []byte `json:"logs_bloom" ssz-size:"256"`
PrevRandao []byte `json:"prev_randao" ssz-size:"32"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `json:"extra_data" ssz-max:"32"`
BaseFeePerGas []byte `json:"base_fee_per_gas" ssz-size:"32"`
BlockHash []byte `json:"block_hash" ssz-size:"32"`
TransactionsRoot []byte `json:"transactions_root" ssz-size:"32"`
}
// ExecutionPayloadTransactions provides information about transactions.
type ExecutionPayloadTransactions struct {
Transactions [][]byte `ssz-max:"1048576,1073741824" ssz-size:"?,?"`
}
// Capella types
type Uint256 [32]byte
type ExecutionPayloadCapella struct {
ParentHash [32]byte `ssz-size:"32" json:"parent_hash"`
FeeRecipient [20]byte `ssz-size:"20" json:"fee_recipient"`
StateRoot [32]byte `ssz-size:"32" json:"state_root"`
ReceiptsRoot [32]byte `ssz-size:"32" json:"receipts_root"`
LogsBloom [256]byte `ssz-size:"256" json:"logs_bloom"`
PrevRandao [32]byte `ssz-size:"32" json:"prev_randao"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `ssz-max:"32" json:"extra_data"`
BaseFeePerGas Uint256 `ssz-size:"32" json:"base_fee_per_gas"`
BlockHash [32]byte `ssz-size:"32" json:"block_hash"`
Transactions [][]byte `ssz-max:"1048576,1073741824" ssz-size:"?,?" json:"transactions"`
Withdrawals []*Withdrawal `json:"withdrawals" ssz-max:"16"`
}
type ExecutionPayloadHeaderCapella struct {
ParentHash [32]byte `json:"parent_hash" ssz-size:"32"`
FeeRecipient [20]byte `json:"fee_recipient" ssz-size:"20"`
StateRoot [32]byte `json:"state_root" ssz-size:"32"`
ReceiptsRoot [32]byte `json:"receipts_root" ssz-size:"32"`
LogsBloom [256]byte `json:"logs_bloom" ssz-size:"256"`
PrevRandao [32]byte `json:"prev_randao" ssz-size:"32"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `json:"extra_data" ssz-max:"32"`
BaseFeePerGas Uint256 `json:"base_fee_per_gas" ssz-size:"32"`
BlockHash [32]byte `json:"block_hash" ssz-size:"32"`
TransactionsRoot [32]byte `json:"transactions_root" ssz-size:"32"`
WithdrawalRoot [32]byte `json:"withdrawals_root" ssz-size:"32"`
}
type BLSToExecutionChange struct {
ValidatorIndex uint64 `json:"validator_index"`
FromBLSPubKey [48]byte `json:"from_bls_pubkey" ssz-size:"48"`
ToExecutionAddress [20]byte `json:"to_execution_address" ssz-size:"20"`
}
type HistoricalSummary struct {
BlockSummaryRoot [32]byte `json:"block_summary_root" ssz-size:"32"`
StateSummaryRoot [32]byte `json:"state_summary_root" ssz-size:"32"`
}
type SignedBLSToExecutionChange struct {
Message *BLSToExecutionChange `json:"message"`
Signature [96]byte `json:"signature" ssz-size:"96"`
}
type Withdrawal struct {
Index uint64 `json:"index"`
ValidatorIndex uint64 `json:"validator_index"`
Address [20]byte `json:"address" ssz-size:"20"`
Amount uint64 `json:"amount"`
}
type BeaconStateCapella struct {
GenesisTime uint64 `json:"genesis_time"`
GenesisValidatorsRoot [32]byte `json:"genesis_validators_root" ssz-size:"32"`
Slot uint64 `json:"slot"`
Fork *Fork `json:"fork"`
LatestBlockHeader *BeaconBlockHeader `json:"latest_block_header"`
BlockRoots [8192][32]byte `json:"block_roots" ssz-size:"8192,32"`
StateRoots [8192][32]byte `json:"state_roots" ssz-size:"8192,32"`
HistoricalRoots [][]byte `json:"historical_roots" ssz-max:"16777216" ssz-size:"?,32"`
Eth1Data *Eth1Data `json:"eth1_data"`
Eth1DataVotes []*Eth1Data `json:"eth1_data_votes" ssz-max:"2048"`
Eth1DepositIndex uint64 `json:"eth1_deposit_index"`
Validators []*Validator `json:"validators" ssz-max:"1099511627776"`
Balances []uint64 `json:"balances" ssz-max:"1099511627776"`
RandaoMixes [65536][32]byte `json:"randao_mixes" ssz-size:"65536,32"`
Slashings []uint64 `json:"slashings" ssz-size:"8192"`
PreviousEpochParticipation []byte `json:"previous_epoch_participation" ssz-max:"1099511627776"`
CurrentEpochParticipation []byte `json:"current_epoch_participation" ssz-max:"1099511627776"`
JustificationBits [1]byte `json:"justification_bits" ssz-size:"1"`
PreviousJustifiedCheckpoint *Checkpoint `json:"previous_justified_checkpoint"`
CurrentJustifiedCheckpoint *Checkpoint `json:"current_justified_checkpoint"`
FinalizedCheckpoint *Checkpoint `json:"finalized_checkpoint"`
InactivityScores []uint64 `json:"inactivity_scores" ssz-max:"1099511627776"`
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
NextSyncCommittee *SyncCommittee `json:"next_sync_committee"`
LatestExecutionPayloadHeader *ExecutionPayloadHeaderCapella `json:"latest_execution_payload_header"`
NextWithdrawalIndex uint64 `json:"next_withdrawal_index"`
NextWithdrawalValidatorIndex uint64 `json:"next_withdrawal_validator_index"`
HistoricalSummaries []*HistoricalSummary `json:"historical_summaries" ssz-max:"16777216"`
}
type SignedBeaconBlockCapella struct {
Block *BeaconBlockCapella `json:"message"`
Signature []byte `json:"signature" ssz-size:"96"`
}
type BeaconBlockCapella struct {
Slot uint64 `json:"slot"`
ProposerIndex uint64 `json:"proposer_index"`
ParentRoot [32]byte `json:"parent_root" ssz-size:"32"`
StateRoot [32]byte `json:"state_root" ssz-size:"32"`
Body *BeaconBlockBodyCapella `json:"body"`
}
type BeaconBlockBodyCapella struct {
RandaoReveal []byte `json:"randao_reveal" ssz-size:"96"`
Eth1Data *Eth1Data `json:"eth1_data"`
Graffiti [32]byte `json:"graffiti" ssz-size:"32"`
ProposerSlashings []*ProposerSlashing `json:"proposer_slashings" ssz-max:"16"`
AttesterSlashings []*AttesterSlashing `json:"attester_slashings" ssz-max:"2"`
Attestations []*Attestation `json:"attestations" ssz-max:"128"`
Deposits []*Deposit `json:"deposits" ssz-max:"16"`
VoluntaryExits []*SignedVoluntaryExit `json:"voluntary_exits" ssz-max:"16"`
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
ExecutionPayload *ExecutionPayloadCapella `json:"execution_payload"`
BlsToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes" ssz-max:"16"`
}
// -- deneb --
type ExecutionPayloadDeneb struct {
ParentHash [32]byte `ssz-size:"32" json:"parent_hash"`
FeeRecipient [20]byte `ssz-size:"20" json:"fee_recipient"`
StateRoot [32]byte `ssz-size:"32" json:"state_root"`
ReceiptsRoot [32]byte `ssz-size:"32" json:"receipts_root"`
LogsBloom [256]byte `ssz-size:"256" json:"logs_bloom"`
PrevRandao [32]byte `ssz-size:"32" json:"prev_randao"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `ssz-max:"32" json:"extra_data"`
BaseFeePerGas Uint256 `ssz-size:"32" json:"base_fee_per_gas"`
BlockHash [32]byte `ssz-size:"32" json:"block_hash"`
Transactions [][]byte `ssz-max:"1048576,1073741824" ssz-size:"?,?" json:"transactions"`
Withdrawals []*Withdrawal `json:"withdrawals" ssz-max:"16"`
BlobGasUsed uint64 `json:"blob_gas_used"`
ExcessBlobGas uint64 `json:"excess_blob_gas"`
}
type ExecutionPayloadHeaderDeneb struct {
ParentHash [32]byte `json:"parent_hash" ssz-size:"32"`
FeeRecipient [20]byte `json:"fee_recipient" ssz-size:"20"`
StateRoot [32]byte `json:"state_root" ssz-size:"32"`
ReceiptsRoot [32]byte `json:"receipts_root" ssz-size:"32"`
LogsBloom [256]byte `json:"logs_bloom" ssz-size:"256"`
PrevRandao [32]byte `json:"prev_randao" ssz-size:"32"`
BlockNumber uint64 `json:"block_number"`
GasLimit uint64 `json:"gas_limit"`
GasUsed uint64 `json:"gas_used"`
Timestamp uint64 `json:"timestamp"`
ExtraData []byte `json:"extra_data" ssz-max:"32"`
BaseFeePerGas Uint256 `json:"base_fee_per_gas" ssz-size:"32"`
BlockHash [32]byte `json:"block_hash" ssz-size:"32"`
TransactionsRoot [32]byte `json:"transactions_root" ssz-size:"32"`
WithdrawalRoot [32]byte `json:"withdrawals_root" ssz-size:"32"`
BlobGasUsed uint64 `json:"blob_gas_used"`
ExcessBlobGas uint64 `json:"excess_blob_gas"`
}