solana_program

Module program

Source
Expand description

Wrappers around solana-cpi with support for overwriting syscall stubs

Solana programs may call other programs, termed cross-program invocations (CPI), with the invoke and invoke_signed functions.

Constants§

MAX_RETURN_DATA
Maximum size that can be set using set_return_data.

Functions§

get_return_data
Like solana_cpi::get_return_data, but with support for overwriting the sol_get_return_data syscall stub.
invoke
Like solana_cpi::invoke, but with support for overwriting the sol_invoke_signed syscall stub.
invoke_signed
Like solana_cpi::invoke_signed, but with support for overwriting the sol_invoke_signed syscall stub.
invoke_signed_unchecked
Like solana_cpi::invoke_signed_unchecked, but with support for overwriting the sol_invoke_signed syscall stub.
invoke_unchecked
Like solana_cpi::invoke_unchecked, but with support for overwriting the sol_invoke_signed syscall stub.
set_return_data
Like solana_cpi::set_return_data, but with support for overwriting the sol_set_return_data syscall stub.