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.