[][src]Crate abci

Tendermint ABCI library for Rust

This library provides an application Trait and TCP server for implementing Tendemint ABCI application in Rust. The Application Trait provides default implementations for each callback to simplify development.

Example

Here's a simple example that communicates with Tendermint. Defaults callbacks are handled by the Trait. The app doesn't do any actual processing on a transaction.

struct EmptyApp;

impl abci::Application for EmptyApp {}

fn main() {
    abci::run_local(EmptyApp);
}

Structs

BlockID
BlockSizeParams
ConsensusParams
Evidence
EvidenceParams
Header
KI64Pair
KVPair
LastCommitInfo
PartSetHeader
Proof
ProofOp
PubKey
Request
RequestBeginBlock
RequestCheckTx
RequestCommit
RequestDeliverTx
RequestEcho
RequestEndBlock
RequestFlush
RequestInfo
RequestInitChain
RequestQuery
RequestSetOption
Response
ResponseBeginBlock
ResponseCheckTx
ResponseCommit
ResponseDeliverTx
ResponseEcho
ResponseEndBlock
ResponseException
ResponseFlush
ResponseInfo
ResponseInitChain
ResponseQuery
ResponseSetOption
Validator
ValidatorParams
ValidatorUpdate
Version
VoteInfo

Enums

Request_oneof_value
Response_oneof_value

Traits

Application

Main Trait for an ABCI application. Provides generic responses for all callbacks Override desired callbacks as needed. Tendermint makes 3 TCP connections to the application and does so in a synchonized manner.

Functions

run

Setup the application and start the server. Use this fn when setting different ip:port.

run_local

Setup the app and start the server using localhost and default tendermint port 26658