0.5.1-pre.002
This commit is contained in:
39
ks-lib/src/decoder/vault/carrot_defi.rs
Normal file
39
ks-lib/src/decoder/vault/carrot_defi.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
// file: ks-lib/src/decoder/vault/carrot_defi.rs
|
||||
// version: 5
|
||||
|
||||
//! Reserved protocol decoder for `vault_carrot_defi`.
|
||||
|
||||
/// Reserved decoder for the `vault_carrot_defi` program surface.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct DcVaultCarrotDefiDecoder;
|
||||
|
||||
impl crate::DcApiProtocolDecoder for crate::DcVaultCarrotDefiDecoder {
|
||||
fn decoder_name(&self) -> &'static str {
|
||||
return "kb-lib.decoder.vault.carrot_defi";
|
||||
}
|
||||
|
||||
fn decoder_version(&self) -> &'static str {
|
||||
return env!("CARGO_PKG_VERSION");
|
||||
}
|
||||
|
||||
fn program_ids(&self) -> &'static [&'static str] {
|
||||
return &[ks_program_ids::VAULT_CARROT_DEFI_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());
|
||||
}
|
||||
}
|
||||
39
ks-lib/src/decoder/vault/hylo_stability_pool.rs
Normal file
39
ks-lib/src/decoder/vault/hylo_stability_pool.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
// file: ks-lib/src/decoder/vault/hylo_stability_pool.rs
|
||||
// version: 5
|
||||
|
||||
//! 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 "kb-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<std::vec::Vec<crate::MdDecodedProtocolEvent>> {
|
||||
return std::result::Result::Ok(std::vec::Vec::new());
|
||||
}
|
||||
}
|
||||
39
ks-lib/src/decoder/vault/kamino.rs
Normal file
39
ks-lib/src/decoder/vault/kamino.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
// file: ks-lib/src/decoder/vault/kamino.rs
|
||||
// version: 5
|
||||
|
||||
//! Reserved protocol decoder for `vault_kamino`.
|
||||
|
||||
/// Reserved decoder for the `vault_kamino` program surface.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct DcVaultKaminoDecoder;
|
||||
|
||||
impl crate::DcApiProtocolDecoder for crate::DcVaultKaminoDecoder {
|
||||
fn decoder_name(&self) -> &'static str {
|
||||
return "kb-lib.decoder.vault.kamino";
|
||||
}
|
||||
|
||||
fn decoder_version(&self) -> &'static str {
|
||||
return env!("CARGO_PKG_VERSION");
|
||||
}
|
||||
|
||||
fn program_ids(&self) -> &'static [&'static str] {
|
||||
return &[ks_program_ids::VAULT_KAMINO_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());
|
||||
}
|
||||
}
|
||||
39
ks-lib/src/decoder/vault/kamino_v2.rs
Normal file
39
ks-lib/src/decoder/vault/kamino_v2.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
// file: ks-lib/src/decoder/vault/kamino_v2.rs
|
||||
// version: 5
|
||||
|
||||
//! Reserved protocol decoder for `vault_kamino_v2`.
|
||||
|
||||
/// Reserved decoder for the `vault_kamino_v2` program surface.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct DcVaultKaminoV2Decoder;
|
||||
|
||||
impl crate::DcApiProtocolDecoder for crate::DcVaultKaminoV2Decoder {
|
||||
fn decoder_name(&self) -> &'static str {
|
||||
return "kb-lib.decoder.vault.kamino_v2";
|
||||
}
|
||||
|
||||
fn decoder_version(&self) -> &'static str {
|
||||
return env!("CARGO_PKG_VERSION");
|
||||
}
|
||||
|
||||
fn program_ids(&self) -> &'static [&'static str] {
|
||||
return &[ks_program_ids::VAULT_KAMINO_V2_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());
|
||||
}
|
||||
}
|
||||
39
ks-lib/src/decoder/vault/kamino_yvaults.rs
Normal file
39
ks-lib/src/decoder/vault/kamino_yvaults.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
// file: ks-lib/src/decoder/vault/kamino_yvaults.rs
|
||||
// version: 5
|
||||
|
||||
//! Reserved protocol decoder for `vault_kamino_yvaults`.
|
||||
|
||||
/// Reserved decoder for the `vault_kamino_yvaults` program surface.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct DcVaultKaminoYvaultsDecoder;
|
||||
|
||||
impl crate::DcApiProtocolDecoder for crate::DcVaultKaminoYvaultsDecoder {
|
||||
fn decoder_name(&self) -> &'static str {
|
||||
return "kb-lib.decoder.vault.kamino_yvaults";
|
||||
}
|
||||
|
||||
fn decoder_version(&self) -> &'static str {
|
||||
return env!("CARGO_PKG_VERSION");
|
||||
}
|
||||
|
||||
fn program_ids(&self) -> &'static [&'static str] {
|
||||
return &[ks_program_ids::VAULT_KAMINO_YVAULTS_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());
|
||||
}
|
||||
}
|
||||
39
ks-lib/src/decoder/vault/meteora.rs
Normal file
39
ks-lib/src/decoder/vault/meteora.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
// file: ks-lib/src/decoder/vault/meteora.rs
|
||||
// version: 5
|
||||
|
||||
//! Reserved protocol decoder for `vault_meteora`.
|
||||
|
||||
/// Reserved decoder for the `vault_meteora` program surface.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct DcVaultMeteoraDecoder;
|
||||
|
||||
impl crate::DcApiProtocolDecoder for crate::DcVaultMeteoraDecoder {
|
||||
fn decoder_name(&self) -> &'static str {
|
||||
return "kb-lib.decoder.vault.meteora";
|
||||
}
|
||||
|
||||
fn decoder_version(&self) -> &'static str {
|
||||
return env!("CARGO_PKG_VERSION");
|
||||
}
|
||||
|
||||
fn program_ids(&self) -> &'static [&'static str] {
|
||||
return &[ks_program_ids::VAULT_METEORA_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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user