Expand description
Cross-program invocation for Hopper programs.
Provides both checked (borrow-validating) and unchecked invoke paths.
hopper-native-backend uses direct runtime syscalls; compatibility
backends delegate through compat after Hopper-level validation.
Re-exports§
Constants§
- MAX_
CPI_ ACCOUNTS - Maximum number of accounts in any CPI call.
- MAX_
RETURN_ DATA - Maximum return data size (1 KiB).
- MAX_
STATIC_ CPI_ ACCOUNTS - Maximum number of accounts in a static CPI call.
Functions§
- invoke
- Invoke a CPI with full validation.
- invoke_
signed - Invoke a signed CPI with full validation.
- 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.