fuel_core/database/database_description/
off_chain.rsuse crate::{
database::database_description::DatabaseDescription,
fuel_core_graphql_api,
};
use fuel_core_types::fuel_types::BlockHeight;
#[derive(Copy, Clone, Debug)]
pub struct OffChain;
impl DatabaseDescription for OffChain {
type Column = fuel_core_graphql_api::storage::Column;
type Height = BlockHeight;
fn version() -> u32 {
0
}
fn name() -> String {
"off_chain".to_string()
}
fn metadata_column() -> Self::Column {
Self::Column::Metadata
}
fn prefix(column: &Self::Column) -> Option<usize> {
match column {
Self::Column::OwnedCoins
| Self::Column::TransactionsByOwnerBlockIdx
| Self::Column::OwnedMessageIds => {
Some(32)
}
_ => None,
}
}
}