penumbra_app/
lib.rs

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
#![deny(clippy::unwrap_used)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

use once_cell::sync::Lazy;

pub static SUBSTORE_PREFIXES: Lazy<Vec<String>> = Lazy::new(|| {
    vec![
        penumbra_ibc::IBC_SUBSTORE_PREFIX.to_string(),
        COMETBFT_SUBSTORE_PREFIX.to_string(),
    ]
});

/// The substore prefix used for storing historical CometBFT block data.
pub static COMETBFT_SUBSTORE_PREFIX: &'static str = "cometbft-data";

pub mod app_version;
pub use app_version::APP_VERSION;

pub mod genesis;
pub mod params;

cfg_if::cfg_if! {
    if #[cfg(feature="component")] {
        pub mod app;
        pub mod metrics;
        pub mod rpc;
        pub mod server;

        mod action_handler;
        mod community_pool_ext;
        mod penumbra_host_chain;

        pub use crate::{
            action_handler::AppActionHandler, app::StateWriteExt,
            community_pool_ext::CommunityPoolStateReadExt, metrics::register_metrics,
            penumbra_host_chain::PenumbraHost,
        };

        /// Temporary compat wrapper for duplicate trait impls
        pub struct Compat<'a, T>(&'a T);
    }
}