olas-operate-middleware 0.13.9__py3-none-any.whl → 0.13.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of olas-operate-middleware might be problematic. Click here for more details.
- {olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/METADATA +1 -1
- {olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/RECORD +8 -8
- operate/__init__.py +34 -0
- operate/constants.py +1 -1
- operate/quickstart/run_service.py +3 -0
- {olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/WHEEL +0 -0
- {olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/entry_points.txt +0 -0
- {olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/licenses/LICENSE +0 -0
{olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
operate/__init__.py,sha256=
|
|
1
|
+
operate/__init__.py,sha256=_pgD-4F4Gc9xSPxbJxiQkw0m5rSHhLjxN7mDRNm0iCE,2652
|
|
2
2
|
operate/account/__init__.py,sha256=suJ_vBMO7hLCvLYe3MVDtLXTNDd6P03og7bvUN7fZsE,804
|
|
3
3
|
operate/account/user.py,sha256=y7DqqDpqgHjbVmnfL_cN0Me_JWl3Dh6GSVt2-9FdRVw,3044
|
|
4
4
|
operate/bridge/bridge_manager.py,sha256=K5DMYGqgX0xw3pxzZXrwnCQ8ZKpy-HVsfNRM185xb5g,17445
|
|
@@ -7,7 +7,7 @@ operate/bridge/providers/native_bridge_provider.py,sha256=vAx0MtVPIAxIdQ5OKSUDhn
|
|
|
7
7
|
operate/bridge/providers/provider.py,sha256=Ra-HBzcq2fSBSZWu9Qv1WsuBiMtU6IXYL5lc6D6cvZM,16881
|
|
8
8
|
operate/bridge/providers/relay_provider.py,sha256=4D2U8jrugh2DJZeSoxLCTVSZe8xMEwdCimqFDtfwWwc,17422
|
|
9
9
|
operate/cli.py,sha256=2Rg4pIRZMMK7U2xgMuX3CEueOXi280cUzk-avZ3E1aw,69786
|
|
10
|
-
operate/constants.py,sha256=
|
|
10
|
+
operate/constants.py,sha256=3awbelHUI9y3ZvTmpJjEu39qRq2ZSSqhPaWTeJ9CwXU,3875
|
|
11
11
|
operate/data/README.md,sha256=jGPyZTvg2LCGdllvmYxmFMkkkiXb6YWatbqIkcX3kv4,879
|
|
12
12
|
operate/data/__init__.py,sha256=ttC51Yqk9c4ehpIgs1Qbe7aJvzkrbbdZ1ClaCxJYByE,864
|
|
13
13
|
operate/data/contracts/__init__.py,sha256=_th54_WvL0ibGy-b6St0Ne9DX-fyjsh-tNOKDn-cWrg,809
|
|
@@ -70,7 +70,7 @@ operate/quickstart/claim_staking_rewards.py,sha256=K7X1Yq0mxe3qWmFLb1Xu9-Jghhml9
|
|
|
70
70
|
operate/quickstart/reset_configs.py,sha256=DVPM4mh6Djunwq16hf8lD9-nGkkm7wVtwr2JUXr1if8,3380
|
|
71
71
|
operate/quickstart/reset_password.py,sha256=jEBk2ROR1q8PkTIHlqum7E8PRQtXHwrauiy0_bik3RQ,2394
|
|
72
72
|
operate/quickstart/reset_staking.py,sha256=SB5LZq9EctG4SYn2M6oPZ7R7ARHSFLRGzAqfKkpRcy0,5111
|
|
73
|
-
operate/quickstart/run_service.py,sha256
|
|
73
|
+
operate/quickstart/run_service.py,sha256=myncdvwHD9DDgjj6fBVC2Ju4SplfBUZnPyXu0Z2gNYg,30279
|
|
74
74
|
operate/quickstart/stop_service.py,sha256=a3-1vVyZma2UtFUPKMvVrOso1Iwpz5Rzpus9VAI4qOc,2169
|
|
75
75
|
operate/quickstart/terminate_on_chain_service.py,sha256=5ENU8_mkj06i80lKUX-v1QbLU0YzKeOZDUL1e_jzySE,2914
|
|
76
76
|
operate/quickstart/utils.py,sha256=i1juhJCPkzB7ZKgSk5tNiRmYxGcx8MG-dTjVyC5sKys,9287
|
|
@@ -94,8 +94,8 @@ operate/utils/ssl.py,sha256=O5DrDoZD4T4qQuHP8GLwWUVxQ-1qXeefGp6uDJiF2lM,4308
|
|
|
94
94
|
operate/wallet/__init__.py,sha256=NGiozD3XhvkBi7_FaOWQ8x1thZPK4uGpokJaeDY_o2w,813
|
|
95
95
|
operate/wallet/master.py,sha256=5UvfEDFjgHNOHC25ZhZeewte1kXr69YPs5ue1NYSe5Q,33751
|
|
96
96
|
operate/wallet/wallet_recovery_manager.py,sha256=Dn0QmOYmmNj4p1X1TVQOrua3fysR3XJ99m6Z3H7tJQI,19792
|
|
97
|
-
olas_operate_middleware-0.13.
|
|
98
|
-
olas_operate_middleware-0.13.
|
|
99
|
-
olas_operate_middleware-0.13.
|
|
100
|
-
olas_operate_middleware-0.13.
|
|
101
|
-
olas_operate_middleware-0.13.
|
|
97
|
+
olas_operate_middleware-0.13.11.dist-info/METADATA,sha256=KdXRjShg1XPVGB8ZTQFOadXprdZjviExImHafXLxl4U,1493
|
|
98
|
+
olas_operate_middleware-0.13.11.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
99
|
+
olas_operate_middleware-0.13.11.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
|
|
100
|
+
olas_operate_middleware-0.13.11.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
|
|
101
|
+
olas_operate_middleware-0.13.11.dist-info/RECORD,,
|
operate/__init__.py
CHANGED
|
@@ -20,8 +20,12 @@
|
|
|
20
20
|
"""Operate app."""
|
|
21
21
|
|
|
22
22
|
import logging
|
|
23
|
+
import os
|
|
24
|
+
import platform
|
|
23
25
|
from importlib.metadata import PackageNotFoundError, version
|
|
24
26
|
|
|
27
|
+
import certifi
|
|
28
|
+
|
|
25
29
|
|
|
26
30
|
try:
|
|
27
31
|
# Prefer the distribution name if installed; fall back to the module name
|
|
@@ -35,3 +39,33 @@ except PackageNotFoundError:
|
|
|
35
39
|
__version__ = "0.0.0+local"
|
|
36
40
|
|
|
37
41
|
logging.getLogger("aea").setLevel(logging.ERROR)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# Ensure CA bundle is available for requests
|
|
45
|
+
# This prevents errors when PyInstaller temp directory is cleaned during long-running apps
|
|
46
|
+
# Set REQUESTS_CA_BUNDLE, preferring system CA bundle, falling back to bundled.
|
|
47
|
+
logger = logging.getLogger("operate")
|
|
48
|
+
system = platform.system()
|
|
49
|
+
bundle_set = False
|
|
50
|
+
if system == "Darwin": # macOS
|
|
51
|
+
system_bundle = "/etc/ssl/cert.pem"
|
|
52
|
+
if os.path.exists(system_bundle):
|
|
53
|
+
os.environ.setdefault("REQUESTS_CA_BUNDLE", system_bundle)
|
|
54
|
+
bundle_set = True
|
|
55
|
+
elif system == "Linux":
|
|
56
|
+
system_bundle = "/etc/ssl/certs/ca-certificates.crt"
|
|
57
|
+
if os.path.exists(system_bundle):
|
|
58
|
+
os.environ.setdefault("REQUESTS_CA_BUNDLE", system_bundle)
|
|
59
|
+
bundle_set = True
|
|
60
|
+
elif system == "Windows":
|
|
61
|
+
# Windows uses the system certificate store by default; no file needed
|
|
62
|
+
logger.info("Using system certificate store on Windows.")
|
|
63
|
+
bundle_set = True # Considered set since system handles it
|
|
64
|
+
else:
|
|
65
|
+
logger.warning(f"Unknown OS {system}; CA bundle handling not configured.")
|
|
66
|
+
|
|
67
|
+
# Fallback to bundled if system not available
|
|
68
|
+
if not bundle_set and os.path.exists(certifi.where()):
|
|
69
|
+
os.environ.setdefault("REQUESTS_CA_BUNDLE", certifi.where())
|
|
70
|
+
elif not bundle_set:
|
|
71
|
+
logger.warning("No CA certificate bundle available.")
|
operate/constants.py
CHANGED
|
@@ -74,7 +74,7 @@ MECH_CONTRACT_JSON_URL = "https://raw.githubusercontent.com/valory-xyz/mech/refs
|
|
|
74
74
|
STAKING_TOKEN_INSTANCE_ABI_PATH = "https://raw.githubusercontent.com/valory-xyz/trader/refs/tags/v0.23.0/packages/valory/contracts/staking_token/build/StakingToken.json" # nosec
|
|
75
75
|
MECH_ACTIVITY_CHECKER_JSON_URL = "https://raw.githubusercontent.com/valory-xyz/autonolas-staking-programmes/refs/heads/main/abis/0.8.25/SingleMechActivityChecker.json"
|
|
76
76
|
SERVICE_REGISTRY_TOKEN_UTILITY_JSON_URL = "https://raw.githubusercontent.com/valory-xyz/open-autonomy/refs/tags/v0.18.4/packages/valory/contracts/service_registry_token_utility/build/ServiceRegistryTokenUtility.json" # nosec
|
|
77
|
-
MECH_AGENT_FACTORY_JSON_URL = "https://raw.githubusercontent.com/valory-xyz/
|
|
77
|
+
MECH_AGENT_FACTORY_JSON_URL = "https://raw.githubusercontent.com/valory-xyz/autonolas-marketplace/main/abis/0.8.25/AgentFactory.json"
|
|
78
78
|
MECH_MARKETPLACE_JSON_URL = "https://raw.githubusercontent.com/valory-xyz/mech-quickstart/refs/heads/main/contracts/MechMarketplace.json"
|
|
79
79
|
NO_STAKING_PROGRAM_ID = "no_staking"
|
|
80
80
|
|
|
@@ -566,6 +566,9 @@ def get_service(manager: ServiceManager, template: ServiceTemplate) -> Service:
|
|
|
566
566
|
if env_var_name not in service.env_variables:
|
|
567
567
|
service.env_variables[env_var_name] = env_var_data
|
|
568
568
|
|
|
569
|
+
if env_var_data["provision_type"] == ServiceEnvProvisionType.FIXED:
|
|
570
|
+
service.env_variables[env_var_name]["value"] = env_var_data["value"]
|
|
571
|
+
|
|
569
572
|
service.update_user_params_from_template(service_template=template)
|
|
570
573
|
service.store()
|
|
571
574
|
break
|
{olas_operate_middleware-0.13.9.dist-info → olas_operate_middleware-0.13.11.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|