olas-operate-middleware 0.11.2__py3-none-any.whl → 0.11.4__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.11.2
3
+ Version: 0.11.4
4
4
  Summary:
5
5
  License-File: LICENSE
6
6
  Author: David Vilela
@@ -58,14 +58,14 @@ operate/data/contracts/uniswap_v2_erc20/contract.yaml,sha256=XUdz-XtKtmZgLfItbO8
58
58
  operate/data/contracts/uniswap_v2_erc20/tests/__init__.py,sha256=3Arw8dsCsJz6hVOl0t9UjFASHXbV9yp3hw6x4HqgXpU,847
59
59
  operate/data/contracts/uniswap_v2_erc20/tests/test_contract.py,sha256=FzZbw9OTcr_yvjOXpk9YcO-K40eyDARyybcfSHDg2Ps,13392
60
60
  operate/keys.py,sha256=IyXbKQkcH33021VaOfQC_ub0lHD6uCJaGtwGvjOMRs8,5650
61
- operate/ledger/__init__.py,sha256=P5rPmLtlZ9qk7jLvzLqg5TxL4mj-bJedRfT3Ie-CRzE,6688
61
+ operate/ledger/__init__.py,sha256=G0iWcA0Rc-Um8NwpwPJWsQNUQb2tWKyDjzirxPhGc98,6517
62
62
  operate/ledger/profiles.py,sha256=7dxUFzjlT-VNpu9z45qeqPGyz5fDz0bM3LUK9VLcgJk,14272
63
63
  operate/migration.py,sha256=TJhztfHUVhZ2buKHx10vXeVo1rRAORdbqGE8fLHL15I,17305
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
67
67
  operate/pearl.py,sha256=yrTpSXLu_ML3qT-uNxq3kScOyo31JyxBujiSMfMUbcg,1690
68
- operate/quickstart/analyse_logs.py,sha256=K11AWWevkddUIUzTe75J3fYVS6aLfi6kT_dAI9OjrX8,4195
68
+ operate/quickstart/analyse_logs.py,sha256=cAeAL2iUy0Po8Eor70tq54-Ibg-Dn8rkuaS167yjE_I,4198
69
69
  operate/quickstart/claim_staking_rewards.py,sha256=K7X1Yq0mxe3qWmFLb1Xu9-Jghhml95lS_LpM_BXii0o,3533
70
70
  operate/quickstart/reset_configs.py,sha256=DVPM4mh6Djunwq16hf8lD9-nGkkm7wVtwr2JUXr1if8,3380
71
71
  operate/quickstart/reset_password.py,sha256=78riP7zyFM2JMa1H8Dh6pg-PtLJLQS7PFzx9SECPACQ,2571
@@ -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.11.2.dist-info/METADATA,sha256=crE7tXpS-DKlnv2UJD6wLgjk4bo8LX_13vqAUC2F6pc,2139
98
- olas_operate_middleware-0.11.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
99
- olas_operate_middleware-0.11.2.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
100
- olas_operate_middleware-0.11.2.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
101
- olas_operate_middleware-0.11.2.dist-info/RECORD,,
97
+ olas_operate_middleware-0.11.4.dist-info/METADATA,sha256=OCiU3wnwIbDJhqkbMLXrOd4gW-0az-seeswdEEhwKJ8,2139
98
+ olas_operate_middleware-0.11.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
99
+ olas_operate_middleware-0.11.4.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
100
+ olas_operate_middleware-0.11.4.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
101
+ olas_operate_middleware-0.11.4.dist-info/RECORD,,
@@ -119,31 +119,27 @@ def make_chain_ledger_api(
119
119
  rpc: t.Optional[str] = None,
120
120
  ) -> LedgerApi:
121
121
  """Get default RPC chain type."""
122
+ if chain == Chain.SOLANA: # TODO: Complete when Solana is supported
123
+ raise NotImplementedError("Solana not yet supported.")
122
124
 
123
- if chain not in DEFAULT_LEDGER_APIS:
124
- if chain == Chain.SOLANA: # TODO: Complete when Solana is supported
125
- raise NotImplementedError("Solana not yet supported.")
126
-
127
- gas_price_strategies = deepcopy(DEFAULT_GAS_PRICE_STRATEGIES)
128
- if chain in (Chain.BASE, Chain.MODE, Chain.OPTIMISM):
129
- gas_price_strategies[EIP1559]["fallback_estimate"]["maxFeePerGas"] = to_wei(
130
- 5, GWEI
131
- )
132
-
133
- ledger_api = make_ledger_api(
134
- chain.ledger_type.name.lower(),
135
- address=rpc or get_default_rpc(chain=chain),
136
- chain_id=chain.id,
137
- gas_price_strategies=gas_price_strategies,
138
- poa_chain=chain == Chain.POLYGON,
125
+ gas_price_strategies = deepcopy(DEFAULT_GAS_PRICE_STRATEGIES)
126
+ if chain in (Chain.BASE, Chain.MODE, Chain.OPTIMISM):
127
+ gas_price_strategies[EIP1559]["fallback_estimate"]["maxFeePerGas"] = to_wei(
128
+ 5, GWEI
139
129
  )
140
130
 
141
- if chain == Chain.OPTIMISM:
142
- ledger_api.api.middleware_onion.inject(geth_poa_middleware, layer=0)
131
+ ledger_api = make_ledger_api(
132
+ chain.ledger_type.name.lower(),
133
+ address=rpc or get_default_rpc(chain=chain),
134
+ chain_id=chain.id,
135
+ gas_price_strategies=gas_price_strategies,
136
+ poa_chain=chain == Chain.POLYGON,
137
+ )
143
138
 
144
- DEFAULT_LEDGER_APIS[chain] = ledger_api
139
+ if chain == Chain.OPTIMISM:
140
+ ledger_api.api.middleware_onion.inject(geth_poa_middleware, layer=0)
145
141
 
146
- return DEFAULT_LEDGER_APIS[chain]
142
+ return ledger_api
147
143
 
148
144
 
149
145
  def get_default_ledger_api(chain: Chain) -> LedgerApi:
@@ -38,7 +38,7 @@ def find_build_directory(config_file: Path, operate: "OperateApp") -> Path:
38
38
  config = json.load(f)
39
39
  config_service_hash = config.get("hash")
40
40
 
41
- services = operate.service_manager().get_all_services()
41
+ services, _ = operate.service_manager().get_all_services()
42
42
  for service in services:
43
43
  if service.hash == config_service_hash:
44
44
  build_dir = service.path / DEPLOYMENT_DIR