Files
khadhroony-bot3/ks-lib/src/executor/launchpad/pump_pumpup_ai.rs
2026-08-09 19:34:08 +02:00

50 lines
1.7 KiB
Rust

// file: ks-lib/src/executor/launchpad/pump_pumpup_ai.rs
// version: 4
//! Reserved executor for `launchpad_pump_pumpup_ai`.
/// Reserved executor for the `launchpad_pump_pumpup_ai` program surface.
#[derive(Clone, Debug, Default)]
pub struct ExLaunchpadPumpPumpupAiExecutor;
impl crate::ExApiInstructionExecutor for crate::ExLaunchpadPumpPumpupAiExecutor {
fn executor_name(&self) -> &'static str {
return "kb-lib.executor.launchpad.pump_pumpup_ai";
}
fn executor_version(&self) -> &'static str {
return env!("CARGO_PKG_VERSION");
}
fn program_ids(&self) -> &'static [&'static str] {
return &[ks_program_ids::LAUNCHPAD_PUMP_PUMPUP_AI_PROGRAM_ID];
}
fn supports_request(
&self,
request: &crate::ExApiExecutionRequest,
) -> crate::ExApiExecutionSupport {
if crate::ExApiInstructionExecutor::handles_program_id(self, &request.program_id) {
return crate::ExApiExecutionSupport::Maybe;
}
return crate::ExApiExecutionSupport::No;
}
fn build_plan(
&self,
_request: &crate::ExApiExecutionRequest,
) -> ks_core::Result<crate::ExApiExecutionPlan> {
let payload_json = match crate::executor_api_serialize_payload_json(
&serde_json::json!({"status":"reserved_executor","surface":"launchpad_pump_pumpup_ai"}),
) {
std::result::Result::Ok(serialized) => serialized,
std::result::Result::Err(error) => return std::result::Result::Err(error),
};
return std::result::Result::Ok(crate::ExApiExecutionPlan {
executor_name: "kb-lib.executor.launchpad.pump_pumpup_ai".to_string(),
instruction_count: 0,
payload_json,
});
}
}