Skip to content

Commit

Permalink
Move GetDepositSnapshot to beacon APIs package (cause official API al…
Browse files Browse the repository at this point in the history
…ready) (#8136)
  • Loading branch information
zilm13 authored Mar 25, 2024
1 parent 684dcb5 commit 1cdc8d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import tech.pegasys.teku.beaconrestapi.AbstractDataBackedRestAPIIntegrationTest;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon.GetDepositSnapshot;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetDepositSnapshot;
import tech.pegasys.teku.ethereum.pow.api.DepositTreeSnapshot;
import tech.pegasys.teku.infrastructure.http.ContentTypes;
import tech.pegasys.teku.infrastructure.json.JsonUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.admin.PutLogLevel;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.admin.Readiness;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon.GetAllBlocksAtSlot;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon.GetDepositSnapshot;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon.GetDeposits;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon.GetEth1Data;
import tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon.GetEth1DataCache;
Expand All @@ -46,6 +45,7 @@
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetBlockHeader;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetBlockHeaders;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetBlockRoot;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetDepositSnapshot;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetFinalizedBlockRoot;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetFinalizedCheckpointState;
import tech.pegasys.teku.beaconrestapi.handlers.v1.beacon.GetGenesis;
Expand Down Expand Up @@ -240,6 +240,7 @@ private static RestApi create(
.endpoint(new PostVoluntaryExit(dataProvider))
.endpoint(new PostSyncCommittees(dataProvider))
.endpoint(new PostValidatorLiveness(dataProvider))
.endpoint(new GetDepositSnapshot(eth1DataProvider))
// Event Handler
.endpoint(
new GetEvents(
Expand Down Expand Up @@ -302,7 +303,6 @@ private static RestApi create(
.endpoint(new GetEth1Data(dataProvider, eth1DataProvider))
.endpoint(new GetEth1DataCache(eth1DataProvider))
.endpoint(new GetEth1VotingSummary(dataProvider, eth1DataProvider))
.endpoint(new GetDepositSnapshot(eth1DataProvider))
.endpoint(new GetGlobalValidatorInclusion(dataProvider))
.endpoint(new GetValidatorInclusion(dataProvider));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/

package tech.pegasys.teku.beaconrestapi.handlers.tekuv1.beacon;
package tech.pegasys.teku.beaconrestapi.handlers.v1.beacon;

import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_NOT_FOUND;
import static tech.pegasys.teku.infrastructure.http.HttpStatusCodes.SC_OK;
Expand Down

0 comments on commit 1cdc8d0

Please sign in to comment.