Repository: safe-global/safe-eth-py (language: python)

Issue:
Restructure package folders
# What is needed?
 `cowswap` should not be at the first level of the package, maybe just inside of a dex folder or even inside utils folder. 



Discussion / hints:
Remember to mark the PR as a breaking change

Fix patch:
diff --git a/safe_eth/cowsap/__init__.py b/safe_eth/eth/clients/cowswap/__init__.py
similarity index 100%
rename from safe_eth/cowsap/__init__.py
rename to safe_eth/eth/clients/cowswap/__init__.py
diff --git a/safe_eth/cowsap/cow_swap_api.py b/safe_eth/eth/clients/cowswap/cow_swap_api.py
similarity index 98%
rename from safe_eth/cowsap/cow_swap_api.py
rename to safe_eth/eth/clients/cowswap/cow_swap_api.py
index 102f2583c..3d57fdeea 100644
--- a/safe_eth/cowsap/cow_swap_api.py
+++ b/safe_eth/eth/clients/cowswap/cow_swap_api.py
@@ -7,10 +7,10 @@
 from eth_typing import AnyAddress, ChecksumAddress, HexStr
 
 from safe_eth.eth import EthereumNetwork, EthereumNetworkNotSupported
+from safe_eth.eth.constants import NULL_ADDRESS
 from safe_eth.eth.eip712 import eip712_encode_hash
+from safe_eth.util.http import prepare_http_session
 
-from ..eth.constants import NULL_ADDRESS
-from ..util.http import prepare_http_session
 from .order import Order, OrderKind
 
 
diff --git a/safe_eth/cowsap/order.py b/safe_eth/eth/clients/cowswap/order.py
similarity index 100%
rename from safe_eth/cowsap/order.py
rename to safe_eth/eth/clients/cowswap/order.py
diff --git a/safe_eth/eth/oracles/cowswap.py b/safe_eth/eth/oracles/cowswap.py
index dcaf4c6dd..a52a23806 100644
--- a/safe_eth/eth/oracles/cowswap.py
+++ b/safe_eth/eth/oracles/cowswap.py
@@ -1,7 +1,7 @@
 import logging
 from typing import Optional
 
-from safe_eth.cowsap import CowSwapAPI, OrderKind
+from safe_eth.eth.clients.cowswap import CowSwapAPI, OrderKind
 
 from .. import EthereumClient, EthereumNetworkNotSupported
 from .exceptions import CannotGetPriceFromOracle


Test patch:
diff --git a/safe_eth/cowsap/tests/__init__.py b/safe_eth/eth/clients/cowswap/tests/__init__.py
similarity index 100%
rename from safe_eth/cowsap/tests/__init__.py
rename to safe_eth/eth/clients/cowswap/tests/__init__.py
diff --git a/safe_eth/cowsap/tests/test_cow_swap_api.py b/safe_eth/eth/clients/cowswap/tests/test_cow_swap_api.py
similarity index 98%
rename from safe_eth/cowsap/tests/test_cow_swap_api.py
rename to safe_eth/eth/clients/cowswap/tests/test_cow_swap_api.py
index 1d4c93b03..bb2d9574d 100644
--- a/safe_eth/cowsap/tests/test_cow_swap_api.py
+++ b/safe_eth/eth/clients/cowswap/tests/test_cow_swap_api.py
@@ -5,8 +5,9 @@
 import pytest
 from eth_account import Account
 
-from ...eth import EthereumNetwork
-from ...eth.constants import NULL_ADDRESS
+from safe_eth.eth import EthereumNetwork
+from safe_eth.eth.constants import NULL_ADDRESS
+
 from .. import CowSwapAPI, Order, OrderKind