VaultDirectPayoutEvidence

Documentation for eth_defi.vault.deposit_redeem.VaultDirectPayoutEvidence Python class.

class VaultDirectPayoutEvidence

Bases: object

Evidence 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_name and paid the receiver.

Attributes summary

request_id

receiver

denomination_token

raw_balance_before

raw_balance_after

event_name

transaction_hash

Methods summary

__init__(request_id, receiver, ...)

has_positive_balance_delta()

Return whether the observed direct payment increased the balance.

has_positive_balance_delta()

Return whether the observed direct payment increased the balance.

Returns

True only when the receiver received a positive raw amount.

Return type

bool

__init__(request_id, receiver, denomination_token, raw_balance_before, raw_balance_after, event_name, transaction_hash)
Parameters
Return type

None