Files
khadhroony-bot3/ks-lib/src/decoder/launchpad/moonit.rs
2026-08-09 19:34:08 +02:00

40 lines
1.2 KiB
Rust

// file: ks-lib/src/decoder/launchpad/moonit.rs
// version: 5
//! Reserved protocol decoder for `launchpad_moonit`.
/// Reserved decoder for the `launchpad_moonit` program surface.
#[derive(Clone, Debug, Default)]
pub struct DcLaunchpadMoonitDecoder;
impl crate::DcApiProtocolDecoder for crate::DcLaunchpadMoonitDecoder {
fn decoder_name(&self) -> &'static str {
return "kb-lib.decoder.launchpad.moonit";
}
fn decoder_version(&self) -> &'static str {
return env!("CARGO_PKG_VERSION");
}
fn program_ids(&self) -> &'static [&'static str] {
return &[ks_program_ids::LAUNCHPAD_MOONIT_PROGRAM_ID];
}
fn supports_observation(
&self,
observation: &crate::MdProgramObservation,
) -> crate::DcApiDecoderSupport {
if crate::DcApiProtocolDecoder::handles_program_id(self, &observation.program_id) {
return crate::DcApiDecoderSupport::Maybe;
}
return crate::DcApiDecoderSupport::No;
}
fn decode_observation(
&self,
_observation: &crate::MdProgramObservation,
) -> ks_core::Result<std::vec::Vec<crate::MdDecodedProtocolEvent>> {
return std::result::Result::Ok(std::vec::Vec::new());
}
}