From 05191d1e272f3dd2a12140e595365d17179085a0 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Mon, 6 May 2024 12:49:46 +0200 Subject: [PATCH] chore: rename deposit receipt to deposit request --- crates/eips/src/eip6110.rs | 2 +- crates/rpc-types-engine/src/lib.rs | 2 +- crates/rpc-types-engine/src/payload.rs | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/eips/src/eip6110.rs b/crates/eips/src/eip6110.rs index 9c71382a264..d001096f122 100644 --- a/crates/eips/src/eip6110.rs +++ b/crates/eips/src/eip6110.rs @@ -21,7 +21,7 @@ pub const MAINNET_DEPOSIT_CONTRACT_ADDRESS: Address = )] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "ssz", derive(ssz_derive::Encode, ssz_derive::Decode))] -pub struct DepositReceipt { +pub struct DepositRequest { /// Validator public key pub pubkey: FixedBytes<48>, /// Withdrawal credentials diff --git a/crates/rpc-types-engine/src/lib.rs b/crates/rpc-types-engine/src/lib.rs index 7a70bdd4083..5697d0efafd 100644 --- a/crates/rpc-types-engine/src/lib.rs +++ b/crates/rpc-types-engine/src/lib.rs @@ -33,7 +33,7 @@ pub use self::{ }; #[doc(inline)] -pub use alloy_eips::eip6110::DepositReceipt; +pub use alloy_eips::eip6110::DepositRequest as DepositRequestV1; #[doc(inline)] pub use alloy_eips::eip7002::WithdrawalRequest as WithdrawalRequestV1; diff --git a/crates/rpc-types-engine/src/payload.rs b/crates/rpc-types-engine/src/payload.rs index 99a7a9d825c..6e982a402ca 100644 --- a/crates/rpc-types-engine/src/payload.rs +++ b/crates/rpc-types-engine/src/payload.rs @@ -1,6 +1,6 @@ //! Payload types. use alloy_consensus::{Blob, Bytes48}; -use alloy_eips::{eip6110::DepositReceipt, eip7002::WithdrawalRequest}; +use alloy_eips::{eip6110::DepositRequest, eip7002::WithdrawalRequest}; use alloy_primitives::{Address, Bloom, Bytes, B256, B64, U256}; use alloy_rpc_types::{transaction::BlobTransactionSidecar, Withdrawal}; use serde::{ser::SerializeMap, Deserialize, Deserializer, Serialize, Serializer}; @@ -404,18 +404,18 @@ impl ssz::Encode for ExecutionPayloadV3 { /// /// See also: /// -/// This structure has the syntax of ExecutionPayloadV3 and appends the new fields: depositReceipts -/// and exits. +/// This structure has the syntax of ExecutionPayloadV3 and appends the new fields: depositRequests +/// and withdrawalRequests. #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct ExecutionPayloadV4 { /// Inner V3 payload #[serde(flatten)] pub payload_inner: ExecutionPayloadV3, - /// Array of deposits. + /// Array of deposit requests. /// - /// This maps directly to the Deposits defined in [EIP-6110](https://eips.ethereum.org/EIPS/eip-6110). - pub deposit_receipts: Vec, + /// This maps directly to the deposit requests defined in [EIP-6110](https://eips.ethereum.org/EIPS/eip-6110). + pub deposit_requests: Vec, /// Array of execution layer triggerable withdrawal requests. /// /// See [EIP-7002](https://eips.ethereum.org/EIPS/eip-7002).