Skip to content

Commit

Permalink
Rename PendingBalanceDeposit to PendingDeposit (#478)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Oct 9, 2024
1 parent 492bbbd commit 02d595d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
20 changes: 14 additions & 6 deletions types/electra/deposit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ Electra:
$ref: "../primitive.yaml#/Uint64"
description: "The index of the deposit request."

PendingBalanceDeposit:
PendingDeposit:
type: object
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."
required: [index, amount]
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."
required: [pubkey, withdrawal_credentials, amount, signature, slot]
properties:
index:
$ref: "../primitive.yaml#/Uint64"
description: "Index of validator in validator registry."
pubkey:
$ref: "../primitive.yaml#/Pubkey"
description: "BLS public key of validator."
withdrawal_credentials:
$ref: "../primitive.yaml#/Root"
description: "The withdrawal credentials."
amount:
$ref: "../primitive.yaml#/Gwei"
description: "The value to be deposited (gwei)."
signature:
$ref: "../primitive.yaml#/Signature"
slot:
$ref: "../primitive.yaml#/Uint64"
description: "The slot at which the deposit request was processed."
6 changes: 3 additions & 3 deletions types/electra/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Electra:
BeaconState:
type: object
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."
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]
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]
properties:
genesis_time:
$ref: "../primitive.yaml#/Uint64"
Expand Down Expand Up @@ -104,10 +104,10 @@ Electra:
$ref: "../primitive.yaml#/Gwei"
earliest_consolidation_epoch:
$ref: "../primitive.yaml#/Uint64"
pending_balance_deposits:
pending_deposits:
type: array
items:
$ref: "./deposit.yaml#/Electra/PendingBalanceDeposit"
$ref: "./deposit.yaml#/Electra/PendingDeposit"
maxItems: 134217728
pending_partial_withdrawals:
type: array
Expand Down

0 comments on commit 02d595d

Please sign in to comment.