From 0075655079f2c0887a6deb216472b0aa4647256f Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 26 Jul 2024 13:05:42 +0200 Subject: [PATCH] add missing `stable_mev` file --- beacon_chain/spec/mev/stable_mev.nim | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 beacon_chain/spec/mev/stable_mev.nim diff --git a/beacon_chain/spec/mev/stable_mev.nim b/beacon_chain/spec/mev/stable_mev.nim new file mode 100644 index 000000000..48711176a --- /dev/null +++ b/beacon_chain/spec/mev/stable_mev.nim @@ -0,0 +1,37 @@ +# beacon_chain +# Copyright (c) 2024 Status Research & Development GmbH +# 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. + +{.push raises: [].} + +import ../datatypes/stable +export stable + +type + StableBlindedBeaconBlockBody* {. + sszStableContainer: MAX_BEACON_BLOCK_BODY_FIELDS.} = object + randao_reveal*: Opt[ValidatorSig] + eth1_data*: Opt[Eth1Data] + ## Eth1 data vote + + graffiti*: Opt[GraffitiBytes] + ## Arbitrary data + + # Operations + proposer_slashings*: Opt[List[ProposerSlashing, + Limit MAX_PROPOSER_SLASHINGS]] + attester_slashings*: Opt[List[StableAttesterSlashing, + Limit MAX_ATTESTER_SLASHINGS_ELECTRA]] + attestations*: Opt[List[StableAttestation, Limit MAX_ATTESTATIONS_ELECTRA]] + deposits*: Opt[List[Deposit, Limit MAX_DEPOSITS]] + voluntary_exits*: Opt[List[SignedVoluntaryExit, Limit MAX_VOLUNTARY_EXITS]] + + sync_aggregate*: Opt[SyncAggregate] + + # Execution + execution_payload_header*: Opt[StableExecutionPayloadHeader] + bls_to_execution_changes*: Opt[SignedBLSToExecutionChangeList] + blob_kzg_commitments*: Opt[KzgCommitments]