From cdcb17736cefdfeb0233d972956625a164f5b3a1 Mon Sep 17 00:00:00 2001 From: Paul Harris Date: Wed, 24 Apr 2024 13:01:00 +1000 Subject: [PATCH] added ssz_static reftest references (#8244) 1.5.0-alpha.0 Signed-off-by: Paul Harris --- .../phase0/ssz_static/SszTestExecutor.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/ssz_static/SszTestExecutor.java b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/ssz_static/SszTestExecutor.java index d0449a50145..0f998b4e75f 100644 --- a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/ssz_static/SszTestExecutor.java +++ b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/ssz_static/SszTestExecutor.java @@ -47,6 +47,7 @@ import tech.pegasys.teku.spec.schemas.SchemaDefinitionsBellatrix; import tech.pegasys.teku.spec.schemas.SchemaDefinitionsCapella; import tech.pegasys.teku.spec.schemas.SchemaDefinitionsDeneb; +import tech.pegasys.teku.spec.schemas.SchemaDefinitionsElectra; public class SszTestExecutor implements TestExecutor { private final SchemaProvider sszType; @@ -184,6 +185,43 @@ public class SszTestExecutor implements TestExecutor { "ssz_static/BlobIdentifier", new SszTestExecutor<>(schemas -> BlobIdentifier.SSZ_SCHEMA)) + // electra types + .put( + "ssz_static/Consolidation", + new SszTestExecutor<>( + schemas -> SchemaDefinitionsElectra.required(schemas).getConsolidationSchema())) + .put( + "ssz_static/DepositReceipt", + new SszTestExecutor<>( + schemas -> SchemaDefinitionsElectra.required(schemas).getDepositReceiptSchema())) + .put( + "ssz_static/ExecutionLayerWithdrawalRequest", + new SszTestExecutor<>( + schemas -> + SchemaDefinitionsElectra.required(schemas) + .getExecutionLayerWithdrawalRequestSchema())) + .put( + "ssz_static/PendingBalanceDeposit", + new SszTestExecutor<>( + schemas -> + SchemaDefinitionsElectra.required(schemas).getPendingBalanceDepositSchema())) + .put( + "ssz_static/PendingConsolidation", + new SszTestExecutor<>( + schemas -> + SchemaDefinitionsElectra.required(schemas).getPendingConsolidationSchema())) + .put( + "ssz_static/PendingPartialWithdrawal", + new SszTestExecutor<>( + schemas -> + SchemaDefinitionsElectra.required(schemas) + .getPendingPartialWithdrawalSchema())) + .put( + "ssz_static/SignedConsolidation", + new SszTestExecutor<>( + schemas -> + SchemaDefinitionsElectra.required(schemas).getSignedConsolidationSchema())) + // Legacy Schemas (Not yet migrated to SchemaDefinitions) .put( "ssz_static/AttestationData", new SszTestExecutor<>(__ -> AttestationData.SSZ_SCHEMA))