Skip to main content

Module entrypoint

Module entrypoint 

Source
Expand description

Program entrypoint ownership for Hopper Native.

This file is the only raw program-entry boundary owner in Hopper Native. Loader input parsing lives in crate::raw_input, while the public macros below own the raw entrypoint(input: *mut u8) boundary and delegate into Hopper callbacks.

Structs§

BumpAllocator
A bump allocator over the SVM heap region.

Constants§

HEAP_LENGTH
Default Solana heap region length (32 KiB).
HEAP_RUNTIME_RESERVED
Bytes of the heap’s BOTTOM reserved as Hopper runtime scratch, starting right after the BumpAllocator cursor word: the byte range [HEAP_START + 8, HEAP_START + 8 + HEAP_RUNTIME_RESERVED).
HEAP_START_ADDRESS
Canonical Solana heap region start address (0x3_0000_0000).

Functions§

err_to_u64
Convert a handler’s ProgramError into the Solana runtime’s u64 return code.
process_entrypoint⚠
Process the BPF entrypoint input.