Module sugar_cli::common

source ·

Re-exports

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.
  • Instructions and constructors for the system program.
  • Access to special accounts with dynamically-updated data.

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.
  • A hash map implemented with quadratic probing and SIMD lookup.
  • 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
  • A slice of a path (akin to str).
  • An owned, mutable path (akin to String).
  • Program is the primary client handle to be used to build and send requests.
  • The address of a Solana account.
  • A Response to a submitted Request.
  • An atomically-commited sequence of instructions.

Enums

  • Represents any valid JSON value.

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

Derive Macros