Crate solana_sdk
source · [−]Re-exports
Modules
Account information.
useful extras for Account state
The definition of address lookup table accounts.
The latest BPF loader native program.
The original and now deprecated Solana BPF loader.
An upgradeable BPF loader native program.
Solana builtin helper macros
Defines traits for blocking (synchronous) and non-blocking (asynchronous) communication with a Solana server as well a a trait that encompasses both.
Information about the network’s clock, ticks, slots, etc.
Debug-formatting of account data.
Converting custom error codes to enums.
The Rust-based BPF program entry point supported by the latest BPF loader.
The Rust-based BPF program entry point supported by the original BPF loader.
Configuration for epochs and slots.
Methods for working with Feature
accounts.
Runtime features.
Collection of all runtime features.
Calculation of transaction fees.
The genesis_config
module is a library for generating the chain’s genesis config.
The hard_forks
module is used to maintain the list of slot boundaries for when a hard fork
should occur.
A designated address for burning lamports.
configuration for network inflation
Types for directing the execution of Solana programs.
Defines the LamportsError
type.
Instructions for the non-upgradable BPF loader.
Instructions for the upgradable BPF loader.
Logging utilities for Rust-based Solana programs.
Sequences of Instruction
s executed within a single transaction.
Definitions for the native SOL token and its fractional lamports.
Durable transaction nonces.
Solana precompiled programs
Cross-program invocation.
The ProgramError
type and related definitions.
Basic low-level memory operations.
A C representation of Rust’s Option
, used across the FFI
boundary for Solana program interfaces.
The Pack
serialization trait.
Implementations of syscalls used when solana-program
is built for non-BPF targets.
Contains a single utility function for deserializing from bincode.
Solana account addresses.
A trait for sanitizing values and members of over the wire messages.
A vector of Solana SDK IDs
Key recovery from secp256k1 signatures.
Helpers for reading and writing bytes.
Compact serde-encoding of vectors with small length.
The signature
module provides functionality for public, and private keys.
A type to hold data for the SlotHashes
sysvar.
A type to hold data for the SlotHistory
sysvar.
A type to hold data for the StakeHistory
sysvar.
Instructions and constructors for the system program.
The system_transaction
module provides functionality for creating system transactions.
Access to special accounts with dynamically-updated data.
The timing
module provides std::time utility functions.
Atomically-committed sequences of instructions.
Successors of instruction_context_context::StackFrame, KeyedAccount and AccountInfo
Macros
Define the default global allocator.
Define the default global panic handler.
Convenience macro to declare a builtin
Same as declare_id
except report that this id has been deprecated
Same as [declare_sysvar_id
] except that it reports that this ID has been deprecated.
Convenience macro to declare a static public key and functions to interact with it
Declares an ID that implements SysvarId
.
Declare the program entry point and set up global handlers.
Declare the program entry point.
Implements the Sysvar::get
method for both BPF and host targets.
Print a message to the log.
Print a message to the log.
Convenience macro to define a static public key
A proc-macro which respans the tokens in its first argument (a Path
)
to be resolved at the tokens of its second argument.
For internal use only.
Convenience macro for AddAssign
with saturating arithmetic.
Replace by std::num::Saturating
once stable
Convenience macro for doing integer division where the operation’s safety can be checked at compile-time.