Skip to content

packages.valory.skills.price_estimation_abci.payloads

This module contains the transaction payloads for common apps.

TransactionType Objects

class TransactionType(Enum)

Enumeration of transaction types.

__str__

def __str__() -> str

Get the string value of the transaction type.

TransactionHashPayload Objects

class TransactionHashPayload(BaseTxPayload)

Represent a transaction payload of type 'tx_hash'.

__init__

def __init__(sender: str, tx_hash: Optional[str] = None, **kwargs: Any) -> None

Initialize an 'tx_hash' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • tx_hash: the tx_hash
  • kwargs: the keyword arguments

tx_hash

@property
def tx_hash() -> Optional[str]

Get the tx_hash.

data

@property
def data() -> Dict

Get the data.

ObservationPayload Objects

class ObservationPayload(BaseTxPayload)

Represent a transaction payload of type 'observation'.

__init__

def __init__(sender: str, observation: float, **kwargs: Any) -> None

Initialize an 'observation' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • observation: the observation
  • kwargs: the keyword arguments

observation

@property
def observation() -> float

Get the observation.

data

@property
def data() -> Dict

Get the data.

EstimatePayload Objects

class EstimatePayload(BaseTxPayload)

Represent a transaction payload of type 'estimate'.

__init__

def __init__(sender: str, estimate: float, **kwargs: Any) -> None

Initialize an 'estimate' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • estimate: the estimate
  • kwargs: the keyword arguments

estimate

@property
def estimate() -> float

Get the estimate.

data

@property
def data() -> Dict

Get the data.

Back to top