Crate abci

source ·
Expand description

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);
}

Re-exports

pub use types::*;

Modules

Traits

Main Trait for 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

Setup the application and start the server. Use this fn when setting different ip:port.
Setup the app and start the server using localhost and default tendermint port 26658