// file: kb-lib/src/decoder/spl/memo.rs // version: 2 //! Exact SPL Memo v1, v3 and v4 decoder component. mod constants; mod decoder; mod payload; /// Maximum payload prefix retained for bounded diagnostics. pub(crate) use self::constants::SPL_MEMO_DIAGNOSTIC_PREFIX_BYTES; /// Current stable Memo decoded event contract version. pub(crate) use self::constants::SPL_MEMO_EVENT_VERSION; /// Maximum decoded instruction data retained as a complete Memo payload. pub(crate) use self::constants::SPL_MEMO_MAX_PAYLOAD_BYTES; /// Stable protocol code shared by Memo generations. pub(crate) use self::constants::SPL_MEMO_PROTOCOL_CODE; /// Canonical tracing target for the SPL Memo decoder. pub(crate) use self::constants::SPL_MEMO_TRACING_TARGET; /// Stable Memo v1 surface code. pub(crate) use self::constants::SPL_MEMO_V1_SURFACE_CODE; /// Stable Memo v3 surface code. pub(crate) use self::constants::SPL_MEMO_V3_SURFACE_CODE; /// Stable Memo v4 surface code. pub(crate) use self::constants::SPL_MEMO_V4_SURFACE_CODE; /// Decodes one bounded SPL Memo instruction. pub(crate) use self::payload::decode as spl_memo_decode; /// Exact decoder for the three registered SPL Memo generations. pub use self::decoder::SplMemoDecoder;