mirror of https://github.com/nucypher/nucypher.git
Move APE_TEST_CHAIN_ID to tests constants file.
parent
5aba218dff
commit
526fb779fa
|
@ -5,7 +5,7 @@ from twisted.internet.threads import deferToThread
|
|||
from nucypher.blockchain.eth.trackers.dkg import EventScannerTask
|
||||
from nucypher.characters.lawful import Enrico
|
||||
from nucypher.policy.conditions.lingo import ConditionLingo
|
||||
from tests.acceptance.constants import APE_TEST_CHAIN_ID
|
||||
from tests.constants import APE_TEST_CHAIN_ID
|
||||
|
||||
# constants
|
||||
DKG_SIZE = 4
|
||||
|
|
|
@ -13,8 +13,7 @@ from nucypher.policy.conditions.lingo import (
|
|||
OrCompoundCondition,
|
||||
ReturnValueTest,
|
||||
)
|
||||
from tests.acceptance.constants import APE_TEST_CHAIN_ID
|
||||
from tests.constants import TEST_ETH_PROVIDER_URI
|
||||
from tests.constants import APE_TEST_CHAIN_ID, TEST_ETH_PROVIDER_URI
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
|
|
@ -25,8 +25,8 @@ from nucypher.policy.conditions.exceptions import (
|
|||
RPCExecutionFailed,
|
||||
)
|
||||
from nucypher.policy.conditions.lingo import ConditionLingo, ReturnValueTest
|
||||
from tests.acceptance.constants import APE_TEST_CHAIN_ID
|
||||
from tests.constants import (
|
||||
APE_TEST_CHAIN_ID,
|
||||
TEST_ETH_PROVIDER_URI,
|
||||
TEST_POLYGON_PROVIDER_URI,
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ from nucypher.policy.conditions.lingo import ConditionLingo, ReturnValueTest
|
|||
from nucypher.policy.conditions.time import TimeCondition
|
||||
from nucypher.policy.payment import SubscriptionManagerPayment
|
||||
from nucypher.utilities.logging import Logger
|
||||
from tests.acceptance.constants import APE_TEST_CHAIN_ID
|
||||
from tests.constants import (
|
||||
APE_TEST_CHAIN_ID,
|
||||
BONUS_TOKENS_FOR_TESTS,
|
||||
GLOBAL_ALLOW_LIST,
|
||||
INSECURE_DEVELOPMENT_PASSWORD,
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
from ape.utils import DEFAULT_TEST_CHAIN_ID
|
||||
|
||||
APE_TEST_CHAIN_ID = DEFAULT_TEST_CHAIN_ID # APE uses this chain id
|
|
@ -4,6 +4,7 @@ from datetime import datetime
|
|||
from pathlib import Path
|
||||
from random import SystemRandom
|
||||
|
||||
from ape.utils import DEFAULT_TEST_CHAIN_ID
|
||||
from web3 import Web3
|
||||
|
||||
from nucypher.blockchain.eth.token import NU
|
||||
|
@ -25,6 +26,12 @@ CONDITION_NFT = "ConditionNFT"
|
|||
GLOBAL_ALLOW_LIST = "GlobalAllowList"
|
||||
|
||||
|
||||
#
|
||||
# Ape
|
||||
#
|
||||
|
||||
APE_TEST_CHAIN_ID = DEFAULT_TEST_CHAIN_ID # ape uses this chain id
|
||||
|
||||
#
|
||||
# Ursula
|
||||
#
|
||||
|
@ -68,6 +75,8 @@ DEVELOPMENT_ETH_AIRDROP_AMOUNT = int(Web3().to_wei(100, 'ether'))
|
|||
|
||||
NUMBER_OF_ALLOCATIONS_IN_TESTS = 50 # TODO: Move to constants
|
||||
|
||||
TESTERCHAIN_CHAIN_ID = 131277322940537
|
||||
|
||||
|
||||
#
|
||||
# Insecure Secrets
|
||||
|
@ -142,7 +151,6 @@ CLI_TEST_ENV = {NUCYPHER_ENVVAR_KEYSTORE_PASSWORD: INSECURE_DEVELOPMENT_PASSWORD
|
|||
|
||||
CLI_ENV = {NUCYPHER_ENVVAR_KEYSTORE_PASSWORD: INSECURE_DEVELOPMENT_PASSWORD,
|
||||
NUCYPHER_ENVVAR_OPERATOR_ETH_PASSWORD: INSECURE_DEVELOPMENT_PASSWORD}
|
||||
TESTERCHAIN_CHAIN_ID = 131277322940537
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue