fuel_core/database/database_description/
gas_price.rs1use crate::database::database_description::DatabaseDescription;
2use fuel_core_gas_price_service::common::fuel_core_storage_adapter::storage::GasPriceColumn;
3use fuel_core_types::fuel_types::BlockHeight;
4
5#[derive(Clone, Copy, Debug)]
6pub struct GasPriceDatabase;
7
8impl DatabaseDescription for GasPriceDatabase {
9 type Column = GasPriceColumn;
10 type Height = BlockHeight;
11
12 fn version() -> u32 {
13 0
14 }
15
16 fn name() -> String {
17 "gas_price".to_string()
18 }
19
20 fn metadata_column() -> Self::Column {
21 GasPriceColumn::Metadata
22 }
23
24 fn prefix(_column: &Self::Column) -> Option<usize> {
25 None
26 }
27}