|
18 | 18 | import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_METHOD_NOT_ALLOWED;
|
19 | 19 | import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_NOT_FOUND;
|
20 | 20 | import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_AGGREGATE;
|
21 |
| -import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_ATTESTATION_DUTIES; |
22 | 21 | import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_BLOCK_HEADER;
|
23 | 22 | import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_GENESIS;
|
24 | 23 | import static tech.pegasys.teku.validator.remote.apiclient.ValidatorApiMethod.GET_PROPOSER_DUTIES;
|
|
66 | 65 | import tech.pegasys.teku.api.response.v1.validator.GetAggregatedAttestationResponse;
|
67 | 66 | import tech.pegasys.teku.api.response.v1.validator.GetProposerDutiesResponse;
|
68 | 67 | import tech.pegasys.teku.api.response.v1.validator.GetSyncCommitteeContributionResponse;
|
69 |
| -import tech.pegasys.teku.api.response.v1.validator.PostAttesterDutiesResponse; |
70 | 68 | import tech.pegasys.teku.api.response.v1.validator.PostSyncDutiesResponse;
|
71 | 69 | import tech.pegasys.teku.api.response.v1.validator.PostValidatorLivenessResponse;
|
72 | 70 | import tech.pegasys.teku.api.schema.Attestation;
|
@@ -154,16 +152,6 @@ public Optional<List<ValidatorResponse>> postValidators(final List<String> valid
|
154 | 152 | .map(response -> response.data);
|
155 | 153 | }
|
156 | 154 |
|
157 |
| - @Override |
158 |
| - public Optional<PostAttesterDutiesResponse> getAttestationDuties( // todo delete |
159 |
| - final UInt64 epoch, final Collection<Integer> validatorIndices) { |
160 |
| - return post( |
161 |
| - GET_ATTESTATION_DUTIES, |
162 |
| - Map.of("epoch", epoch.toString()), |
163 |
| - validatorIndices.stream().map(UInt64::valueOf).toList(), |
164 |
| - createHandler(PostAttesterDutiesResponse.class)); |
165 |
| - } |
166 |
| - |
167 | 155 | @Override
|
168 | 156 | public Optional<GetProposerDutiesResponse> getProposerDuties(final UInt64 epoch) {
|
169 | 157 | return get(
|
|
0 commit comments