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