Skip to content

packages.valory.skills.transaction_settlement_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.

RandomnessPayload Objects

class RandomnessPayload(BaseTxPayload)

Represent a transaction payload of type 'randomness'.

__init__

def __init__(sender: str, round_id: int, randomness: str, **kwargs: Any) -> None

Initialize an 'select_keeper' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • round_id: the round id
  • randomness: the randomness
  • kwargs: the keyword arguments

round_id

@property
def round_id() -> int

Get the round id.

randomness

@property
def randomness() -> str

Get the randomness.

data

@property
def data() -> Dict

Get the data.

SelectKeeperPayload Objects

class SelectKeeperPayload(BaseTxPayload)

Represent a transaction payload of type 'select_keeper'.

__init__

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

Initialize a 'select_keeper' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • keepers: the updated keepers
  • kwargs: the keyword arguments

keepers

@property
def keepers() -> str

Get the keeper.

data

@property
def data() -> Dict[str, str]

Get the data.

ValidatePayload Objects

class ValidatePayload(BaseTxPayload)

Represent a transaction payload of type 'validate'.

__init__

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

Initialize an 'validate' transaction payload.

Arguments:

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

vote

@property
def vote() -> Optional[bool]

Get the vote.

data

@property
def data() -> Dict

Get the data.

CheckTransactionHistoryPayload Objects

class CheckTransactionHistoryPayload(BaseTxPayload)

Represent a transaction payload of type 'check'.

__init__

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

Initialize an 'check' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • verified_res: the verification result
  • kwargs: the keyword arguments

verified_res

@property
def verified_res() -> str

Get the verified result.

data

@property
def data() -> Dict

Get the data.

SynchronizeLateMessagesPayload Objects

class SynchronizeLateMessagesPayload(BaseTxPayload)

Represent a transaction payload of type 'synchronize'.

__init__

def __init__(sender: str, tx_hashes: str = "", **kwargs: Any) -> None

Initialize a 'synchronize' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • tx_hashes: the late-arriving tx hashes concatenated
  • kwargs: the keyword arguments

tx_hashes

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

Get the late-arriving tx hashes.

data

@property
def data() -> Dict[str, Optional[str]]

Get the data.

SignaturePayload Objects

class SignaturePayload(BaseTxPayload)

Represent a transaction payload of type 'signature'.

__init__

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

Initialize an 'signature' transaction payload.

Arguments:

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

signature

@property
def signature() -> str

Get the signature.

data

@property
def data() -> Dict

Get the data.

FinalizationTxPayload Objects

class FinalizationTxPayload(BaseTxPayload)

Represent a transaction payload of type 'finalization'.

__init__

def __init__(sender: str, tx_data: Optional[Dict[str, Union[str, int, bool]]] = None, **kwargs: Any) -> None

Initialize an 'finalization' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • tx_data: the transaction data
  • kwargs: the keyword arguments

tx_data

@property
def tx_data() -> Optional[Dict[str, Union[str, int, bool]]]

Get the tx_data.

data

@property
def data() -> Dict[str, Dict[str, Union[str, int, bool]]]

Get the data.

ResetPayload Objects

class ResetPayload(BaseTxPayload)

Represent a transaction payload of type 'reset'.

__init__

def __init__(sender: str, period_count: int, **kwargs: Any) -> None

Initialize an 'reset' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • period_count: the period count id
  • kwargs: the keyword arguments

period_count

@property
def period_count() -> int

Get the period_count.

data

@property
def data() -> Dict

Get the data.

Back to top