Trait tendermint_abci::Application[][src]

pub trait Application: Send + Clone + 'static {
Show methods fn echo(&self, request: RequestEcho) -> ResponseEcho { ... }
fn info(&self, _request: RequestInfo) -> ResponseInfo { ... }
fn init_chain(&self, _request: RequestInitChain) -> ResponseInitChain { ... }
fn query(&self, _request: RequestQuery) -> ResponseQuery { ... }
fn check_tx(&self, _request: RequestCheckTx) -> ResponseCheckTx { ... }
fn begin_block(&self, _request: RequestBeginBlock) -> ResponseBeginBlock { ... }
fn deliver_tx(&self, _request: RequestDeliverTx) -> ResponseDeliverTx { ... }
fn end_block(&self, _request: RequestEndBlock) -> ResponseEndBlock { ... }
fn flush(&self) -> ResponseFlush { ... }
fn commit(&self) -> ResponseCommit { ... }
fn set_option(&self, _request: RequestSetOption) -> ResponseSetOption { ... }
fn list_snapshots(&self) -> ResponseListSnapshots { ... }
fn offer_snapshot(
        &self,
        _request: RequestOfferSnapshot
    ) -> ResponseOfferSnapshot { ... }
fn load_snapshot_chunk(
        &self,
        _request: RequestLoadSnapshotChunk
    ) -> ResponseLoadSnapshotChunk { ... }
fn apply_snapshot_chunk(
        &self,
        _request: RequestApplySnapshotChunk
    ) -> ResponseApplySnapshotChunk { ... }
}
Expand description

An ABCI application.

Applications are Send + Clone + 'static because they are cloned for each incoming connection to the ABCI Server. It is up to the application developer to manage shared state between these clones of their application.

Provided methods

Echo back the same message as provided in the request.

Provide information about the ABCI application.

Called once upon genesis.

Query the application for data at the current or past height.

Check the given transaction before putting it into the local mempool.

Signals the beginning of a new block, prior to any DeliverTx calls.

Apply a transaction to the application’s state.

Signals the end of a block.

Signals that messages queued on the client should be flushed to the server.

Commit the current state at the current height.

Allows the Tendermint node to request that the application set an option to a particular value.

Used during state sync to discover available snapshots on peers.

Called when bootstrapping the node using state sync.

Used during state sync to retrieve chunks of snapshots from peers.

Apply the given snapshot chunk to the application’s state.

Implementors