//! This code was AUTOGENERATED using the Codama library.
use crate::{FluxbeamDecoder, PROGRAM_ID};

#[cfg(feature = "postgres")]
pub mod postgres;

#[cfg(feature = "graphql")]
pub mod graphql;

#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(tag = "type", content = "data"))]
pub enum FluxbeamAccount {}

impl<'a> carbon_core::account::AccountDecoder<'a> for FluxbeamDecoder {
    type AccountType = FluxbeamAccount;

    fn decode_account(
        &self,
        account: &'a solana_account::Account,
    ) -> Option<carbon_core::account::DecodedAccount<Self::AccountType>> {
        if account.owner != PROGRAM_ID {
            return None;
        }

        let _data = account.data.as_slice();

        None
    }
}
