VaultDirectPayoutEvidence
Documentation for eth_defi.vault.deposit_redeem.VaultDirectPayoutEvidence Python class.
- class VaultDirectPayoutEvidence
Bases:
objectEvidence for an asynchronous request settled by direct token payment.
Some protocols consume a request and pay the receiver without exposing an intermediate claimable state. Such a transition is terminal only when the request-specific event and the receiver’s denomination-token balance agree. This intentionally contains no protocol-specific event payload so consumers can apply the same terminal-result rule to every adapter.
- Parameters
request_id – Identifier of the request consumed by the settlement transaction.
receiver – Receiver whose denomination-token balance was observed.
denomination_token – Token paid by the direct settlement.
raw_balance_before – Receiver balance immediately before the settlement transaction.
raw_balance_after – Receiver balance immediately after the settlement transaction.
event_name – Name of the decoded request-specific settlement event.
transaction_hash – Transaction that emitted
event_nameand paid the receiver.
Attributes summary
request_idreceiverdenomination_tokenraw_balance_beforeraw_balance_afterevent_nametransaction_hashMethods summary
__init__(request_id, receiver, ...)Return whether the observed direct payment increased the balance.
- has_positive_balance_delta()
Return whether the observed direct payment increased the balance.
- Returns
Trueonly when the receiver received a positive raw amount.- Return type
- __init__(request_id, receiver, denomination_token, raw_balance_before, raw_balance_after, event_name, transaction_hash)
- Parameters
request_id (int) –
receiver (eth_typing.evm.HexAddress) –
denomination_token (eth_typing.evm.HexAddress) –
raw_balance_before (int) –
raw_balance_after (int) –
event_name (str) –
transaction_hash (hexbytes.main.HexBytes) –
- Return type
None