Skip to content

Commit

Permalink
Remove deprecated endpoints
Browse files Browse the repository at this point in the history
- `master-copies/` -> `singletons/`
- `transactions/` -> `multisig-transactions/`
  • Loading branch information
Uxio0 committed May 15, 2024
1 parent 2d63d0e commit 6753c7a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 67 deletions.
4 changes: 0 additions & 4 deletions safe_transaction_service/history/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3517,10 +3517,6 @@ def test_singletons_view(self):
url = reverse("v1:history:singletons")
return self._test_singletons_view(url)

def test_master_copies_view(self):
url = reverse("v1:history:master-copies")
return self._test_singletons_view(url)

def test_modules_view(self):
invalid_address = "0x2A"
response = self.client.get(
Expand Down
15 changes: 0 additions & 15 deletions safe_transaction_service/history/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,6 @@
),
path("modules/<str:address>/safes/", views.ModulesView.as_view(), name="modules"),
path("owners/<str:address>/safes/", views.OwnersView.as_view(), name="owners"),
path(
"transactions/<str:safe_tx_hash>/",
views.SafeMultisigTransactionDeprecatedDetailView.as_view(),
name="multisig-transaction-alias",
), # Deprecated
path(
"about/master-copies/",
views.MasterCopiesView.as_view(),
name="master-copies",
), # Deprecated
path(
"delegates/", views.DelegateListView.as_view(), name="delegates"
), # Deprecated
Expand All @@ -109,11 +99,6 @@
views.DelegateDeleteView.as_view(),
name="delegate",
), # Deprecated
path(
"safes/<str:address>/transactions/",
views.SafeMultisigTransactionDeprecatedListView.as_view(),
name="multisig-transactions-alias",
), # Deprecated
path(
"safes/<str:address>/delegates/<str:delegate_address>/",
views.SafeDelegateDestroyView.as_view(),
Expand Down
48 changes: 0 additions & 48 deletions safe_transaction_service/history/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,34 +1327,6 @@ def post(self, request, address, *args, **kwargs):
# Deprecated ---------------------------------------------------------------


class SafeMultisigTransactionDeprecatedDetailView(SafeMultisigTransactionDetailView):
"""
.. deprecated:: 3.1.13
"""

@swagger_auto_schema(
deprecated=True,
operation_description="Use `multisig-transactions` instead of `transactions`",
responses={200: "Ok", 404: "Not found"},
)
def get(self, *args, **kwargs):
return super().get(*args, **kwargs)


class MasterCopiesView(SingletonsView):
"""
.. deprecated:: 4.26.0
"""

@swagger_auto_schema(
deprecated=True,
operation_description="Use `singletons` instead of `master-copies`",
responses={200: "Ok"},
)
def get(self, *args, **kwargs):
return super().get(*args, **kwargs)


class DelegateListView(ListCreateAPIView):
"""
Expand Down Expand Up @@ -1446,26 +1418,6 @@ def delete(self, request, delegate_address, *args, **kwargs):
return Response(status=status.HTTP_404_NOT_FOUND)


class SafeMultisigTransactionDeprecatedListView(SafeMultisigTransactionListView):
"""
.. deprecated:: 3.1.13
"""

@swagger_auto_schema(
deprecated=True,
operation_description="Use `multisig-transactions` instead of `transactions`",
)
def get(self, *args, **kwargs):
return super().get(*args, **kwargs)

@swagger_auto_schema(
deprecated=True,
operation_description="Use `multisig-transactions` instead of `transactions`",
)
def post(self, *args, **kwargs):
return super().post(*args, **kwargs)


class SafeDelegateDestroyView(DestroyAPIView):
"""
Expand Down

0 comments on commit 6753c7a

Please sign in to comment.