penumbra_app/app/
state_key.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
pub mod app_version {
    pub fn safeguard() -> &'static str {
        "application/version/safeguard"
    }
}

pub mod genesis {
    pub fn app_state() -> &'static str {
        "application/genesis/app_state"
    }
}

pub mod data {
    pub fn chain_id() -> &'static str {
        "application/data/chain_id"
    }
}

pub mod cometbft_data {
    use crate::COMETBFT_SUBSTORE_PREFIX;

    pub fn transactions_by_height(block_height: u64) -> String {
        format!(
            "{}/transactions_by_height/{block_height:020}",
            COMETBFT_SUBSTORE_PREFIX
        )
    }
}