solana_bpf_loader_program

Module syscalls

Source

Structs§

Blake3Hasher
Keccak256Hasher
Sha256Hasher
SyscallAbort
Abort syscall functions, called when the SBF program calls abort() LLVM will insert calls to abort() if it detects an untenable situation, abort() is not intended to be called explicitly by the program. Causes the SBF program to be halted immediately
SyscallAllocFree
Dynamic memory allocation syscall called when the SBF program calls sol_alloc_free_(). The allocator is expected to allocate/free from/to a given chunk of memory and enforce size restrictions. The memory chunk is given to the allocator during allocator creation and information about that memory (start address and size) is passed to the VM to use for enforcement.
SyscallAltBn128
alt_bn128 group operations
SyscallAltBn128Compression
alt_bn128 g1 and g2 compression and decompression
SyscallBigModExp
Big integer modular exponentiation
SyscallCreateProgramAddress
Create a program address
SyscallCurveGroupOps
SyscallCurveMultiscalarMultiplication
SyscallCurvePointValidation
SyscallGetClockSysvar
Get a Clock sysvar
SyscallGetEpochRewardsSysvar
Get a EpochRewards sysvar
SyscallGetEpochScheduleSysvar
Get a EpochSchedule sysvar
SyscallGetEpochStake
SyscallGetFeesSysvar
Get a Fees sysvar
SyscallGetLastRestartSlotSysvar
Get a Last Restart Slot sysvar
SyscallGetProcessedSiblingInstruction
Get a processed sigling instruction
SyscallGetRentSysvar
Get a Rent sysvar
SyscallGetReturnData
Get return data
SyscallGetStackHeight
Get current call stack height
SyscallGetSysvar
Get a slice of a Sysvar in-memory representation
SyscallHash
SyscallInvokeSignedC
Cross-program invocation called from C
SyscallInvokeSignedRust
Cross-program invocation called from Rust
SyscallLog
Log a user’s info message
SyscallLogBpfComputeUnits
Log current compute consumption
SyscallLogData
Log data handling
SyscallLogPubkey
Log a Pubkey as a base58 string
SyscallLogU64
Log 5 64-bit values
SyscallMemcmp
memcmp
SyscallMemcpy
memcpy
SyscallMemmove
memmove
SyscallMemset
memset
SyscallPanic
Panic syscall function, called when the SBF program calls ’sol_panic_()` Causes the SBF program to be halted immediately
SyscallPoseidon
SyscallRemainingComputeUnits
Read remaining compute units
SyscallSecp256k1Recover
secp256k1_recover
SyscallSetReturnData
Set return data
SyscallTryFindProgramAddress
Create a program address

Enums§

SyscallError
Error definitions

Constants§

MAX_SIGNERS
Maximum signers

Traits§

HasherImpl

Functions§

create_program_runtime_environment_v1
create_program_runtime_environment_v2
morph_into_deployment_environment_v1