0.1.0-pre.005

This commit is contained in:
2026-07-23 18:44:43 +02:00
parent 149d4c6ef6
commit 2a4479a1d4
17 changed files with 1033 additions and 53 deletions

View File

@@ -1,10 +1,30 @@
// file: kb-lib/src/decoder/spl/memo.rs
// version: 1
// version: 2
//! Migration boundary for legacy crate `kb_decoder_spl_memo`.
//! Exact SPL Memo v1, v3 and v4 decoder component.
/// Legacy crate name retained for migration and compatibility tracking.
pub const LEGACY_CRATE: &str = "kb_decoder_spl_memo";
mod constants;
mod decoder;
mod payload;
/// Current porting status.
pub const MIGRATION_STATUS: &str = "source-preserved-pending-port";
/// 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;