Skip to content

Commit 02d595d

Browse files
ensi321nflaigralexstokes
authored
Rename PendingBalanceDeposit to PendingDeposit (#478)
* Rename to pending deposit * Update properties to match CL spec * Update types/electra/deposit.yaml --------- Co-authored-by: Nico Flaig <[email protected]> Co-authored-by: Alex Stokes <[email protected]>
1 parent 492bbbd commit 02d595d

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

types/electra/deposit.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ Electra:
1919
$ref: "../primitive.yaml#/Uint64"
2020
description: "The index of the deposit request."
2121

22-
PendingBalanceDeposit:
22+
PendingDeposit:
2323
type: object
24-
description: "The [`PendingBalanceDeposit`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.5/specs/electra/beacon-chain.md#pendingbalancedeposit) object from the CL Electra spec."
25-
required: [index, amount]
24+
description: "The [`PendingDeposit`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/electra/beacon-chain.md#pendingdeposit) object from the CL Electra spec."
25+
required: [pubkey, withdrawal_credentials, amount, signature, slot]
2626
properties:
27-
index:
28-
$ref: "../primitive.yaml#/Uint64"
29-
description: "Index of validator in validator registry."
27+
pubkey:
28+
$ref: "../primitive.yaml#/Pubkey"
29+
description: "BLS public key of validator."
30+
withdrawal_credentials:
31+
$ref: "../primitive.yaml#/Root"
32+
description: "The withdrawal credentials."
3033
amount:
3134
$ref: "../primitive.yaml#/Gwei"
3235
description: "The value to be deposited (gwei)."
36+
signature:
37+
$ref: "../primitive.yaml#/Signature"
38+
slot:
39+
$ref: "../primitive.yaml#/Uint64"
40+
description: "The slot at which the deposit request was processed."

types/electra/state.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Electra:
22
BeaconState:
33
type: object
44
description: "The [`BeaconState`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.5/specs/electra/beacon-chain.md#beaconstate) object from the CL Electra spec."
5-
required: [genesis_time, genesis_validators_root, slot, fork, latest_block_header, block_roots, state_roots, historical_roots, eth1_data, eth1_data_votes, eth1_deposit_index, validators, balances, randao_mixes, slashings, previous_epoch_participation, current_epoch_participation, justification_bits, previous_justified_checkpoint, current_justified_checkpoint, finalized_checkpoint, inactivity_scores, current_sync_committee, next_sync_committee, latest_execution_payload_header, next_withdrawal_index, next_withdrawal_validator_index, historical_summaries, deposit_requests_start_index, deposit_balance_to_consume, exit_balance_to_consume, earliest_exit_epoch, consolidation_balance_to_consume, earliest_consolidation_epoch, pending_balance_deposits, pending_partial_withdrawals, pending_consolidations]
5+
required: [genesis_time, genesis_validators_root, slot, fork, latest_block_header, block_roots, state_roots, historical_roots, eth1_data, eth1_data_votes, eth1_deposit_index, validators, balances, randao_mixes, slashings, previous_epoch_participation, current_epoch_participation, justification_bits, previous_justified_checkpoint, current_justified_checkpoint, finalized_checkpoint, inactivity_scores, current_sync_committee, next_sync_committee, latest_execution_payload_header, next_withdrawal_index, next_withdrawal_validator_index, historical_summaries, deposit_requests_start_index, deposit_balance_to_consume, exit_balance_to_consume, earliest_exit_epoch, consolidation_balance_to_consume, earliest_consolidation_epoch, pending_deposits, pending_partial_withdrawals, pending_consolidations]
66
properties:
77
genesis_time:
88
$ref: "../primitive.yaml#/Uint64"
@@ -104,10 +104,10 @@ Electra:
104104
$ref: "../primitive.yaml#/Gwei"
105105
earliest_consolidation_epoch:
106106
$ref: "../primitive.yaml#/Uint64"
107-
pending_balance_deposits:
107+
pending_deposits:
108108
type: array
109109
items:
110-
$ref: "./deposit.yaml#/Electra/PendingBalanceDeposit"
110+
$ref: "./deposit.yaml#/Electra/PendingDeposit"
111111
maxItems: 134217728
112112
pending_partial_withdrawals:
113113
type: array

0 commit comments

Comments
 (0)