Skip to content

Commit

Permalink
chore: rename deposit receipt to deposit request (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored May 6, 2024
1 parent 17c5650 commit 35cbf35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/eips/src/eip6110.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc-types-engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions crates/rpc-types-engine/src/payload.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -404,18 +404,18 @@ impl ssz::Encode for ExecutionPayloadV3 {
///
/// See also: <https://github.com/ethereum/execution-apis/blob/main/src/engine/prague.md#ExecutionPayloadV4>
///
/// 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<DepositReceipt>,
/// This maps directly to the deposit requests defined in [EIP-6110](https://eips.ethereum.org/EIPS/eip-6110).
pub deposit_requests: Vec<DepositRequest>,
/// Array of execution layer triggerable withdrawal requests.
///
/// See [EIP-7002](https://eips.ethereum.org/EIPS/eip-7002).
Expand Down

0 comments on commit 35cbf35

Please sign in to comment.