1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! Tendermint is a high-performance blockchain consensus engine that powers
//! Byzantine fault tolerant applications written in any programming language.
//! This crate provides core types for representing information about Tendermint
//! blockchain networks, including chain information types, secret connections,
//! and remote procedure calls (JSONRPC).

#![deny(
    warnings,
    missing_docs,
    trivial_casts,
    trivial_numeric_casts,
    unused_import_braces,
    unused_qualifications
)]
#![forbid(unsafe_code)]
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/tendermint/kms/master/img/tendermint.png",
    html_root_url = "https://docs.rs/tendermint/0.9.0"
)]

#[cfg(feature = "amino-types")]
extern crate prost_amino as prost;
#[cfg(feature = "amino-types")]
#[macro_use]
extern crate prost_amino_derive as prost_derive;

pub mod abci;
pub mod account;
#[cfg(feature = "amino-types")]
pub mod amino_types;
pub mod block;
pub mod chain;
#[cfg(feature = "rpc")]
pub mod channel;
pub mod consensus;
pub mod error;
pub mod evidence;
#[cfg(feature = "rpc")]
pub mod genesis;
pub mod hash;
mod moniker;
pub mod net;
pub mod node;
pub mod public_key;
#[cfg(feature = "rpc")]
pub mod rpc;
#[cfg(feature = "secret-connection")]
pub mod secret_connection;
#[cfg(feature = "serde")]
mod serializers;
pub mod signature;
pub mod time;
pub mod validator;
mod version;
pub mod vote;

#[cfg(feature = "rpc")]
pub use crate::genesis::Genesis;
#[cfg(feature = "secret-connection")]
pub use crate::secret_connection::SecretConnection;
pub use crate::{
    block::Block,
    error::Error,
    hash::Hash,
    moniker::Moniker,
    public_key::{PublicKey, TendermintKey},
    signature::Signature,
    time::Time,
    version::Version,
    vote::Vote,
};