Skip to content

Commit

Permalink
WIP: make script work
Browse files Browse the repository at this point in the history
  • Loading branch information
KahanMajmudar committed Nov 20, 2024
1 parent 154f1c6 commit 939415b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=(',', ':')),
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 939415b

Please sign in to comment.