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

40 lines
1.3 KiB
Rust

// file: ks-lib/src/decoder/lending/jupiter_lend_borrow.rs
// version: 5
//! Reserved protocol decoder for `lending_jupiter_lend_borrow`.
/// Reserved decoder for the `lending_jupiter_lend_borrow` program surface.
#[derive(Clone, Debug, Default)]
pub struct DcLendingJupiterLendBorrowDecoder;
impl crate::DcApiProtocolDecoder for crate::DcLendingJupiterLendBorrowDecoder {
fn decoder_name(&self) -> &'static str {
return "kb-lib.decoder.lending.jupiter_lend_borrow";
}
fn decoder_version(&self) -> &'static str {
return env!("CARGO_PKG_VERSION");
}
fn program_ids(&self) -> &'static [&'static str] {
return &[ks_program_ids::LENDING_JUPITER_LEND_BORROW_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());
}
}