fuel-core 0.48.0

Fuel client library is aggregation of all fuels service. It contains the all business logic of the fuel protocol.
Documentation
use fuel_core_storage::{
    Mappable,
    blueprint::plain::Plain,
    codec::postcard::Postcard,
    structured_storage::TableWithBlueprint,
};

/// The table that stores all statistic about blockchain. Each key is a string, while the value
/// depends on the context.
pub struct StatisticTable<V>(core::marker::PhantomData<V>);

impl<V> Mappable for StatisticTable<V>
where
    V: Clone,
{
    type Key = str;
    type OwnedKey = String;
    type Value = V;
    type OwnedValue = V;
}

impl<V> TableWithBlueprint for StatisticTable<V>
where
    V: Clone,
{
    type Blueprint = Plain<Postcard, Postcard>;
    type Column = super::Column;

    fn column() -> Self::Column {
        Self::Column::Statistic
    }
}