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.
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/METADATA +3 -1
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/RECORD +30 -27
- operate/bridge/bridge_manager.py +10 -12
- operate/bridge/providers/lifi_provider.py +5 -4
- operate/bridge/providers/native_bridge_provider.py +6 -5
- operate/bridge/providers/provider.py +22 -87
- operate/bridge/providers/relay_provider.py +5 -4
- operate/cli.py +446 -168
- operate/constants.py +22 -2
- operate/keys.py +13 -0
- operate/ledger/__init__.py +107 -2
- operate/ledger/profiles.py +79 -11
- operate/operate_types.py +205 -2
- operate/quickstart/run_service.py +6 -10
- operate/services/agent_runner.py +5 -3
- operate/services/deployment_runner.py +3 -0
- operate/services/funding_manager.py +904 -0
- operate/services/health_checker.py +4 -4
- operate/services/manage.py +183 -310
- operate/services/protocol.py +392 -140
- operate/services/service.py +81 -5
- operate/settings.py +70 -0
- operate/utils/__init__.py +0 -29
- operate/utils/gnosis.py +79 -24
- operate/utils/single_instance.py +226 -0
- operate/wallet/master.py +221 -181
- operate/wallet/wallet_recovery_manager.py +5 -5
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/WHEEL +0 -0
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/entry_points.txt +0 -0
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -26,7 +26,7 @@ from logging import Logger
|
|
|
26
26
|
from pathlib import Path
|
|
27
27
|
|
|
28
28
|
from operate.account.user import UserAccount
|
|
29
|
-
from operate.constants import USER_JSON, WALLETS_DIR
|
|
29
|
+
from operate.constants import MSG_INVALID_PASSWORD, USER_JSON, WALLETS_DIR
|
|
30
30
|
from operate.utils.gnosis import get_owners
|
|
31
31
|
from operate.wallet.master import MasterWalletManager
|
|
32
32
|
|
|
@@ -49,7 +49,7 @@ class WalletRecoveryManager:
|
|
|
49
49
|
logger: Logger,
|
|
50
50
|
wallet_manager: MasterWalletManager,
|
|
51
51
|
) -> None:
|
|
52
|
-
"""Initialize
|
|
52
|
+
"""Initialize wallet recovery manager."""
|
|
53
53
|
self.path = path
|
|
54
54
|
self.logger = logger
|
|
55
55
|
self.wallet_manager = wallet_manager
|
|
@@ -77,7 +77,7 @@ class WalletRecoveryManager:
|
|
|
77
77
|
|
|
78
78
|
new_wallets_path = new_root / WALLETS_DIR
|
|
79
79
|
new_wallet_manager = MasterWalletManager(
|
|
80
|
-
path=new_wallets_path,
|
|
80
|
+
path=new_wallets_path, password=new_password
|
|
81
81
|
)
|
|
82
82
|
new_wallet_manager.setup()
|
|
83
83
|
|
|
@@ -145,10 +145,10 @@ class WalletRecoveryManager:
|
|
|
145
145
|
|
|
146
146
|
new_user_account = UserAccount.load(new_root / USER_JSON)
|
|
147
147
|
if not new_user_account.is_valid(password=password):
|
|
148
|
-
raise ValueError(
|
|
148
|
+
raise ValueError(MSG_INVALID_PASSWORD)
|
|
149
149
|
|
|
150
150
|
new_wallet_manager = MasterWalletManager(
|
|
151
|
-
path=new_wallets_path,
|
|
151
|
+
path=new_wallets_path, password=password
|
|
152
152
|
)
|
|
153
153
|
|
|
154
154
|
ledger_types = {item.ledger_type for item in self.wallet_manager}
|
{olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|