0.1.0
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
// file: kb_decoder_vault_kamino_yvaults/src/decoder.rs
|
||||
// version: 5
|
||||
|
||||
//! Decoder scaffold for the `kb_decoder_vault_kamino_yvaults` crate.
|
||||
|
||||
/// Initial decoder implementation placeholder.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct VaultKaminoYvaultsDecoder;
|
||||
|
||||
impl kb_decoder_api::ProtocolDecoder for crate::VaultKaminoYvaultsDecoder {
|
||||
fn decoder_name(&self) -> &'static str {
|
||||
return "kb_decoder_vault_kamino_yvaults";
|
||||
}
|
||||
|
||||
fn decoder_version(&self) -> &'static str {
|
||||
return env!("CARGO_PKG_VERSION");
|
||||
}
|
||||
|
||||
fn program_ids(&self) -> &'static [&'static str] {
|
||||
return &[kb_program_ids::VAULT_KAMINO_YVAULTS_PROGRAM_ID];
|
||||
}
|
||||
|
||||
fn supports_observation(
|
||||
&self,
|
||||
observation: &kb_model::ProgramObservation,
|
||||
) -> kb_decoder_api::DecoderSupport {
|
||||
return if self.handles_program_id(&observation.program_id) {
|
||||
kb_decoder_api::DecoderSupport::Maybe
|
||||
} else {
|
||||
kb_decoder_api::DecoderSupport::No
|
||||
};
|
||||
}
|
||||
|
||||
fn decode_observation(
|
||||
&self,
|
||||
_observation: &kb_model::ProgramObservation,
|
||||
) -> kb_core::Result<std::vec::Vec<kb_model::DecodedProtocolEvent>> {
|
||||
let _target = crate::TRACING_TARGET;
|
||||
return std::result::Result::Ok(std::vec::Vec::new());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user