From 939415be4de65f6d4075bbadd18bd502f001ca24 Mon Sep 17 00:00:00 2001 From: KahanMajmudar Date: Wed, 20 Nov 2024 11:26:38 +0000 Subject: [PATCH] WIP: make script work --- run_service.py | 10 +++++----- utils.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/run_service.py b/run_service.py index e9ebb6b..f0d6129 100644 --- a/run_service.py +++ b/run_service.py @@ -71,12 +71,12 @@ } # @note patching operate -> legder -> profiles.py -> staking dict for gnosis -STAKING[ChainType.GNOSIS]["mech_service"] = "0x998dEFafD094817EF329f6dc79c703f1CF18bC90" +STAKING[ChainType.GNOSIS]["mech_marketplace"] = "0x998dEFafD094817EF329f6dc79c703f1CF18bC90" FALLBACK_STAKING_PARAMS = { ChainType.GNOSIS: dict( agent_ids=[37], service_registry=CONTRACTS[ChainType.GNOSIS]["service_registry"], # nosec - staking_token=STAKING[ChainType.GNOSIS]["mech_service"], # nosec + staking_token=STAKING[ChainType.GNOSIS]["mech_marketplace"], # nosec service_registry_token_utility=CONTRACTS[ChainType.GNOSIS][ "service_registry_token_utility" ], # nosec @@ -305,7 +305,7 @@ def main() -> None: mech_to_config = generate_mech_config(mech_quickstart_config) env_vars = { "SERVICE_REGISTRY_ADDRESS": CONTRACTS[home_chain_type]["service_registry"], - "STAKING_TOKEN_CONTRACT_ADDRESS": STAKING[home_chain_type]["mech_service"], + "STAKING_TOKEN_CONTRACT_ADDRESS": STAKING[home_chain_type]["mech_marketplace"], "MECH_MARKETPLACE_ADDRESS": CHAIN_TO_MARKETPLACE[home_chain_type], # TODO: no way to update this atm after its provided, user is expected to update the file itself. "API_KEYS": json.dumps(api_keys, separators=(',', ':')), @@ -319,8 +319,8 @@ def main() -> None: apply_env_vars(env_vars) # Build the deployment - del os.environ["MAX_FEE_PER_GAS"] - del os.environ["MAX_PRIORITY_FEE_PER_GAS"] + # del os.environ["MAX_FEE_PER_GAS"] + # del os.environ["MAX_PRIORITY_FEE_PER_GAS"] service.deployment.build(use_docker=True, force=True, chain_id=home_chain_id) # Run the deployment diff --git a/utils.py b/utils.py index 5a39e10..19ca6be 100644 --- a/utils.py +++ b/utils.py @@ -41,7 +41,7 @@ DEFAULT_TOOLS_TO_PACKAGE_HASH = None DEFAULT_MECH_TO_SUBSCRIPTION = None DEFAULT_MECH_TO_CONFIG = None -DEFAULT_MECH_HASH = "bafybeibx772eooap6m7cdjwfyt5pespe22i2mva24y255vw22cd5d7bfuq" +DEFAULT_MECH_HASH = "bafybeibmz7pe7yl2toivhm3lusuqfm345by7yhcyvd5uufgjrlrwprxb7q" @dataclass class MechQuickstartConfig(LocalResource):