// file: kb-lib/src/decoder/anchor/core.rs // version: 3 //! Reserved protocol decoder for `anchor`. /// Reserved decoder for the `anchor` program surface. #[derive(Clone, Debug, Default)] pub struct DcAnchorDecoder; impl crate::DcApiProtocolDecoder for crate::DcAnchorDecoder { fn decoder_name(&self) -> &'static str { return "kb_decoder_anchor"; } fn decoder_version(&self) -> &'static str { return env!("CARGO_PKG_VERSION"); } fn program_ids(&self) -> &'static [&'static str] { return &[]; } 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, ) -> kb_core::Result> { return std::result::Result::Ok(std::vec::Vec::new()); } }