Re-exports
pub use bs58;pub use crate::cache::Cache;pub use crate::cache::CacheItem;pub use crate::parse::path_to_string;pub use crate::setup::setup_client;pub use crate::setup::sugar_setup;pub use crate::constants::*;pub use crate::errors::*;Modules
An Anchor generated module, providing a set of structs
mirroring the structs deriving Accounts, where each field is
a Pubkey. This is useful for specifying accounts for a client.
An Anchor generated module containing the program’s set of
instructions, where each method handler in the #[program] mod is
associated with a struct defining the input arguments to the
method. These should be used directly, when one wants to serialize
Anchor instruction data, for example, when speciying
instructions on a client.
named accounts for synthesized data accounts for bank state, etc.
Macros
Construct an ad-hoc error from a string or existing non-anyhow error
value.
Constructs an event at the debug level.
Constructs an event at the error level.
Constructs an event at the info level.
Construct a serde_json::Value from a JSON literal.
Constructs an event at the warn level.
Structs
Candy machine state and config data.
Client defines the base configuration for building RPC clients to
communicate with Anchor programs running on a Solana cluster. It’s
primary use is to build a Program client via the program method.
An object providing access to an open file on the filesystem.
An asynchronous Client to make Requests with.
A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
A vanilla Ed25519 key pair
Program is the primary client handle to be used to build and send requests.
A Response to a submitted Request.
An atomically-commited sequence of instructions.
Enums
Represents any valid JSON value.
Statics
The static program ID
Traits
A data structure that can be deserialized and stored into account storage,
i.e. an
AccountInfo’s
mutable data slice.
A data structure that can be deserialized from any data format supported by Serde.
Parse a value from a string
The Signer trait declares operations that all digital signature providers
must support. It is the primary interface by which signers are specified in
Transaction signing interfaces
Type Definitions
Result<T, Error>