Skip to content

Commit 48bb0ef

Browse files
Merge pull request #107 from valory-xyz/fix/mech-price
Patch mech request price value
2 parents bd72e93 + 5ffdfa0 commit 48bb0ef

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

electron/install.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const process = require('process');
77
const { spawnSync } = require('child_process');
88
const Docker = require('dockerode');
99

10-
const Version = '0.1.0rc18';
10+
const Version = '0.1.0rc19';
1111
const OperateDirectory = `${os.homedir()}/.operate`;
1212
const VenvDir = `${OperateDirectory}/venv`;
1313
const VersionFile = `${OperateDirectory}/version.txt`;

operate/services/service.py

+11
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,17 @@ def build(self, force: bool = True) -> None:
304304
for node in deployment["services"]:
305305
if "abci" in node:
306306
deployment["services"][node]["volumes"].extend(_volumes)
307+
# Mech request patch
308+
if (
309+
"SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=0"
310+
in deployment["services"][node]["environment"]
311+
):
312+
deployment["services"][node]["environment"].remove(
313+
"SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=0"
314+
)
315+
deployment["services"][node]["environment"].append(
316+
"SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=10000000000000000"
317+
)
307318

308319
with (build / DOCKER_COMPOSE_YAML).open("w", encoding="utf-8") as stream:
309320
yaml_dump(data=deployment, stream=stream)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@
5353
"start": "electron .",
5454
"build": "rm -rf dist/ && electron-builder build"
5555
},
56-
"version": "0.1.0-rc18"
56+
"version": "0.1.0-rc19"
5757
}

poetry.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "olas-operate-middleware"
3-
version = "0.1.0-rc18"
3+
version = "0.1.0-rc19"
44
description = ""
55
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)