olas-operate-middleware 0.13.9__tar.gz → 0.13.11__tar.gz

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.

Files changed (100) hide show
  1. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/PKG-INFO +1 -1
  2. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/__init__.py +34 -0
  3. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/constants.py +1 -1
  4. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/run_service.py +3 -0
  5. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/pyproject.toml +1 -1
  6. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/LICENSE +0 -0
  7. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/README.md +0 -0
  8. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/account/__init__.py +0 -0
  9. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/account/user.py +0 -0
  10. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/bridge/bridge_manager.py +0 -0
  11. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/bridge/providers/lifi_provider.py +0 -0
  12. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/bridge/providers/native_bridge_provider.py +0 -0
  13. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/bridge/providers/provider.py +0 -0
  14. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/bridge/providers/relay_provider.py +0 -0
  15. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/cli.py +0 -0
  16. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/README.md +0 -0
  17. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/__init__.py +0 -0
  18. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/__init__.py +0 -0
  19. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/dual_staking_token/__init__.py +0 -0
  20. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/dual_staking_token/build/DualStakingToken.json +0 -0
  21. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/dual_staking_token/contract.py +0 -0
  22. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/dual_staking_token/contract.yaml +0 -0
  23. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/foreign_omnibridge/__init__.py +0 -0
  24. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/foreign_omnibridge/build/ForeignOmnibridge.json +0 -0
  25. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/foreign_omnibridge/contract.py +0 -0
  26. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/foreign_omnibridge/contract.yaml +0 -0
  27. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/home_omnibridge/__init__.py +0 -0
  28. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/home_omnibridge/build/HomeOmnibridge.json +0 -0
  29. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/home_omnibridge/contract.py +0 -0
  30. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/home_omnibridge/contract.yaml +0 -0
  31. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l1_standard_bridge/__init__.py +0 -0
  32. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l1_standard_bridge/build/L1StandardBridge.json +0 -0
  33. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l1_standard_bridge/contract.py +0 -0
  34. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l1_standard_bridge/contract.yaml +0 -0
  35. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l2_standard_bridge/__init__.py +0 -0
  36. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l2_standard_bridge/build/L2StandardBridge.json +0 -0
  37. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l2_standard_bridge/contract.py +0 -0
  38. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/l2_standard_bridge/contract.yaml +0 -0
  39. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/mech_activity/__init__.py +0 -0
  40. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/mech_activity/build/MechActivity.json +0 -0
  41. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/mech_activity/contract.py +0 -0
  42. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/mech_activity/contract.yaml +0 -0
  43. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/optimism_mintable_erc20/__init__.py +0 -0
  44. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/optimism_mintable_erc20/build/OptimismMintableERC20.json +0 -0
  45. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/optimism_mintable_erc20/contract.py +0 -0
  46. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/optimism_mintable_erc20/contract.yaml +0 -0
  47. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/recovery_module/__init__.py +0 -0
  48. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/recovery_module/build/RecoveryModule.json +0 -0
  49. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/recovery_module/contract.py +0 -0
  50. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/recovery_module/contract.yaml +0 -0
  51. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/requester_activity_checker/__init__.py +0 -0
  52. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/requester_activity_checker/build/RequesterActivityChecker.json +0 -0
  53. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/requester_activity_checker/contract.py +0 -0
  54. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/requester_activity_checker/contract.yaml +0 -0
  55. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/staking_token/__init__.py +0 -0
  56. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/staking_token/build/StakingToken.json +0 -0
  57. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/staking_token/contract.py +0 -0
  58. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/staking_token/contract.yaml +0 -0
  59. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/uniswap_v2_erc20/__init__.py +0 -0
  60. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/uniswap_v2_erc20/build/IUniswapV2ERC20.json +0 -0
  61. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/uniswap_v2_erc20/contract.py +0 -0
  62. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/uniswap_v2_erc20/contract.yaml +0 -0
  63. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/uniswap_v2_erc20/tests/__init__.py +0 -0
  64. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/data/contracts/uniswap_v2_erc20/tests/test_contract.py +0 -0
  65. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/keys.py +0 -0
  66. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/ledger/__init__.py +0 -0
  67. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/ledger/profiles.py +0 -0
  68. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/migration.py +0 -0
  69. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/operate_http/__init__.py +0 -0
  70. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/operate_http/exceptions.py +0 -0
  71. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/operate_types.py +0 -0
  72. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/pearl.py +0 -0
  73. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/analyse_logs.py +0 -0
  74. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/claim_staking_rewards.py +0 -0
  75. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/reset_configs.py +0 -0
  76. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/reset_password.py +0 -0
  77. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/reset_staking.py +0 -0
  78. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/stop_service.py +0 -0
  79. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/terminate_on_chain_service.py +0 -0
  80. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/quickstart/utils.py +0 -0
  81. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/resource.py +0 -0
  82. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/__init__.py +0 -0
  83. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/agent_runner.py +0 -0
  84. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/deployment_runner.py +0 -0
  85. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/funding_manager.py +0 -0
  86. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/health_checker.py +0 -0
  87. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/manage.py +0 -0
  88. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/protocol.py +0 -0
  89. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/service.py +0 -0
  90. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/utils/__init__.py +0 -0
  91. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/utils/mech.py +0 -0
  92. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/services/utils/tendermint.py +0 -0
  93. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/settings.py +0 -0
  94. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/utils/__init__.py +0 -0
  95. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/utils/gnosis.py +0 -0
  96. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/utils/single_instance.py +0 -0
  97. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/utils/ssl.py +0 -0
  98. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/wallet/__init__.py +0 -0
  99. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/wallet/master.py +0 -0
  100. {olas_operate_middleware-0.13.9 → olas_operate_middleware-0.13.11}/operate/wallet/wallet_recovery_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: olas-operate-middleware
3
- Version: 0.13.9
3
+ Version: 0.13.11
4
4
  Summary:
5
5
  License-File: LICENSE
6
6
  Author: David Vilela
@@ -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.")
@@ -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/ai-registry-mech/main/abis/0.8.25/AgentFactory.json"
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "olas-operate-middleware"
3
- version = "0.13.9"
3
+ version = "0.13.11"
4
4
  description = ""
5
5
  authors = ["David Vilela <dvilelaf@gmail.com>", "Viraj Patel <vptl185@gmail.com>"]
6
6
  readme = "README.md"