feat: update test suite to support DCI enabled protocols (#225)
* feat: update tycho-client and support testing DCI enabled protocols * refactor: improve python Typing * test: update test suite tycho-simulation dependency The updated version includes an account_balances fix. * refactor: use sets instead of lists * feat: update tycho-client test dependency
This commit is contained in:
@@ -32,7 +32,6 @@ def build_snapshot_message(
|
||||
for state in protocol_states:
|
||||
pool_id = state.component_id
|
||||
if pool_id not in states:
|
||||
log.warning(f"State for pool {pool_id} not found in components")
|
||||
continue
|
||||
states[pool_id]["state"] = state
|
||||
|
||||
@@ -62,7 +61,7 @@ def token_factory(rpc_client: TychoRPCClient) -> callable(HexBytes):
|
||||
if to_fetch:
|
||||
pagination = PaginationParams(page_size=len(to_fetch), page=0)
|
||||
params = TokensParams(token_addresses=to_fetch, pagination=pagination)
|
||||
tokens = _client.get_tokens(params)
|
||||
tokens = _client.get_tokens(params).tokens
|
||||
for token in tokens:
|
||||
address = to_checksum_address(token.address)
|
||||
eth_token = EthereumToken(
|
||||
|
||||
Reference in New Issue
Block a user