use of tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetBlockHeader in project teku by ConsenSys.
the class BeaconRestApi method addBeaconHandlers.
private void addBeaconHandlers(final DataProvider dataProvider) {
app.get(GetGenesis.ROUTE, new GetGenesis(dataProvider, jsonProvider));
app.get(GetStateRoot.ROUTE, new GetStateRoot(dataProvider, jsonProvider));
app.get(GetStateFork.ROUTE, new GetStateFork(dataProvider, jsonProvider));
app.get(GetStateFinalityCheckpoints.ROUTE, new GetStateFinalityCheckpoints(dataProvider, jsonProvider));
app.get(GetStateValidators.ROUTE, new GetStateValidators(dataProvider, jsonProvider));
app.get(GetStateValidator.ROUTE, new GetStateValidator(dataProvider, jsonProvider));
app.get(GetStateValidatorBalances.ROUTE, new GetStateValidatorBalances(dataProvider, jsonProvider));
app.get(GetStateCommittees.ROUTE, new GetStateCommittees(dataProvider, jsonProvider));
app.get(GetStateSyncCommittees.ROUTE, new GetStateSyncCommittees(dataProvider, jsonProvider));
app.get(GetBlockHeaders.ROUTE, new GetBlockHeaders(dataProvider, jsonProvider));
app.get(GetBlockHeader.ROUTE, new GetBlockHeader(dataProvider, jsonProvider));
app.post(PostBlock.ROUTE, new PostBlock(dataProvider, jsonProvider));
app.get(GetBlock.ROUTE, new GetBlock(dataProvider, jsonProvider));
app.get(tech.pegasys.teku.beaconrestapi.handlers.v2.beacon.GetBlock.ROUTE, new tech.pegasys.teku.beaconrestapi.handlers.v2.beacon.GetBlock(dataProvider, jsonProvider));
app.get(GetBlockRoot.ROUTE, new GetBlockRoot(dataProvider, jsonProvider));
app.get(GetBlockAttestations.ROUTE, new GetBlockAttestations(dataProvider, jsonProvider));
app.get(GetAttestations.ROUTE, new GetAttestations(dataProvider, jsonProvider));
app.post(PostAttestation.ROUTE, new PostAttestation(dataProvider, jsonProvider));
app.get(GetAttesterSlashings.ROUTE, new GetAttesterSlashings(dataProvider, jsonProvider));
app.post(PostAttesterSlashing.ROUTE, new PostAttesterSlashing(dataProvider, jsonProvider));
app.get(GetProposerSlashings.ROUTE, new GetProposerSlashings(dataProvider, jsonProvider));
app.post(PostProposerSlashing.ROUTE, new PostProposerSlashing(dataProvider, jsonProvider));
app.get(GetVoluntaryExits.ROUTE, new GetVoluntaryExits(dataProvider, jsonProvider));
app.post(PostVoluntaryExit.ROUTE, new PostVoluntaryExit(dataProvider, jsonProvider));
app.post(PostSyncCommittees.ROUTE, new PostSyncCommittees(dataProvider, jsonProvider));
app.post(PostValidatorLiveness.ROUTE, new PostValidatorLiveness(dataProvider, jsonProvider));
}
Aggregations