Skip to content

Commit

Permalink
Organize Electra schemas more logically (#8708)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored Oct 11, 2024
1 parent bc3a5e7 commit 493322a
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,40 +314,40 @@ public WithdrawalRequestSchema getWithdrawalRequestSchema() {
return withdrawalRequestSchema;
}

public ConsolidationRequestSchema getConsolidationRequestSchema() {
return consolidationRequestSchema;
}

public PendingDeposit.PendingDepositSchema getPendingDepositSchema() {
return pendingDepositSchema;
}

public SszListSchema<PendingDeposit, ?> getPendingDepositsSchema() {
return beaconStateSchema.getPendingDepositsSchema();
public PendingPartialWithdrawal.PendingPartialWithdrawalSchema
getPendingPartialWithdrawalSchema() {
return pendingPartialWithdrawalSchema;
}

public SszListSchema<PendingConsolidation, ?> getPendingConsolidationsSchema() {
return beaconStateSchema.getPendingConsolidationsSchema();
public PendingConsolidation.PendingConsolidationSchema getPendingConsolidationSchema() {
return pendingConsolidationSchema;
}

public SszListSchema<PendingDeposit, ?> getPendingDepositsSchema() {
return beaconStateSchema.getPendingDepositsSchema();
}

public SszListSchema<PendingPartialWithdrawal, ?> getPendingPartialWithdrawalsSchema() {
return beaconStateSchema.getPendingPartialWithdrawalsSchema();
}

public PendingPartialWithdrawal.PendingPartialWithdrawalSchema
getPendingPartialWithdrawalSchema() {
return pendingPartialWithdrawalSchema;
public SszListSchema<PendingConsolidation, ?> getPendingConsolidationsSchema() {
return beaconStateSchema.getPendingConsolidationsSchema();
}

@Override
public Optional<SchemaDefinitionsElectra> toVersionElectra() {
return Optional.of(this);
}

public PendingConsolidation.PendingConsolidationSchema getPendingConsolidationSchema() {
return pendingConsolidationSchema;
}

public ConsolidationRequestSchema getConsolidationRequestSchema() {
return consolidationRequestSchema;
}

@Override
long getMaxValidatorPerAttestation(final SpecConfig specConfig) {
return (long) specConfig.getMaxValidatorsPerCommittee() * specConfig.getMaxCommitteesPerSlot();
Expand Down

0 comments on commit 493322a

Please sign in to comment.