olas-operate-middleware 0.12.1__py3-none-any.whl → 0.12.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: olas-operate-middleware
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary:
5
5
  License-File: LICENSE
6
6
  Author: David Vilela
@@ -60,7 +60,7 @@ operate/data/contracts/uniswap_v2_erc20/tests/test_contract.py,sha256=FzZbw9OTcr
60
60
  operate/keys.py,sha256=ufnH4655vj0h7WGYMjPo-nwvVhZWRHdjyw4UYL-McIk,5959
61
61
  operate/ledger/__init__.py,sha256=G0iWcA0Rc-Um8NwpwPJWsQNUQb2tWKyDjzirxPhGc98,6517
62
62
  operate/ledger/profiles.py,sha256=7dxUFzjlT-VNpu9z45qeqPGyz5fDz0bM3LUK9VLcgJk,14272
63
- operate/migration.py,sha256=cE0SMZPLW8PG0BsjivYxXoYtSecBR5rRJwBU_9k10hM,19830
63
+ operate/migration.py,sha256=hjTKumZYWEW3G03Cd_bCV1JITn4JGgexR1sPbsEoAm0,19885
64
64
  operate/operate_http/__init__.py,sha256=dxCIVSUos23M4R-PFZZG6k5QrOlEiK0SxhCYSFNxh7U,4711
65
65
  operate/operate_http/exceptions.py,sha256=4UFzrn-GyDD71RhkaOyFPBynL6TrrtP3eywaaU3o4fc,1339
66
66
  operate/operate_types.py,sha256=hGzYW47MPxOQuvDQAD_TqyIHxNReTeDYQI_uKrfJ1Jc,15570
@@ -70,7 +70,7 @@ operate/quickstart/claim_staking_rewards.py,sha256=K7X1Yq0mxe3qWmFLb1Xu9-Jghhml9
70
70
  operate/quickstart/reset_configs.py,sha256=DVPM4mh6Djunwq16hf8lD9-nGkkm7wVtwr2JUXr1if8,3380
71
71
  operate/quickstart/reset_password.py,sha256=ZlsRUiISQo4GVnIqB0-WmkvLeCW_ck2cRdEjIw5xMNI,2424
72
72
  operate/quickstart/reset_staking.py,sha256=SB5LZq9EctG4SYn2M6oPZ7R7ARHSFLRGzAqfKkpRcy0,5111
73
- operate/quickstart/run_service.py,sha256=yej4VRYcOaBJfT-LLqOe6VQ7i38PrRoAarr-U74CkvA,27653
73
+ operate/quickstart/run_service.py,sha256=34T4TUijyzLFQim4NEJcdq5OyqbRxxE_E1IW_vXSo2A,27760
74
74
  operate/quickstart/stop_service.py,sha256=CNcCucI4sqfZG0wTxxh-k14xGcbOh50UGyXqTZVQJP0,2048
75
75
  operate/quickstart/terminate_on_chain_service.py,sha256=5ENU8_mkj06i80lKUX-v1QbLU0YzKeOZDUL1e_jzySE,2914
76
76
  operate/quickstart/utils.py,sha256=jvi7IgPtJEWf7-ciZFyEh_jgNthhv3Pus4VZa_Ha_ms,9221
@@ -94,8 +94,8 @@ operate/utils/ssl.py,sha256=O5DrDoZD4T4qQuHP8GLwWUVxQ-1qXeefGp6uDJiF2lM,4308
94
94
  operate/wallet/__init__.py,sha256=NGiozD3XhvkBi7_FaOWQ8x1thZPK4uGpokJaeDY_o2w,813
95
95
  operate/wallet/master.py,sha256=gcax6M8_KT2IkL0kGZP4lF4f2updoP5r6ix5e72ZrL4,33674
96
96
  operate/wallet/wallet_recovery_manager.py,sha256=ZOLq0B9irux_og8pLBzaxlRA1r6RqJfZA4j4RX0kzoU,7775
97
- olas_operate_middleware-0.12.1.dist-info/METADATA,sha256=CH_Q_4qNHt1668YA-v-uADVbekGaxOMQrtGg_r1Qa84,2139
98
- olas_operate_middleware-0.12.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
99
- olas_operate_middleware-0.12.1.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
100
- olas_operate_middleware-0.12.1.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
101
- olas_operate_middleware-0.12.1.dist-info/RECORD,,
97
+ olas_operate_middleware-0.12.2.dist-info/METADATA,sha256=G-t5M3ar2O1zW4YKuP_DsUSVpPXrt7OJQrN-4wb-fck,2139
98
+ olas_operate_middleware-0.12.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
99
+ olas_operate_middleware-0.12.2.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
100
+ olas_operate_middleware-0.12.2.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
101
+ olas_operate_middleware-0.12.2.dist-info/RECORD,,
operate/migration.py CHANGED
@@ -468,7 +468,9 @@ class MigrationManager:
468
468
  or key_file.suffix == ".bak"
469
469
  or not Web3.is_address(key_file.name)
470
470
  ):
471
- self.logger.warning(f"Skipping non-key file: {key_file}")
471
+ if not key_file.suffix == ".bak":
472
+ self.logger.warning(f"Skipping non-key file: {key_file}")
473
+
472
474
  continue
473
475
 
474
476
  migrated = False
@@ -37,6 +37,7 @@ from operate.account.user import UserAccount
37
37
  from operate.constants import IPFS_ADDRESS, NO_STAKING_PROGRAM_ID, USER_JSON
38
38
  from operate.data import DATA_DIR
39
39
  from operate.data.contracts.staking_token.contract import StakingTokenContract
40
+ from operate.ledger import DEFAULT_RPCS
40
41
  from operate.ledger.profiles import STAKING, get_staking_contract
41
42
  from operate.operate_types import (
42
43
  Chain,
@@ -205,6 +206,7 @@ def configure_local_config(
205
206
  f"{chain.upper()}_LEDGER_RPC",
206
207
  )
207
208
  os.environ[f"{chain.upper()}_LEDGER_RPC"] = config.rpc[chain]
209
+ DEFAULT_RPCS[Chain.from_string(chain)] = config.rpc[chain]
208
210
 
209
211
  config.principal_chain = template["home_chain"]
210
212