2022-01-24 20:15:22 +00:00
|
|
|
# beacon_chain
|
2023-01-10 11:26:25 +00:00
|
|
|
# Copyright (c) 2022-2023 Status Research & Development GmbH
|
2022-01-24 20:15:22 +00:00
|
|
|
# Licensed and distributed under either of
|
|
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
2023-01-20 14:14:37 +00:00
|
|
|
{.push raises: [].}
|
2022-02-27 16:55:02 +00:00
|
|
|
|
2023-08-08 00:05:17 +00:00
|
|
|
from ../datatypes/base import Eth1Data
|
2022-05-08 22:42:21 +00:00
|
|
|
|
2023-08-06 09:20:43 +00:00
|
|
|
type
|
2022-05-17 13:56:19 +00:00
|
|
|
BlindedBeaconBlock* = object
|
|
|
|
SignedBlindedBeaconBlock* = object
|
|
|
|
|
2022-08-19 21:51:30 +00:00
|
|
|
func shortLog*(v: BlindedBeaconBlock): auto =
|
|
|
|
(
|
2023-08-06 09:20:43 +00:00
|
|
|
slot: 0'u64,
|
|
|
|
proposer_index: 0'u64,
|
|
|
|
parent_root: "",
|
|
|
|
state_root: "",
|
2023-08-05 05:13:08 +00:00
|
|
|
eth1data: default(Eth1Data),
|
2023-08-08 00:05:17 +00:00
|
|
|
graffiti: "",
|
2023-08-05 05:13:08 +00:00
|
|
|
proposer_slashings_len: 0,
|
|
|
|
attester_slashings_len: 0,
|
|
|
|
attestations_len: 0,
|
|
|
|
deposits_len: 0,
|
|
|
|
voluntary_exits_len: 0,
|
|
|
|
sync_committee_participants: 0,
|
|
|
|
block_number: 0'u64,
|
2023-12-10 00:25:51 +00:00
|
|
|
block_hash: "",
|
|
|
|
parent_hash: "",
|
2023-08-05 05:13:08 +00:00
|
|
|
fee_recipient: "",
|
2023-05-13 04:29:46 +00:00
|
|
|
bls_to_execution_changes_len: 0, # Capella compat
|
2023-05-11 00:36:35 +00:00
|
|
|
blob_kzg_commitments_len: 0, # Deneb compat
|
2022-08-19 21:51:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func shortLog*(v: SignedBlindedBeaconBlock): auto =
|
|
|
|
(
|
2023-08-08 00:05:17 +00:00
|
|
|
blck: shortLog(default(BlindedBeaconBlock)),
|
|
|
|
signature: ""
|
2022-08-19 21:51:30 +00:00
|
|
|
)
|