Skip to content

Commit

Permalink
release: v0.2.0-rc132
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Jan 24, 2025
1 parent e86f032 commit 1d57ada
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
8 changes: 7 additions & 1 deletion frontend/constants/serviceTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const AGENTS_FUN_CELO_TEMPLATE: ServiceTemplate = {
export const MODIUS_SERVICE_TEMPLATE: ServiceTemplate = {
agentType: AgentType.Modius,
name: 'Optimus', // Should be unique across all services and not be updated
hash: 'bafybeieuikcmijdflny6n2zf3iz64p3ktvsfehkpauptsypfzpg2qmqbfe',
hash: 'bafybeie3iedcu7vzxdlmhoha37pr5w57i4pod3gwuvldi3xjynmyed5uo4',
description: 'Optimus',
image:
'https://gateway.autonolas.tech/ipfs/bafybeiaakdeconw7j5z76fgghfdjmsr6tzejotxcwnvmp3nroaw3glgyve',
Expand Down Expand Up @@ -366,6 +366,12 @@ export const MODIUS_SERVICE_TEMPLATE: ServiceTemplate = {
value: '250000',
provision_type: EnvProvisionType.FIXED,
},
STORE_PATH: {
name: 'Store path',
description: '',
value: '',
provision_type: EnvProvisionType.COMPUTED,
},
},
} as const;

Expand Down
11 changes: 11 additions & 0 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,17 @@ def _deploy_service_onchain_from_safe( # pylint: disable=too-many-statements,to
}
)

# TODO yet another computed variable for modius
if all(
var in service.env_variables
for var in [
"STORE_PATH",
]
):
store_path = service.path / "persistent_data"
store_path.parent.mkdir(parents=True, exist_ok=True)
env_var_to_value.update({"STORE_PATH": os.path.join(str(store_path), "")})

service.update_env_variables_values(env_var_to_value)

if user_params.use_staking:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"start:frontend": "cd frontend && yarn start",
"test:frontend": "cd frontend && yarn test"
},
"version": "0.2.0-rc132",
"version": "0.2.0-rc133",
"engine": {
"node": ">=20",
"yarn": ">=1.22.0",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "olas-operate-middleware"
version = "0.2.0-rc132"
version = "0.2.0-rc133"
description = ""
authors = ["David Vilela <dvilelaf@gmail.com>", "Viraj Patel <vptl185@gmail.com>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion templates/optimus.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Optimus
hash: bafybeig5uqagio2k2f3zuzhw3pnpy2xg2gqz6w55l3p4blchoxmvqswwze
hash: bafybeie3iedcu7vzxdlmhoha37pr5w57i4pod3gwuvldi3xjynmyed5uo4
description: Optimus
image: https://operate.olas.network/_next/image?url=%2Fimages%2Fprediction-agent.png&w=3840&q=75
service_version: v0.2.9
Expand Down

0 comments on commit 1d57ada

Please sign in to comment.