Skip to content

packages.valory.connections.abci.tendermint_encoder

Encode AEA messages into Tendermint protobuf messages.

_TendermintProtocolEncoder Objects

class _TendermintProtocolEncoder()

Decoder called by the server to process requests towards the TCP connection with Tendermint.

It translates from the AEA's ABCI protocol messages into Tendermint's ABCI Protobuf messages.

process

@classmethod
def process(cls, message: AbciMessage) -> Optional[Union[Request, Response]]

Encode an AbciMessage object into either Request or Response protobuf objects.

response_exception

@classmethod
def response_exception(cls, message: AbciMessage) -> Response

Process the response exception.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_echo

@classmethod
def response_echo(cls, message: AbciMessage) -> Response

Process the response echo.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_set_option

@classmethod
def response_set_option(cls, message: AbciMessage) -> Response

Process the response set_option.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_info

@classmethod
def response_info(cls, message: AbciMessage) -> Response

Process the response info.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_flush

@classmethod
def response_flush(cls, _message: AbciMessage) -> Response

Process the response flush.

Arguments:

  • _message: the response.

Returns:

the ABCI protobuf object.

response_init_chain

@classmethod
def response_init_chain(cls, message: AbciMessage) -> Response

Process the response init_chain.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_query

@classmethod
def response_query(cls, message: AbciMessage) -> Response

Process the response query.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_check_tx

@classmethod
def response_check_tx(cls, message: AbciMessage) -> Response

Process the response check_tx.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_deliver_tx

@classmethod
def response_deliver_tx(cls, message: AbciMessage) -> Response

Process the response deliver_tx.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_begin_block

@classmethod
def response_begin_block(cls, message: AbciMessage) -> Response

Process the response begin_block.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_end_block

@classmethod
def response_end_block(cls, message: AbciMessage) -> Response

Process the response end_block.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_commit

@classmethod
def response_commit(cls, message: AbciMessage) -> Response

Process the response commit.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_list_snapshots

@classmethod
def response_list_snapshots(cls, message: AbciMessage) -> Response

Process the response list_snapshots.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_offer_snapshot

@classmethod
def response_offer_snapshot(cls, message: AbciMessage) -> Response

Process the response offer_snapshot.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_load_snapshot_chunk

@classmethod
def response_load_snapshot_chunk(cls, message: AbciMessage) -> Response

Process the response load_snapshot_chunk.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

response_apply_snapshot_chunk

@classmethod
def response_apply_snapshot_chunk(cls, message: AbciMessage) -> Response

Process the response apply_snapshot_chunk.

Arguments:

  • message: the response.

Returns:

the ABCI protobuf object.

no_match

@classmethod
def no_match(cls, _request: Request) -> None

No match.