Skip to content

packages.valory.protocols.abci.message

This module contains abci's message definition.

AbciMessage Objects

class AbciMessage(Message)

A protocol for ABCI requests and responses.

Performative Objects

class Performative(Message.Performative)

Performatives for the abci protocol.

__str__

def __str__() -> str

Get the string representation.

__init__

def __init__(performative: Performative, dialogue_reference: Tuple[str, str] = ("", ""), message_id: int = 1, target: int = 0, **kwargs: Any, ,)

Initialise an instance of AbciMessage.

Arguments:

:param **kwargs: extra options. - message_id: the message id. - dialogue_reference: the dialogue reference. - target: the message target. - performative: the message performative.

valid_performatives

@property
def valid_performatives() -> Set[str]

Get valid performatives.

dialogue_reference

@property
def dialogue_reference() -> Tuple[str, str]

Get the dialogue_reference of the message.

message_id

@property
def message_id() -> int

Get the message_id of the message.

performative

@property
def performative() -> Performative

Get the performative of the message.

target

@property
def target() -> int

Get the target of the message.

app_hash

@property
def app_hash() -> bytes

Get the 'app_hash' content from the message.

app_state_bytes

@property
def app_state_bytes() -> bytes

Get the 'app_state_bytes' content from the message.

app_version

@property
def app_version() -> int

Get the 'app_version' content from the message.

block_version

@property
def block_version() -> int

Get the 'block_version' content from the message.

byzantine_validators

@property
def byzantine_validators() -> CustomEvidences

Get the 'byzantine_validators' content from the message.

chain_id

@property
def chain_id() -> str

Get the 'chain_id' content from the message.

chunk

@property
def chunk() -> bytes

Get the 'chunk' content from the message.

chunk_index

@property
def chunk_index() -> int

Get the 'chunk_index' content from the message.

chunk_sender

@property
def chunk_sender() -> str

Get the 'chunk_sender' content from the message.

code

@property
def code() -> int

Get the 'code' content from the message.

codespace

@property
def codespace() -> str

Get the 'codespace' content from the message.

consensus_param_updates

@property
def consensus_param_updates() -> Optional[CustomConsensusParams]

Get the 'consensus_param_updates' content from the message.

consensus_params

@property
def consensus_params() -> Optional[CustomConsensusParams]

Get the 'consensus_params' content from the message.

data

@property
def data() -> bytes

Get the 'data' content from the message.

dummy_consensus_params

@property
def dummy_consensus_params() -> CustomConsensusParams

Get the 'dummy_consensus_params' content from the message.

error

@property
def error() -> str

Get the 'error' content from the message.

events

@property
def events() -> CustomEvents

Get the 'events' content from the message.

format

@property
def format() -> int

Get the 'format' content from the message.

gas_used

@property
def gas_used() -> int

Get the 'gas_used' content from the message.

gas_wanted

@property
def gas_wanted() -> int

Get the 'gas_wanted' content from the message.

hash

@property
def hash() -> bytes

Get the 'hash' content from the message.

@property
def header() -> CustomHeader

Get the 'header' content from the message.

height

@property
def height() -> int

Get the 'height' content from the message.

index

@property
def index() -> int

Get the 'index' content from the message.

info

@property
def info() -> str

Get the 'info' content from the message.

info_data

@property
def info_data() -> str

Get the 'info_data' content from the message.

initial_height

@property
def initial_height() -> int

Get the 'initial_height' content from the message.

key

@property
def key() -> bytes

Get the 'key' content from the message.

last_block_app_hash

@property
def last_block_app_hash() -> bytes

Get the 'last_block_app_hash' content from the message.

last_block_height

@property
def last_block_height() -> int

Get the 'last_block_height' content from the message.

last_commit_info

@property
def last_commit_info() -> CustomLastCommitInfo

Get the 'last_commit_info' content from the message.

log

@property
def log() -> str

Get the 'log' content from the message.

message

@property
def message() -> str

Get the 'message' content from the message.

option_key

@property
def option_key() -> str

Get the 'option_key' content from the message.

option_value

@property
def option_value() -> str

Get the 'option_value' content from the message.

p2p_version

@property
def p2p_version() -> int

Get the 'p2p_version' content from the message.

path

@property
def path() -> str

Get the 'path' content from the message.

proof_ops

@property
def proof_ops() -> CustomProofOps

Get the 'proof_ops' content from the message.

prove

@property
def prove() -> bool

Get the 'prove' content from the message.

query_data

@property
def query_data() -> bytes

Get the 'query_data' content from the message.

refetch_chunks

@property
def refetch_chunks() -> Tuple[int, ...]

Get the 'refetch_chunks' content from the message.

reject_senders

@property
def reject_senders() -> Tuple[str, ...]

Get the 'reject_senders' content from the message.

result

@property
def result() -> CustomResult

Get the 'result' content from the message.

retain_height

@property
def retain_height() -> int

Get the 'retain_height' content from the message.

snapshot

@property
def snapshot() -> CustomSnapshot

Get the 'snapshot' content from the message.

snapshots

@property
def snapshots() -> CustomSnapShots

Get the 'snapshots' content from the message.

time

@property
def time() -> CustomTimestamp

Get the 'time' content from the message.

tx

@property
def tx() -> bytes

Get the 'tx' content from the message.

type

@property
def type() -> CustomCheckTxType

Get the 'type' content from the message.

validator_updates

@property
def validator_updates() -> CustomValidatorUpdates

Get the 'validator_updates' content from the message.

validators

@property
def validators() -> CustomValidatorUpdates

Get the 'validators' content from the message.

value

@property
def value() -> bytes

Get the 'value' content from the message.

version

@property
def version() -> str

Get the 'version' content from the message.

Back to top