Skip to main content

carbon_memo_program_decoder/accounts/
mod.rs

1//! This code was AUTOGENERATED using the Codama library.
2use crate::{MemoProgramDecoder, PROGRAM_ID};
3
4#[cfg(feature = "postgres")]
5pub mod postgres;
6
7#[cfg(feature = "graphql")]
8pub mod graphql;
9
10#[derive(Debug, Clone, PartialEq)]
11#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
12#[cfg_attr(feature = "serde", serde(tag = "type", content = "data"))]
13pub enum MemoProgramAccount {}
14
15impl<'a> carbon_core::account::AccountDecoder<'a> for MemoProgramDecoder {
16    type AccountType = MemoProgramAccount;
17
18    fn decode_account(
19        &self,
20        account: &'a solana_account::Account,
21    ) -> Option<carbon_core::account::DecodedAccount<Self::AccountType>> {
22        if account.owner != PROGRAM_ID {
23            return None;
24        }
25
26        let _data = account.data.as_slice();
27
28        None
29    }
30}