olas-operate-middleware 0.10.16__tar.gz → 0.10.18__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.16 → olas_operate_middleware-0.10.18}/PKG-INFO +1 -1
  2. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/cli.py +22 -2
  3. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/ledger/profiles.py +2 -0
  4. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/run_service.py +2 -0
  5. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/wallet/master.py +8 -2
  6. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/pyproject.toml +1 -1
  7. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/LICENSE +0 -0
  8. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/README.md +0 -0
  9. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/__init__.py +0 -0
  10. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/account/__init__.py +0 -0
  11. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/account/user.py +0 -0
  12. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/bridge/bridge_manager.py +0 -0
  13. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/bridge/providers/lifi_provider.py +0 -0
  14. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/bridge/providers/native_bridge_provider.py +0 -0
  15. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/bridge/providers/provider.py +0 -0
  16. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/bridge/providers/relay_provider.py +0 -0
  17. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/constants.py +0 -0
  18. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/README.md +0 -0
  19. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/__init__.py +0 -0
  20. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/__init__.py +0 -0
  21. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/dual_staking_token/__init__.py +0 -0
  22. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/dual_staking_token/build/DualStakingToken.json +0 -0
  23. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/dual_staking_token/contract.py +0 -0
  24. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/dual_staking_token/contract.yaml +0 -0
  25. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/foreign_omnibridge/__init__.py +0 -0
  26. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/foreign_omnibridge/build/ForeignOmnibridge.json +0 -0
  27. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/foreign_omnibridge/contract.py +0 -0
  28. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/foreign_omnibridge/contract.yaml +0 -0
  29. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/home_omnibridge/__init__.py +0 -0
  30. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/home_omnibridge/build/HomeOmnibridge.json +0 -0
  31. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/home_omnibridge/contract.py +0 -0
  32. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/home_omnibridge/contract.yaml +0 -0
  33. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l1_standard_bridge/__init__.py +0 -0
  34. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l1_standard_bridge/build/L1StandardBridge.json +0 -0
  35. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l1_standard_bridge/contract.py +0 -0
  36. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l1_standard_bridge/contract.yaml +0 -0
  37. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l2_standard_bridge/__init__.py +0 -0
  38. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l2_standard_bridge/build/L2StandardBridge.json +0 -0
  39. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l2_standard_bridge/contract.py +0 -0
  40. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/l2_standard_bridge/contract.yaml +0 -0
  41. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/mech_activity/__init__.py +0 -0
  42. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/mech_activity/build/MechActivity.json +0 -0
  43. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/mech_activity/contract.py +0 -0
  44. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/mech_activity/contract.yaml +0 -0
  45. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/optimism_mintable_erc20/__init__.py +0 -0
  46. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/optimism_mintable_erc20/build/OptimismMintableERC20.json +0 -0
  47. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/optimism_mintable_erc20/contract.py +0 -0
  48. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/optimism_mintable_erc20/contract.yaml +0 -0
  49. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/recovery_module/__init__.py +0 -0
  50. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/recovery_module/build/RecoveryModule.json +0 -0
  51. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/recovery_module/contract.py +0 -0
  52. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/recovery_module/contract.yaml +0 -0
  53. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/requester_activity_checker/__init__.py +0 -0
  54. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/requester_activity_checker/build/RequesterActivityChecker.json +0 -0
  55. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/requester_activity_checker/contract.py +0 -0
  56. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/requester_activity_checker/contract.yaml +0 -0
  57. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/staking_token/__init__.py +0 -0
  58. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/staking_token/build/StakingToken.json +0 -0
  59. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/staking_token/contract.py +0 -0
  60. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/staking_token/contract.yaml +0 -0
  61. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/uniswap_v2_erc20/__init__.py +0 -0
  62. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/uniswap_v2_erc20/build/IUniswapV2ERC20.json +0 -0
  63. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/uniswap_v2_erc20/contract.py +0 -0
  64. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/uniswap_v2_erc20/contract.yaml +0 -0
  65. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/uniswap_v2_erc20/tests/__init__.py +0 -0
  66. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/data/contracts/uniswap_v2_erc20/tests/test_contract.py +0 -0
  67. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/keys.py +0 -0
  68. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/ledger/__init__.py +0 -0
  69. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/migration.py +0 -0
  70. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/operate_http/__init__.py +0 -0
  71. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/operate_http/exceptions.py +0 -0
  72. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/operate_types.py +0 -0
  73. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/pearl.py +0 -0
  74. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/analyse_logs.py +0 -0
  75. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/claim_staking_rewards.py +0 -0
  76. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/reset_configs.py +0 -0
  77. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/reset_password.py +0 -0
  78. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/reset_staking.py +0 -0
  79. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/stop_service.py +0 -0
  80. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/terminate_on_chain_service.py +0 -0
  81. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/quickstart/utils.py +0 -0
  82. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/resource.py +0 -0
  83. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/__init__.py +0 -0
  84. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/agent_runner.py +0 -0
  85. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/deployment_runner.py +0 -0
  86. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/health_checker.py +0 -0
  87. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/manage.py +0 -0
  88. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/protocol.py +0 -0
  89. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/service.py +0 -0
  90. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/utils/__init__.py +0 -0
  91. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/utils/mech.py +0 -0
  92. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/services/utils/tendermint.py +0 -0
  93. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/utils/__init__.py +0 -0
  94. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/utils/gnosis.py +0 -0
  95. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/utils/ssl.py +0 -0
  96. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/operate/wallet/__init__.py +0 -0
  97. {olas_operate_middleware-0.10.16 → olas_operate_middleware-0.10.18}/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.10.16
3
+ Version: 0.10.18
4
4
  Summary:
5
5
  License-File: LICENSE
6
6
  Author: David Vilela
@@ -751,7 +751,7 @@ def create_app( # pylint: disable=too-many-locals, unused-argument, too-many-st
751
751
  )[wallet.address]
752
752
  initial_funds = subtract_dicts(balances, DEFAULT_MASTER_EOA_FUNDS[chain])
753
753
 
754
- logger.info(f"POST /api/wallet/safe Computed {initial_funds=}")
754
+ logger.info(f"_create_safe Computed {initial_funds=}")
755
755
 
756
756
  try:
757
757
  create_tx = wallet.create_safe( # pylint: disable=no-member
@@ -763,6 +763,9 @@ def create_app( # pylint: disable=too-many-locals, unused-argument, too-many-st
763
763
 
764
764
  transfer_txs = {}
765
765
  for asset, amount in initial_funds.items():
766
+ logger.info(
767
+ f"_create_safe Transfer to={safe_address} {amount=} {chain} {asset=}"
768
+ )
766
769
  tx_hash = wallet.transfer_asset(
767
770
  to=safe_address,
768
771
  amount=int(amount),
@@ -862,6 +865,19 @@ def create_app( # pylint: disable=too-many-locals, unused-argument, too-many-st
862
865
  content={service_id: service_id in _services for service_id in service_ids}
863
866
  )
864
867
 
868
+ @app.get("/api/v2/services/deployment")
869
+ @with_retries
870
+ async def _get_services_deployment(request: Request) -> JSONResponse:
871
+ """Get a service deployment."""
872
+ service_manager = operate.service_manager()
873
+ output = {}
874
+ for service in service_manager.get_all_services()[0]:
875
+ deployment_json = service.deployment.json
876
+ deployment_json["healthcheck"] = service.get_latest_healthcheck()
877
+ output[service.service_config_id] = deployment_json
878
+
879
+ return JSONResponse(content=output)
880
+
865
881
  @app.get("/api/v2/service/{service_config_id}")
866
882
  @with_retries
867
883
  async def _get_service(request: Request) -> JSONResponse:
@@ -1380,8 +1396,12 @@ def qs_start(
1380
1396
  @_operate.command(name="quickstop")
1381
1397
  def qs_stop(
1382
1398
  config: Annotated[str, params.String(help="Quickstart config file path")],
1399
+ attended: Annotated[
1400
+ str, params.String(help="Run in attended/unattended mode (default: true")
1401
+ ] = "true",
1383
1402
  ) -> None:
1384
- """Quickstart."""
1403
+ """Quickstop."""
1404
+ os.environ["ATTENDED"] = attended.lower()
1385
1405
  operate = OperateApp()
1386
1406
  operate.setup()
1387
1407
  stop_service(operate=operate, config_path=config)
@@ -85,6 +85,8 @@ STAKING: t.Dict[Chain, t.Dict[str, str]] = {
85
85
  "pearl_beta_mech_marketplace_2": "0x8d7bE092d154b01d404f1aCCFA22Cef98C613B5D",
86
86
  "pearl_beta_mech_marketplace_3": "0x9D00A0551F20979080d3762005C9B74D7Aa77b85",
87
87
  "pearl_beta_mech_marketplace_4": "0xE2f80659dB1069f3B6a08af1A62064190c119543",
88
+ "quickstart_beta_mech_marketplace_expert_1": "0xdB9E2713c3dA3C403F2eA6E570eB978b00304e9E",
89
+ "quickstart_beta_mech_marketplace_expert_2": "0x1E90522b45c771DCF5f79645B9e96551d2ECaF62",
88
90
  "quickstart_beta_mech_marketplace_expert_3": "0x75EECA6207be98cAc3fDE8a20eCd7B01e50b3472",
89
91
  "quickstart_beta_mech_marketplace_expert_4": "0x9c7F6103e3a72E4d1805b9C683Ea5B370Ec1a99f",
90
92
  "quickstart_beta_mech_marketplace_expert_5": "0xcdC603e0Ee55Aae92519f9770f214b2Be4967f7d",
@@ -96,6 +96,8 @@ QS_STAKING_PROGRAMS: t.Dict[Chain, t.Dict[str, str]] = {
96
96
  "quickstart_beta_expert_16_mech_marketplace": "trader",
97
97
  "quickstart_beta_expert_17_mech_marketplace": "trader",
98
98
  "quickstart_beta_expert_18_mech_marketplace": "trader",
99
+ "quickstart_beta_mech_marketplace_expert_1": "trader",
100
+ "quickstart_beta_mech_marketplace_expert_2": "trader",
99
101
  "quickstart_beta_mech_marketplace_expert_3": "trader",
100
102
  "quickstart_beta_mech_marketplace_expert_4": "trader",
101
103
  "quickstart_beta_mech_marketplace_expert_5": "trader",
@@ -352,7 +352,8 @@ class EthereumMasterWallet(MasterWallet):
352
352
  {
353
353
  "from": wallet_address,
354
354
  "gas": 1,
355
- "gasPrice": ledger_api.api.eth.gas_price,
355
+ "maxFeePerGas": 1,
356
+ "maxPriorityFeePerGas": 1,
356
357
  "nonce": ledger_api.api.eth.get_transaction_count(wallet_address),
357
358
  }
358
359
  )
@@ -362,7 +363,12 @@ class EthereumMasterWallet(MasterWallet):
362
363
  )
363
364
 
364
365
  setattr(tx_settler, "build", _build_transfer_tx) # noqa: B010
365
- tx_receipt = tx_settler.transact(lambda x: x, "", kwargs={})
366
+ tx_receipt = tx_settler.transact(
367
+ method=lambda: {},
368
+ contract="",
369
+ kwargs={},
370
+ dry_run=False,
371
+ )
366
372
  tx_hash = tx_receipt.get("transactionHash", "").hex()
367
373
  return tx_hash
368
374
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "olas-operate-middleware"
3
- version = "0.10.16"
3
+ version = "0.10.18"
4
4
  description = ""
5
5
  authors = ["David Vilela <dvilelaf@gmail.com>", "Viraj Patel <vptl185@gmail.com>"]
6
6
  readme = "README.md"