From 400f897b77fe257d8f99a7c6478fba8fb878c141 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Wed, 6 Nov 2024 15:10:59 -0600 Subject: [PATCH] Replace `PendingConsolidation` with `DepositRequest` --- specs/electra/builder.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/specs/electra/builder.md b/specs/electra/builder.md index 7dc0ed1..872eb70 100644 --- a/specs/electra/builder.md +++ b/specs/electra/builder.md @@ -31,12 +31,23 @@ specification. | Name | Value | | - | - | -| `MAX_DEPOSIT_REQUESTS_PER_PAYLOAD` | `uint64(2**13)` (= 8,192) | Maximum number of deposit receipts allowed in each payload | +| `MAX_DEPOSIT_REQUESTS_PER_PAYLOAD` | `uint64(2**13)` (= 8,192) | Maximum number of execution layer deposit requests in each payload | | `MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD` | `uint64(2**4)` (= 16)| Maximum number of execution layer withdrawal requests in each payload | | `MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD` | `uint64(1)` (= 1) | Maximum number of execution layer consolidation requests in each payload | ## Containers +#### New `DepositRequest` + +```python +class DepositRequest(Container): + pubkey: BLSPubkey + withdrawal_credentials: Bytes32 + amount: Gwei + signature: BLSSignature + index: uint64 +``` + #### New `WithdrawalRequest` ```python @@ -55,14 +66,6 @@ class ConsolidationRequest(Container): target_pubkey: BLSPubkey ``` -#### New `PendingConsolidation` - -```python -class PendingConsolidation(Container): - source_index: ValidatorIndex - target_index: ValidatorIndex -``` - #### New `ExecutionRequests` ```python