declare_program!() { /* proc-macro */ }Expand description
Generate a typed CPI surface from an on-disk Hopper manifest.
ⓘ
hopper::declare_program!(amm, "idl/amm.json");Emits a module with PROGRAM_NAME, PROGRAM_ID_STR, a
FINGERPRINT: [u8; 32] compile-time manifest-hash const, and one
builder per instruction. See the declare_program module for the
full contract.