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
@@ -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 master wallet manager."""
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, logger=self.logger, password=new_password
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("Password is not valid.")
148
+ raise ValueError(MSG_INVALID_PASSWORD)
149
149
 
150
150
  new_wallet_manager = MasterWalletManager(
151
- path=new_wallets_path, logger=self.logger, password=password
151
+ path=new_wallets_path, password=password
152
152
  )
153
153
 
154
154
  ledger_types = {item.ledger_type for item in self.wallet_manager}