Crate solana_sdk[][src]

Re-exports

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

Modules

useful extras for Account state

Borsh utils

The latest Solana BPF loader.

The original and now deprecated Solana BPF loader.

An Upgradeable Solana BPF loader.

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…

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’

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

Solana Rust-based BPF program logging

A library for generating a message from a sequence of instructions

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

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

Define the default global allocator.

Define the default global panic handler.

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 program entry point and set up global handlers.

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

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