erc_4626.vault_protocol.accountable.settlement
Documentation for eth_defi.erc_4626.vault_protocol.accountable.settlement Python module.
Historical Accountable redemption-settlement event reader.
Only RedeemClaimable marks Accountable settlement. A subsequent ERC-4626
Withdraw merely transfers already-claimable assets, so it must not be
treated as a new vault settlement. Generic settlement rows are transaction
markers and intentionally do not retain individual request quantities.
Functions
Build and de-duplicate Accountable settlement transaction markers. |
|
|
Fetch Accountable claimability settlement transaction markers. |
Return Accountable settlement events indexed by topic zero. |
- fetch_accountable_settlements(vault, start_block, end_block, use_hypersync=None, chunk_size=50000)
Fetch Accountable claimability settlement transaction markers.
- Parameters
vault (eth_defi.erc_4626.vault_protocol.accountable.vault.AccountableVault) – Accountable vault adapter.
start_block (int) – Inclusive event range start.
end_block (int) – Inclusive event range end.
use_hypersync (Optional[bool]) – Whether to use Hypersync, or auto-detect it.
chunk_size (int) – JSON-RPC fallback log chunk size.
- Returns
One marker per transaction containing claimability events.
- Return type
- get_accountable_settlement_events_by_topic(vault)
Return Accountable settlement events indexed by topic zero.
- Parameters
vault (eth_defi.erc_4626.vault_protocol.accountable.vault.AccountableVault) – Accountable vault adapter.
- Returns
Mapping containing only
RedeemClaimable.- Return type
- 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