Crate solana_program
source · [−]Modules
The blake3
module provides functions for creating hashes.
Borsh utils
The latest Solana BPF loader.
The original and now deprecated Solana BPF loader.
An Upgradeable Solana BPF loader.
Provides information about the network’s clock which is made up of ticks, slots, etc…
Solana Rust-based BPF program entry point supported by the latest BPFLoader. For more information see ‘./bpf_loader.rs’
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
Runtime features.
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.
Types for directing the execution of Solana programs.
Upgradeable loader instruction definitions
Solana Rust-based BPF program logging
Sequences of Instruction
s executed within a single transaction.
Solana Rust-based BPF memory operations
A C representation of Rust’s std::option::Option
used across the FFI
boundary for Solana program interfaces
State transition types
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
Define the default global allocator.
Define the default global panic handler.
Same as declare_id
except report that this id has been deprecated
Convenience macro to declare a static public key and functions to interact with it
Declare the program entry point and set up global handlers.
Declare the entry point of the program.
Print a message to the log
Convenience macro to define a static public key
Convenience macro for doing integer division where the opersation’s safety can be checked at compile-time