Human Protocol SDK
v2.0.0
Search
K

filter

class human_protocol_sdk.filter.EscrowFilter(networks, launcher=None, reputation_oracle=None, recording_oracle=None, exchange_oracle=None, job_requester_id=None, status=None, date_from=None, date_to=None)

Bases: object
A class used to filter escrow requests.

__init__(networks, launcher=None, reputation_oracle=None, recording_oracle=None, exchange_oracle=None, job_requester_id=None, status=None, date_from=None, date_to=None)

Initializes a EscrowFilter instance.
  • Parameters:
    • networks (List[ChainId]) – Networks to request data
    • launcher (Optional[str]) – Launcher address
    • reputation_oracle (Optional[str]) – Reputation oracle address
    • recording_oracle (Optional[str]) – Recording oracle address
    • exchange_oracle (Optional[str]) – Exchange oracle address
    • job_requester_id (Optional[str]) – Job requester id
    • status (Optional[Status]) – Escrow status
    • date_from (Optional[datetime]) – Created from date
    • date_to (Optional[datetime]) – Created to date

exception human_protocol_sdk.filter.FilterError

Bases: Exception
Raises when some error happens when building filter object.

class human_protocol_sdk.filter.PayoutFilter(escrow_address=None, recipient=None, date_from=None, date_to=None)

Bases: object
A class used to filter payout requests.

__init__(escrow_address=None, recipient=None, date_from=None, date_to=None)

Initializes a PayoutFilter instance.
  • Parameters:
    • escrow_address (Optional[str]) – Escrow address
    • recipient (Optional[str]) – Recipient address
    • date_from (Optional[datetime]) – Created from date
    • date_to (Optional[datetime]) – Created to date
Last modified 1mo ago