2020-07-01 02:28:31 +00:00
|
|
|
import os
|
2020-04-30 13:14:32 +00:00
|
|
|
|
2022-06-09 13:08:11 +00:00
|
|
|
ROOT = '../..'
|
|
|
|
CERT = "%s/../../ca" % ROOT
|
2021-04-20 09:51:53 +00:00
|
|
|
|
2021-05-07 12:14:37 +00:00
|
|
|
# Common NeoFS variables can be declared from neofs-dev-env env variables.
|
|
|
|
# High priority is accepted for those envs.
|
|
|
|
|
2021-10-07 11:28:31 +00:00
|
|
|
CONTAINER_WAIT_INTERVAL = "1m"
|
|
|
|
|
2021-04-26 17:48:43 +00:00
|
|
|
NEOFS_EPOCH_TIMEOUT = (os.getenv("NEOFS_EPOCH_TIMEOUT") if os.getenv("NEOFS_EPOCH_TIMEOUT")
|
2022-06-09 13:08:11 +00:00
|
|
|
else os.getenv("NEOFS_IR_TIMERS_EPOCH", "300s"))
|
2021-04-25 10:43:39 +00:00
|
|
|
|
2022-05-24 13:36:17 +00:00
|
|
|
SIMPLE_OBJ_SIZE = 1000
|
|
|
|
COMPLEX_OBJ_SIZE = 2000
|
2021-05-07 12:14:37 +00:00
|
|
|
|
2022-02-17 15:20:56 +00:00
|
|
|
MAINNET_BLOCK_TIME = os.getenv('MAINNET_BLOCK_TIME', "1s")
|
2021-05-07 12:14:37 +00:00
|
|
|
MAINNET_TIMEOUT = os.getenv('MAINNET_TIMEOUT', "1min")
|
2021-04-20 09:51:53 +00:00
|
|
|
MORPH_BLOCK_TIME = os.getenv("MORPH_BLOCK_TIME", '1s')
|
2021-04-20 13:11:27 +00:00
|
|
|
NEOFS_CONTRACT_CACHE_TIMEOUT = os.getenv("NEOFS_CONTRACT_CACHE_TIMEOUT", "30s")
|
2021-11-08 09:57:19 +00:00
|
|
|
|
2022-06-09 13:08:11 +00:00
|
|
|
# TODO: change to NEOFS_STORAGE_DEFAULT_GC_REMOVER_SLEEP_INTERVAL
|
2021-11-08 09:57:19 +00:00
|
|
|
|
2021-10-04 16:16:49 +00:00
|
|
|
SHARD_0_GC_SLEEP = os.getenv("NEOFS_STORAGE_SHARD_0_GC_REMOVER_SLEEP_INTERVAL", "1m")
|
2021-05-07 12:14:37 +00:00
|
|
|
|
2021-04-20 13:11:27 +00:00
|
|
|
NEOFS_ENDPOINT = os.getenv("NEOFS_ENDPOINT", "s01.neofs.devenv:8080")
|
2021-07-08 09:49:46 +00:00
|
|
|
NEOGO_CLI_EXEC = os.getenv("NEOGO_EXECUTABLE", "neo-go")
|
2021-04-25 10:43:39 +00:00
|
|
|
|
2022-03-04 13:37:24 +00:00
|
|
|
NEO_MAINNET_ENDPOINT = os.getenv("NEO_MAINNET_ENDPOINT", 'http://main-chain.neofs.devenv:30333')
|
2022-06-13 20:33:09 +00:00
|
|
|
MORPH_ENDPOINT = os.getenv("MORPH_ENDPOINT", 'http://morph-chain.neofs.devenv:30333')
|
2021-04-20 13:11:27 +00:00
|
|
|
HTTP_GATE = os.getenv("HTTP_GATE", 'http://http.neofs.devenv')
|
|
|
|
S3_GATE = os.getenv("S3_GATE", 'https://s3.neofs.devenv:8080')
|
2021-09-09 13:36:34 +00:00
|
|
|
GAS_HASH = '0xd2a4cff31913016155e38e474a2c06d08be276cf'
|
2021-04-20 09:51:53 +00:00
|
|
|
|
2022-06-13 20:33:09 +00:00
|
|
|
NEOFS_CONTRACT = os.getenv("NEOFS_IR_CONTRACTS_NEOFS")
|
2021-04-25 10:43:39 +00:00
|
|
|
|
2021-08-24 11:13:36 +00:00
|
|
|
COMMON_PLACEMENT_RULE = "REP 2 IN X CBF 1 SELECT 4 FROM * AS X"
|
2021-05-04 09:27:43 +00:00
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
ASSETS_DIR = os.getenv("ASSETS_DIR", "TemporaryDir/")
|
2021-06-25 13:44:42 +00:00
|
|
|
|
2022-06-09 13:08:11 +00:00
|
|
|
MORPH_MAGIC = os.getenv("MORPH_MAGIC")
|
2021-09-09 13:36:34 +00:00
|
|
|
GATE_PUB_KEY = '0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf'
|
2021-09-09 08:13:37 +00:00
|
|
|
|
2022-06-09 13:08:11 +00:00
|
|
|
STORAGE_NODE_1 = os.getenv('DATA_NODE_1', 's01.neofs.devenv:8080')
|
|
|
|
STORAGE_NODE_2 = os.getenv('DATA_NODE_2', 's02.neofs.devenv:8080')
|
|
|
|
STORAGE_NODE_3 = os.getenv('DATA_NODE_3', 's03.neofs.devenv:8080')
|
|
|
|
STORAGE_NODE_4 = os.getenv('DATA_NODE_4', 's04.neofs.devenv:8080')
|
|
|
|
|
2022-06-24 12:19:25 +00:00
|
|
|
DEVENV_SERVICES_PATH = f"{os.getenv('DEVENV_PATH')}/services"
|
2022-06-09 13:08:11 +00:00
|
|
|
NEOFS_NETMAP_DICT = {'s01': {'rpc': STORAGE_NODE_1,
|
|
|
|
'control': 's01.neofs.devenv:8081',
|
2022-06-24 12:19:25 +00:00
|
|
|
'wallet_path':f"{DEVENV_SERVICES_PATH}/storage/wallet01.json",
|
2022-06-09 13:08:11 +00:00
|
|
|
'UN-LOCODE': 'RU MOW'},
|
|
|
|
's02': {'rpc': STORAGE_NODE_2,
|
|
|
|
'control': 's02.neofs.devenv:8081',
|
2022-06-24 12:19:25 +00:00
|
|
|
'wallet_path': f"{DEVENV_SERVICES_PATH}/storage/wallet02.json",
|
2022-06-09 13:08:11 +00:00
|
|
|
'UN-LOCODE': 'RU LED'},
|
|
|
|
's03': {'rpc': STORAGE_NODE_3,
|
|
|
|
'control': 's03.neofs.devenv:8081',
|
2022-06-24 12:19:25 +00:00
|
|
|
'wallet_path': f"{DEVENV_SERVICES_PATH}/storage/wallet03.json",
|
2022-06-09 13:08:11 +00:00
|
|
|
'UN-LOCODE': 'SE STO'},
|
|
|
|
's04': {'rpc': STORAGE_NODE_4,
|
|
|
|
'control': 's04.neofs.devenv:8081',
|
2022-06-24 12:19:25 +00:00
|
|
|
'wallet_path': f"{DEVENV_SERVICES_PATH}/storage/wallet04.json",
|
2022-06-09 13:08:11 +00:00
|
|
|
'UN-LOCODE': 'FI HEL'}
|
|
|
|
}
|
2021-11-08 09:57:19 +00:00
|
|
|
NEOFS_NETMAP = [i['rpc'] for i in NEOFS_NETMAP_DICT.values()]
|
2021-11-03 12:48:31 +00:00
|
|
|
NEOGO_EXECUTABLE = os.getenv('NEOGO_EXECUTABLE', 'neo-go')
|
|
|
|
NEOFS_CLI_EXEC = os.getenv('NEOFS_CLI_EXEC', 'neofs-cli')
|
2022-02-01 13:42:41 +00:00
|
|
|
|
2022-06-13 20:33:09 +00:00
|
|
|
WALLET_CONFIG = f"{os.getcwd()}/neofs_cli_configs/empty_passwd.yml"
|
2022-06-24 12:19:25 +00:00
|
|
|
MAINNET_WALLET_PATH = f"{DEVENV_SERVICES_PATH}/chain/node-wallet.json"
|
2022-06-13 20:33:09 +00:00
|
|
|
MAINNET_WALLET_CONFIG = f"{os.getcwd()}/neofs_cli_configs/mainnet_wallet_passwd.yml"
|
|
|
|
MAINNET_SINGLE_ADDR = 'NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP'
|
|
|
|
MAINNET_WALLET_PASS = 'one'
|
2022-06-24 12:19:25 +00:00
|
|
|
IR_WALLET_PATH = f"{DEVENV_SERVICES_PATH}/ir/wallet01.json"
|
2022-06-13 20:33:09 +00:00
|
|
|
IR_WALLET_CONFIG = f"{os.getcwd()}/neofs_cli_configs/ir_wallet_passwd.yml"
|
|
|
|
IR_WALLET_PASS = 'one'
|
2022-06-24 12:19:25 +00:00
|
|
|
STORAGE_WALLET_PATH = f"{DEVENV_SERVICES_PATH}/storage/wallet01.json"
|