olas-operate-middleware 0.10.13__py3-none-any.whl → 0.10.15__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.
@@ -1,7 +1,8 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: olas-operate-middleware
3
- Version: 0.10.13
3
+ Version: 0.10.15
4
4
  Summary:
5
+ License-File: LICENSE
5
6
  Author: David Vilela
6
7
  Author-email: dvilelaf@gmail.com
7
8
  Requires-Python: >=3.9,<3.12
@@ -6,7 +6,7 @@ operate/bridge/providers/lifi_provider.py,sha256=FpAlBAA_gOt-oOHKhGaOQhhTZIL-hgY
6
6
  operate/bridge/providers/native_bridge_provider.py,sha256=gG8bSyxUoAVEF6_J9tn1qKRv1PnXuMJdMwUAVJ4GJz8,24647
7
7
  operate/bridge/providers/provider.py,sha256=i54RL7m4wMSADM_D_V_quQump_ipPTmByUc-c-AOLPQ,19687
8
8
  operate/bridge/providers/relay_provider.py,sha256=L7D-PKepsuBadarJmrNneZk0bsrh88u05uD6_2MSss4,17341
9
- operate/cli.py,sha256=J5k9RGX-VH2aLMJ6N8iut2hSlwTdKF2VJksLHkKZ-SA,56012
9
+ operate/cli.py,sha256=eijw4jzmqHpXqYk5wTgigkgmWfp16ZhY9XQVun9RU7s,56135
10
10
  operate/constants.py,sha256=p_kYu4YyMnoZKHVrhhSjJlCCjWxRdSIzWfvQQeO8Ud4,3030
11
11
  operate/data/README.md,sha256=jGPyZTvg2LCGdllvmYxmFMkkkiXb6YWatbqIkcX3kv4,879
12
12
  operate/data/__init__.py,sha256=ttC51Yqk9c4ehpIgs1Qbe7aJvzkrbbdZ1ClaCxJYByE,864
@@ -79,9 +79,9 @@ operate/services/__init__.py,sha256=isrThS-Ccu5Sc15JZgkN4uTAVaSg-NwUUSDeTyJEqLk,
79
79
  operate/services/agent_runner.py,sha256=6tJePUJmlRxlIugT2fDaCJHSrQlDnl1t9pbg3-7EmCQ,7560
80
80
  operate/services/deployment_runner.py,sha256=Su73o7cdH6fkQfj468K77J04a_TWiokJwbMyVQ25xko,27067
81
81
  operate/services/health_checker.py,sha256=MuGZ0pQ7zyJVbNU9FJR5gR8zTE7z7kCH1h5Ampv9IC0,9837
82
- operate/services/manage.py,sha256=XzT9y29x_3kaHEwziIP6uDoKxtsmufwSiwdQP3bJUy8,118147
82
+ operate/services/manage.py,sha256=FxhL2Zm46DOuCBnp8C1_i9dCwq4x9Jpo0QFsEeLDcU0,118436
83
83
  operate/services/protocol.py,sha256=FoJmHz5nukI01-VYtReMsIl3JT5RgZZSLX-mf9EXQ90,62903
84
- operate/services/service.py,sha256=1gjBu3yzwFKX54xEeyRZ_NzRjuYk_gpfWzS8JWTQ2xs,39319
84
+ operate/services/service.py,sha256=-XM4BLNsgoTG8wgw5QsfvvC6TJfiZW-gC-Ela2HGx6g,39327
85
85
  operate/services/utils/__init__.py,sha256=TvioaZ1mfTRUSCtrQoLNAp4WMVXyqEJqFJM4PxSQCRU,24
86
86
  operate/services/utils/mech.py,sha256=W2x4dqodivNKXjWU-Brp40QhoUHsIMyNAO7-caMoR0Q,3821
87
87
  operate/services/utils/tendermint.py,sha256=3h9nDb2Z89T0RwUr_AaVjqtymQmsu3u6DAVCfL_k1U0,25591
@@ -91,8 +91,8 @@ operate/utils/ssl.py,sha256=O5DrDoZD4T4qQuHP8GLwWUVxQ-1qXeefGp6uDJiF2lM,4308
91
91
  operate/wallet/__init__.py,sha256=NGiozD3XhvkBi7_FaOWQ8x1thZPK4uGpokJaeDY_o2w,813
92
92
  operate/wallet/master.py,sha256=jLFLcRgO6ADok2DigpK59PFJ4mnc_0H9a4RRioYzlvw,30811
93
93
  operate/wallet/wallet_recovery_manager.py,sha256=sXEZyvFMePxQKf9NJg4HT90mPg4-7ZcTbvggMnKKzhA,7795
94
- olas_operate_middleware-0.10.13.dist-info/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
95
- olas_operate_middleware-0.10.13.dist-info/METADATA,sha256=EmIBE2jBrbkVwIrf9EzjUuq4gIDw3htcxDRU-AISWLY,2036
96
- olas_operate_middleware-0.10.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
97
- olas_operate_middleware-0.10.13.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
98
- olas_operate_middleware-0.10.13.dist-info/RECORD,,
94
+ olas_operate_middleware-0.10.15.dist-info/METADATA,sha256=Z8j_Lc1n0BzYOBbZubAlPJ_ibninNGogZjrTeT2WHaY,2058
95
+ olas_operate_middleware-0.10.15.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
96
+ olas_operate_middleware-0.10.15.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
97
+ olas_operate_middleware-0.10.15.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
98
+ olas_operate_middleware-0.10.15.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: poetry-core 2.2.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
operate/cli.py CHANGED
@@ -1343,6 +1343,8 @@ def _daemon(
1343
1343
  requests.get(f"http://{host}:{port}/shutdown", timeout=3)
1344
1344
  except Exception: # pylint: disable=broad-except
1345
1345
  logger.exception("Failed to stop previous instance")
1346
+ except Exception: # pylint: disable=broad-except
1347
+ logger.exception("Failed to stop previous instance")
1346
1348
 
1347
1349
  server = Server(Config(**config_kwargs))
1348
1350
  app._server = server # pylint: disable=protected-access
@@ -1082,12 +1082,19 @@ class ServiceManager:
1082
1082
  self.logger.info(f"{reuse_multisig=}")
1083
1083
 
1084
1084
  is_recovery_module_enabled = (
1085
- registry_contracts.gnosis_safe.is_module_enabled(
1086
- ledger_api=sftxb.ledger_api,
1087
- contract_address=service_safe_address,
1088
- module_address=CONTRACTS[Chain(chain)]["recovery_module"],
1089
- ).get("enabled")
1085
+ True # Ensure is true for non-deployed multisigs
1090
1086
  )
1087
+ if (
1088
+ service_safe_address is not None
1089
+ and service_safe_address != ZERO_ADDRESS
1090
+ ):
1091
+ is_recovery_module_enabled = (
1092
+ registry_contracts.gnosis_safe.is_module_enabled(
1093
+ ledger_api=sftxb.ledger_api,
1094
+ contract_address=service_safe_address,
1095
+ module_address=CONTRACTS[Chain(chain)]["recovery_module"],
1096
+ ).get("enabled")
1097
+ )
1091
1098
 
1092
1099
  self.logger.info(f"{is_recovery_module_enabled=}")
1093
1100
 
@@ -1080,7 +1080,7 @@ class Service(LocalResource):
1080
1080
  Note that this method modifies os.environ. Consider if you need a backup of os.environ before using this method.
1081
1081
  """
1082
1082
  for env_var, attributes in self.env_variables.items():
1083
- os.environ[env_var] = str(attributes["value"])
1083
+ os.environ[env_var] = str(attributes.get("value", ""))
1084
1084
 
1085
1085
  def update_env_variables_values(
1086
1086
  self, env_var_to_value: t.Dict[str, t.Any], except_if_undefined: bool = False