packages.valory.connections.abci.tests.test_
fuzz.mock_
node.channels.base
BaseChannel for MockNode
BaseChannel Objects
class BaseChannel()
Defines the interface for other channels to use
__
init__
def __init__(**kwargs: Dict) -> None
Initializes a channel
connect
def connect() -> None
Set up the channel.
By default, it is a no-op.
disconnect
def disconnect() -> None
Tear down the channel.
By default, it is a no-op.
send_
info
def send_info(request: abci_types.RequestInfo) -> abci_types.ResponseInfo
Sends an info request.
:param: request: RequestInfo pb object
send_
echo
def send_echo(request: abci_types.RequestEcho) -> abci_types.ResponseEcho
Sends an echo request.
:param: request: RequestEcho pb object
send_
flush
def send_flush(request: abci_types.RequestFlush) -> abci_types.ResponseFlush
Sends an flush request.
:param: request: RequestFlush pb object
send_
set_
option
def send_set_option(
request: abci_types.RequestSetOption) -> abci_types.ResponseSetOption
Sends an setOption request.
:param: request: RequestSetOption pb object
send_
deliver_
tx
def send_deliver_tx(
request: abci_types.RequestDeliverTx) -> abci_types.ResponseDeliverTx
Sends an deliverTx request.
:param: request: RequestDeliverTx pb object
send_
check_
tx
def send_check_tx(
request: abci_types.RequestCheckTx) -> abci_types.ResponseCheckTx
Sends an checkTx request.
:param: request: RequestCheckTx pb object
send_
query
def send_query(request: abci_types.RequestQuery) -> abci_types.ResponseQuery
Sends an query request.
:param: request: RequestQuery pb object
send_
commit
def send_commit(
request: abci_types.RequestCommit) -> abci_types.ResponseCommit
Sends an commit request.
:param: request: RequestCommit pb object
send_
init_
chain
def send_init_chain(
request: abci_types.RequestInitChain) -> abci_types.ResponseInitChain
Sends an initChain request.
:param: request: RequestInitChain pb object
send_
begin_
block
def send_begin_block(
request: abci_types.RequestBeginBlock
) -> abci_types.ResponseBeginBlock
Sends an beginBlock request.
:param: request: RequestBeginBlock pb object
send_
end_
block
def send_end_block(
request: abci_types.RequestEndBlock) -> abci_types.ResponseEndBlock
Sends an endBlock request.
:param: request: RequestEndBlock pb object
send_
list_
snapshots
def send_list_snapshots(
request: abci_types.RequestListSnapshots
) -> abci_types.ResponseListSnapshots
Sends an listSnapshots request.
:param: request: RequestListSnapshots pb object
send_
offer_
snapshot
def send_offer_snapshot(
request: abci_types.RequestOfferSnapshot
) -> abci_types.ResponseOfferSnapshot
Sends an offerSnapshot request.
:param: request: RequestOfferSnapshot pb object
send_
load_
snapshot_
chunk
def send_load_snapshot_chunk(
request: abci_types.RequestLoadSnapshotChunk
) -> abci_types.ResponseLoadSnapshotChunk
Sends an loadSnapshotChunk request.
:param: request: RequestLoadSnapshotChunk pb object
send_
apply_
snapshot_
chunk
def send_apply_snapshot_chunk(
request: abci_types.RequestApplySnapshotChunk
) -> abci_types.ResponseApplySnapshotChunk
Sends an applySnapshotChunk request.
:param: request: RequestApplySnapshotChunk pb object