Expand description
Cross-program invocation for Hopper programs.
Provides both checked (borrow-validating) and unchecked invoke paths. Hopper uses direct runtime syscalls after Hopper-level validation.
Re-exports§
Constants§
- MAX_
CPI_ ACCOUNTS - Hard ceiling on the number of account-infos in any single CPI.
- MAX_
RETURN_ DATA - Maximum return data size (1 KiB).
- MAX_
STATIC_ CPI_ ACCOUNTS - Default stack-sized ceiling for a static CPI call.
Functions§
- invoke
- Invoke a CPI with full validation.
- invoke_
borrow_ checked - Invoke after checking account-address correspondence and live data borrows.
- invoke_
checked - Explicit alias for Hopper’s validated CPI path.
- invoke_
signed - Invoke a signed CPI with full validation.
- invoke_
signed_ borrow_ checked - Signed variant of
invoke_borrow_checked. Signer seeds are forwarded to the SVM, which derives and validates the caller’s PDA authorities. - invoke_
signed_ checked - Explicit alias for Hopper’s validated signed CPI path.
- invoke_
signed_ deduped - Invoke a CPI whose account-info list has been deduplicated by pubkey, the SIMD-0339 fewest-infos-per-CPI optimization.
- invoke_
signed_ ⚠unchecked - Invoke a signed CPI without borrow validation.
- invoke_
signed_ with_ bounds - Signed invoke with a dynamic number of accounts (bounded by const generic).
- invoke_
unchecked ⚠ - Invoke a CPI without borrow validation (lowest CU cost).
- invoke_
with_ bounds - Invoke with a dynamic number of accounts (bounded by const generic).
- set_
return_ data - Set return data for the current instruction.