INNER CODE UNIT · Python
get_root_path
skalenetwork/skale-network · packages/ima-artifacts/scripts/prepare.py:10
def get_root_path():
return os.path.abspath(
os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'../../..'))
def download_predeployed(version: str) -> dict:
url = 'https://github.com/skalenetwork/IMA/' + \
f'releases/download/{version}/ima-{version}-predeployed-abi.json'
response = requests.get(url, allow_redirects=True)
if response.status_code != 200:
raise ConnectionError("Failed to download predeployed abi")
return json.loads(response.content)
def normalize_contract_name(name: str) -> str:
if name == 'message_proxy_mainnet':