Skip to content

Commit

Permalink
Organize Electra schemas more logically
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Oct 10, 2024
1 parent e38dcce commit 340930f
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,23 @@ public WithdrawalRequestSchema getWithdrawalRequestSchema() {
return withdrawalRequestSchema;
}

public ConsolidationRequestSchema getConsolidationRequestSchema() {
return consolidationRequestSchema;
}

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

public PendingPartialWithdrawal.PendingPartialWithdrawalSchema
getPendingPartialWithdrawalSchema() {
return pendingPartialWithdrawalSchema;
}

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

public SszListSchema<PendingDeposit, ?> getPendingDepositsSchema() {
return beaconStateSchema.getPendingDepositsSchema();
}
Expand All @@ -330,24 +343,11 @@ public PendingDeposit.PendingDepositSchema getPendingDepositSchema() {
return beaconStateSchema.getPendingPartialWithdrawalsSchema();
}

public PendingPartialWithdrawal.PendingPartialWithdrawalSchema
getPendingPartialWithdrawalSchema() {
return pendingPartialWithdrawalSchema;
}

@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 340930f

Please sign in to comment.