ibc_core_handler/
lib.rs

1//! Exposes IBC handler entry points for an integrated IBC core modules. These
2//! entry points are responsible for processing incoming IBC messages,
3//! performing validation, and execution logics by invoking the appropriate
4//! module handler.
5//!
6//! When processing a given message `M`, if any method in this library returns
7//! an error, the runtime is expected to rollback all state modifications made
8//! to the context (e.g. [`ExecutionContext`](ibc_core_host::ExecutionContext))
9//! while processing `M`. If the transaction containing `M` consists of multiple
10//! messages, then typically the state modifications from all messages are
11//! expected to be rolled back as well.
12#![no_std]
13#![forbid(unsafe_code)]
14#![cfg_attr(not(test), deny(clippy::unwrap_used))]
15#![cfg_attr(not(test), deny(clippy::disallowed_methods, clippy::disallowed_types,))]
16#![deny(
17    warnings,
18    trivial_numeric_casts,
19    unused_import_braces,
20    unused_qualifications,
21    rust_2018_idioms
22)]
23
24#[cfg(any(test, feature = "std"))]
25extern crate std;
26
27pub mod entrypoint;
28
29/// Re-export IBC handler types from `ibc-core-handler-types` crate.
30pub mod types {
31    #[doc(inline)]
32    pub use ibc_core_handler_types::*;
33}