Skip to content

Commit

Permalink
Merge pull request #107 from valory-xyz/fix/mech-price
Browse files Browse the repository at this point in the history
Patch mech request price value
  • Loading branch information
angrybayblade authored May 21, 2024
2 parents bd72e93 + 5ffdfa0 commit 48bb0ef
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const process = require('process');
const { spawnSync } = require('child_process');
const Docker = require('dockerode');

const Version = '0.1.0rc18';
const Version = '0.1.0rc19';
const OperateDirectory = `${os.homedir()}/.operate`;
const VenvDir = `${OperateDirectory}/venv`;
const VersionFile = `${OperateDirectory}/version.txt`;
Expand Down
11 changes: 11 additions & 0 deletions operate/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,17 @@ def build(self, force: bool = True) -> None:
for node in deployment["services"]:
if "abci" in node:
deployment["services"][node]["volumes"].extend(_volumes)
# Mech request patch
if (
"SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=0"
in deployment["services"][node]["environment"]
):
deployment["services"][node]["environment"].remove(
"SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=0"
)
deployment["services"][node]["environment"].append(
"SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=10000000000000000"
)

with (build / DOCKER_COMPOSE_YAML).open("w", encoding="utf-8") as stream:
yaml_dump(data=deployment, stream=stream)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"start": "electron .",
"build": "rm -rf dist/ && electron-builder build"
},
"version": "0.1.0-rc18"
"version": "0.1.0-rc19"
}
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.1.0-rc18"
version = "0.1.0-rc19"
description = ""
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 48bb0ef

Please sign in to comment.