Crate solana_sdk[][src]

Re-exports

pub extern crate bs58;
pub use signer::signers;

Modules

useful extras for Account state

Borsh utils

@brief The latest Solana BPF loader.

@brief The original and now deprecated Solana BPF loader.

@brief An Upgradeable Solana BPF loader.

@brief 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.

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’

@brief Solana Native program entry point

configuration for epochs, slots

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.

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.

configuration for network inflation

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

The signature module provides functionality for public, and private keys.

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

slot history

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

The system_transaction module provides functionality for creating system transactions.

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

The timing module provides std::time utility functions.

Defines a Transaction type to package an atomic sequence of instructions.

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 builtin

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

Convenience macro to declare a native program

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

entrypointDeprecated

Declare the entry point of the program.

Convenience macro to log a message with an Rc<RefCell<dyn Logger>>

Convenience macro to log a message with an InvokeContext

infoDeprecated

Print a message to the log

program_stubsDeprecated

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 doing integer division where the opersation’s safety can be checked at compile-time