14 lines
610 B
Rust
14 lines
610 B
Rust
// file: kb-lib/src/decoder/metadata/solana_program_metadata/constants.rs
|
|
// version: 1
|
|
|
|
//! Bounded Solana Program Metadata wire constants.
|
|
|
|
/// Exact byte length of one Solana Program Metadata seed.
|
|
pub const DC_METADATA_SPM_SEED_BYTES: usize = 16;
|
|
/// Exact fixed byte length of one Buffer account header.
|
|
pub const DC_METADATA_SPM_BUFFER_HEADER_BYTES: usize = 96;
|
|
/// Exact fixed byte length of one Metadata account header.
|
|
pub const DC_METADATA_SPM_METADATA_HEADER_BYTES: usize = 96;
|
|
/// Exact byte length of one external-account data reference.
|
|
pub const DC_METADATA_SPM_EXTERNAL_DATA_BYTES: usize = 40;
|