|
175 | 175 | import tech.pegasys.teku.spec.datastructures.state.beaconstate.versions.altair.BeaconStateSchemaAltair;
|
176 | 176 | import tech.pegasys.teku.spec.datastructures.state.beaconstate.versions.phase0.BeaconStateSchemaPhase0;
|
177 | 177 | import tech.pegasys.teku.spec.datastructures.state.versions.capella.HistoricalSummary;
|
| 178 | +import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingBalanceDeposit; |
| 179 | +import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingConsolidation; |
| 180 | +import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingPartialWithdrawal; |
178 | 181 | import tech.pegasys.teku.spec.datastructures.type.SszKZGCommitment;
|
179 | 182 | import tech.pegasys.teku.spec.datastructures.type.SszKZGProof;
|
180 | 183 | import tech.pegasys.teku.spec.datastructures.type.SszPublicKey;
|
@@ -2461,6 +2464,27 @@ public ExecutionLayerExit executionLayerExit(final Validator validator) {
|
2461 | 2464 | .create(executionAddress, validator.getPublicKey());
|
2462 | 2465 | }
|
2463 | 2466 |
|
| 2467 | + public PendingBalanceDeposit randomPendingBalanceDeposit() { |
| 2468 | + return getElectraSchemaDefinitions(randomSlot()) |
| 2469 | + .getPendingBalanceDepositSchema() |
| 2470 | + .create(SszUInt64.of(randomUInt64()), SszUInt64.of(randomUInt64())); |
| 2471 | + } |
| 2472 | + |
| 2473 | + public PendingConsolidation randomPendingConsolidation() { |
| 2474 | + return getElectraSchemaDefinitions(randomSlot()) |
| 2475 | + .getPendingConsolidationSchema() |
| 2476 | + .create(SszUInt64.of(randomUInt64()), SszUInt64.of(randomUInt64())); |
| 2477 | + } |
| 2478 | + |
| 2479 | + public PendingPartialWithdrawal randomPendingPartialWithdrawal() { |
| 2480 | + return getElectraSchemaDefinitions(randomSlot()) |
| 2481 | + .getPendingPartialWithdrawalSchema() |
| 2482 | + .create( |
| 2483 | + SszUInt64.of(randomUInt64()), |
| 2484 | + SszUInt64.of(randomUInt64()), |
| 2485 | + SszUInt64.of(randomUInt64())); |
| 2486 | + } |
| 2487 | + |
2464 | 2488 | public UInt64 randomBlobSidecarIndex() {
|
2465 | 2489 | return randomUInt64(spec.getMaxBlobsPerBlock().orElseThrow());
|
2466 | 2490 | }
|
|
0 commit comments