build_accountable_settlement_rows_from_logs
Documentation for eth_defi.erc_4626.vault_protocol.accountable.settlement.build_accountable_settlement_rows_from_logs function.
- build_accountable_settlement_rows_from_logs(vault, logs, event_by_topic=None)
Build and de-duplicate Accountable settlement transaction markers.
A strategy fulfilment can emit several
RedeemClaimablelogs in one transaction. The generic settlement table has no amount columns, so this collapses such logs to one marker while preserving distinct transactions in the same block.- Parameters
vault (eth_defi.erc_4626.vault_protocol.accountable.vault.AccountableVault) – Accountable vault adapter.
logs (list[web3.datastructures.AttributeDict]) – Web3-compatible
RedeemClaimablelogs.event_by_topic (Optional[dict[str, web3.contract.contract.ContractEvent | str]]) – Optional topic map used for the stable event name.
- Returns
Unique rows sorted by block and transaction hash.
- Raises
ValueError – If a candidate log cannot be decoded by the ABI.
- Return type