Skip to content

packages.valory.skills.oracle_deployment_abci.payloads

This module contains the transaction payloads for the oracle deployment app.

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, keeper: str, **kwargs: Any) -> None

Initialize an 'select_keeper' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • keeper: the keeper selection
  • kwargs: the keyword arguments

keeper

@property
def keeper() -> str

Get the keeper.

data

@property
def data() -> Dict

Get the data.

ValidateOraclePayload Objects

class ValidateOraclePayload(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.

DeployOraclePayload Objects

class DeployOraclePayload(BaseTxPayload)

Represent a transaction payload of type 'deploy_oracle'.

__init__

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

Initialize a 'deploy_safe' transaction payload.

Arguments:

  • sender: the sender (Ethereum) address
  • oracle_contract_address: the Safe contract address
  • kwargs: the keyword arguments

oracle_contract_address

@property
def oracle_contract_address() -> str

Get the Oracle contract address.

data

@property
def data() -> Dict

Get the data.

Back to top