olas-operate-middleware 0.14.1__tar.gz → 0.14.2__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.
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/PKG-INFO +1 -1
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/ledger/profiles.py +5 -1
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/run_service.py +6 -5
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/funding_manager.py +1 -1
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/protocol.py +1 -13
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/pyproject.toml +1 -1
- olas_operate_middleware-0.14.1/operate/data/contracts/recovery_module/__init__.py +0 -20
- olas_operate_middleware-0.14.1/operate/data/contracts/recovery_module/build/RecoveryModule.json +0 -811
- olas_operate_middleware-0.14.1/operate/data/contracts/recovery_module/contract.py +0 -61
- olas_operate_middleware-0.14.1/operate/data/contracts/recovery_module/contract.yaml +0 -23
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/LICENSE +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/README.md +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/account/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/account/user.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/bridge/bridge_manager.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/bridge/providers/lifi_provider.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/bridge/providers/native_bridge_provider.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/bridge/providers/provider.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/bridge/providers/relay_provider.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/cli.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/constants.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/README.md +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/dual_staking_token/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/dual_staking_token/build/DualStakingToken.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/dual_staking_token/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/dual_staking_token/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/foreign_omnibridge/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/foreign_omnibridge/build/ForeignOmnibridge.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/foreign_omnibridge/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/foreign_omnibridge/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/home_omnibridge/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/home_omnibridge/build/HomeOmnibridge.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/home_omnibridge/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/home_omnibridge/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l1_standard_bridge/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l1_standard_bridge/build/L1StandardBridge.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l1_standard_bridge/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l1_standard_bridge/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l2_standard_bridge/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l2_standard_bridge/build/L2StandardBridge.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l2_standard_bridge/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/l2_standard_bridge/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/mech_activity/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/mech_activity/build/MechActivity.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/mech_activity/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/mech_activity/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/optimism_mintable_erc20/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/optimism_mintable_erc20/build/OptimismMintableERC20.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/optimism_mintable_erc20/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/optimism_mintable_erc20/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/requester_activity_checker/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/requester_activity_checker/build/RequesterActivityChecker.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/requester_activity_checker/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/requester_activity_checker/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/staking_token/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/staking_token/build/StakingToken.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/staking_token/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/staking_token/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/uniswap_v2_erc20/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/uniswap_v2_erc20/build/IUniswapV2ERC20.json +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/uniswap_v2_erc20/contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/uniswap_v2_erc20/contract.yaml +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/uniswap_v2_erc20/tests/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/data/contracts/uniswap_v2_erc20/tests/test_contract.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/keys.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/ledger/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/migration.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/operate_http/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/operate_http/exceptions.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/operate_types.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/pearl.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/analyse_logs.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/claim_staking_rewards.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/reset_configs.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/reset_password.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/reset_staking.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/stop_service.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/terminate_on_chain_service.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/utils.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/resource.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/serialization.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/agent_runner.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/deployment_runner.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/health_checker.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/manage.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/service.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/utils/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/utils/mech.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/utils/tendermint.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/settings.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/utils/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/utils/gnosis.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/utils/single_instance.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/utils/ssl.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/wallet/__init__.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/wallet/master.py +0 -0
- {olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/wallet/wallet_recovery_manager.py +0 -0
{olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/ledger/profiles.py
RENAMED
|
@@ -140,7 +140,11 @@ STAKING: t.Dict[Chain, t.Dict[str, str]] = {
|
|
|
140
140
|
"modius_alpha_3": "0x9034D0413D122015710f1744A19eFb1d7c2CEB13",
|
|
141
141
|
"modius_alpha_4": "0x8BcAdb2c291C159F9385964e5eD95a9887302862",
|
|
142
142
|
},
|
|
143
|
-
Chain.POLYGON: {
|
|
143
|
+
Chain.POLYGON: {
|
|
144
|
+
"polygon_beta_1": "0x9F1936f6afB5EAaA2220032Cf5e265F2Cc9511Cc",
|
|
145
|
+
"polygon_beta_2": "0x22D58680F643333F93205B956a4Aa1dC203a16Ad",
|
|
146
|
+
"polygon_beta_3": "0x8887C2852986e7cbaC99B6065fFe53074A6BCC26", # Note: “Polygon Alpha 3” is a typo in apps — the correct name is Polygon Beta 3.
|
|
147
|
+
},
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
|
{olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/quickstart/run_service.py
RENAMED
|
@@ -490,15 +490,13 @@ def configure_local_config(
|
|
|
490
490
|
|
|
491
491
|
print()
|
|
492
492
|
|
|
493
|
-
template["env_variables"][env_var_name]["value"] = (
|
|
493
|
+
template["env_variables"][env_var_name]["value"] = str(
|
|
494
494
|
config.user_provided_args[env_var_name]
|
|
495
495
|
)
|
|
496
496
|
|
|
497
497
|
# TODO: Handle it in a more generic way
|
|
498
498
|
if (
|
|
499
|
-
|
|
500
|
-
== ServiceEnvProvisionType.COMPUTED
|
|
501
|
-
and "SUBGRAPH_API_KEY" in config.user_provided_args
|
|
499
|
+
"SUBGRAPH_API_KEY" in config.user_provided_args
|
|
502
500
|
and "{SUBGRAPH_API_KEY}" in template["env_variables"][env_var_name]["value"]
|
|
503
501
|
):
|
|
504
502
|
template["env_variables"][env_var_name]["value"] = template[
|
|
@@ -567,7 +565,10 @@ def get_service(manager: ServiceManager, template: ServiceTemplate) -> Service:
|
|
|
567
565
|
if env_var_name not in service.env_variables:
|
|
568
566
|
service.env_variables[env_var_name] = env_var_data
|
|
569
567
|
|
|
570
|
-
if env_var_data["provision_type"]
|
|
568
|
+
if env_var_data["provision_type"] in (
|
|
569
|
+
ServiceEnvProvisionType.FIXED,
|
|
570
|
+
ServiceEnvProvisionType.USER,
|
|
571
|
+
):
|
|
571
572
|
service.env_variables[env_var_name]["value"] = env_var_data["value"]
|
|
572
573
|
|
|
573
574
|
service.update_user_params_from_template(service_template=template)
|
{olas_operate_middleware-0.14.1 → olas_operate_middleware-0.14.2}/operate/services/protocol.py
RENAMED
|
@@ -69,7 +69,6 @@ from operate.constants import (
|
|
|
69
69
|
)
|
|
70
70
|
from operate.data import DATA_DIR
|
|
71
71
|
from operate.data.contracts.dual_staking_token.contract import DualStakingTokenContract
|
|
72
|
-
from operate.data.contracts.recovery_module.contract import RecoveryModule
|
|
73
72
|
from operate.data.contracts.staking_token.contract import StakingTokenContract
|
|
74
73
|
from operate.ledger import (
|
|
75
74
|
get_default_ledger_api,
|
|
@@ -1807,21 +1806,10 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1807
1806
|
|
|
1808
1807
|
def get_recover_access_data(self, service_id: int) -> t.Dict:
|
|
1809
1808
|
"""Get recover access tx data."""
|
|
1810
|
-
instance =
|
|
1811
|
-
RecoveryModule,
|
|
1812
|
-
RecoveryModule.from_dir(
|
|
1813
|
-
directory=str(DATA_DIR / "contracts" / "recovery_module"),
|
|
1814
|
-
),
|
|
1815
|
-
).get_instance(
|
|
1809
|
+
instance = registry_contracts.recovery_module.get_instance(
|
|
1816
1810
|
ledger_api=self.ledger_api,
|
|
1817
1811
|
contract_address=self.contracts["recovery_module"],
|
|
1818
1812
|
)
|
|
1819
|
-
# TODO Replace the line above by this one once the recovery_module is
|
|
1820
|
-
# included in the release of OpenAutonomy.
|
|
1821
|
-
# instance = registry_contracts.recovery_module.get_instance( # noqa: E800
|
|
1822
|
-
# ledger_api=self.ledger_api, # noqa: E800
|
|
1823
|
-
# contract_address=self.contracts["recovery_module"], # noqa: E800
|
|
1824
|
-
# ) # noqa: E800
|
|
1825
1813
|
txd = instance.encode_abi(
|
|
1826
1814
|
abi_element_identifier="recoverAccess",
|
|
1827
1815
|
args=[service_id],
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# ------------------------------------------------------------------------------
|
|
3
|
-
#
|
|
4
|
-
# Copyright 2025 Valory AG
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
18
|
-
# ------------------------------------------------------------------------------
|
|
19
|
-
|
|
20
|
-
"""This module contains the support resources for the `RecoveryModule` contract."""
|