Skip to main content

Crate rialo_s_cpi

Crate rialo_s_cpi 

Source
Expand description

Cross-program invocation.

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

This crate does not support overwriting syscall stubs for offchain code. If you want to overwrite syscall stubs, use the wrapper functions in rialo_s_program::program.

Structs§

HostAccountInfo
Marshalled AccountInfo containing raw pointers to VM memory.
HostInstruction
Marshalled Instruction containing raw pointers to VM memory.

Constants§

MAX_RETURN_DATA
Maximum size that can be set using set_return_data.

Functions§

get_return_data
Get the return data from an invoked program.
invoke
Invoke a cross-program instruction.
invoke_signed
Invoke a cross-program instruction with program signatures.
invoke_signed_unchecked
Invoke a cross-program instruction with signatures but don’t enforce Rust’s aliasing rules.
invoke_unchecked
Invoke a cross-program instruction but don’t enforce Rust’s aliasing rules.
marshal_accounts
Marshal &[AccountInfo] into Vec<HostAccountInfo> suitable for RISC-V unmarshalling.
marshal_instruction
Marshal an Instruction into a HostInstruction suitable for RISC-V unmarshalling.
set_return_data
Set the running program’s return data.