From 2d361cadbd807098d07ed726b3fcad34fd990431 Mon Sep 17 00:00:00 2001 From: Ryan Schneider Date: Wed, 18 Sep 2024 15:58:42 -0700 Subject: [PATCH] feat(rpc-types-beacon): `BuilderBlockValidationRequestV3` --- crates/rpc-types-beacon/src/relay.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/rpc-types-beacon/src/relay.rs b/crates/rpc-types-beacon/src/relay.rs index 5b1b056843b..14920d1c61f 100644 --- a/crates/rpc-types-beacon/src/relay.rs +++ b/crates/rpc-types-beacon/src/relay.rs @@ -211,6 +211,20 @@ pub struct BuilderBlockValidationRequestV2 { pub withdrawals_root: B256, } +/// A Request to validate a [SubmitBlockRequest] +#[serde_as] +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] +pub struct BuilderBlockValidationRequestV3 { + /// The [SubmitBlockRequest] data to be validated. + #[serde(flatten)] + pub request: SubmitBlockRequest, + /// The registered gas limit for the validation request. + #[serde_as(as = "DisplayFromStr")] + pub registered_gas_limit: u64, + /// The parent beacon block root for the validation request. + pub parent_beacon_block_root: B256, +} + /// Query for the GET `/relay/v1/data/bidtraces/proposer_payload_delivered` /// /// Provides [BidTrace]s for payloads that were delivered to proposers.