#[light_program]Expand description
Generates a Light program for the given module.
§Example
ⓘ
use light_sdk_macros::light_program;
use anchor_lang::prelude::*;
declare_id!("Fg6PaFpoGXkYsidMpWxTWKGNpKK39H3UKo7wjRZnq89u");
#[derive(Accounts)]
pub struct MyInstruction {}
#[light_program]
pub mod my_program {
use super::*;
pub fn my_instruction(ctx: Context<MyInstruction>) -> Result<()> {
// Your instruction logic here
Ok(())
}
}