olas-operate-middleware 0.10.19__py3-none-any.whl → 0.11.0__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.
Files changed (30) hide show
  1. {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/METADATA +3 -1
  2. {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/RECORD +30 -27
  3. operate/bridge/bridge_manager.py +10 -12
  4. operate/bridge/providers/lifi_provider.py +5 -4
  5. operate/bridge/providers/native_bridge_provider.py +6 -5
  6. operate/bridge/providers/provider.py +22 -87
  7. operate/bridge/providers/relay_provider.py +5 -4
  8. operate/cli.py +446 -168
  9. operate/constants.py +22 -2
  10. operate/keys.py +13 -0
  11. operate/ledger/__init__.py +107 -2
  12. operate/ledger/profiles.py +79 -11
  13. operate/operate_types.py +205 -2
  14. operate/quickstart/run_service.py +6 -10
  15. operate/services/agent_runner.py +5 -3
  16. operate/services/deployment_runner.py +3 -0
  17. operate/services/funding_manager.py +904 -0
  18. operate/services/health_checker.py +4 -4
  19. operate/services/manage.py +183 -310
  20. operate/services/protocol.py +392 -140
  21. operate/services/service.py +81 -5
  22. operate/settings.py +70 -0
  23. operate/utils/__init__.py +0 -29
  24. operate/utils/gnosis.py +79 -24
  25. operate/utils/single_instance.py +226 -0
  26. operate/wallet/master.py +221 -181
  27. operate/wallet/wallet_recovery_manager.py +5 -5
  28. {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/WHEEL +0 -0
  29. {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/entry_points.txt +0 -0
  30. {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -36,10 +36,10 @@ from operate.services.manage import ServiceManager # type: ignore
36
36
  class HealthChecker:
37
37
  """Health checker manager."""
38
38
 
39
- SLEEP_PERIOD_DEFAULT = 30
39
+ SLEEP_PERIOD_DEFAULT = 5 # seconds
40
40
  PORT_UP_TIMEOUT_DEFAULT = 300 # seconds
41
- REQUEST_TIMEOUT_DEFAULT = 90
42
- NUMBER_OF_FAILS_DEFAULT = 10
41
+ REQUEST_TIMEOUT_DEFAULT = 90 # seconds
42
+ NUMBER_OF_FAILS_DEFAULT = 60
43
43
 
44
44
  def __init__(
45
45
  self,
@@ -180,7 +180,7 @@ class HealthChecker:
180
180
  f"[HEALTH_CHECKER] {service_config_id} not healthy for {fails} time in a row"
181
181
  )
182
182
  else:
183
- self.logger.info(
183
+ self.logger.debug(
184
184
  f"[HEALTH_CHECKER] {service_config_id} is HEALTHY"
185
185
  )
186
186
  # reset fails if comes healty