Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Feb 19, 2024
1 parent 3a0e4fa commit 8a7219d
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import pytest
from eth_account.signers.local import LocalAccount

from scripts.constants import ADDRESS_PROVIDER
from scripts.deployment_utils import get_deployed_contract
from scripts.utils.constants import ADDRESS_PROVIDER


@pytest.fixture(scope="session")
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from scripts.constants import BASE_POOLS, CRYPTO_REGISTRY_POOLS
from scripts.utils.constants import BASE_POOLS, CRYPTO_REGISTRY_POOLS


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_find_pool_for_coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS

# NOTE: This is the most important method in the metaregistry contract since it will be used
# by integrators to find pools for coin pairs. It finds pools even if the coin pair is not
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_get_base_pool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def test_all(populated_metaregistry, populated_base_pool_registry, pool):
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_get_coin_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def _reject_pools_with_one_coin(metaregistry, pool):
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_get_gauge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from boa import BoaError

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def _is_dao_onboarded_gauge(_gauge, gauge_controller, liquidity_gauge):
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_get_n_coins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def _get_n_coins_for_pool(registry, pool):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def _get_num_coins(registry, pool, base_pool_registry):
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_get_pool_name.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from scripts.constants import ZERO_ADDRESS
from scripts.deployment_utils import get_deployed_contract
from scripts.utils.constants import ZERO_ADDRESS


def test_stable_registry_pools(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import pytest
from boa import BoaError

from scripts.constants import ZERO_ADDRESS
from scripts.deployment_utils import get_deployed_contract
from scripts.utils.constants import ZERO_ADDRESS
from tests.utils import assert_negative_coin_balance

EXCEPTION_POOLS = ["0x79a8C46DeA5aDa233ABaFFD40F3A0A2B1e5A4F27"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import boa
from boa import BoaError

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def _get_underlying_coins(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
from boa import BoaError

from scripts.constants import ZERO_ADDRESS
from scripts.deployment_utils import get_deployed_contract
from scripts.utils.constants import ZERO_ADDRESS

EXCEPTIONS = {
# eth: ankreth pool returns [18, 0] when it should return:
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_get_virtual_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from boa import BoaError
from eth.codecs.abi.exceptions import DecodeError as ABIDecodeError

from scripts.constants import ZERO_ADDRESS
from scripts.deployment_utils import get_deployed_contract
from scripts.utils.constants import ZERO_ADDRESS
from tests.utils import assert_decode_error, assert_negative_coin_balance

# ---- sanity checks since vprice getters can revert for specific pools states ----
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/api/test_pool_is_metapool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def test_stable_registry_pools(
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/metaregistry/test_base_registry_tracking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS


def test_new_crypto_factory_pool(
Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/registries/test_add_remove_basepool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import boa

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS
from tests.utils import deploy_contract


Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/registries/test_add_remove_metapool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import boa

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS
from tests.utils import deploy_contract


Expand Down
2 changes: 1 addition & 1 deletion tests/mainnet/registries/test_add_remove_pool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import boa

from scripts.constants import ZERO_ADDRESS
from scripts.utils.constants import ZERO_ADDRESS
from tests.utils import deploy_contract


Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from eth.codecs.abi.exceptions import DecodeError as ABIDecodeError
from eth_account.signers.local import LocalAccount

from scripts.constants import BASE_DIR, ZERO_ADDRESS
from scripts.deployment_utils import get_deployed_contract
from scripts.utils.constants import BASE_DIR, ZERO_ADDRESS


def get_contract_pools(contract_name: str, address: str) -> list[str]:
Expand Down

0 comments on commit 8a7219d

Please sign in to comment.