Crate solana_program[][src]

Modules

Borsh utils

@brief The latest Solana BPF loader.

@brief The original and now deprecated Solana BPF loader.

@brief An Upgradeable Solana BPF loader.

Provides information about the network’s clock which is made up of ticks, slots, etc…

@brief Solana Rust-based BPF program entry point supported by the latest BPFLoader. For more information see ‘./bpf_loader.rs’

@brief Solana Rust-based BPF program entry point supported by the original and now deprecated BPFLoader. For more information see ‘./bpf_loader_deprecated.rs’

configuration for epochs, slots

The hash module provides functions for creating SHA-256 hashes.

Lamports credited to this address will be removed from the total supply (burned) at the end of the current block.

Defines a composable Instruction type and a memory-efficient CompiledInstruction.

Upgradeable loader instruction definitions

@brief Solana Rust-based BPF program logging

A library for generating a message from a sequence of instructions

@brief Solana Rust-based BPF memory operations

A C representation of Rust’s std::option::Option used accross the FFI boundary for Solana program interfaces

State transition types

@brief Syscall stubs when building for programs for non-BPF targets

configuration for network rent

named accounts for synthesized data accounts for bank state, etc.

slot history

named accounts for synthesized data accounts for bank state, etc.

named accounts for synthesized data accounts for bank state, etc.

Macros

Fallback to default for unused custom heap feature.

Fallback to default for unused custom panic feature. This must be used if the entrypoint! macro is not used.

Convenience macro to declare a static public key and functions to interact with it

Declare the entry point of the program and use the default local heap implementation

Declare the entry point of the program.

infoDeprecated

Print a message to the log

Convenience macro for doing integer division where the opersation’s safety can be checked at compile-time