namada_gas 0.48.0

Namada gas
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Gas storage keys

pub use namada_core::storage::Key;

const ERROR_MSG: &str = "Cannot obtain a valid db key";

/// Get the transaction hash prefix under the `all` subkey
pub fn pred_prefix() -> Key {
    Key::parse("pred/gas").expect(ERROR_MSG)
}

/// Get the full transaction hash prefix under the `last` subkey
pub fn gas_prefix() -> Key {
    Key::parse("gas").expect(ERROR_MSG)
}