macro_rules! hopper_program_entrypoint {
( $process_instruction:expr ) => { ... };
( $process_instruction:expr, $maximum:expr ) => { ... };
}Expand description
Declare the canonical Hopper Native program entrypoint.
Generates the extern "C" fn entrypoint that the Solana runtime calls.
program_entrypoint! remains available as a backward-compatible alias.
§Usage
ⓘ
use hopper_native::hopper_program_entrypoint;
hopper_program_entrypoint!(process_instruction);
pub fn process_instruction(
program_id: &Address,
accounts: &[AccountView],
instruction_data: &[u8],
) -> ProgramResult {
Ok(())
}