olas-operate-middleware 0.10.11__tar.gz → 0.10.12__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.
Files changed (97) hide show
  1. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/PKG-INFO +3 -3
  2. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/constants.py +1 -0
  3. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/ledger/__init__.py +2 -2
  4. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/health_checker.py +5 -3
  5. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/service.py +3 -2
  6. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/pyproject.toml +3 -3
  7. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/LICENSE +0 -0
  8. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/README.md +0 -0
  9. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/__init__.py +0 -0
  10. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/account/__init__.py +0 -0
  11. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/account/user.py +0 -0
  12. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/bridge/bridge_manager.py +0 -0
  13. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/bridge/providers/lifi_provider.py +0 -0
  14. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/bridge/providers/native_bridge_provider.py +0 -0
  15. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/bridge/providers/provider.py +0 -0
  16. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/bridge/providers/relay_provider.py +0 -0
  17. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/cli.py +0 -0
  18. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/README.md +0 -0
  19. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/__init__.py +0 -0
  20. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/__init__.py +0 -0
  21. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/dual_staking_token/__init__.py +0 -0
  22. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/dual_staking_token/build/DualStakingToken.json +0 -0
  23. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/dual_staking_token/contract.py +0 -0
  24. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/dual_staking_token/contract.yaml +0 -0
  25. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/foreign_omnibridge/__init__.py +0 -0
  26. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/foreign_omnibridge/build/ForeignOmnibridge.json +0 -0
  27. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/foreign_omnibridge/contract.py +0 -0
  28. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/foreign_omnibridge/contract.yaml +0 -0
  29. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/home_omnibridge/__init__.py +0 -0
  30. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/home_omnibridge/build/HomeOmnibridge.json +0 -0
  31. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/home_omnibridge/contract.py +0 -0
  32. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/home_omnibridge/contract.yaml +0 -0
  33. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l1_standard_bridge/__init__.py +0 -0
  34. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l1_standard_bridge/build/L1StandardBridge.json +0 -0
  35. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l1_standard_bridge/contract.py +0 -0
  36. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l1_standard_bridge/contract.yaml +0 -0
  37. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l2_standard_bridge/__init__.py +0 -0
  38. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l2_standard_bridge/build/L2StandardBridge.json +0 -0
  39. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l2_standard_bridge/contract.py +0 -0
  40. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/l2_standard_bridge/contract.yaml +0 -0
  41. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/mech_activity/__init__.py +0 -0
  42. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/mech_activity/build/MechActivity.json +0 -0
  43. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/mech_activity/contract.py +0 -0
  44. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/mech_activity/contract.yaml +0 -0
  45. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/optimism_mintable_erc20/__init__.py +0 -0
  46. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/optimism_mintable_erc20/build/OptimismMintableERC20.json +0 -0
  47. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/optimism_mintable_erc20/contract.py +0 -0
  48. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/optimism_mintable_erc20/contract.yaml +0 -0
  49. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/recovery_module/__init__.py +0 -0
  50. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/recovery_module/build/RecoveryModule.json +0 -0
  51. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/recovery_module/contract.py +0 -0
  52. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/recovery_module/contract.yaml +0 -0
  53. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/requester_activity_checker/__init__.py +0 -0
  54. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/requester_activity_checker/build/RequesterActivityChecker.json +0 -0
  55. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/requester_activity_checker/contract.py +0 -0
  56. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/requester_activity_checker/contract.yaml +0 -0
  57. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/staking_token/__init__.py +0 -0
  58. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/staking_token/build/StakingToken.json +0 -0
  59. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/staking_token/contract.py +0 -0
  60. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/staking_token/contract.yaml +0 -0
  61. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/uniswap_v2_erc20/__init__.py +0 -0
  62. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/uniswap_v2_erc20/build/IUniswapV2ERC20.json +0 -0
  63. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/uniswap_v2_erc20/contract.py +0 -0
  64. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/uniswap_v2_erc20/contract.yaml +0 -0
  65. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/uniswap_v2_erc20/tests/__init__.py +0 -0
  66. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/data/contracts/uniswap_v2_erc20/tests/test_contract.py +0 -0
  67. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/keys.py +0 -0
  68. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/ledger/profiles.py +0 -0
  69. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/migration.py +0 -0
  70. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/operate_http/__init__.py +0 -0
  71. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/operate_http/exceptions.py +0 -0
  72. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/operate_types.py +0 -0
  73. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/pearl.py +0 -0
  74. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/analyse_logs.py +0 -0
  75. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/claim_staking_rewards.py +0 -0
  76. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/reset_configs.py +0 -0
  77. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/reset_password.py +0 -0
  78. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/reset_staking.py +0 -0
  79. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/run_service.py +0 -0
  80. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/stop_service.py +0 -0
  81. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/terminate_on_chain_service.py +0 -0
  82. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/quickstart/utils.py +0 -0
  83. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/resource.py +0 -0
  84. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/__init__.py +0 -0
  85. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/agent_runner.py +0 -0
  86. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/deployment_runner.py +0 -0
  87. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/manage.py +0 -0
  88. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/protocol.py +0 -0
  89. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/utils/__init__.py +0 -0
  90. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/utils/mech.py +0 -0
  91. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/services/utils/tendermint.py +0 -0
  92. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/utils/__init__.py +0 -0
  93. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/utils/gnosis.py +0 -0
  94. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/utils/ssl.py +0 -0
  95. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/wallet/__init__.py +0 -0
  96. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/wallet/master.py +0 -0
  97. {olas_operate_middleware-0.10.11 → olas_operate_middleware-0.10.12}/operate/wallet/wallet_recovery_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: olas-operate-middleware
3
- Version: 0.10.11
3
+ Version: 0.10.12
4
4
  Summary:
5
5
  Author: David Vilela
6
6
  Author-email: dvilelaf@gmail.com
@@ -15,14 +15,14 @@ Requires-Dist: clea (==0.1.0rc4)
15
15
  Requires-Dist: cytoolz (==0.12.3)
16
16
  Requires-Dist: deepdiff (>=8.0.1,<9.0.0)
17
17
  Requires-Dist: docker (==6.1.2)
18
- Requires-Dist: eth-abi (==5.1.0)
18
+ Requires-Dist: eth-abi (==4.0.0)
19
19
  Requires-Dist: eth-account (==0.8.0)
20
20
  Requires-Dist: eth-hash (==0.7.0)
21
21
  Requires-Dist: eth-keyfile (==0.6.1)
22
22
  Requires-Dist: eth-keys (==0.4.0)
23
23
  Requires-Dist: eth-rlp (==0.3.0)
24
24
  Requires-Dist: eth-typing (==3.5.2)
25
- Requires-Dist: eth-utils (==2.3.1)
25
+ Requires-Dist: eth-utils (==2.2.0)
26
26
  Requires-Dist: fastapi (==0.110.3)
27
27
  Requires-Dist: frozenlist (==1.4.1)
28
28
  Requires-Dist: halo (==0.0.31)
@@ -32,6 +32,7 @@ DEPLOYMENT_DIR = "deployment"
32
32
  DEPLOYMENT_JSON = "deployment.json"
33
33
  CONFIG_JSON = "config.json"
34
34
  USER_JSON = "user.json"
35
+ HEALTHCHECK_JSON = "healthcheck.json"
35
36
 
36
37
  AGENT_PERSISTENT_STORAGE_DIR = "persistent_data"
37
38
  AGENT_PERSISTENT_STORAGE_ENV_VAR = "STORE_PATH"
@@ -40,8 +40,8 @@ ARBITRUM_ONE_RPC = os.environ.get("ARBITRUM_ONE_RPC", "https://arb1.arbitrum.io/
40
40
  BASE_RPC = os.environ.get("BASE_RPC", "https://mainnet.base.org")
41
41
  CELO_RPC = os.environ.get("CELO_RPC", "https://forno.celo.org")
42
42
  ETHEREUM_RPC = os.environ.get("ETHEREUM_RPC", "https://ethereum.publicnode.com")
43
- GNOSIS_RPC = os.environ.get("GNOSIS_RPC", "https://rpc-gate.autonolas.tech/gnosis-rpc/")
44
- MODE_RPC = os.environ.get("MODE_RPC", "https://mainnet.mode.network/")
43
+ GNOSIS_RPC = os.environ.get("GNOSIS_RPC", "https://gnosis-rpc.publicnode.com")
44
+ MODE_RPC = os.environ.get("MODE_RPC", "https://mainnet.mode.network")
45
45
  OPTIMISM_RPC = os.environ.get("OPTIMISM_RPC", "https://mainnet.optimism.io")
46
46
  POLYGON_RPC = os.environ.get("POLYGON_RPC", "https://polygon-rpc.com")
47
47
  SOLANA_RPC = os.environ.get("SOLANA_RPC", "https://api.mainnet-beta.solana.com")
@@ -29,7 +29,7 @@ from traceback import print_exc
29
29
 
30
30
  import aiohttp # type: ignore
31
31
 
32
- from operate.constants import HEALTH_CHECK_URL
32
+ from operate.constants import HEALTHCHECK_JSON, HEALTH_CHECK_URL
33
33
  from operate.services.manage import ServiceManager # type: ignore
34
34
 
35
35
 
@@ -107,12 +107,14 @@ class HealthChecker:
107
107
  response_json = await resp.json()
108
108
 
109
109
  if service_path:
110
- healthcheck_json_path = service_path / "healthcheck.json"
110
+ healthcheck_json_path = service_path / HEALTHCHECK_JSON
111
111
  healthcheck_json_path.write_text(
112
112
  json.dumps(response_json, indent=2), encoding="utf-8"
113
113
  )
114
114
 
115
- return response_json.get("is_transitioning_fast", False)
115
+ return response_json.get(
116
+ "is_healthy", response_json.get("is_transitioning_fast", False)
117
+ ) # TODO: remove is_transitioning_fast after all the services start reporting is_healthy
116
118
  except Exception as e: # pylint: disable=broad-except
117
119
  self.logger.error(
118
120
  f"[HEALTH_CHECKER] error {e}. set not healthy!", exc_info=True
@@ -68,6 +68,7 @@ from operate.constants import (
68
68
  CONFIG_JSON,
69
69
  DEPLOYMENT_DIR,
70
70
  DEPLOYMENT_JSON,
71
+ HEALTHCHECK_JSON,
71
72
  )
72
73
  from operate.keys import KeysManager
73
74
  from operate.operate_http.exceptions import NotAllowed
@@ -911,7 +912,7 @@ class Service(LocalResource):
911
912
 
912
913
  def get_latest_healthcheck(self) -> t.Dict:
913
914
  """Return the latest stored healthcheck.json"""
914
- healthcheck_json_path = self.path / "healthcheck.json"
915
+ healthcheck_json_path = self.path / HEALTHCHECK_JSON
915
916
 
916
917
  if not healthcheck_json_path.exists():
917
918
  return {}
@@ -924,7 +925,7 @@ class Service(LocalResource):
924
925
 
925
926
  def remove_latest_healthcheck(self) -> None:
926
927
  """Remove the latest healthcheck.json, if it exists"""
927
- healthcheck_json_path = self.path / "healthcheck.json"
928
+ healthcheck_json_path = self.path / HEALTHCHECK_JSON
928
929
 
929
930
  if healthcheck_json_path.exists():
930
931
  try:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "olas-operate-middleware"
3
- version = "0.10.11"
3
+ version = "0.10.12"
4
4
  description = ""
5
5
  authors = ["David Vilela <dvilelaf@gmail.com>", "Viraj Patel <vptl185@gmail.com>"]
6
6
  readme = "README.md"
@@ -34,8 +34,8 @@ eth-keyfile = "==0.6.1"
34
34
  eth-keys = "==0.4.0"
35
35
  eth-rlp = "==0.3.0"
36
36
  eth-typing = "==3.5.2"
37
- eth-utils = "==2.3.1"
38
- eth-abi = "==5.1.0"
37
+ eth-utils = "==2.2.0"
38
+ eth-abi = "==4.0.0"
39
39
  frozenlist = "==1.4.1"
40
40
  hexbytes = "==0.3.1"
41
41
  ipfshttpclient = "==0.8.0a2"