carbon-memo-program-decoder 1.0.0

Memo Program Decoder
Documentation
//! This code was AUTOGENERATED using the Codama library.
use crate::{MemoProgramDecoder, 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 MemoProgramAccount {}

impl<'a> carbon_core::account::AccountDecoder<'a> for MemoProgramDecoder {
    type AccountType = MemoProgramAccount;

    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
    }
}